LayerHop

v0.9.0
com.layerhop/mcp Checked 1 day ago Published 11 days ago

Best-price cross-chain swap quotes across 70 chains, EVM and Solana.

Model Context Protocol server for LayerHop: AI agents (Claude, ChatGPT, Cursor, …) can list chains and tokens, get best-price cross-chain / same-chain swap quotes with every fee spelled out, and hand the user a prefilled swap link. Listed in the official MCP Registry as com.layerhop/mcp. Env: LAYERHOP_API_URL (default https://api.layerhop.com), LAYERHOP_API_KEY (optional; required for deposit addresses), LAYERHOP_INTEGRATOR (optional partner id), LAYERHOP_APP_URL (default https://layerhop.com).

Summary extracted from the README.

@layerhop/mcp

npm license docs

Model Context Protocol server for LayerHop: AI agents (Claude, ChatGPT, Cursor, …) can list chains and tokens, get best-price cross-chain / same-chain swap quotes with every fee spelled out, and hand the user a prefilled swap link.

The server holds no private keys and never signs or broadcasts. The user's own wallet signs.

Listed in the official MCP Registry as com.layerhop/mcp.

# stdio (Claude Desktop, Claude Code, Cursor, …)
npx -y @layerhop/mcp
claude mcp add layerhop -- npx -y @layerhop/mcp

# hosted, Streamable HTTP
claude mcp add --transport http layerhop https://mcp.layerhop.com/mcp

# self-host over HTTP: POST /mcp, GET /healthz
npx -y @layerhop/mcp --http --port 8090 --host 0.0.0.0

Env: LAYERHOP_API_URL (default https://api.layerhop.com), LAYERHOP_API_KEY (optional; required for deposit addresses), LAYERHOP_INTEGRATOR (optional partner id), LAYERHOP_APP_URL (default https://layerhop.com).

Tools: list_chains, list_tokens, get_quote, get_swap_link, build_transaction, simulate_transaction, report_submitted, get_order_status, list_orders, lookup_token, get_token_risk, Solana limit orders (create_limit_order, submit_limit_order, list_limit_orders, get_limit_order, cancel_limit_order; unsigned transactions only), plus deposit addresses (API key required): create_deposit_address, list_deposit_addresses, get_deposit_address, refresh_deposit_address, disable_deposit_address, simulate_deposit (test keys only). Amounts in tool inputs are human decimals ("100" = 100 USDC).

Full guide: https://docs.layerhop.com/guides/ai-agents

MIT licensed.