Based Loans MCP
An MCP server for Based Loans that allows AI agents to borrow USDC against Base tokens with no liquidations or lend USDC. It provides live quotes, token risk data, and generates unsigned transactions without holding any keys.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://mcp.based.loans/mcpWhat its tools do
19 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Read-only (19)
get_protocol_infolist_marketsget_marketget_risk_reportquote_borrowget_loanget_borrower_loansget_lender_positionrequest_token_listingexplain_collateral_typesbuild_borrowbuild_buybackbuild_depositbuild_set_limitsbuild_withdrawbuild_claim_proceedsbuild_claim_collateralbuild_set_auto_redeploysimulate_transaction
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
About Based Loans MCP
The Based Loans MCP server allows AI agents to interact with the Based Loans protocol on the Base network. It supports borrowing USDC against Base tokens and lending USDC against other tokens. The server provides live quotes and token risk data to inform these financial actions.
Agents can generate unsigned transactions for various protocol operations, including building borrow, deposit, and withdraw actions. The server does not hold private keys, ensuring that transaction signing remains outside the agent's scope. It also offers tools to explain collateral types, get market data, and simulate transactions before execution.
No sign-in is required to connect to the server or list available tools. However, individual tools may still require a vendor account, credentials, or specific permissions. Users must check the documented prerequisites for each task to determine if additional setup is needed beyond the initial connection.
What you can do with it
- Borrow USDC against Base tokens
- Lend USDC against tokens
- Get live quotes and token risk data
- Generate unsigned transactions
Source and maintenance
- Maintenance checked
Protocol and capabilities
- Server
- basedloans 0.1.2
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 19 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": true
}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
19 advertised
get_protocol_info — 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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}{
"title": "Protocol info",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}list_markets — List collateral tokens
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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"only_with_funds": {
"type": "boolean",
"description": "Only tokens with USDC available to borrow right now"
}
},
"additionalProperties": false
}{
"title": "List collateral tokens",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}get_market — Get one collateral token
Price, max loan-to-value, USDC available to borrow, active loans and pricing type for one token.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"asset"
],
"properties": {
"asset": {
"type": "string",
"minLength": 1,
"description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB"
}
},
"additionalProperties": false
}{
"title": "Get one collateral token",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}get_risk_report — Token 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 10x, USDC available to borrow against it, its active loan limit, and plain-language explanations of every flag. Use this before setting a lending limit on a token.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"asset"
],
"properties": {
"asset": {
"type": "string",
"minLength": 1,
"description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB"
},
"skip_depth": {
"type": "boolean",
"description": "Skip the pool depth calculation (faster)"
}
},
"additionalProperties": false
}{
"title": "Token risk report",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}quote_borrow — Quote a loan
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 warns (with a suggested amount) when a loan would be funded short.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"asset",
"collateral_amount",
"term"
],
"properties": {
"term": {
"anyOf": [
{
"enum": [
"short",
"medium",
"long"
],
"type": "string"
},
{
"type": "integer",
"maximum": 2,
"minimum": 0
}
],
"description": "Loan term: short, medium or long (or 0/1/2). Durations and costs come from get_protocol_info."
},
"asset": {
"type": "string",
"minLength": 1,
"description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB"
},
"loan_amount_usdc": {
"type": "string",
"pattern": "^\\d+(\\.\\d+)?$",
"description": "Loan amount before the fee. Omit to borrow the most the collateral allows."
},
"collateral_amount": {
"type": "string",
"pattern": "^\\d+(\\.\\d+)?$",
"description": "Collateral to offer, in token units, e.g. 0.5"
}
},
"additionalProperties": false
}{
"title": "Quote a loan",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}get_loan — Get a loan
Status, collateral, buyback cost and remaining amount, due date and lenders for one loan.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"loan_id"
],
"properties": {
"loan_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d+$"
},
{
"type": "integer",
"minimum": 0
}
],
"description": "Loan ID"
}
},
"additionalProperties": false
}{
"title": "Get a loan",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}get_borrower_loans — Borrower's loans
Every loan a wallet has opened, with status (active, partially_repaid, repaid, defaulted), buyback remaining and time until due.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"borrower"
],
"properties": {
"borrower": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Borrower wallet address on Base"
}
},
"additionalProperties": false
}{
"title": "Borrower's loans",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}get_lender_position — 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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"lender"
],
"properties": {
"lender": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Lender wallet address on Base"
}
},
"additionalProperties": false
}{
"title": "Lender position",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}request_token_listing — Request a new token
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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"token"
],
"properties": {
"token": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Token contract address on Base"
}
},
"additionalProperties": false
}{
"title": "Request a new token",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}explain_collateral_types — Collateral types explained
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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}{
"title": "Collateral types explained",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}build_borrow — Prepare a loan
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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"asset",
"collateral_amount",
"term",
"borrower"
],
"properties": {
"term": {
"anyOf": [
{
"enum": [
"short",
"medium",
"long"
],
"type": "string"
},
{
"type": "integer",
"maximum": 2,
"minimum": 0
}
],
"description": "Loan term: short, medium or long (or 0/1/2). Durations and costs come from get_protocol_info."
},
"asset": {
"type": "string",
"minLength": 1,
"description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB"
},
"borrower": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Wallet that will sign; used to skip unneeded approvals and check balances"
},
"loan_amount_usdc": {
"type": "string",
"pattern": "^\\d+(\\.\\d+)?$",
"description": "Loan amount before the fee, in USDC. Omit to borrow the most the collateral allows"
},
"collateral_amount": {
"type": "string",
"pattern": "^\\d+(\\.\\d+)?$",
"description": "Collateral to offer, in token units, e.g. 0.5. It is a maximum: only what the loan needs is taken"
},
"max_shortfall_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0,
"description": "Max gap between requested and funded amount in basis points. Omit for the protocol default."
}
},
"additionalProperties": false
}{
"title": "Prepare a loan",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}build_buyback — Prepare a 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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"loan_id",
"borrower"
],
"properties": {
"loan_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d+$"
},
{
"type": "integer",
"minimum": 0
}
],
"description": "Loan ID"
},
"borrower": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Borrower wallet that will sign; must be the wallet that opened the loan"
},
"payment_usdc": {
"type": "string",
"pattern": "^\\d+(\\.\\d+)?$",
"description": "USDC to pay. Omit to pay everything left and get all collateral back"
}
},
"additionalProperties": false
}{
"title": "Prepare a buyback",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}build_deposit — Prepare a lending 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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"amount_usdc",
"lender"
],
"properties": {
"lender": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Lender wallet that will sign; used to skip unneeded approvals and check balances"
},
"limits": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"limit_usdc"
],
"properties": {
"asset": {
"type": "string",
"minLength": 1,
"description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB"
},
"limit_usdc": {
"type": "string",
"pattern": "^\\d+(\\.\\d+)?$",
"description": "Max USDC to lend against this token; 0 removes it"
}
},
"additionalProperties": false
},
"maxItems": 50,
"minItems": 1,
"description": "Per-token lending limits to set in the same transaction. A first deposit needs at least one to be lent"
},
"amount_usdc": {
"type": "string",
"pattern": "^\\d+(\\.\\d+)?$",
"description": "USDC to deposit, e.g. 500"
}
},
"additionalProperties": false
}{
"title": "Prepare a lending deposit",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}build_set_limits — Prepare per-token lending 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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"limits",
"lender"
],
"properties": {
"lender": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Lender wallet that will sign"
},
"limits": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"limit_usdc"
],
"properties": {
"asset": {
"type": "string",
"minLength": 1,
"description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB"
},
"limit_usdc": {
"type": "string",
"pattern": "^\\d+(\\.\\d+)?$",
"description": "Max USDC to lend against this token; 0 removes it"
}
},
"additionalProperties": false
},
"maxItems": 50,
"minItems": 1,
"description": "Tokens and the max USDC to lend against each"
}
},
"additionalProperties": false
}{
"title": "Prepare per-token lending limits",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}build_withdraw — Prepare a withdrawal
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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"amount_usdc",
"lender"
],
"properties": {
"lender": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Lender wallet that will sign"
},
"as_musdc": {
"type": "boolean",
"description": "Receive mUSDC vault shares instead of USDC, skipping the 0.25% withdrawal fee"
},
"amount_usdc": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d+(\\.\\d+)?$"
},
{
"type": "string",
"const": "max"
}
],
"description": "USDC to withdraw, or \"max\" for everything not in active loans"
}
},
"additionalProperties": false
}{
"title": "Prepare a withdrawal",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}build_claim_proceeds — Prepare a proceeds claim
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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"loan_ids"
],
"properties": {
"mode": {
"enum": [
"withdraw",
"redeploy"
],
"type": "string",
"description": "withdraw sends the USDC to your wallet (default); redeploy puts it back into lending"
},
"loan_ids": {
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d+$"
},
{
"type": "integer",
"minimum": 0
}
],
"description": "Loan ID"
},
"maxItems": 50,
"minItems": 1,
"description": "IDs of loans you funded, from get_lender_position (1 to 50)"
}
},
"additionalProperties": false
}{
"title": "Prepare a proceeds claim",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}build_claim_collateral — Prepare a collateral claim
Returns the unsigned transaction for a lender to claim their share of collateral from loans that passed their due date without a full buyback.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"loan_ids"
],
"properties": {
"loan_ids": {
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d+$"
},
{
"type": "integer",
"minimum": 0
}
],
"description": "Loan ID"
},
"maxItems": 50,
"minItems": 1,
"description": "IDs of past-due loans you funded, from get_lender_position (1 to 50)"
}
},
"additionalProperties": false
}{
"title": "Prepare a collateral claim",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}build_set_auto_redeploy — Prepare auto re-lend setting
Returns the unsigned transaction to turn automatic re-lending of repaid principal on or off.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean",
"description": "true to re-lend repaid principal automatically, false to keep it available to withdraw"
}
},
"additionalProperties": false
}{
"title": "Prepare auto re-lend setting",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}simulate_transaction — Simulate a 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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"to",
"data",
"from"
],
"properties": {
"to": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The step's to address, as returned by a build_ tool"
},
"data": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]*$",
"description": "The step's calldata, as returned by a build_ tool"
},
"from": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Wallet that would send the transaction"
},
"value": {
"type": "string",
"pattern": "^\\d+$",
"description": "Native value in wei. Always 0 for Based Loans calls"
}
},
"additionalProperties": false
}{
"title": "Simulate a transaction",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}Prompts
Not advertised
Resources
Not advertised
90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-17: 2 of 2 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 3 of 3 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 767 ms
- 95th percentile latency
- 840 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 848 ms · 19 tool(s)
- · probe · passed · 686 ms · metadata changed · 19 tool(s)
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http based-mcp https://mcp.based.loans/mcpCodex
codex mcp add based-mcp --url https://mcp.based.loans/mcpCursor
{
"mcpServers": {
"based-mcp": {
"url": "https://mcp.based.loans/mcp"
}
}
}Cline
{
"mcpServers": {
"based-mcp": {
"type": "streamableHttp",
"url": "https://mcp.based.loans/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"based-mcp": {
"type": "http",
"url": "https://mcp.based.loans/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http based-mcp https://mcp.based.loans/mcpClaude Desktop
https://mcp.based.loans/mcpWindsurf
{
"mcpServers": {
"based-mcp": {
"serverUrl": "https://mcp.based.loans/mcp"
}
}
}Let your agent find its tools
Find servers like Based Loans MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other payments servers
Frequently asked questions
- Can I use this server to borrow USDC against Base tokens?
- Yes, the server supports borrowing USDC against Base tokens. It provides tools to build borrow transactions and get live quotes. Note that individual tools may require vendor accounts or credentials; check documented prerequisites for specific requirements.
- Does the server hold private keys for transaction signing?
- No, the server generates unsigned transactions without holding any keys. Agents can build transactions for borrowing, depositing, or withdrawing, but signing must be handled externally. This ensures private keys remain secure and outside the server's control.
- Is a vendor account required to connect to the server?
- No sign-in is required to connect or list tools. However, individual tools may still need a vendor account, credentials, or permissions. Users should verify documented prerequisites for each task to determine if additional setup is necessary beyond the initial connection.
- What risk data is available for tokens?
- The server provides token risk data and live quotes for borrowing and lending. Tools like `get_risk_report` and `quote_borrow` offer insights into market conditions. This data helps agents make informed decisions before generating unsigned transactions for protocol interactions.