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