LayerHop
v0.9.0Best-price cross-chain swap quotes across 70 chains, EVM and Solana.
Values you need
| Variable | What it is | |
|---|---|---|
LAYERHOP_API_KEY | optional secret | Optional LayerHop API key from dashboard.layerhop.com: higher rate limits, needed for deposit-address tools |
LAYERHOP_INTEGRATOR | optional | 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-mcpAdd 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_chains, list_tokens, get_quote, build_transaction, simulate_transaction, report_submitted, get_order_status, list_orders, ….
- 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