API Tools
based.loans
Provides tools for querying a token lending protocol, including markets, risk reports, and borrow quotes.
ENDPOINT 1
https://mcp.based.loans/mcp
MCP server metadata
- Name
- basedloans
- Version
- 0.1.1
Based Loans is a fixed-term lending protocol on Base with no liquidations. A borrower deposits a token as collateral and receives USDC right away. They can buy the collateral back at a fixed price any time before the due date. If they do not, they keep the USDC and the lenders who funded the loan receive the collateral instead. Prices can move as much as they like during the loan; nothing is ever sold off early. Lenders deposit USDC and choose which tokens they are willing to lend against, with a USDC limit per token. No lender is exposed to a token they did not choose. How to help a user: - To borrow: get_market or list_markets, then quote_borrow, then build_borrow. Always show the buyback cost and due date before they commit. - To lend: get_risk_report for every token they are considering, explain the flags in plain words, then build_deposit with limits. - To see positions: get_borrower_loans or get_lender_position. - If a token is not supported: request_token_listing returns a link for the user to submit. Never claim a request was submitted. Transaction tools return unsigned transactions in order (approval first when needed). This server never holds keys and never sends anything. The user's wallet signs each step. You can dry-run a step with simulate_transaction. All amounts are decimal strings in token units (USDC has 6 decimals). Every number is read live from Base mainnet. Risk reports describe the data; they are not advice.
Known tools 19
get_protocol_infoLive 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.
Inferred read-onlylist_marketsEvery token currently accepted as collateral, with price, max loan-to-value, USDC available to borrow against it, active loans, and how it is priced.
Inferred read-onlyget_marketPrice, max loan-to-value, USDC available to borrow, active loans and pricing type for one token.
Inferred read-onlyget_risk_reportLive 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.
Inferred read-onlyquote_borrowExact 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.
Inferred read-onlyget_loanStatus, collateral, buyback cost and remaining amount, due date and lenders for one loan.
Inferred read-onlyget_borrower_loansEvery loan a wallet has opened, with status (active, partially_repaid, repaid, defaulted), buyback remaining and time until due.
Inferred read-onlyget_lender_positionA 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.
Inferred read-onlyexplain_collateral_typesHow 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.
Inferred read-onlybuild_borrowReturns the unsigned transactions to open a loan: an approval (only if needed) then openLoan.
Inferred read-onlybuild_buybackReturns the unsigned transactions to pay back a loan and get collateral back: a USDC approval (only if needed) then buyback.
Potential side effectsbuild_depositReturns 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).
Inferred read-onlybuild_set_limitsReturns the unsigned transaction to add, change or remove per-token lending limits.
Potential side effectsbuild_withdrawReturns the unsigned transaction to withdraw USDC that is not in active loans.
Inferred read-onlybuild_claim_proceedsReturns the unsigned transaction to claim repaid USDC from loans you funded (mode withdraw) or put it straight back into lending (mode redeploy).
Inferred read-onlybuild_claim_collateralReturns the unsigned transaction for a lender to claim their share of collateral from loans that passed their due date without a full buyback.
Inferred read-onlybuild_set_auto_redeployReturns the unsigned transaction to turn automatic re-lending of repaid principal on or off.
Inferred read-onlysimulate_transactionDry-runs one prepared transaction from a wallet against the latest block and explains the failure in plain language if it would revert.
Inferred read-onlyCONNECT WITH APPROVAL
Client installation
Review this server and its permissions before adding it. Secret placeholders must be set locally.
Codex
~/.codex/config.toml
[mcp_servers.basedloans]
url = "https://mcp.based.loans/mcp"
enabled = true
Claude Code
.mcp.json
{
"mcpServers": {
"basedloans": {
"type": "http",
"url": "https://mcp.based.loans/mcp"
}
}
}
Claude Desktop
Settings → Connectors → Add custom connector
Name: basedloans
Remote MCP URL: https://mcp.based.loans/mcp
Add this remote URL as a custom connector in Claude Desktop. Availability depends on the user plan and workspace policy.
Cursor
.cursor/mcp.json
{
"mcpServers": {
"basedloans": {
"url": "https://mcp.based.loans/mcp"
}
}
}
Visual Studio Code
.vscode/mcp.json
Add to Visual Studio Code{
"servers": {
"basedloans": {
"type": "http",
"url": "https://mcp.based.loans/mcp"
}
}
}
Generic MCP
Client-specific MCP configuration
{
"name": "basedloans",
"transport": "streamable-http",
"url": "https://mcp.based.loans/mcp"
}
MCP Inspector
Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.
TRUST AND VERIFICATION EVIDENCE
Loading Trust v2 evidence…
Checking the associated registrable domain. The BuiltWith key remains server-side.
Evidence is source-attributed and does not guarantee that a third-party server is safe. Risk labels are conservative metadata heuristics.