Repository avatar
AI Tools
v0.1.1
active

swap

fi.intents/swap

Swap any token to any token across chains by deposit address. No account needed.

Documentation

Intents MCP server

Crypto payments, swaps and cross-chain routing for AI agents. Intents is three products on one MCP server: Intents Checkout (accept crypto, settle to your own wallet), Intents Swap (any token to any token by deposit address) and Intents Route (every intent protocol compared, signed by the user's wallet).

Non-custodial: Intents never holds funds, and anything a wallet must do is signed by the user's own wallet. Installing this server doesn't authorize spending: live actions need a live key or a live OAuth grant.

Overview

  • URL: https://mcp.intents.fi (Streamable HTTP; https://api.intents.fi/mcp is the same server)
  • Product endpoints: https://mcp.intents.fi/checkout, https://mcp.intents.fi/swap, https://mcp.intents.fi/route: one product's tools plus the shared ones
  • Local alternative: npx -y @intents-fi/mcp (stdio), version 0.1.1
  • Tools: 25, plus 3 prompts and every docs page as a resource
  • Auth: public tools need no key; account tools need Authorization: Bearer ik_test_… / ik_live_… or OAuth

Install

Hosted (recommended):

{
  "mcpServers": {
    "intents": {
      "url": "https://mcp.intents.fi"
    }
  }
}

With a test key, for the account tools:

{
  "mcpServers": {
    "intents": {
      "url": "https://mcp.intents.fi",
      "headers": {
        "Authorization": "Bearer ik_test_…"
      }
    }
  }
}

Local (stdio):

{
  "mcpServers": {
    "intents": {
      "command": "npx",
      "args": [
        "-y",
        "@intents-fi/mcp"
      ],
      "env": {
        "INTENTS_API_KEY": "ik_test_…"
      }
    }
  }
}

One-liners:

  • Claude Code: claude mcp add --transport http intents https://mcp.intents.fi (add --header "Authorization: Bearer ik_test_…" for account tools), or locally: claude mcp add intents -e INTENTS_API_KEY=ik_test_… -- npx -y @intents-fi/mcp
  • Claude.ai and Claude Desktop: Settings → Connectors → Add custom connector → https://mcp.intents.fi; sign in with OAuth for account tools
  • Cursor: the first JSON block above in ~/.cursor/mcp.json
  • VS Code: code --add-mcp '{"name":"intents","type":"http","url":"https://mcp.intents.fi"}'
  • Windsurf: ~/.codeium/windsurf/mcp_config.json: {"mcpServers":{"intents":{"serverUrl":"https://mcp.intents.fi"}}}
  • ChatGPT: Settings → Apps & Connectors → Developer mode → Create, URL https://mcp.intents.fi

Links: docs · API keys · OpenAPI · Checkout quickstart · Route quickstart · Intents · support@intents.fi

Tools

Every tool on the full server (https://mcp.intents.fi), by product.

Shared (on every endpoint)

  • get_started: Get step-by-step setup for accepting payments, swapping or routing, with the links you need. (no key)
  • whoami: Show how this connection is authenticated: none, API key or OAuth, its mode, scopes and account. (no key)
  • search_docs: Search the Intents docs and get the best-matching pages with a snippet. (no key)
  • get_doc: Read one Intents docs page as markdown. (no key)
  • explain_error: Explain an Intents API error code and how to handle it. (no key)
  • list_chains: List every chain Intents supports, with its CAIP-2 ID, alias, VM, native asset and protocols. (no key)
  • list_assets: Find tokens Intents can route by symbol, name or contract address, optionally on one chain. (no key)

Intents Checkout

  • create_invoice: Create a Checkout invoice priced in USD and get its hosted payment URL. (key or OAuth checkout:write)
  • create_payment_link: Create a shareable link for one payment, to send by email or chat. (key or OAuth checkout:write)
  • get_invoice: Read one invoice in full: status, amounts, settlement, fee, payer, transactions and attempts. (key or OAuth checkout:read)
  • list_invoices: List your invoices in this connection's mode, newest first, optionally filtered by status. (key or OAuth checkout:read)
  • payment_status: Check whether an invoice is paid, with amounts received and what to do next. (key or OAuth checkout:read)
  • payment_options: List the tokens and networks a customer can pay an invoice with, and the all-in amount for each. (key or OAuth checkout:read)
  • get_business: Read your Checkout business profile, fee and where payouts go (read-only). (key or OAuth checkout:read)
  • list_webhooks: List the webhook endpoints registered for this connection's key, with their events. (key or OAuth checkout:read)
  • send_test_event: Send a signed sample event to one of your webhook endpoints now, and see its response. (key or OAuth checkout:write)
  • send_test_webhook: Pay a test invoice end to end so the API fires a real invoice.paid to your webhooks. (key or OAuth checkout:write)

Intents Swap

  • quote_swap: Quote a swap between any two supported tokens, on any chains, with no account needed. (no key)
  • create_swap: Start a swap from a quote_swap quoteId and get a deposit address, exact amount and expiry. (no key)
  • swap_status: Get a swap's status, its steps with transaction hashes and, on refund or failure, why. (no key)

Intents Route

  • list_protocols: List the protocols Intents Route routes through, with how many chains each serves. (no key)
  • quote_route: Compare every intent protocol's quote for one cross-chain transfer, ranked, with who could not quote. (no key)
  • get_route_plan: Turn a quote_route quoteId into an order and the steps the user's wallet must sign. (key or OAuth route)
  • route_order_status: Get a Route order's status, the same lifecycle whichever protocol carries it. (key or OAuth route)
  • route_health: Get live route health: success rate, quote error rate and failovers per protocol. (no key)

Safety

  • The server holds no private keys, signs nothing and never moves funds. Anything a wallet must do is returned for the user's own wallet to sign.
  • Without credentials only the public tools run: docs, chains and assets, and Route and Swap quotes.
  • A test key or a test OAuth connection can't move money. Live payment requests need a live key or a live OAuth grant, are annotated destructive, refuse until called with mode: "live", and repeat the amount and mode.
  • The local (stdio) server's Checkout tools run in test mode only (ik_test_…).
  • No tool can change a payout wallet, a settlement address or an API key: those need a signed-in owner in the dashboard.
  • Intents is non-custodial: payments settle straight to the merchant's own wallet, and swaps and routes deliver to the user's address.

Authentication

You sendYou get
NothingEvery public tool: get_started, whoami, docs, chains, assets, protocols, Route and Swap quotes, swaps and their status
Authorization: Bearer ik_test_…Everything, in test mode
Authorization: Bearer ik_live_…Everything, in live mode
OAuth (your client's sign-in)The scopes you approve, in the mode you choose: checkout:read, checkout:write, route (docs and swap are always on)

initialize and tools/list never need credentials, so every tool is listed. A call to an account tool without them is refused with how to connect. Keys come from dashboard.intents.fi → Developers → API keys; a publishable pk_ key cannot reach the account tools.

Test mode vs live mode

The key's (or the OAuth grant's) mode is the connection's mode. whoami tells you which.

  • Test: invoices and payment links are sandbox requests; send_test_webhook pays one end to end and nothing moves money.
  • Live: create_invoice and create_payment_link make real payment requests. They are annotated destructive, refuse until you pass mode: "live", and repeat the amount and mode in their result. Live mode stays locked until the account has a verified email and a payout wallet (LIVE_MODE_LOCKED).
  • Swap is always mainnet: create_swap is annotated destructive and spells out what to send and where the output and any refund go.
  • No tool changes a payout wallet, a settlement address or a key: those are dashboard-only.

Intents Checkout

Accept crypto payments: the customer pays in any supported token on any chain, you receive one settlement asset at your own address.

Endpoint: https://mcp.intents.fi/checkout

{
  "mcpServers": {
    "intents-checkout": {
      "url": "https://mcp.intents.fi/checkout"
    }
  }
}

Workflow: create_invoice → share the invoice url → payment_status (or the invoice.paid webhook)

Rules for agents:

  • Prices are USD strings ("49.00"); settlement amounts are integer strings in base units.
  • reference (your order ID) is required and is the idempotency key: retrying with the same reference returns the same invoice, never a second one. Keep the invoiceId you get back.
  • Fulfil only on paid (the invoice.paid webhook fires only then); processing means a payment is on its way.
  • Fee: 0.4% per payment, charged in route on top. A customer paying in your settlement asset on your settlement chain pays you directly, with no fee.
  • Paying with USDT on Tron by transfer has a $100 minimum; wallet payments do not.
  • Test keys make test invoices (nothing moves money). With a live key, create_invoice and create_payment_link refuse until you pass mode: "live".

Intents Checkout endpoint tools

  • get_started: Get step-by-step setup for accepting payments, swapping or routing, with the links you need. (no key)
  • whoami: Show how this connection is authenticated: none, API key or OAuth, its mode, scopes and account. (no key)
  • search_docs: Search the Intents docs and get the best-matching pages with a snippet. (no key)
  • get_doc: Read one Intents docs page as markdown. (no key)
  • explain_error: Explain an Intents API error code and how to handle it. (no key)
  • list_chains: List every chain Intents supports, with its CAIP-2 ID, alias, VM, native asset and protocols. (no key)
  • list_assets: Find tokens Intents can route by symbol, name or contract address, optionally on one chain. (no key)
  • create_invoice: Create a Checkout invoice priced in USD and get its hosted payment URL. (key or OAuth checkout:write)
  • create_payment_link: Create a shareable link for one payment, to send by email or chat. (key or OAuth checkout:write)
  • get_invoice: Read one invoice in full: status, amounts, settlement, fee, payer, transactions and attempts. (key or OAuth checkout:read)
  • list_invoices: List your invoices in this connection's mode, newest first, optionally filtered by status. (key or OAuth checkout:read)
  • payment_status: Check whether an invoice is paid, with amounts received and what to do next. (key or OAuth checkout:read)
  • payment_options: List the tokens and networks a customer can pay an invoice with, and the all-in amount for each. (key or OAuth checkout:read)
  • get_business: Read your Checkout business profile, fee and where payouts go (read-only). (key or OAuth checkout:read)
  • list_webhooks: List the webhook endpoints registered for this connection's key, with their events. (key or OAuth checkout:read)
  • send_test_event: Send a signed sample event to one of your webhook endpoints now, and see its response. (key or OAuth checkout:write)
  • send_test_webhook: Pay a test invoice end to end so the API fires a real invoice.paid to your webhooks. (key or OAuth checkout:write)

Intents Swap

Swap any supported token to any other, across chains, by sending to a one-time deposit address. No account needed.

Endpoint: https://mcp.intents.fi/swap

{
  "mcpServers": {
    "intents-swap": {
      "url": "https://mcp.intents.fi/swap"
    }
  }
}

Workflow: quote_swap → create_swap → the user sends exactly deposit.amount to deposit.address → swap_status

Rules for agents:

  • Amounts are integer strings in base units; assets are CAIP-19 IDs (find them with list_assets).
  • create_swap returns a real mainnet deposit address. Confirm recipient (destination chain) and refundTo (source chain) with the user first, and keep the orderId: never create a second swap to retry one.
  • Send the exact amount before deposit.expiresAt; a swap that cannot fill is refunded to refundTo.
  • Fee: the Intents fee plus the route's own cost come to around 0.4% on most swaps (the Intents part is between 0.1% and 0.4%); every quote shows the all-in amount.
  • Addresses are screened as on intents.fi/swap.

Intents Swap endpoint tools

  • get_started: Get step-by-step setup for accepting payments, swapping or routing, with the links you need. (no key)
  • whoami: Show how this connection is authenticated: none, API key or OAuth, its mode, scopes and account. (no key)
  • search_docs: Search the Intents docs and get the best-matching pages with a snippet. (no key)
  • get_doc: Read one Intents docs page as markdown. (no key)
  • explain_error: Explain an Intents API error code and how to handle it. (no key)
  • list_chains: List every chain Intents supports, with its CAIP-2 ID, alias, VM, native asset and protocols. (no key)
  • list_assets: Find tokens Intents can route by symbol, name or contract address, optionally on one chain. (no key)
  • quote_swap: Quote a swap between any two supported tokens, on any chains, with no account needed. (no key)
  • create_swap: Start a swap from a quote_swap quoteId and get a deposit address, exact amount and expiry. (no key)
  • swap_status: Get a swap's status, its steps with transaction hashes and, on refund or failure, why. (no key)

Intents Route

Compare every intent protocol for a cross-chain transfer and get the steps for the user's own wallet to sign.

Endpoint: https://mcp.intents.fi/route

{
  "mcpServers": {
    "intents-route": {
      "url": "https://mcp.intents.fi/route"
    }
  }
}

Workflow: quote_route → get_route_plan → the user signs each step locally → route_order_status

Rules for agents:

  • Amounts are integer strings in base units; assets are CAIP-19 IDs.
  • Quotes need no key; plans and order status need credentials. Keep the orderId from get_route_plan before retrying.
  • This server never signs: every step is signed by the user's own wallet.
  • Fee: the one on your key, shown as a line item in every quote.

Intents Route endpoint tools

  • get_started: Get step-by-step setup for accepting payments, swapping or routing, with the links you need. (no key)
  • whoami: Show how this connection is authenticated: none, API key or OAuth, its mode, scopes and account. (no key)
  • search_docs: Search the Intents docs and get the best-matching pages with a snippet. (no key)
  • get_doc: Read one Intents docs page as markdown. (no key)
  • explain_error: Explain an Intents API error code and how to handle it. (no key)
  • list_chains: List every chain Intents supports, with its CAIP-2 ID, alias, VM, native asset and protocols. (no key)
  • list_assets: Find tokens Intents can route by symbol, name or contract address, optionally on one chain. (no key)
  • list_protocols: List the protocols Intents Route routes through, with how many chains each serves. (no key)
  • quote_route: Compare every intent protocol's quote for one cross-chain transfer, ranked, with who could not quote. (no key)
  • get_route_plan: Turn a quote_route quoteId into an order and the steps the user's wallet must sign. (key or OAuth route)
  • route_order_status: Get a Route order's status, the same lifecycle whichever protocol carries it. (key or OAuth route)
  • route_health: Get live route health: success rate, quote error rate and failovers per protocol. (no key)

Prompts

  • setup_checkout: Set up Intents Checkout for my store. Walk through adding crypto payments to a store or app: the right integration, test keys, a first test invoice and the webhook.
  • create_test_payment_link: Create a test payment link. Make a test-mode payment link for an amount and show how to check it was paid.
  • quote_cross_chain_swap: Quote a cross-chain swap. Find the assets, compare every protocol's quote and explain the best route.

Resources

  • https://intents.fi/docs/llms.txt: the docs index
  • https://intents.fi/docs/{+path}: One docs page as markdown.

Limits

Per minute: 240 requests per IP, 30 quote calls (quote_route, quote_swap) per IP, and your key's own limit per key. Over a limit you get HTTP 429 with Retry-After: honour it before retrying. Errors are JSON-RPC errors whose data.code is an API error code; explain_error explains any code.

Local server (stdio)

claude mcp add intents -e INTENTS_API_KEY=ik_test_… -- npx -y @intents-fi/mcp
VariableDefaultNotes
INTENTS_API_KEY—An ik_test_ secret key. The local server's Checkout tools run in test mode only
INTENTS_WEBHOOK_SECRET—The whsec_ that send_test_webhook signs a local delivery with
INTENTS_MCP_PRODUCTSallcheckout, swap, route, or a comma-separated list (or --products checkout)
INTENTS_API_URLhttps://api.intents.fi
INTENTS_DOCS_URLhttps://intents.fi/docs

FAQ

What is it? The Intents MCP server: docs, chains and assets, Route and Swap quotes, swaps, and Intents Checkout invoices and payment links, as MCP tools.

How do I connect? Add https://mcp.intents.fi to your MCP client (configs above), or run npx -y @intents-fi/mcp.

Does it need auth? Not for public tools. Account tools take an API key in Authorization or an OAuth sign-in.

Which transport? Streamable HTTP, stateless (POST with JSON responses, no session), and stdio for the npm package.

Can it spend my money? No. It never signs and holds no funds. Live payment requests need a live key or a live OAuth grant and an explicit mode: "live"; swaps need the user to send funds themselves.

About Intents

Get paid in crypto from any chain, settle your way.

Intents Checkout is a non-custodial crypto payment gateway. Merchants price in USD; customers pay with whatever they hold (USDT on Tron, native BTC, SOL, ETH on any L2, NEAR and more) and the merchant receives one settlement asset on one chain, straight to their own wallet. Intents Checkout never holds funds. 0.4% per payment. Free when your customer pays in the asset you settle in. No fixed fee, no monthly fee.

Intents Route returns ranked quotes from every major intent protocol for a cross-chain swap, with an execution plan the user signs in their own wallet: 0.4% per routed swap, quotes are free. Intents Swap is a cross-chain swap app with no account: around 0.4% total on most swaps, network fees included.

Develop

One set of tool definitions (src/tools.ts) serves both surfaces: src/bin.ts (stdio) and src/http.ts, which the Intents API mounts at mcp.intents.fi. npm ci && npm run build builds it; node dist/bin.js runs the stdio server.

This repository is published from the Intents monorepo at each release, and this README is generated there from the tool definitions. Report issues here or to support@intents.fi.

License

MIT