MCP server
Connect Claude, Cursor or any MCP app to Based Loans with one URL.
The Model Context Protocol (MCP) is how AI apps like Claude and Cursor connect to outside tools. Based Loans runs a public MCP server, so you can add it once and then just ask your assistant things like "what can I borrow against 1 WETH?"
Server URL: https://mcp.based.loans/mcp
Add it to your app
Claude Code
Run this in a terminal, then start a new session:
claude mcp add --transport http basedloans https://mcp.based.loans/mcp
Claude Desktop, Cursor and other MCP apps
Add this to the app's MCP settings:
{
"mcpServers": {
"basedloans": {
"url": "https://mcp.based.loans/mcp"
}
}
}
Run it on your own computer
If you prefer to run the server locally, or want to use your own Base RPC:
{
"mcpServers": {
"basedloans": {
"command": "npx",
"args": ["-y", "@basedloans/mcp"],
"env": { "BASE_RPC_URL": "https://your-base-rpc" }
}
}
}
Set BASEDLOANS_READ_ONLY to 1 to hide the tools that prepare transactions.
Tools
Read
| Tool | What it does |
|---|---|
get_protocol_info | Loan fee, the three terms with their durations and buyback costs, minimums |
list_markets | Every accepted token with its price and the USDC available to borrow |
get_market | One token's price, max loan-to-value and available USDC |
get_risk_report | How a token is priced, how deep its markets are, and what each risk flag means |
quote_borrow | Exact loan quote: USDC you receive, buyback cost and due date |
get_loan | One loan's status, buyback remaining and due date |
get_borrower_loans | Every loan a wallet has opened |
get_lender_position | A lender's deposit, limits, and anything they can claim |
request_token_listing | Checks a token and gives you a request link if it is not accepted |
explain_collateral_types | How each kind of collateral is priced |
simulate_transaction | Dry-runs a prepared transaction and explains any failure |
Prepare transactions
| Tool | What it prepares |
|---|---|
build_borrow | Open a loan (approval first, only if needed) |
build_buyback | Pay back part or all of a loan and get collateral back |
build_deposit | Deposit USDC to lend, with per-token limits |
build_set_limits | Add, change or remove per-token limits |
build_withdraw | Withdraw USDC that is not in active loans |
build_claim_proceeds | Claim repaid USDC, or put it back into lending |
build_claim_collateral | Claim your share of collateral from loans not bought back |
build_set_auto_redeploy | Turn automatic re-lending on or off |
Prepare tools return transactions in order. Your wallet signs each one; the server never holds keys or sends anything.
The server is also listed in the official MCP Registry as io.github.0xVarius/basedloans.