
共生公共 MCP 服务器
概览
一个用于Symbiosis的模型上下文协议(MCP)服务器——使AI代理能够跨出50+块链,签名和广播交易,跟踪跨链状态,并访问经过验证的RPC端点. 共生是一种通用的跨链互换协议和DEX聚合. 它可以互换,在同一条链上或跨出不同的链条——包括ERC-20,SPL,TRC-20令牌,meme令牌等. 选择下面的两个选项——你不需要两者兼有. 需要node.js v22.23.4+,v24.22.1+,或v26.12.1+——下载您的OS的LTS安装器,运行,完成. 校验:节点-转换(使用补发:v22.23.4+,v24.22.1+,或v26.12.1+). 建成完成后,它会用正确路径打印您机器的即用连接命令. 需要多克桌面——下载,安装,发射. 校验:docker --version(应当打印20版+). 最重要的设置是Private KEY——一个EVM钱包私人密钥(没有0x前缀).
概述(AI 翻译)
Symbiosis的模型上下文协议(MCP)服务器——让AI代理在50+块链上进行Any-to- any sorders互换,签名和广播交易,跟踪跨链状态,访问验证的RPC端点.
共生是一种通用的跨链互换协议和DEX聚合. 它可以在同一条链条上或跨越不同链条——包括ERC-20、SPL、TRC-20、memes等——将任何令牌换作任何其他令牌。
□ 安装
从下面的两个选项中选取个——你不需要两者兼有.
备选A:节点.js
需要node.js v22.23.4+, v24.22.1+, 或 v26.12.1+ — 为您的OS下载 LTS 安装器, 运行它, 完成 。 校验:
node --version(使用补丁释放:v22.23.4+,v24.22.1+,或v26.12.1+).
建成完成后,它会用正确路径打印您机器的即用连接命令.
• 选项B:插座
需要多克桌面——下载,安装,发射. 校验:
docker --version(应打印20+版)。
或者从源头构建:
□ 配置
复制示例配置并编辑其内容 :
最重要的设置是PRIVATE_KEY——一个EVM钱包私人密钥(没有[[T3]前缀).
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Symbiosis MCP Server
A Model Context Protocol (MCP) server for Symbiosis — enabling AI agents to perform any-to-any token swaps across 50+ blockchains, sign and broadcast transactions, track cross-chain status, and access validated RPC endpoints.
Symbiosis is a universal cross-chain swap protocol and DEX aggregator. It can swap any token for any other token, on the same chain or across different chains — including ERC-20, SPL, TRC-20 tokens, meme tokens, and more.
Installation
Pick one of the two options below — you don’t need both.
Option A: Node.js
Requires Node.js v22.23.4+, v24.22.1+, or v26.12.1+ — download the LTS installer for your OS, run it, done. Verify:
node --version(use a patched release: v22.23.4+, v24.22.1+, or v26.12.1+).
git clone https://github.com/symbiosis-finance/symbiosis-public-mcp.git
cd symbiosis-public-mcp
npm install
npm run build
After the build finishes, it prints ready-to-use connection commands with the correct path for your machine.
Option B: Docker
Requires Docker Desktop — download, install, launch. Verify:
docker --version(should print version 20+).
docker pull symbiosisfinance/symbiosis-public-mcp:latest
Or build from source:
git clone https://github.com/symbiosis-finance/symbiosis-public-mcp.git
cd symbiosis-public-mcp
docker build -t symbiosis-mcp .
Configuration
Copy the example config and edit it:
cp .env.example .env
The most important setting is PRIVATE_KEY — an EVM wallet private key (without 0x prefix). It enables the server to sign and broadcast transactions on behalf of the agent.
Without PRIVATE_KEY, the server works in read-only mode: quotes, token search, calldata generation, and swap URLs. The agent cannot execute transactions.
With PRIVATE_KEY, additional tools become available: sign_transaction, sign_and_broadcast, and get_swap_calldata_and_sign_and_broadcast.
See .env.example for all available settings.
Connecting to MCP Clients
After installation, connect the server to your AI tool. All examples below use stdio mode (the default).
Replace /full/path/to with the actual path printed after npm run build.
安装
docker run -i --rm -e PRIVATE_KEY=YOUR_KEY symbiosisfinance/symbiosis-public-mcp node dist/index.js配置
{
"mcpServers": {
"symbiosis": {
"command": "node",
"args": ["/full/path/to/dist/index.js"],
"env": { "PRIVATE_KEY": "YOUR_KEY" }
}
}
}