💻Your AI agent can swap too~
Swap-chan asks every aggregator and bridge (0x, CoW, Velora, LI.FI, Across, Relay) and hands your agent the best route on any chain. Paste the instructions into your agent and it sets itself up. Builders earn 5 bp on every swap their agent routes.
Set this up for my agent
- Where: ~/.cursor/mcp.json (global) or .cursor/mcp.json (project)
- Merge into mcpServers. Cursor picks it up automatically; if the tools don't appear, the user reloads the window or toggles swapchan in Settings → MCP.
- Ask your agent to get a quote for 100 USDC Ethereum → Base.
{
"mcpServers": {
"swapchan": {
"url": "https://mcp.swapchan.com/mcp"
}
}
}Tools
get_supported_chainsEvery chain SwapChan routes on.
get_supported_tokensToken list per chain; any ERC-20 by address works too.
get_quoteBest route across 0x, CoW, Velora, LI.FI, Across, Relay and Jupiter.
compare_routesAll routes side by side: net USD, gas, fees, ETA.
build_swap_txUnsigned transaction (or CoW order) for the user's wallet to sign.
get_route_statusTrack a swap or bridge until it lands.
scan_new_tokensFreshest memecoin pairs on Solana, Base, BNB and Ethereum.
scan_trendingTrending and boosted tokens, with a risk badge and swap link.
scan_moversBiggest price moves over 5m, 1h, 6h or 24h.
token_riskMint/freeze authority, holders, LP, honeypot and tax checks for one token.
get_wallet_balancesToken balances + USD value for any EVM, Solana, Bitcoin or Tron address.
check_approvalsOpen ERC-20 allowances with risk flags; build_revoke_tx makes the approve(0) tx.
explain_transactionPlain-English summary of any EVM, Solana, Bitcoin or Tron transaction.
get_gasLive gas/fee prices across chains, cheapest first.
token_infoPrice, liquidity, supply, holders and risk checks for one token.
resolve_nameENS, Basenames and .sol names to addresses, and back.
watch_tokenPrice watches with list_watches / check_watches (pull, no push).
get_yieldsTop DefiLlama yield pools for an asset, with a swap-in link.
Transport: Streamable HTTP at https://mcp.swapchan.com/mcp, or stdio (swapchan-mcp --stdio). SwapChan never holds keys: build_swap_tx returns an unsigned tx for the user's own wallet.
Earn 5 bp on every swap your agent routes
Building an agent, bot or app on SwapChan? Register a partner id with your payout address and pass partner in get_quote / compare_routes (REST: &partner=<id>). You get half our 0.1% fee, 5 bp, on every swap with a verified fee, tracked on a private dashboard. The swapUrl carries ?ref=, so swaps finished on swapchan.com count too (30-day cookie). Agents can register themselves for their operator; the copied instructions explain how.
curl -X POST https://api.swapchan.com/partners -H 'content-type: application/json' \
-d '{"name":"My Agent","siteUrl":"https://github.com/me/my-agent","evmAddress":"0xYourPayoutAddress"}'Returns your id, a private token and your dashboard link. Or sign up on the partners page. Self-referrals don't count.
Building a site instead of an agent? Drop in the embeddable swap widget and earn half our fee.
REST API
Same engine over HTTP at https://api.swapchan.com: /chains, /tokens, /quotes, /quote (best only), /build, /status. Amounts are in base units.
curl "https://api.swapchan.com/quotes?fromChainId=1&toChainId=8453&fromToken=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&toToken=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&amount=100000000&slippageBps=50"
Auth: open with fair rate limits today. For higher limits, ask for a key and send it as x-api-key: <key> (or Authorization: Bearer <key>) to both the API and the MCP server.