Back to Browse

Cantorfi MCP Server

Developer ToolsLow Risk10.0MCP RegistryRemote
Free

Server data from the Official MCP Registry

CantorFi on Base: vaults, positions, unsigned transactions, x402 paid services, apps built on it.

About

CantorFi on Base: vaults, positions, unsigned transactions, x402 paid services, apps built on it.

Remote endpoints: streamable-http: https://www.cantorfi.xyz/api/mcp

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (1 strong, 1 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

10 tools verified · Open access · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

file_system

Applies to the server that hosts this plugin, not to your machine.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Applies to the server that hosts this plugin, not to your machine.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-cantorfi-cantorfi-mcp": {
      "url": "https://www.cantorfi.xyz/api/mcp"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

CantorFi agent and MCP server

cantorfi/cantorfi-mcp MCP server CantorFi MCP connector

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 help

The 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.

CommandWhat it does
cantorfi-agent walletAddress and balances. The wallet is created on this machine at first use; its key never leaves it.
cantorfi-agent discoverApplications built on CantorFi with their own door, vaults, paid services.
cantorfi-agent positionWhat the wallet has supplied and owes in each vault.
cantorfi-agent supply|borrow|repay|withdraw <vault> <amount>CantorFi prepares the transactions, the wallet signs and sends them.
cantorfi-agent stake <vault> <cvt> [--days n] / unstake <vault> / claim-rewards <vault>Staking of the vault receipt token (CVT), lock of 1 to 365 days.
cantorfi-agent swap <from> <to> <amount> [--slippage p]Swap between USDC, WETH and ETH through the CantorFi router, with a minimum received.
cantorfi-agent servicesPaid services (x402) and their prices.
cantorfi-agent pay <service id> '<json>'Pays a CantorFi service in USDC with x402: no gas, no approval, no account.
cantorfi-agent app <name> tools / call <tool>Reads the door of any application registered on CantorFi.
cantorfi-agent icare matches / bet / positions / sellICARE predictions: stake paid from the ICARE Portfolio or with x402.
cantorfi-agent icare auto run|once|statusAutonomous loop: decides with your strategy, stakes within your limits, sells at your profit target, logs every action.
cantorfi-agent icare tokens / token buy <symbol> <usdc> / token sell <symbol> <tokens>ICARE player tokens, bought and sold from the ICARE Portfolio: the wallet signs the action, ICARE relays it (no gas).
cantorfi-agent icare tribunal list|once|runICARE tribunal: 1 USDC ticket per case paid with x402, sealed proofs read, answer submitted.
cantorfi-agent sjothr campaigns / rules / invest <campaignId> <usdc>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.
cantorfi-agent sjothr portfolios / portfolio <poolId> / positionsSjothr credit risk: verified loan-book portfolios, their tranches and offers, the wallet's guarantor positions.
cantorfi-agent sjothr market [campaignId] / backer <campaignId>Startup token resale before listing; a raise seen by the wallet (rounds, kept tokens, votes).
cantorfi-agent sjothr founderThe raise this wallet created: rounds, vaults (raised, released, withdrawn, available), the round proposed to backers, the invited writer, published updates and who wrote them.
cantorfi-agent sjothr code [poolId]Sjothr's credit risk code, the law of the tribunal: full text, the four findings a juror decides and how; for a portfolio, its version, checked by the agent against the fingerprint read on the Sjothr contract.
cantorfi-agent sjothr vote <poolId> <established findings|none> --reasons <text|@file> / reveal <poolId>Juror: hidden findings (default,eligible,loss,goodFaith) after the code is checked on chain, then opened with the written reasons; salt, findings and reasons stay in the agent state. The contract computes the verdict: founded only if all four are established.
cantorfi-agent sjothr writer <wallet|none> / progress <update.json> [campaignId]The founder invites its AI agent's wallet to write its updates; the agent publishes what was really done ({title, text, links, files:[{name, url}]}), each file fingerprinted from its bytes, with campaignId when it is the invited writer. It never asks for or withdraws money.
cantorfi-agent sjothr do <tool> '<json>' [--max <usdc>]One credit risk (sjothr_risk_prepare: cover, withdraw_offer, collect, sell, unlist, buy, release), Market (sjothr_market_prepare), backer (sjothr_backer_prepare: vote_round, vote_release, refund, redeem) or founder (sjothr_founder_prepare: create, propose_round, open_round, finalize_round, publish_update, set_writer, request_release, finalize_release, withdraw, cancel) action, checked then signed: only the Sjothr contract registered on CantorFi, the round vaults of the wallet's own raise (read on the Sjothr contract) and USDC allowances to Sjothr within the ceiling.

How it stays safe:

  • One wallet, kept in ~/.cantorfi-agent/state.json (mode 600) or given by CANTORFI_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.

Connect the MCP server

Remote server (Streamable HTTP, no authentication):

https://www.cantorfi.xyz/api/mcp
  • Claude (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/mcp
  • Clients 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

ToolWhat it returns
cantorfi_vaultsEvery isolated lending vault: token, supplied, borrowed, available liquidity, utilization, borrow and supply APR, borrow limit, liquidation threshold and bonus.
cantorfi_vaultOne vault, chosen by token symbol (USDC, WETH), vault id or vault address.
cantorfi_contractsNetwork, 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.
cantorfi_liquidation_botHow to run the open-source liquidation bot, read-only or with your own wallet, with the commands filled with the network values.
cantorfi_appsApplications 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.
cantorfi_positionWhat one wallet has supplied and owes in each vault: supply, debt with interest, what it can still borrow, what it can withdraw, health factor.
cantorfi_prepareUnsigned transactions for one vault action (supply, borrow, repay, withdraw) and one amount, to be signed and sent in order by the wallet.
cantorfi_paid_servicesServices paid per call in USDC with x402: resource, price, input, how to pay.
searchSearch vaults and guides (isolated lending, liquidations, prediction market settlement, B20 tokens, ERC-4626).
fetchFull record of a vault or full text of a guide, by id from search.

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

License

MIT

Reviews

No reviews yet

Be the first to review this server!