Based Loans
Server Details
Borrow USDC against Base tokens with no liquidations, or lend USDC. Quotes, risk data, unsigned txs.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- 0xVarius/basedloans-agents
- GitHub Stars
- 0
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 19 tools
Each tool targets a distinct resource or action (build_* for unsigned txs, get_* for reads, plus quote/explain/simulate helpers). The only mild overlaps are get_market vs list_markets (single token vs all tokens) and get_loan vs get_borrower_loans (one loan vs a wallet's loans), but the descriptions make the boundaries clear. build_borrow vs quote_borrow is also well differentiated (build tx vs pure math quote).
Every tool follows a strict verb_noun convention: build_*, get_*, list_*, quote_*, explain_*, request_*, simulate_*. Snake_case throughout with no camelCase or style mixing. The verb prefix also encodes the tool's role (build = unsigned tx), making the set highly predictable.
19 tools is on the heavy side but each corresponds to a real lending workflow operation (borrow, buyback, deposit, withdraw, limits, auto-redeploy, claims) plus supporting reads/helpers. Nothing feels trivial or redundant, though the surface is at the upper edge of what an agent can comfortably navigate.
The set covers the full lifecycle: quoting, building, and simulating transactions for both borrowers (borrow, buyback, claim collateral) and lenders (deposit, withdraw, limits, auto-redeploy, claim proceeds), plus per-loan/per-wallet/per-market reads, protocol params, risk, and token listing. No obvious operational gaps remain.
Available Tools
19 toolsbuild_borrowPrepare a loanARead-onlyIdempotentInspect
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.
Inputs: term (required), asset (required), borrower (required), collateral_amount (required), +2 more.
build_buybackPrepare a buybackARead-onlyIdempotentInspect
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.
Inputs: loan_id (required), borrower (required), payment_usdc.
build_claim_collateralPrepare a collateral claimARead-onlyIdempotentInspect
Returns the unsigned transaction for a lender to claim their share of collateral from loans that passed their due date without a full buyback.
Inputs: loan_ids (required).
build_claim_proceedsPrepare a proceeds claimARead-onlyIdempotentInspect
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.
Inputs: loan_ids (required), mode.
build_depositPrepare a lending depositARead-onlyIdempotentInspect
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.
Inputs: lender (required), amount_usdc (required), limits.
build_set_auto_redeployPrepare auto re-lend settingARead-onlyIdempotentInspect
Returns the unsigned transaction to turn automatic re-lending of repaid principal on or off.
Inputs: enabled (required).
build_set_limitsPrepare per-token lending limitsARead-onlyIdempotentInspect
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.
Inputs: lender (required), limits (required).
build_withdrawPrepare a withdrawalARead-onlyIdempotentInspect
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.
Inputs: lender (required), amount_usdc (required), as_musdc.
explain_collateral_typesCollateral types explainedARead-onlyIdempotentInspect
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.
Inputs: no named parameters.
get_borrower_loansBorrower's loansBRead-onlyIdempotentInspect
Every loan a wallet has opened, with status (active, partially_repaid, repaid, defaulted), buyback remaining and time until due.
Inputs: borrower (required).
get_lender_positionLender positionBRead-onlyIdempotentInspect
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.
Inputs: lender (required).
get_loanGet a loanBRead-onlyIdempotentInspect
Status, collateral, buyback cost and remaining amount, due date and lenders for one loan.
Inputs: loan_id (required).
get_marketGet one collateral tokenARead-onlyIdempotentInspect
Price, max loan-to-value, USDC available to borrow, active loans and pricing type for one token.
Inputs: asset (required).
get_protocol_infoProtocol infoARead-onlyIdempotentInspect
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.
Inputs: no named parameters.
get_risk_reportToken risk reportARead-onlyIdempotentInspect
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.
Inputs: asset (required), skip_depth.
list_marketsList collateral tokensARead-onlyIdempotentInspect
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.
Inputs: only_with_funds.
quote_borrowQuote a loanARead-onlyIdempotentInspect
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.
Inputs: term (required), asset (required), collateral_amount (required), loan_amount_usdc.
request_token_listingRequest a new tokenARead-onlyIdempotentInspect
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.
Inputs: token (required).
simulate_transactionSimulate a transactionARead-onlyIdempotentInspect
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.
Inputs: to (required), data (required), from (required), value.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Paid Base USDC lending decisions and rate-risk alerts, plus free risk and routing tools.
Live USDC rates on Base, any address's Obento position, and deposits and withdrawals to sign.
Prediction-market quotes, fill estimates and odds trends, paid per call with x402 USDC on Base.
Buy and sell fully backed crypto index tokens and trade prediction markets on Base, in USDC.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAgent equity markets, credit markets, and capability staking using USDC on Base L2.MIT
- AlicenseNot gradedqualityDmaintenanceUndercollateralized credit lines for autonomous agents based on trust scoring, enabling on-chain credit scoring, agent-to-agent loans, and USDC settlement on Base L2.MIT
- AlicenseNot gradedqualityBmaintenanceExposes JSON-RPC 2.0 tools that let AI agents scan Base L2 lending positions approaching liquidation, simulate flash-loan-backed debt rescue plans, and generate the calldata needed to repay Morpho Blue and Aave v3 debt while avoiding the 5% penalty. Agents and builders can also attach a referral wallet to collect an instant 0.05% USDC revenue share paid atomically in the same block.1MIT
- AlicenseAqualityDmaintenanceP2P Crypto and Flashloans. Lets AI agents browse, quote and (optionally) transact with the FlashBank contracts — the P2P term-loan escrow and the flash-loan router — on Ethereum, Base, Arbitrum and the Sepolia playground.1578 npmMIT
Glama MCP Gateway
Add one secure layer between your agents and this server.