Galactic Bridge

io.github.mckellen-ethv0.1.1更新於 Oct 4, 2026

Find LayerZero OFT bridge routes by contract address across 14 EVM networks.

已驗證STDIO僅桌面Developer ToolsFinance

概覽

AI 產生的概覽

依代幣合約地址在 14 個 EVM 網路上尋找 LayerZero OFT 跨鏈橋路由,並產生待簽名交易。

功能
透過公開的 Galactic Bridge API 列出支援的 14 個網路、掃描某個代幣地址存在於哪些網路及其對應的 OFT 合約,並解析兩個網路之間的橋接路由。針對一條路由,它會回傳 OFT 合約、該方向目前是否啟用、即時費用,以及在提供金額與收款地址時回傳可直接簽名的交易物件,若代幣透過獨立轉接器橋接還會附上 ERC-20 授權交易。預設情況下它不會簽名或送出任何交易。
適用情境
適合需要依代幣合約查詢跨鏈橋路由(包括未在聚合器上架的代幣),或需要為使用者在自有錢包中檢視並簽名而準備橋接交易的場景。
執行需求
需要 Node.js 18 或更新版本,透過 npx 以 stdio 傳輸在本機執行。需要可連線至公開 Galactic Bridge API 的網路。唯讀使用不需要帳號或 API 金鑰。選用的自動簽名功能需要 ethers 套件,部分鏈還需要 RPC 覆寫變數,例如 GB_RPC_ 。
安裝前請注意
預設為唯讀,且不持有任何私鑰。設定 GB_PRIVATE_KEY 會啟用 execute_bridge 工具,該工具會簽名並廣播交易,不可逆地移動真實資金;除非明確啟用,否則不會載入。請使用僅存放可承受損失金額的專用熱錢包,並在簽名前務必核對交易。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Galactic Bridge MCP

An MCP server that lets AI agents and MCP clients (Claude Desktop, Cursor, …) use Galactic Bridge to find LayerZero OFT bridge routes by token contract address and build ready-to-sign cross-chain transactions across 14 EVM networks — including tokens that aren't listed on aggregators like Stargate.

By default this server is read-only. It finds routes and builds transactions, but it never holds a key and never signs anything — a human or wallet does that. Auto-signing is an optional add-on you turn on yourself (see the bottom).

What it does

It talks only to the public Galactic Bridge API — the same endpoints the website calls. It does not run on the bridge's servers and changes nothing there.

Tools

ToolWhat it does
list_supported_networksThe 14 networks, with chain key, chainId, LayerZero eid and native symbol.
scan_token_networksGiven a token address, every network it exists on and its OFT contract on each.
find_bridge_routeResolves a route between two networks: OFT contract, whether the direction is enabled right now, the fee, and — with amount + recipient — a ready-to-sign transaction (plus an ERC-20 approval when the token bridges through a separate adapter).

find_bridge_route never signs or sends. It returns transaction objects ({ to, data, value, chainId }) for you to review and sign in your own wallet.

Install

Requires Node.js 18+.

Claude Desktop

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "galactic-bridge": {      "command": "npx",      "args": ["-y", "galactic-bridge-mcp"]    }  }}

Cursor / other MCP clients

Point the client at the command npx -y galactic-bridge-mcp (stdio transport).

From source

bash
git clone https://github.com/mckellen-eth/galactic-bridge-mcp.gitcd galactic-bridge-mcpnpm installnpm run buildnode dist/index.js

Example

"Bridge 50 of token 0x90e7…d9e1 from BNB Chain to Arc, to my address 0xABC…"

The agent calls find_bridge_route and gets back a ready transaction plus the fee. You review it and sign in your wallet. If the token uses a separate adapter, you'll also get an approval transaction to sign first.

Safety

  • No keys by default. The read-only tools never see a private key.
  • You sign. Transactions are returned for review; your wallet signs them.
  • Fees and decimals are read live, so amounts are exact. Directions that a token has disabled are reported instead of returning a transaction that would revert.

Always verify a transaction before signing. This software is provided as-is, with no warranty (MIT).


Optional: auto-signing (advanced)

You can let the server sign and broadcast transactions itself by setting a private key in your environment. This moves real funds irreversibly and is off by default. Only enable it if you understand the risk, and use a dedicated hot wallet that holds no more than you can afford to lose.

json
{  "mcpServers": {    "galactic-bridge": {      "command": "npx",      "args": ["-y", "galactic-bridge-mcp"],      "env": {        "GB_PRIVATE_KEY": "0xyourHotWalletKey"      }    }  }}

When GB_PRIVATE_KEY is set, an extra tool appears — execute_bridge — which builds, signs and broadcasts the bridge transaction (and the approval first, if needed). It needs the optional ethers package (npm install ethers) and, for networks without a built-in public RPC, an override like GB_RPC_BSC=….

Without GB_PRIVATE_KEY, none of this loads and the server stays read-only.

Configuration

VariablePurpose
GB_API_URLOverride the bridge API base URL (default https://galacticbridge.app).
GB_PRIVATE_KEYOpt in to auto-signing. Unset = read-only.
GB_RPC_<CHAIN>RPC URL used by auto-signing for that chain (e.g. GB_RPC_ARC).

來源:README.md,提交 e5ec942

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.1.1最新Oct 4, 2026