Connect both: the agent reads how the API works from the docs server and calls it through the API server.
The API server
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.
Connect
Claude Code
Claude Code
Claude Desktop
Claude Desktop
In
claude_desktop_config.json:Cursor
Cursor
In
~/.cursor/mcp.json (or the project’s .cursor/mcp.json):VS Code (Copilot)
VS Code (Copilot)
In
.vscode/mcp.json. VS Code prompts for the key once and stores it:Any MCP client
Any MCP client
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
list_hop_library→ choose wallets or bundles.estimate_transferwithroute→ fix whatMH_018lists until it passes, and checksol.requiredSolUpFrontLamports.create_transferwith the samerouteand anexternalId. Or save it first withcreate_route_templateand passrouteTemplateId.prepare_transfer→ sign and broadcast with your wallet, in the order the tool describes.confirm_broadcast, thenget_transferuntilstatusiscompleted.
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
Claude Desktop
Claude Desktop
Open Restart Claude Desktop. The
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) and add:search_multi_hopper and query_docs_filesystem_multi_hopper tools will be available in every conversation.Cursor
Cursor
Open Cursor Settings → MCP and add a new server:
- Name:
multihopper-docs - URL:
https://dev-docs.multihopper.com/mcp
VS Code (Copilot)
VS Code (Copilot)
Add to your
.vscode/mcp.json or user settings:Any MCP client
Any MCP client
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
recoverablemean?” - “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?”:search_multi_hopper—"sign broadcast prepared transactions"→ finds/guides/agentic-integrationand/api-reference/transfers/preparequery_docs_filesystem_multi_hopper—head -150 /guides/agentic-integration.mdx→ reads the full signing code examples

