Skip to main content
MultiHopper runs two hosted Model Context Protocol (MCP) servers: Connect both: the agent reads how the API works from the docs server and calls it through the API server.

The API server

It uses the Streamable HTTP transport and is stateless: there is no session, and no server-initiated stream. Authenticate with your API key in the x-api-key header, or as Authorization: Bearer <key>. Each tool calls one REST endpoint with your key. Its rules, rate limits, Idempotency-Key handling and error codes are the API’s own. An API error comes back as a tool result with isError: true and the API’s { "error": { "code", "message" } } body.
The server never holds a wallet key. prepare_transfer returns unsigned transactions. Your agent signs them with the sourceOwner wallet and broadcasts them itself (see signing), then calls confirm_broadcast. An API key alone cannot move funds, but it can create transfers and route templates in your integration. Keep it secret like any credential.

Connect

In claude_desktop_config.json:
In ~/.cursor/mcp.json (or the project’s .cursor/mcp.json):
In .vscode/mcp.json. VS Code prompts for the key once and stores it:
POST JSON-RPC 2.0 to https://multihopper.com/api/mcp with your key in x-api-key. Supported protocol versions: 2025-06-18, 2025-03-26 and 2024-11-05. initialize and tools/list work without a key; every tools/call needs one.

Tools

Each tool’s input schema is built from the OpenAPI spec, so its fields are the endpoint’s fields. Mutating tools take an optional idempotencyKey. Send the same key to retry a call safely. Without one, a new key is generated, so a retried call runs again. For create_transfer, an externalId also makes retries safe.

A typical agent run

  1. list_hop_library → choose wallets or bundles.
  2. estimate_transfer with route → fix what MH_018 lists until it passes, and check sol.requiredSolUpFrontLamports.
  3. create_transfer with the same route and an externalId. Or save it first with create_route_template and pass routeTemplateId.
  4. prepare_transfer → sign and broadcast with your wallet, in the order the tool describes.
  5. confirm_broadcast, then get_transfer until status is completed.

The docs server

The documentation is available as a hosted MCP server too. Connect any MCP-compatible AI client to search docs, read API references, and explore code examples in real time.

Connect the docs server

Open ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) and add:
Restart Claude Desktop. The search_multi_hopper and query_docs_filesystem_multi_hopper tools will be available in every conversation.
Open Cursor Settings → MCP and add a new server:
  • Name: multihopper-docs
  • URL: https://dev-docs.multihopper.com/mcp
Or run the Mintlify install command in your terminal:
Add to your .vscode/mcp.json or user settings:
The server uses the standard SSE transport. Point your client at:
No authentication is required for public documentation pages.

Docs server tools

search_multi_hopper

Searches across the MultiHopper knowledge base to find relevant information, code examples, API references, and guides. Use this tool for broad or conceptual queries — e.g. “how does the orchestrator work”, “what is keeperFundingTx”, or “error MH_039”. Returns contextual snippets with titles and links to the source pages. Example prompts that trigger this tool:
  • “How do I estimate fees before creating a transfer?”
  • “What is the broadcast order for prepared transactions?”
  • “What does phase recoverable mean?”
  • “How do I build a custom route through exchange wallets?”

query_docs_filesystem_multi_hopper

Runs read-only shell-style queries against a virtualized filesystem containing all MultiHopper documentation pages and the OpenAPI spec. Use this tool when you need exact content from a specific page, regex matches across the docs, or structural exploration. Supported commands: rg, grep, find, tree, ls, cat, head, tail, stat, wc, sort, uniq, cut, sed, awk, jq Useful commands:
Each call is stateless — the working directory always resets to /. Chain commands with && or use absolute paths if you need to navigate a subdirectory.

Example: reading the docs

Here’s how an AI agent would use both tools to answer “how do I sign and broadcast a prepared transfer?”:
  1. search_multi_hopper — "sign broadcast prepared transactions" → finds /guides/agentic-integration and /api-reference/transfers/prepare
  2. query_docs_filesystem_multi_hopper — head -150 /guides/agentic-integration.mdx → reads the full signing code examples
The search tool narrows scope; the filesystem tool reads the full page. Use them together.