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.

Values you need

VariableWhat it is
LAYERHOP_API_KEYoptional secret Optional LayerHop API key from dashboard.layerhop.com: higher rate limits, needed for deposit-address tools
LAYERHOP_INTEGRATORoptional Optional partner ID, so swaps made through your agent earn your partner fee

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp -- npx -y --package=@layerhop/mcp@0.9.0 layerhop-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp": {
      "args": [
        "-y",
        "--package=@layerhop/mcp@0.9.0",
        "layerhop-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp": {
      "args": [
        "-y",
        "--package=@layerhop/mcp@0.9.0",
        "layerhop-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp": {
      "args": [
        "-y",
        "--package=@layerhop/mcp@0.9.0",
        "layerhop-mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "--package=@layerhop/mcp@0.9.0", "layerhop-mcp"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http mcp https://mcp.layerhop.com/mcp --header 'x-layerhop-api-key: <x-layerhop-api-key>' --header 'x-layerhop-integrator: <x-layerhop-integrator>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.layerhop.com/mcp",
        "--header",
        "x-layerhop-api-key: <x-layerhop-api-key>",
        "--header",
        "x-layerhop-integrator: <x-layerhop-integrator>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp": {
      "headers": {
        "x-layerhop-api-key": "<x-layerhop-api-key>",
        "x-layerhop-integrator": "<x-layerhop-integrator>"
      },
      "url": "https://mcp.layerhop.com/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp": {
      "headers": {
        "x-layerhop-api-key": "<x-layerhop-api-key>",
        "x-layerhop-integrator": "<x-layerhop-integrator>"
      },
      "type": "http",
      "url": "https://mcp.layerhop.com/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.layerhop.com/mcp", "--header", "x-layerhop-api-key: <x-layerhop-api-key>", "--header", "x-layerhop-integrator: <x-layerhop-integrator>"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_chains, list_tokens, get_quote, build_transaction, simulate_transaction, report_submitted, get_order_status, list_orders, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json