CantorFi MCP server
OfficialA read-only window into the CantorFi lending protocol on Base: browse vaults, look up contracts, and pull guides and docs, without keys or accounts.
cantorfi_vaults— live state of every isolated vault: token, supplied, borrowed, available liquidity, utilization, borrow/supply APR, borrow limit, liquidation threshold and bonus.cantorfi_vault— one vault's live state, chosen by token symbol (USDC,WETH), vault id or address.cantorfi_contracts— network, chain id, deployment block, and addresses of the registry, vault factory, reader, price oracle and each vault with its token, receipt token and staking contract.cantorfi_liquidation_bot— how to run the open-source liquidation bot, read-only or with your own wallet, with commands filled in from the network values.search— search vaults and guides (isolated lending, liquidations, prediction market settlement, B20 tokens, ERC-4626); returns ids forfetch.fetch— full record of a vault or full text of a guide by id.Every tool is annotated read-only, idempotent, non-destructive and open-world; the server never signs or sends anything.
Note: the README also advertises
cantorfi_position,cantorfi_prepare(unsigned transactions),cantorfi_appsandcantorfi_paid_services, which are absent from this schema.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CantorFi MCP server what are the current USDC vault borrow and supply rates?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CantorFi agent and MCP server
MCP server for CantorFi, a lending protocol on Base made of isolated vaults: each vault lends one token against collateral in that same token, with borrow and supply rates derived from utilization. CantorFi also settles prediction markets and inspects B20 tokens.
With this server, Claude, ChatGPT, Gemini and any MCP client can read the live state of the vaults, a wallet's position, the deployed contracts, the applications built on CantorFi, the commands of the open-source liquidation bot and the CantorFi guides. An agent that has its own wallet can also ask for the unsigned transactions of a vault action and sign them itself.
No key, no account. The server never signs and never sends anything. It reads the chain and prepares unsigned transactions; supplying, borrowing, repaying, withdrawing and liquidating are always signed by the user's or the agent's own wallet.
This repository holds two things that share one door, https://www.cantorfi.xyz/api/mcp:
the MCP server of CantorFi, for Claude, ChatGPT, Gemini and any MCP client;
the CantorFi agent (
cantorfi-agent): one agent with its own wallet that works on CantorFi and on every application built on CantorFi. There is one agent, not one per application.
The agent
npx -y -p github:cantorfi/cantorfi-mcp cantorfi-agent helpThe agent connects to CantorFi only. There it finds the applications registered on CantorFi, reads the vaults and its own position, signs the transactions CantorFi prepares, and pays x402 desks in USDC.
Command | What it does |
| Address and balances. The wallet is created on this machine at first use; its key never leaves it. |
| Applications built on CantorFi with their own door, vaults, paid services. |
| What the wallet has supplied and owes in each vault. |
| CantorFi prepares the transactions, the wallet signs and sends them. |
| Paid services (x402) and their prices. |
| Pays a CantorFi service in USDC with x402: no gas, no approval, no account. |
| Reads the door of any application registered on CantorFi. |
| ICARE predictions: stake paid from the ICARE Portfolio or with x402. |
| Autonomous loop: decides with your strategy, stakes within your limits, sells at your profit target, logs every action. |
| ICARE tribunal: 1 USDC ticket per case paid with x402, sealed proofs read, answer submitted. |
| Sjothr company raises: the raise is quoted by its contract, the wallet signs the allowance and the purchase; the 10% fee is paid by the backer on top. |
How it stays safe:
One wallet, kept in
~/.cantorfi-agent/state.json(mode 600) or given byCANTORFI_AGENT_PRIVATE_KEY. Nothing is ever sent but signatures.It signs a vault transaction only when it goes to a vault or a token of the CantorFi deployment manifest, on its own chain, from its own address.
It pays an x402 desk only when the price fits the ceiling, the announced resource is the one it asked for, and the signing domain is the token's own on chain.
It stakes on an ICARE match only while the match contract still accepts stakes, checked on chain before anything is signed or paid.
It invests in a Sjothr raise only through an allowance in the USDC of the CantorFi manifest to the contract registered for Sjothr in the CantorFi registry, within your ceiling (
--max), followed by the purchase on that same contract.
What is specific to an application lives in one module of this repository (src/apps). A new application registered on CantorFi is listed by discover at once and reachable with app; it gets a module only if it needs its own signatures.
The public deployment runs on Base Sepolia with test USDC (https://faucet.circle.com). Network, contracts, payment token and prices are read from the door, so the same agent follows CantorFi to Base mainnet.
Related MCP server: hyperliquid-agent-gateway
Connect the MCP server
Remote server (Streamable HTTP, no authentication):
https://www.cantorfi.xyz/api/mcpClaude (claude.ai, desktop, mobile): Settings → Connectors → Add custom connector, paste the URL.
ChatGPT: Settings → Connectors (developer mode) → add the URL as an MCP server.
Claude Code:
claude mcp add --transport http cantorfi https://www.cantorfi.xyz/api/mcpClients configured with JSON (remote):
{ "mcpServers": { "cantorfi": { "url": "https://www.cantorfi.xyz/api/mcp" } } }Clients that only launch local servers (stdio): this repository is a small bridge with no dependency that forwards to the same endpoint. Node.js 20 or later.
{ "mcpServers": { "cantorfi": { "command": "npx", "args": ["-y", "github:cantorfi/cantorfi-mcp"] } } }Tools
Tool | What it returns |
| Every isolated lending vault: token, supplied, borrowed, available liquidity, utilization, borrow and supply APR, borrow limit, liquidation threshold and bonus. |
| One vault, chosen by token symbol ( |
| Network, chain id, deployment block and contract addresses: protocol registry, vault factory, reader, price oracle, and each vault with its token, receipt token and staking contract. |
| How to run the open-source liquidation bot, read-only or with your own wallet, with the commands filled with the network values. |
| Applications registered in the CantorFi integrator registry, read from the chain, with the endpoint where an agent reaches each of them. One connection finds them all. |
| What one wallet has supplied and owes in each vault: supply, debt with interest, what it can still borrow, what it can withdraw, health factor. |
| Unsigned transactions for one vault action ( |
| Services paid per call in USDC with x402: resource, price, input, how to pay. |
| Search vaults and guides (isolated lending, liquidations, prediction market settlement, B20 tokens, ERC-4626). |
| Full record of a vault or full text of a guide, by id from |
Example questions
"What are the borrow and supply rates on CantorFi right now?"
"How much USDC can still be borrowed from the CantorFi USDC vault?"
"Give me the CantorFi contract addresses on Base Sepolia."
"How do I run a liquidation bot on CantorFi without risking a key?"
"What can an agent pay for on CantorFi, and how much?"
"Which applications are built on CantorFi, and where does an agent reach them?"
"What does my wallet 0x… owe on CantorFi?"
"Prepare the transactions to supply 25 USDC to the CantorFi USDC vault from my wallet 0x…."
"Explain how DeFi liquidations work, using the CantorFi guide."
Status
The public deployment of CantorFi is a developer preview on Base Sepolia (chain id 84532). Rates are variable annualized estimates derived from utilization, not guaranteed yield.
Links
Website: https://www.cantorfi.xyz
Application: https://app.cantorfi.xyz/yield
Documentation: https://www.cantorfi.xyz/docs
Liquidation bot: https://github.com/cantorfi/liquidation-bot
Description for AI assistants: https://www.cantorfi.xyz/llms.txt
License
MIT
Available Tools
6 toolscantorfi_contractsCantorFi deployed contractsARead-onlyIdempotentInspect
Network, chain id, deployment block and addresses of the CantorFi contracts: protocol registry, vault factory, reader, price oracle and every vault with its token, receipt token and staking contract.
Inputs: no named parameters.
cantorfi_liquidation_botRun the CantorFi liquidation botARead-onlyIdempotentInspect
How to run the open-source CantorFi liquidation bot: read-only without a key, or liquidating with the user's own wallet. Returns the repository and the commands filled with the network values.
Inputs: no named parameters.
cantorfi_vaultOne CantorFi vaultARead-onlyIdempotentInspect
Live state of one CantorFi vault, chosen by token symbol (USDC, WETH), vault id or vault address.
Inputs: vault (required).
cantorfi_vaultsCantorFi lending vaultsARead-onlyIdempotentInspect
Live state of every CantorFi isolated lending vault: token, supplied, borrowed, available liquidity, utilization, borrow and supply APR, borrow limit, liquidation threshold and liquidation bonus.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The vault-list vs single-vault split is clear (cantorfi_vaults vs cantorfi_vault), and contracts/liquidation-bot tools are distinct. The generic search/fetch tools overlap somewhat with the vault-state tools in the vault domain, but their id-based retrieval workflow is described well enough to distinguish them.
Four tools follow a cantorfi_<resource> snake_case pattern, but search and fetch are bare generic verbs with no CantorFi prefix or resource noun. The set is readable but mixes domain-prefixed noun names with generic action names rather than following one predictable convention.
Six tools is well within the appropriate range for a focused protocol-information MCP server. Each tool maps to a distinct capability: vault list, vault detail, contract metadata, liquidation-bot guidance, search, and fetch.
The surface covers vault state, contract addresses, liquidation-bot guidance, and searchable docs, which is solid for a read-only information server. However, it lacks obvious lending-domain operations such as user position/health-factor lookup, liquidation candidate discovery, oracle price retrieval, or transaction preparation.
Maintenance
Related MCP Connectors
Live Base staking/lending yields (APY, TVL, vaults) as MCP tools; x402 pay-per-request tier
Non-custodial USDC yield vaults on Base mainnet with 9 MCP tools for AI agent treasury.
Read-only on-chain intelligence for AI agents on Base: balances, tokens, gas, tx status.
Read-only on-chain intelligence for AI agents on Base: balances, tokens, gas, tx status.
Related MCP Servers
- AlicenseAqualityDmaintenanceA read-only MCP server that lets any MCP-compatible AI agent inspect wallets and contracts on Base directly through natural conversation.6MIT
- AlicenseAqualityBmaintenanceProvides AI agents read-only, keyless access to Hyperliquid market data, funding rates, account risk, and HyperEVM token transfers through MCP tools, with caching and rate limiting to protect upstream APIs.1239 PyPI1MIT
- AlicenseNot gradedqualityCmaintenanceExposes three read-only MCP tools for previewing Base token market data, evaluating USDC spend against SpendGuard policies before funds move, and discovering x402 payment challenges without signing or paying.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to preview Base token market data, evaluate SpendGuard spending policies, and read x402 payment challenge terms without signing or paying.Apache 2.0