Based Loans
io.github.0xVarius/basedloans
Borrow USDC against Base tokens with no liquidations, or lend USDC. Quotes, risk data, unsigned txs.
- Repository
- github.com/0xVarius/basedloans-agents
- Website
- based.loans/
- Server address
https://mcp.based.loans/mcp(streamable-http)- Version
- 0.1.4
- Author
- 0xVarius (namespace verified by the registry)
- Source
- Official MCP registry (updated Nov 18, 2026)
How to install it
Variables to fill in: BASE_RPC_URL, BASEDLOANS_READ_ONLY.
Remote server (nothing to install)
Claude Code
In a terminal:
claude mcp add --transport http basedloans https://mcp.based.loans/mcpClaude (app and claude.ai)
Open Settings, then Connectors, and add a custom connector with this address. If the server asks you to sign in, Claude will walk you through it.
https://mcp.based.loans/mcpChatGPT
In Settings, Apps & Connectors section, turn on developer mode, then create a connector with this address.
https://mcp.based.loans/mcpCursor ~/.cursor/mcp.json
Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in the project):
{
"mcpServers": {
"basedloans": {
"url": "https://mcp.based.loans/mcp"
}
}
}VS Code .vscode/mcp.json
Add this to your project’s .vscode/mcp.json:
{
"servers": {
"basedloans": {
"type": "http",
"url": "https://mcp.based.loans/mcp"
}
}
}On your machine
Claude Code
The server runs on your machine (npm package). In a terminal:
claude mcp add basedloans -e BASE_RPC_URL=YOUR_BASE_RPC_URL -e BASEDLOANS_READ_ONLY=YOUR_BASEDLOANS_READ_ONLY -- npx -y @basedloans/[email protected]Claude Desktop claude_desktop_config.json
Settings, Developer, Edit config, then add:
{
"mcpServers": {
"basedloans": {
"command": "npx",
"args": [
"-y",
"@basedloans/[email protected]"
],
"env": {
"BASE_RPC_URL": "YOUR_BASE_RPC_URL",
"BASEDLOANS_READ_ONLY": "YOUR_BASEDLOANS_READ_ONLY"
}
}
}
}Cursor ~/.cursor/mcp.json
In ~/.cursor/mcp.json:
{
"mcpServers": {
"basedloans": {
"command": "npx",
"args": [
"-y",
"@basedloans/[email protected]"
],
"env": {
"BASE_RPC_URL": "YOUR_BASE_RPC_URL",
"BASEDLOANS_READ_ONLY": "YOUR_BASEDLOANS_READ_ONLY"
}
}
}
}VS Code .vscode/mcp.json
In .vscode/mcp.json:
{
"servers": {
"basedloans": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@basedloans/[email protected]"
],
"env": {
"BASE_RPC_URL": "YOUR_BASE_RPC_URL",
"BASEDLOANS_READ_ONLY": "YOUR_BASEDLOANS_READ_ONLY"
}
}
}
}ChatGPT
ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.
These configurations are built from the information published by the author. Check the repository before installing a local server.
Our test
Responds The server speaks MCP and lists its tools.
- Date
- Nov 28, 2026, 11:10 (test run by L’Atlas)
- Response time
- 463 ms (whole test)
- Tools found
- 19
- Announced name
- basedloans 0.1.2
- Protocol
- MCP 2025-11-25
- Next test
- Dec 5, 2026
See the tools (19)
get_protocol_info
Live protocol parameters: loan fee, the three loan terms with their durations and buyback costs, minimum loan and deposit sizes, per-token lending limit bounds, and whether the protocol is paused.list_markets
Every token currently accepted as collateral, with price, max loan-to-value, USDC available to borrow against it, active loans, and how it is priced. Set only_with_funds to see only tokens lenders are currently backing.get_market
Price, max loan-to-value, USDC available to borrow, active loans and pricing type for one token.get_risk_report
Live risk data for lending against (or borrowing with) a token: how many price sources it has and whether they cross-check each other, how far back its pool price history goes, how much trading it would take to move its pool price 2x and 10quote_borrow
Exact loan quote using the same math the contract runs: USDC you receive after the fee, buyback cost, due date, and how much collateral is used. It replays the lender queue, so the funded amount matches what the loan would really get, and wget_loan
Status, collateral, buyback cost and remaining amount, due date and lenders for one loan.get_borrower_loans
Every loan a wallet has opened, with status (active, partially_repaid, repaid, defaulted), buyback remaining and time until due.get_lender_position
A lender's deposit, USDC in active loans, USDC available to withdraw, per-token limits, and every loan they funded with any repaid USDC or defaulted collateral they can claim.request_token_listing
Check whether a token is accepted as collateral. If it is not, returns a pre-filled link to the Based Loans request form for the user to open and submit. Nothing is submitted automatically.explain_collateral_types
How Based Loans prices different kinds of collateral (regular tokens, two-hop priced tokens, staked and share tokens, escrowed tokens), with examples, and what each means for borrowers and lenders.build_borrow
Returns the unsigned transactions to open a loan: an approval (only if needed) then openLoan. Includes the quote and warnings. The user's wallet must sign and send each step in order.build_buyback
Returns the unsigned transactions to pay back a loan and get collateral back: a USDC approval (only if needed) then buyback. Omit payment_usdc to pay the full remaining amount.build_deposit
Returns the unsigned transactions to deposit USDC for lending, optionally setting per-token lending limits in the same transaction (needed before a first deposit can be lent). Check get_risk_report for each token first.build_set_limits
Returns the unsigned transaction to add, change or remove per-token lending limits. A limit cannot be set below what is already in active loans for that token.build_withdraw
Returns the unsigned transaction to withdraw USDC that is not in active loans. Use "max" for everything available. as_musdc receives vault shares and skips the 0.25% withdrawal fee.build_claim_proceeds
Returns the unsigned transaction to claim repaid USDC from loans you funded (mode withdraw) or put it straight back into lending (mode redeploy). Get loan IDs from get_lender_position.build_claim_collateral
Returns the unsigned transaction for a lender to claim their share of collateral from loans that passed their due date without a full buyback.build_set_auto_redeploy
Returns the unsigned transaction to turn automatic re-lending of repaid principal on or off.simulate_transaction
Dry-runs one prepared transaction from a wallet against the latest block and explains the failure in plain language if it would revert. Steps that depend on an earlier approval only pass after that approval is mined.
What the test does: it opens an MCP session (initialize) and asks for the tool list (tools/list), with no key or account. No tool is ever called. Learn more
Reviews
No review yet.
Sign in to leave a review. Your email is all you need.
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.
Markdown (GitHub)
[](https://lagora.dev/en/entry/io.github.0xvarius/basedloans)HTML
<a href="https://lagora.dev/en/entry/io.github.0xvarius/basedloans"><img src="https://lagora.dev/badge/io.github.0xvarius/basedloans.svg?lang=en" alt="io.github.0xVarius/basedloans on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.