LayerHop

com.layerhop由 layerhop.com 發布官方發布者v0.5.0更新於 Oct 26, 2026

Best-price cross-chain swap quotes across 70 chains (EVM + Solana). Holds no keys, never signs.

已驗證Streamable HTTP可網頁執行金融開發者工具

概覽

AI 產生的概覽

LayerHop MCP 伺服器,讓助理在 70 條 EVM 與 Solana 鏈上取得同鏈與跨鏈兌換的最佳報價,並產生預填兌換連結或未簽章交易。

可以做什麼
  • 列出支援的鏈以及各鏈內建代幣
  • 取得同鏈或跨鏈兌換的最佳報價,包含各項費用、滑價後最少到手數量與預估時間
  • 建立 EVM 或 Solana 未簽章交易、在鏈上模擬,並回報已廣播的交易
  • 產生預填兌換連結,查詢訂單狀態或依地址列出訂單
  • 建立、檢視、重新整理與停用入金地址,並模擬測試入金
適用情境
適合使用者想比較跨鏈兌換或跨鏈橋路線、準備由自己錢包簽章的交易,或設定可自動兌換入帳的入金地址時使用。它只是報價與準備層,並非錢包。
執行需求
可作為託管的 Streamable HTTP 端點使用,也可透過 npx @layerhop/mcp 在本機執行(需 Node.js)。入金地址相關工具需要 LAYERHOP_API_KEY;LAYERHOP_INTEGRATOR 為選用的合作夥伴 ID。需要能連線至 LayerHop API 的網路。
安裝前請注意
伺服器不持有私鑰、不簽章也不廣播,但會建立入金地址,且停用操作無法復原;停用後不再追蹤,但之後轉入的資金仍可能被處理。入金地址只能接收指定鏈上的指定代幣,否則資金可能遺失。simulate_deposit 僅限測試金鑰。API 金鑰屬於憑證,請妥善保管。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 LayerHop,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.layerhop%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "layerhop": {
      "type": "http",
      "url": "https://mcp.layerhop.com/mcp"
    }
  }
}

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.

bash
# stdio (Claude Desktop, Claude Code, Cursor, …)npx -y @layerhop/mcpclaude mcp add layerhop -- npx -y @layerhop/mcp
# hosted, Streamable HTTPclaude mcp add --transport http layerhop https://mcp.layerhop.com/mcp
# self-host over HTTP: POST /mcp, GET /healthznpx -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, 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.

來源:packages/mcp/README.md,提交 08a1014

工具

15

list_chains

List supported chains

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.

無需輸入參數。

list_tokens

List tokens on a chain

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.

輸入參數chain必填

get_quote

Get swap/bridge quotes

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.

輸入參數amount必填sender必填toChain必填toToken必填fromChain必填fromToken必填recipientslippageBpstoTokenDecimalsfromTokenDecimals

build_transaction

Build the unsigned transaction for a quote

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.

輸入參數quoteId必填

simulate_transaction

Dry-run a quote's transaction

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.

輸入參數quoteId必填

report_submitted

Report a broadcast transaction

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.

輸入參數txHash必填quoteId必填

get_order_status

Get swap/bridge order status

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.

輸入參數txHash必填provider必填

list_orders

List orders for a wallet

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.

輸入參數limitcursorstatusaddress必填

create_deposit_address

Create a deposit address

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.

輸入參數labelamounttoChain必填toToken必填metadatarefundTo必填reusablefromChain必填fromToken必填recipient必填fromTokenDecimals

list_deposit_addresses

List deposit addresses

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.

輸入參數labellimitcursorstatus

get_deposit_address

Get a deposit address and its deposits

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.

輸入參數id必填

refresh_deposit_address

Check a deposit address for deposits now

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.

輸入參數id必填

disable_deposit_address

Disable a deposit address

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.

輸入參數id必填

simulate_deposit

Simulate a deposit (test mode only)

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.

輸入參數id必填amountamountBaseUnits

版本歷史

2
  1. v0.5.0最新Oct 18, 2026
  2. v0.1.1Oct 18, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分