LayerHop — Claude Code MCP server: quotes and setup
LayerHop lets an agent compare same-chain and cross-chain swap routes with fee details. It fits workflows that stop before wallet signing.
MIT updated 2026-10-23
claude mcp add --transport http mcp https://mcp.layerhop.com/mcpWhat LayerHop does
LayerHop gives an AI agent access to swap data across EVM networks and Solana. Its tools can enumerate chains and tokens, return route quotes with fee details, create a prepared swap link, build or simulate a transaction, and report order status.
The server does not keep private keys or sign and broadcast transactions. The user’s wallet handles signing. You can connect through Streamable HTTP at https://mcp.layerhop.com/mcp or run the package with npx -y @layerhop/mcp. LAYERHOP_API_KEY is required for deposit-address operations, so those tools need the key before use.
What it helps with
- compare swap routes across chains
- inspect every fee before swapping
- find supported chains and tokens
- create a prefilled swap link
- simulate a transaction before signing
Example prompts for the agent
- Compare routes for swapping 100 USDC across the available chains and show every fee.
- Find the best quote for this token swap and return a prepared swap link.
- Simulate the transaction first, then report the order status.
How to install LayerHop
1Platform CLI: remote server
claude mcp add --transport http mcp https://mcp.layerhop.com/mcp2Platform CLI
claude mcp add --env LAYERHOP_API_KEY=<LAYERHOP_API_KEY> --env LAYERHOP_INTEGRATOR=<LAYERHOP_INTEGRATOR> --transport stdio mcp -- npx -y @layerhop/mcpReplace <…> with your own values
1Platform CLI: remote server
codex mcp add mcp --url https://mcp.layerhop.com/mcp2Platform CLI
codex mcp add mcp --env LAYERHOP_API_KEY=<LAYERHOP_API_KEY> --env LAYERHOP_INTEGRATOR=<LAYERHOP_INTEGRATOR> -- npx -y @layerhop/mcpReplace <…> with your own values
Config file
{
"mcpServers": {
"mcp": {
"url": "https://mcp.layerhop.com/mcp"
}
}
}{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@layerhop/mcp"
],
"env": {
"LAYERHOP_API_KEY": "<LAYERHOP_API_KEY>",
"LAYERHOP_INTEGRATOR": "<LAYERHOP_INTEGRATOR>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"mcp": {
"type": "http",
"url": "https://mcp.layerhop.com/mcp"
}
}
}{
"servers": {
"mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@layerhop/mcp"
],
"env": {
"LAYERHOP_API_KEY": "<LAYERHOP_API_KEY>",
"LAYERHOP_INTEGRATOR": "<LAYERHOP_INTEGRATOR>"
}
}
}
}Replace <…> with your own values
1Platform CLI: remote server
gemini mcp add -t http mcp https://mcp.layerhop.com/mcp2Platform CLI
gemini mcp add -e LAYERHOP_API_KEY=<LAYERHOP_API_KEY> -e LAYERHOP_INTEGRATOR=<LAYERHOP_INTEGRATOR> mcp npx -y @layerhop/mcpReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about LayerHop
How do I install LayerHop in Claude Code?
Run claude mcp add --transport http mcp https://mcp.layerhop.com/mcp.
What does LayerHop do?
It gives an agent tools for chain and token discovery, swap quotes, prepared links, transaction building, simulation, and order tracking. Wallet signing remains with the user.
When is an API key required?
LAYERHOP_API_KEY is required for deposit-address tools. It is not needed for the listed quote and swap-link functions.