LayerHop is an MCP server published by com.layerhop, hosted at mcp.layerhop.com. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 22 tools, including list_chains, list_tokens, get_quote, build_transaction, simulate_transaction.
Best-price cross-chain swap quotes across 70 chains, EVM and Solana. Holds no keys, never signs.
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
List every blockchain LayerHop can swap from or to: slug, numeric chain id, name, VM type (evm or svm = Solana) and native coin. Read-only.
No parameters.
{
"name": "list_chains",
"title": "List supported chains",
"description": "List every blockchain LayerHop can swap from or to: slug, numeric chain id, name, VM type (evm or svm = Solana) and native coin. Read-only.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}List LayerHop's built-in tokens on one chain (symbol, contract address or mint, decimals). Symbols can be used directly in get_quote; other tokens can be quoted by address. Read-only.
| Parameter | Type | Description |
|---|---|---|
| chain * | ["string","number"] | The chain: slug ("base", "solana", "ethereum", "arbitrum"...) or numeric chain id (Solana is 7565164). See list_chains. |
{
"name": "list_tokens",
"title": "List tokens on a chain",
"description": "List LayerHop's built-in tokens on one chain (symbol, contract address or mint, decimals). Symbols can be used directly in get_quote; other tokens can be quoted by address. Read-only.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"chain"
],
"properties": {
"chain": {
"type": [
"string",
"number"
],
"description": "The chain: slug (\"base\", \"solana\", \"ethereum\", \"arbitrum\"...) or numeric chain id (Solana is 7565164). See list_chains."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}Get the best price to swap or bridge tokens, within one chain or across chains (EVM <-> Solana). Asks every liquidity provider and returns the best quote plus alternatives with human-readable amounts, minimum received after slippage, fees (LayerHop fee, partner fee, provider fee, gas) and ETA. Returns a quoteId (valid until expiresAt) and a layerhop.com swapLink a human can open to review and sign. Read-only: The LayerHop MCP server holds no private keys and never signs or broadcasts transactions. Always show the user the fees and output and get confirmation before proceeding.
| Parameter | Type | Description |
|---|---|---|
| amount * | ["string","number"] | Amount to send in HUMAN units of fromToken as a decimal string, e.g. "100" for 100 USDC or "0.05" for 0.05 ETH. NOT base units/wei/lamports. Must be greater than 0. |
| sender * | string | Wallet address that sends the funds on the source chain (0x... for EVM, base58 for Solana). Only used to build the quote; no access is needed. |
| gasless | boolean | Optional gasless swap (same EVM chain, ERC-20 input, where the API enables it): the user signs EIP-712 typed data instead of a transaction and the network fee is taken from fromToken. This server cannot sign or submit typed data for the user, so the user finishes it via the swap link or their own ap… |
| toChain * | ["string","number"] | Destination chain: slug ("base", "solana", "ethereum", "arbitrum"...) or numeric chain id (Solana is 7565164). See list_chains. |
| toToken * | string | Token to receive (destination) token: symbol from list_tokens ("USDC", "ETH", "SOL") or the token contract address / SPL mint. Use "native" for the chain's gas coin. |
Turn a quoteId from get_quote into the UNSIGNED transaction the user's own wallet must sign: EVM {chainId, to, data, value in wei, optional ERC-20 approval to send first} or Solana {serializedTx base64}. Includes plain-language signing steps. The LayerHop MCP server holds no private keys and never signs or broadcasts transactions. Only use this when the user has their own signer and explicitly wants raw transaction data, after they confirmed the quote; otherwise give them the swap link.
| Parameter | Type | Description |
|---|---|---|
| quoteId * | string | quoteId from get_quote (starts with "q_"). Quotes expire after a short time (see expiresAt). |
{
"name": "build_transaction",
"title": "Build the unsigned transaction for a quote",
"description": "Turn a quoteId from get_quote into the UNSIGNED transaction the user's own wallet must sign: EVM {chainId, to, data, value in wei, optional ERC-20 approval to send first} or Solana {serializedTx base64}. Includes plain-language signing steps. The LayerHop MCP server holds no private keys and never signs or broadcasts transactions. Only use this when the user has their own signer and explicitly wants raw transaction data, after they confirmed the quote; otherwise give them the swap link.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"quoteId"
],
"properties": {
"quoteId": {
"type": "string",
"pattern": "^q_",
"description": "quoteId from get_quote (starts with \"q_\"). Quotes expire after a short time (see expiresAt)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Build the transaction for a quoteId and dry-run it on-chain (EVM eth_call + gas estimate from the sender; Solana simulateTransaction) without sending anything or recording an order. Reports whether it would succeed, gas / compute units, whether an ERC-20 approval is still needed, and the error if it would fail. Read-only: The LayerHop MCP server holds no private keys and never signs or broadcasts transactions.
| Parameter | Type | Description |
|---|---|---|
| quoteId * | string | quoteId from get_quote (starts with "q_"). Quotes expire after a short time (see expiresAt). |
{
"name": "simulate_transaction",
"title": "Dry-run a quote's transaction",
"description": "Build the transaction for a quoteId and dry-run it on-chain (EVM eth_call + gas estimate from the sender; Solana simulateTransaction) without sending anything or recording an order. Reports whether it would succeed, gas / compute units, whether an ERC-20 approval is still needed, and the error if it would fail. Read-only: The LayerHop MCP server holds no private keys and never signs or broadcasts transactions.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"quoteId"
],
"properties": {
"quoteId": {
"type": "string",
"pattern": "^q_",
"description": "quoteId from get_quote (starts with \"q_\"). Quotes expire after a short time (see expiresAt)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}Tell LayerHop that the user's wallet broadcast the transaction for a quoteId, so the order is tracked (status, webhooks). Call this once after broadcasting, with the EVM tx hash (0x + 64 hex) or Solana signature. Idempotent. Does not sign or send anything.
| Parameter | Type | Description |
|---|---|---|
| txHash * | string | Source-chain transaction hash (EVM 0x...) or Solana signature (base58). |
| quoteId * | string | quoteId from get_quote (starts with "q_"). Quotes expire after a short time (see expiresAt). |
{
"name": "report_submitted",
"title": "Report a broadcast transaction",
"description": "Tell LayerHop that the user's wallet broadcast the transaction for a quoteId, so the order is tracked (status, webhooks). Call this once after broadcasting, with the EVM tx hash (0x + 64 hex) or Solana signature. Idempotent. Does not sign or send anything.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"quoteId",
"txHash"
],
"properties": {
"txHash": {
"type": "string",
"minLength": 1,
"description": "Source-chain transaction hash (EVM 0x...) or Solana signature (base58)."
},
"quoteId": {
"type": "string",
"pattern": "^q_",
"description": "quoteId from get_quote (starts with \"q_\"). Quotes expire after a short time (see expiresAt)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Check the status of a swap or bridge after the source transaction was sent: pending, filled (funds delivered), refunded, failed, or unknown (some same-chain providers; check the tx on an explorer). Read-only.
| Parameter | Type | Description |
|---|---|---|
| txHash * | string | Source-chain transaction hash (EVM) or signature (Solana). |
| provider * | string | The provider of the quote that was executed (the `provider` field from get_quote / build_transaction). |
{
"name": "get_order_status",
"title": "Get swap/bridge order status",
"description": "Check the status of a swap or bridge after the source transaction was sent: pending, filled (funds delivered), refunded, failed, or unknown (some same-chain providers; check the tx on an explorer). Read-only.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"provider",
"txHash"
],
"properties": {
"txHash": {
"type": "string",
"minLength": 1,
"description": "Source-chain transaction hash (EVM) or signature (Solana)."
},
"provider": {
"enum": [
"jupiter",
"relay",
"debridge",
"mayan",
"zerox",
"kyberswap",
"odos",
"lifi",
"mock"
],
"type": "string",
"description": "The provider of the quote that was executed (the `provider` field from get_quote / build_transaction)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}List LayerHop orders (swaps built or submitted through LayerHop) where the address is the sender or recipient, newest first, with status. Public data (addresses only). Read-only.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max orders to return (default set by the API). |
| cursor | string | nextCursor from a previous list_orders call, for the next page. |
| status | string | Only orders with this status. |
| address * | string | Wallet address (EVM 0x... or Solana base58). |
{
"name": "list_orders",
"title": "List orders for a wallet",
"description": "List LayerHop orders (swaps built or submitted through LayerHop) where the address is the sender or recipient, newest first, with status. Public data (addresses only). Read-only.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"address"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Max orders to return (default set by the API)."
},
"cursor": {
"type": "string",
"description": "nextCursor from a previous list_orders call, for the next page."
},
"status": {
"enum": [
"built",
"submitted",
"pending",
"filled",
"refunded",
"failed",
"expired",
"dropped"
],
"type": "string",
"description": "Only orders with this status."
},
"address": {
"type": "string",
"minLength": 1,
"description": "Wallet address (EVM 0x... or Solana base58)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}Create a https://layerhop.com/swap link prefilled with the swap, which the user opens to review the live quote and fees and sign in their own wallet. This is the default, safest way to execute a swap. The LayerHop MCP server holds no private keys and never signs or broadcasts transactions. The amount is in human units.
| Parameter | Type | Description |
|---|---|---|
| amount | ["string","number"] | Amount to send in HUMAN units of fromToken as a decimal string, e.g. "100" for 100 USDC or "0.05" for 0.05 ETH. NOT base units/wei/lamports. Must be greater than 0. |
| toChain * | ["string","number"] | Destination chain: slug ("base", "solana", "ethereum", "arbitrum"...) or numeric chain id (Solana is 7565164). See list_chains. |
| toToken * | string | Token to receive (destination) token: symbol from list_tokens ("USDC", "ETH", "SOL") or the token contract address / SPL mint. Use "native" for the chain's gas coin. |
| fromChain * | ["string","number"] | Source chain: slug ("base", "solana", "ethereum", "arbitrum"...) or numeric chain id (Solana is 7565164). See list_chains. |
| fromToken * | string | Token to send (source) token: symbol from list_tokens ("USDC", "ETH", "SOL") or the token contract address / SPL mint. Use "native" for the chain's gas coin. |
| recipient | string | Optional destination address to prefill (the user can still edit it). |
| slippageBps |
Get one token's symbol, name, decimals, USD price and verified flag from its contract address or SPL mint. The chain is optional: LayerHop finds it (Solana for a mint, else the EVM chain where the token has the most liquidity). verified false means it is on no curated list: confirm the address with the user before swapping. Read-only.
| Parameter | Type | Description |
|---|---|---|
| chain | ["string","number"] | Optional: the token's chain: slug ("base", "solana", "ethereum", "arbitrum"...) or numeric chain id (Solana is 7565164). See list_chains. |
| address * | string | Token contract address (EVM 0x...) or SPL mint (Solana). |
{
"name": "lookup_token",
"title": "Look up a token by address",
"description": "Get one token's symbol, name, decimals, USD price and verified flag from its contract address or SPL mint. The chain is optional: LayerHop finds it (Solana for a mint, else the EVM chain where the token has the most liquidity). verified false means it is on no curated list: confirm the address with the user before swapping. Read-only.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"address"
],
"properties": {
"chain": {
"type": [
"string",
"number"
],
"description": "Optional: the token's chain: slug (\"base\", \"solana\", \"ethereum\", \"arbitrum\"...) or numeric chain id (Solana is 7565164). See list_chains."
},
"address": {
"type": "string",
"minLength": 1,
"description": "Token contract address (EVM 0x...) or SPL mint (Solana)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}Safety report for a token before the user buys or receives it: honeypot (can't sell), buy/sell/transfer taxes, owner powers (mint, blacklist, pause, freeze), unpublished code, few holders, and fake majors (a token calling itself USDC/ETH/SOL at the wrong address). level is ok, caution, danger or unknown (no source answered; never block a swap on unknown alone). On danger, warn the user and get explicit confirmation before get_quote. Read-only.
| Parameter | Type | Description |
|---|---|---|
| chain * | ["string","number"] | The token's chain: slug ("base", "solana", "ethereum", "arbitrum"...) or numeric chain id (Solana is 7565164). See list_chains. |
| token * | string | The token to check: symbol or token: symbol from list_tokens ("USDC", "ETH", "SOL") or the token contract address / SPL mint. Use "native" for the chain's gas coin. |
{
"name": "get_token_risk",
"title": "Check a token for risks",
"description": "Safety report for a token before the user buys or receives it: honeypot (can't sell), buy/sell/transfer taxes, owner powers (mint, blacklist, pause, freeze), unpublished code, few holders, and fake majors (a token calling itself USDC/ETH/SOL at the wrong address). level is ok, caution, danger or unknown (no source answered; never block a swap on unknown alone). On danger, warn the user and get explicit confirmation before get_quote. Read-only.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"chain",
"token"
],
"properties": {
"chain": {
"type": [
"string",
"number"
],
"description": "The token's chain: slug (\"base\", \"solana\", \"ethereum\", \"arbitrum\"...) or numeric chain id (Solana is 7565164). See list_chains."
},
"token": {
"type": "string",
"minLength": 1,
"description": "The token to check: symbol or token: symbol from list_tokens (\"USDC\", \"ETH\", \"SOL\") or the token contract address / SPL mint. Use \"native\" for the chain's gas coin."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}List limit orders (Solana: Jupiter Trigger; EVM: CoW Protocol) of a wallet, or of the API key's account without a wallet: what is sold, the minimum received, status (built, open, filled, cancelled, expired, failed) and fills. Read-only.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max orders to return. |
| cursor | string | nextCursor from a previous call, for the next page. |
| status | string | Only orders with this status. |
| wallet | string | Wallet (Solana base58 or EVM 0x) whose limit orders to list. Without it: the API key's account (needs a key). |
{
"name": "list_limit_orders",
"title": "List limit orders",
"description": "List limit orders (Solana: Jupiter Trigger; EVM: CoW Protocol) of a wallet, or of the API key's account without a wallet: what is sold, the minimum received, status (built, open, filled, cancelled, expired, failed) and fills. Read-only.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Max orders to return."
},
"cursor": {
"type": "string",
"description": "nextCursor from a previous call, for the next page."
},
"status": {
"enum": [
"built",
"open",
"filled",
"cancelled",
"expired",
"failed"
],
"type": "string",
"description": "Only orders with this status."
},
"wallet": {
"type": "string",
"minLength": 1,
"description": "Wallet (Solana base58 or EVM 0x) whose limit orders to list. Without it: the API key's account (needs a key)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}Get one limit order with its fills (each fill is an order whose quoteId starts with lof_). Read-only.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Limit order id (starts with "lo_"). |
{
"name": "get_limit_order",
"title": "Get a limit order",
"description": "Get one limit order with its fills (each fill is an order whose quoteId starts with lof_). Read-only.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^lo_",
"description": "Limit order id (starts with \"lo_\")."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}Build a limit order: sell sellAmount of sellToken once the market gives at least minReceive of buyToken. Solana (default, Jupiter Trigger): returns an UNSIGNED transaction; LayerHop's fee applies when buyToken is SOL, USDC or USDT. EVM chains with CoW Protocol (Ethereum, Arbitrum, Base, BNB Chain, Polygon, Avalanche, Gnosis, Linea, Plasma, Ink): returns EIP-712 typed data plus the token approval it needs; sellToken must be an ERC-20. Then the maker's own wallet signs and you call submit_limit_order. Worth at least $5. The LayerHop MCP server holds no private keys and never signs or broadcasts transactions. Confirm the price with the user first.
| Parameter | Type | Description |
|---|---|---|
| chain | ["string","number"] | Chain of the order (default solana) chain: slug ("base", "solana", "ethereum", "arbitrum"...) or numeric chain id (Solana is 7565164). See list_chains. |
| wallet * | string | The maker's wallet (Solana base58 or EVM 0x): signs the order and receives buyToken. |
| buyToken * | string | Token to buy token: symbol from list_tokens ("USDC", "ETH", "SOL") or the token contract address / SPL mint. Use "native" for the chain's gas coin. |
| sellToken * | string | Token to sell token: symbol from list_tokens ("USDC", "ETH", "SOL") or the token contract address / SPL mint. Use "native" for the chain's gas coin. |
| minReceive * | ["string","number"] | Minimum HUMAN units of buyToken for the whole sellAmount (the limit price is minReceive / sellAmount), e.g. "0.5" for 0.5 SOL. |
| sellAmount |
Send a limit order's create or cancel step AFTER the maker's own wallet signed it (from create_limit_order or cancel_limit_order): the signed Solana transaction, or the EIP-712 signature of an EVM order. This only relays what the wallet signed; The LayerHop MCP server holds no private keys and never signs or broadcasts transactions.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Limit order id (starts with "lo_"). |
| signature | string | EVM: the wallet's eth_signTypedData_v4 signature of typedData. |
| signedTransaction | string | Solana: the wallet-signed transaction, base64. |
{
"name": "submit_limit_order",
"title": "Submit a signed limit order or cancellation",
"description": "Send a limit order's create or cancel step AFTER the maker's own wallet signed it (from create_limit_order or cancel_limit_order): the signed Solana transaction, or the EIP-712 signature of an EVM order. This only relays what the wallet signed; The LayerHop MCP server holds no private keys and never signs or broadcasts transactions.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^lo_",
"description": "Limit order id (starts with \"lo_\")."
},
"signature": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{130}$",
"description": "EVM: the wallet's eth_signTypedData_v4 signature of typedData."
},
"signedTransaction": {
"type": "string",
"minLength": 1,
"description": "Solana: the wallet-signed transaction, base64."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Cancel an open limit order: returns the UNSIGNED cancel transaction (Solana) or the cancellation typed data (EVM, no gas) for the maker's wallet to sign, then submit_limit_order. An order that was never submitted is cancelled at once (nothing to sign). Confirm with the user first. The LayerHop MCP server holds no private keys and never signs or broadcasts transactions.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Limit order id (starts with "lo_"). |
{
"name": "cancel_limit_order",
"title": "Cancel a limit order (unsigned)",
"description": "Cancel an open limit order: returns the UNSIGNED cancel transaction (Solana) or the cancellation typed data (EVM, no gas) for the maker's wallet to sign, then submit_limit_order. An order that was never submitted is cancelled at once (nothing to sign). Confirm with the user first. The LayerHop MCP server holds no private keys and never signs or broadcasts transactions.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^lo_",
"description": "Limit order id (starts with \"lo_\")."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}Create an address the user sends tokens to; every deposit is swapped/bridged and delivered as toToken on toChain to recipient. No wallet connection or signing needed. Non-custodial: the address belongs to the liquidity provider (Relay), LayerHop never holds funds. Tell the user: send ONLY srcToken on srcChain to the address (other tokens or chains may be lost for good), at least $1 worth; refundTo must be the user's own address on srcChain, never an exchange (CEX) deposit address. Needs a LayerHop API key; test keys (lh_test_) give a fake sandbox address that must never receive real funds. The LayerHop MCP server holds no private keys and never signs or broadcasts transactions.
| Parameter | Type | Description |
|---|---|---|
| label | string | Your reference for this address (1-64 chars), filterable in list_deposit_addresses. |
| amount | ["string","number"] | HUMAN units of fromToken ("25" = 25 USDC). Required when reusable is false (the exact amount to send); otherwise only sizes the estimate. Minimum worth $1. |
| toChain * | ["string","number"] | Destination chain: slug ("base", "solana", "ethereum", "arbitrum"...) or numeric chain id (Solana is 7565164). See list_chains. |
| toToken * | string | Token to deliver (destination) token: symbol from list_tokens ("USDC", "ETH", "SOL") or the token contract address / SPL mint. Use "native" for the chain's gas coin. |
| metadata | object | Up to 20 string key-value pairs stored on the address. |
| refundTo * | string | The user's OWN address on fromChain for refunds. NEVER an exchange (CEX) deposit address: refunds never go back to an exchange. |
List the deposit addresses of the API key's account and mode (live or test), newest first: address, route, status, deposit count. Needs a LayerHop API key. Read-only.
| Parameter | Type | Description |
|---|---|---|
| label | string | Only addresses with this label. |
| limit | integer | Max addresses to return (default set by the API). |
| cursor | string | nextCursor from a previous call, for the next page. |
| status | string | Only addresses with this status. |
{
"name": "list_deposit_addresses",
"title": "List deposit addresses",
"description": "List the deposit addresses of the API key's account and mode (live or test), newest first: address, route, status, deposit count. Needs a LayerHop API key. Read-only.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"label": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "Only addresses with this label."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Max addresses to return (default set by the API)."
},
"cursor": {
"type": "string",
"description": "nextCursor from a previous call, for the next page."
},
"status": {
"enum": [
"active",
"disabled"
],
"type": "string",
"description": "Only addresses with this status."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}Get one deposit address with its 20 most recent deposits (orders, quoteId starting with dep_): amount deposited and delivered, status (submitted, pending, filled, refunded, failed) and tx hashes. Tell the user: send ONLY srcToken on srcChain to the address (other tokens or chains may be lost for good), at least $1 worth; refundTo must be the user's own address on srcChain, never an exchange (CEX) deposit address. Needs a LayerHop API key; test keys (lh_test_) give a fake sandbox address that must never receive real funds. Read-only.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Deposit address id (starts with "da_"). |
{
"name": "get_deposit_address",
"title": "Get a deposit address and its deposits",
"description": "Get one deposit address with its 20 most recent deposits (orders, quoteId starting with dep_): amount deposited and delivered, status (submitted, pending, filled, refunded, failed) and tx hashes. Tell the user: send ONLY srcToken on srcChain to the address (other tokens or chains may be lost for good), at least $1 worth; refundTo must be the user's own address on srcChain, never an exchange (CEX) deposit address. Needs a LayerHop API key; test keys (lh_test_) give a fake sandbox address that must never receive real funds. Read-only.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^da_",
"description": "Deposit address id (starts with \"da_\")."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}Ask LayerHop to check a deposit address for new deposits right away (instead of waiting for the next scheduled check). Call it when the user says they sent funds, then call get_deposit_address after ~15-30 s. Needs a LayerHop API key.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Deposit address id (starts with "da_"). |
{
"name": "refresh_deposit_address",
"title": "Check a deposit address for deposits now",
"description": "Ask LayerHop to check a deposit address for new deposits right away (instead of waiting for the next scheduled check). Call it when the user says they sent funds, then call get_deposit_address after ~15-30 s. Needs a LayerHop API key.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^da_",
"description": "Deposit address id (starts with \"da_\")."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Disable a deposit address: LayerHop stops tracking it (no more orders or webhooks for it). The provider may still process funds sent to it later, so the user must stop using it. Cannot be undone. Confirm with the user first. Needs a LayerHop API key.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Deposit address id (starts with "da_"). |
{
"name": "disable_deposit_address",
"title": "Disable a deposit address",
"description": "Disable a deposit address: LayerHop stops tracking it (no more orders or webhooks for it). The provider may still process funds sent to it later, so the user must stop using it. Cannot be undone. Confirm with the user first. Needs a LayerHop API key.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^da_",
"description": "Deposit address id (starts with \"da_\")."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}TEST MODE ONLY (lh_test_ key and a test deposit address): record a fake deposit so the integration can be tested end to end; it becomes a test order that settles with webhooks. The amount decides the outcome: base units ending in 4001 -> refunded, 4002 -> failed, anything else -> filled. Moves no real funds. Fails with a live key.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Deposit address id (starts with "da_"). |
| amount | ["string","number"] | Deposit amount in HUMAN units of the address token ("25" = 25 USDC). Give this or amountBaseUnits. |
| amountBaseUnits | string | Deposit amount in base units (e.g. "25004001" to test a refund for a 6-decimal token). Give this or amount. |
{
"name": "simulate_deposit",
"title": "Simulate a deposit (test mode only)",
"description": "TEST MODE ONLY (lh_test_ key and a test deposit address): record a fake deposit so the integration can be tested end to end; it becomes a test order that settles with webhooks. The amount decides the outcome: base units ending in 4001 -> refunded, 4002 -> failed, anything else -> filled. Moves no real funds. Fails with a live key.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^da_",
"description": "Deposit address id (starts with \"da_\")."
},
"amount": {
"type": [
"string",
"number"
],
"description": "Deposit amount in HUMAN units of the address token (\"25\" = 25 USDC). Give this or amountBaseUnits."
},
"amountBaseUnits": {
"type": "string",
"pattern": "^\\d+$",
"description": "Deposit amount in base units (e.g. \"25004001\" to test a refund for a 6-decimal token). Give this or amount."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}LayerHop finds the best-priced route for cross-chain and same-chain token swaps (EVM chains and Solana) across many liquidity providers. The LayerHop MCP server holds no private keys and never signs or broadcasts transactions. Amounts in tool inputs are HUMAN decimal strings in the token's own units ("100" = 100 USDC, "0.05" = 0.05 ETH), never base units. Outputs show human amounts; fields named *BaseUnits are integers in the token's smallest unit. Safe workflow: list_chains / list_tokens if unsure -> get_quote -> show the user output, minimum received, every fee and the ETA -> get explicit confirmation -> prefer giving the user the swapLink (or get_swap_link) so they review and sign in their own wallet on layerhop.com. Only use build_transaction when the user has their own signer and asks for raw transaction data; never ask for or accept private keys or seed phrases. Before a user buys or receives a token that is unverified or unfamiliar, call get_token_risk and show any caution or danger reasons. When get_quote fails with NO_ROUTE, the error may list alternatives that do quote (another destination or source token, or two steps through a hub): offer them, never switch silently. Gasless quotes (typed data) and Tron transactions can't be signed or completed through this server: give the user the swap link. Limit orders (create_limit_order and friends) return UNSIGNED transactions (Solana) or EIP-712 typed data to sign (EVM, CoW Protocol): only the maker's own wallet signs them; submit_limit_order only relays an already-made signature. Deposit addresses (create_deposit_address and friends, API key required) let a user swap or bridge by just sending a token to an address. When you show one, always tell the user: send ONLY that token on that chain (anything else may be lost), at least $1 worth, and refunds go to refundTo, which must be their own address, never an exchange deposit address. Test-key addresses are fake: never send real funds; use simulate_deposit.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| fromChain * | ["string","number"] | Source chain: slug ("base", "solana", "ethereum", "arbitrum"...) or numeric chain id (Solana is 7565164). See list_chains. |
| fromToken * | string | Token to send (source) token: symbol from list_tokens ("USDC", "ETH", "SOL") or the token contract address / SPL mint. Use "native" for the chain's gas coin. |
| recipient | string | Address that receives funds on the destination chain. Defaults to sender when both chains use the same VM; REQUIRED for EVM <-> Solana. |
| slippageBps | integer | Max slippage in basis points (1 bp = 0.01%). Default 50 (= 0.5%). |
| toTokenDecimals | integer | Only needed when toToken is an address that is not in list_tokens: the token's decimals (e.g. 6 for USDC, 18 for most ERC-20s). |
| fromTokenDecimals | integer | Only needed when fromToken is an address that is not in list_tokens: the token's decimals (e.g. 6 for USDC, 18 for most ERC-20s). |
{
"name": "get_quote",
"title": "Get swap/bridge quotes",
"description": "Get the best price to swap or bridge tokens, within one chain or across chains (EVM <-> Solana). Asks every liquidity provider and returns the best quote plus alternatives with human-readable amounts, minimum received after slippage, fees (LayerHop fee, partner fee, provider fee, gas) and ETA. Returns a quoteId (valid until expiresAt) and a layerhop.com swapLink a human can open to review and sign. Read-only: The LayerHop MCP server holds no private keys and never signs or broadcasts transactions. Always show the user the fees and output and get confirmation before proceeding.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"fromChain",
"fromToken",
"amount",
"toChain",
"toToken",
"sender"
],
"properties": {
"amount": {
"type": [
"string",
"number"
],
"description": "Amount to send in HUMAN units of fromToken as a decimal string, e.g. \"100\" for 100 USDC or \"0.05\" for 0.05 ETH. NOT base units/wei/lamports. Must be greater than 0."
},
"sender": {
"type": "string",
"minLength": 1,
"description": "Wallet address that sends the funds on the source chain (0x... for EVM, base58 for Solana). Only used to build the quote; no access is needed."
},
"gasless": {
"type": "boolean",
"description": "Optional gasless swap (same EVM chain, ERC-20 input, where the API enables it): the user signs EIP-712 typed data instead of a transaction and the network fee is taken from fromToken. This server cannot sign or submit typed data for the user, so the user finishes it via the swap link or their own app."
},
"toChain": {
"type": [
"string",
"number"
],
"description": "Destination chain: slug (\"base\", \"solana\", \"ethereum\", \"arbitrum\"...) or numeric chain id (Solana is 7565164). See list_chains."
},
"toToken": {
"type": "string",
"minLength": 1,
"description": "Token to receive (destination) token: symbol from list_tokens (\"USDC\", \"ETH\", \"SOL\") or the token contract address / SPL mint. Use \"native\" for the chain's gas coin."
},
"fromChain": {
"type": [
"string",
"number"
],
"description": "Source chain: slug (\"base\", \"solana\", \"ethereum\", \"arbitrum\"...) or numeric chain id (Solana is 7565164). See list_chains."
},
"fromToken": {
"type": "string",
"minLength": 1,
"description": "Token to send (source) token: symbol from list_tokens (\"USDC\", \"ETH\", \"SOL\") or the token contract address / SPL mint. Use \"native\" for the chain's gas coin."
},
"recipient": {
"type": "string",
"description": "Address that receives funds on the destination chain. Defaults to sender when both chains use the same VM; REQUIRED for EVM <-> Solana."
},
"slippageBps": {
"type": "integer",
"maximum": 5000,
"minimum": 1,
"description": "Max slippage in basis points (1 bp = 0.01%). Default 50 (= 0.5%)."
},
"toTokenDecimals": {
"type": "integer",
"maximum": 36,
"minimum": 0,
"description": "Only needed when toToken is an address that is not in list_tokens: the token's decimals (e.g. 6 for USDC, 18 for most ERC-20s)."
},
"fromTokenDecimals": {
"type": "integer",
"maximum": 36,
"minimum": 0,
"description": "Only needed when fromToken is an address that is not in list_tokens: the token's decimals (e.g. 6 for USDC, 18 for most ERC-20s)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}| integer |
| Max slippage in basis points (1 bp = 0.01%). Default 50 (= 0.5%). |
{
"name": "get_swap_link",
"title": "Get a layerhop.com swap link",
"description": "Create a https://layerhop.com/swap link prefilled with the swap, which the user opens to review the live quote and fees and sign in their own wallet. This is the default, safest way to execute a swap. The LayerHop MCP server holds no private keys and never signs or broadcasts transactions. The amount is in human units.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"fromChain",
"fromToken",
"toChain",
"toToken"
],
"properties": {
"amount": {
"type": [
"string",
"number"
],
"description": "Amount to send in HUMAN units of fromToken as a decimal string, e.g. \"100\" for 100 USDC or \"0.05\" for 0.05 ETH. NOT base units/wei/lamports. Must be greater than 0."
},
"toChain": {
"type": [
"string",
"number"
],
"description": "Destination chain: slug (\"base\", \"solana\", \"ethereum\", \"arbitrum\"...) or numeric chain id (Solana is 7565164). See list_chains."
},
"toToken": {
"type": "string",
"minLength": 1,
"description": "Token to receive (destination) token: symbol from list_tokens (\"USDC\", \"ETH\", \"SOL\") or the token contract address / SPL mint. Use \"native\" for the chain's gas coin."
},
"fromChain": {
"type": [
"string",
"number"
],
"description": "Source chain: slug (\"base\", \"solana\", \"ethereum\", \"arbitrum\"...) or numeric chain id (Solana is 7565164). See list_chains."
},
"fromToken": {
"type": "string",
"minLength": 1,
"description": "Token to send (source) token: symbol from list_tokens (\"USDC\", \"ETH\", \"SOL\") or the token contract address / SPL mint. Use \"native\" for the chain's gas coin."
},
"recipient": {
"type": "string",
"description": "Optional destination address to prefill (the user can still edit it)."
},
"slippageBps": {
"type": "integer",
"maximum": 5000,
"minimum": 1,
"description": "Max slippage in basis points (1 bp = 0.01%). Default 50 (= 0.5%)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}| ["string","number"] |
| HUMAN units of sellToken to sell, e.g. "50" for 50 USDC. |
| expiresInMinutes | integer | Cancel automatically after this many minutes. Solana: omit for good-till-cancelled. EVM: default 90 days. |
{
"name": "create_limit_order",
"title": "Create a limit order (unsigned)",
"description": "Build a limit order: sell sellAmount of sellToken once the market gives at least minReceive of buyToken. Solana (default, Jupiter Trigger): returns an UNSIGNED transaction; LayerHop's fee applies when buyToken is SOL, USDC or USDT. EVM chains with CoW Protocol (Ethereum, Arbitrum, Base, BNB Chain, Polygon, Avalanche, Gnosis, Linea, Plasma, Ink): returns EIP-712 typed data plus the token approval it needs; sellToken must be an ERC-20. Then the maker's own wallet signs and you call submit_limit_order. Worth at least $5. The LayerHop MCP server holds no private keys and never signs or broadcasts transactions. Confirm the price with the user first.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"wallet",
"sellToken",
"sellAmount",
"buyToken",
"minReceive"
],
"properties": {
"chain": {
"type": [
"string",
"number"
],
"description": "Chain of the order (default solana) chain: slug (\"base\", \"solana\", \"ethereum\", \"arbitrum\"...) or numeric chain id (Solana is 7565164). See list_chains."
},
"wallet": {
"type": "string",
"minLength": 1,
"description": "The maker's wallet (Solana base58 or EVM 0x): signs the order and receives buyToken."
},
"buyToken": {
"type": "string",
"minLength": 1,
"description": "Token to buy token: symbol from list_tokens (\"USDC\", \"ETH\", \"SOL\") or the token contract address / SPL mint. Use \"native\" for the chain's gas coin."
},
"sellToken": {
"type": "string",
"minLength": 1,
"description": "Token to sell token: symbol from list_tokens (\"USDC\", \"ETH\", \"SOL\") or the token contract address / SPL mint. Use \"native\" for the chain's gas coin."
},
"minReceive": {
"type": [
"string",
"number"
],
"description": "Minimum HUMAN units of buyToken for the whole sellAmount (the limit price is minReceive / sellAmount), e.g. \"0.5\" for 0.5 SOL."
},
"sellAmount": {
"type": [
"string",
"number"
],
"description": "HUMAN units of sellToken to sell, e.g. \"50\" for 50 USDC."
},
"expiresInMinutes": {
"type": "integer",
"maximum": 525600,
"minimum": 1,
"description": "Cancel automatically after this many minutes. Solana: omit for good-till-cancelled. EVM: default 90 days."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}| reusable | boolean | true (default): reusable for this route with any amount. false: one-time address for exactly `amount`. |
| fromChain * | ["string","number"] | Source (deposit) chain: slug ("base", "solana", "ethereum", "arbitrum"...) or numeric chain id (Solana is 7565164). See list_chains. |
| fromToken * | string | The ONLY token the user may send to the address (source) token: symbol from list_tokens ("USDC", "ETH", "SOL") or the token contract address / SPL mint. Use "native" for the chain's gas coin. |
| recipient * | string | Address that receives toToken on toChain. |
| fromTokenDecimals | integer | Only needed when fromToken is an address that is not in list_tokens: the token's decimals (e.g. 6 for USDC, 18 for most ERC-20s). |
{
"name": "create_deposit_address",
"title": "Create a deposit address",
"description": "Create an address the user sends tokens to; every deposit is swapped/bridged and delivered as toToken on toChain to recipient. No wallet connection or signing needed. Non-custodial: the address belongs to the liquidity provider (Relay), LayerHop never holds funds. Tell the user: send ONLY srcToken on srcChain to the address (other tokens or chains may be lost for good), at least $1 worth; refundTo must be the user's own address on srcChain, never an exchange (CEX) deposit address. Needs a LayerHop API key; test keys (lh_test_) give a fake sandbox address that must never receive real funds. The LayerHop MCP server holds no private keys and never signs or broadcasts transactions.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"fromChain",
"fromToken",
"toChain",
"toToken",
"recipient",
"refundTo"
],
"properties": {
"label": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "Your reference for this address (1-64 chars), filterable in list_deposit_addresses."
},
"amount": {
"type": [
"string",
"number"
],
"description": "HUMAN units of fromToken (\"25\" = 25 USDC). Required when reusable is false (the exact amount to send); otherwise only sizes the estimate. Minimum worth $1."
},
"toChain": {
"type": [
"string",
"number"
],
"description": "Destination chain: slug (\"base\", \"solana\", \"ethereum\", \"arbitrum\"...) or numeric chain id (Solana is 7565164). See list_chains."
},
"toToken": {
"type": "string",
"minLength": 1,
"description": "Token to deliver (destination) token: symbol from list_tokens (\"USDC\", \"ETH\", \"SOL\") or the token contract address / SPL mint. Use \"native\" for the chain's gas coin."
},
"metadata": {
"type": "object",
"description": "Up to 20 string key-value pairs stored on the address.",
"additionalProperties": {
"type": "string"
}
},
"refundTo": {
"type": "string",
"minLength": 1,
"description": "The user's OWN address on fromChain for refunds. NEVER an exchange (CEX) deposit address: refunds never go back to an exchange."
},
"reusable": {
"type": "boolean",
"description": "true (default): reusable for this route with any amount. false: one-time address for exactly `amount`."
},
"fromChain": {
"type": [
"string",
"number"
],
"description": "Source (deposit) chain: slug (\"base\", \"solana\", \"ethereum\", \"arbitrum\"...) or numeric chain id (Solana is 7565164). See list_chains."
},
"fromToken": {
"type": "string",
"minLength": 1,
"description": "The ONLY token the user may send to the address (source) token: symbol from list_tokens (\"USDC\", \"ETH\", \"SOL\") or the token contract address / SPL mint. Use \"native\" for the chain's gas coin."
},
"recipient": {
"type": "string",
"minLength": 1,
"description": "Address that receives toToken on toChain."
},
"fromTokenDecimals": {
"type": "integer",
"maximum": 36,
"minimum": 0,
"description": "Only needed when fromToken is an address that is not in list_tokens: the token's decimals (e.g. 6 for USDC, 18 for most ERC-20s)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}