Skip to content
AI agent tooling

MCP server

@intents-fi/mcp: one server, three toolsets — docs, Intents Checkout (test mode) and Intents Route (read-only).

Terminal window
INTENTS_API_KEY=ik_test_… npx -y @intents-fi/mcp

One stdio server with a toolset per product: checkout for Intents Checkout, routing for Intents Route, and docs for both. Load only the product you are building with INTENTS_TOOLSETS (docs,checkout or docs,routing); the setup prompts do this for you. Install it in your agent with the Claude Code, Cursor or Codex page.

Toolset Tool What it does
docs docs_search Search every page; returns titles, URLs, the .md URL and a snippet
docs docs_get_page One page as markdown, by path (/checkout/quickstart) or URL
checkout create_invoice A test invoice: id, hosted url, clientSecret
checkout get_invoice Status, settlement and attempts of a test invoice
checkout send_test_webhook Pays a test invoice end to end and fires invoice.paid; with url, also POSTs the signed event to a local handler
routing compare_quotes Every protocol’s quote for one swap, ranked, plus who could not quote and why
routing get_status An order’s lifecycle, the same states for every protocol
routing list_routes Routable chains and the protocols on each, or the assets on one chain
routing get_route_status The route status: success per protocol, quotes vs NEAR Intents, failovers

The spec names the docs tools docs.search and docs.get_page. They are registered as docs_search and docs_get_page, because several clients only accept letters, digits, _ and - in a tool name.

Variable Default Notes
INTENTS_API_KEY — An ik_test_ secret key. The Intents Checkout tools refuse anything else
INTENTS_WEBHOOK_SECRET — The whsec_ that send_test_webhook signs a direct delivery with
INTENTS_TOOLSETS docs,checkout,routing Load fewer toolsets
INTENTS_API_URL https://api.intents.fi
INTENTS_DOCS_URL https://intents.fi/docs
  • Test mode only for Intents Checkout. A test invoice is routed in process: its attempts carry no deposit address and no transaction, so nothing these tools do can move money. A live key is refused, and so is a live invoice.
  • Read-only for Intents Route. There is no execute tool. A route is executed by the user’s own wallet from the plan POST /v0/orders returns; this server holds nothing that can sign.
  • No secrets out. The key and the webhook secret are removed from every tool result and error message, and the server’s one log line names the kind of key (ik_test_…), never the key.
  • docs_get_page fetches from the docs host only; it is not a general web fetcher.

The API delivers webhooks to public https endpoints only, and refuses private and loopback addresses, so a handler on localhost never hears from it. With url, the tool pays the invoice and then signs the paid invoice itself — the same envelope and the same X-Intents-Signature scheme as a real delivery — and POSTs it to your local handler. Without url, the API’s own delivery reaches whatever endpoint you registered for the test key.