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

ToolWhat it does
get_protocol_infoLoan fee, the three terms with their durations and buyback costs, minimums
list_marketsEvery accepted token with its price and the USDC available to borrow
get_marketOne token's price, max loan-to-value and available USDC
get_risk_reportHow a token is priced, how deep its markets are, and what each risk flag means
quote_borrowExact loan quote: USDC you receive, buyback cost and due date
get_loanOne loan's status, buyback remaining and due date
get_borrower_loansEvery loan a wallet has opened
get_lender_positionA lender's deposit, limits, and anything they can claim
request_token_listingChecks a token and gives you a request link if it is not accepted
explain_collateral_typesHow each kind of collateral is priced
simulate_transactionDry-runs a prepared transaction and explains any failure

Prepare transactions

ToolWhat it prepares
build_borrowOpen a loan (approval first, only if needed)
build_buybackPay back part or all of a loan and get collateral back
build_depositDeposit USDC to lend, with per-token limits
build_set_limitsAdd, change or remove per-token limits
build_withdrawWithdraw USDC that is not in active loans
build_claim_proceedsClaim repaid USDC, or put it back into lending
build_claim_collateralClaim your share of collateral from loans not bought back
build_set_auto_redeployTurn 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.