SF

symbiosis-finance/symbiosis-public-mcp

Developer tools
2 stars 5 forks Quality 75 Trend 12

Symbiosis Public MCP Server

Overview

A Model Context Protocol (MCP) server for Symbiosis — enabling AI agents to perform 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 , on the same chain or across different chains — including ERC-20, SPL, TRC-20 tokens, meme tokens, and more. Pick of the two options below — you don't need both. 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+). After the build finishes, it prints ready-to-use connection commands with the correct path for your machine. Requires Docker Desktop — download, install, launch. Verify: docker --version (should print version 20+). The most important setting is PRIVATE_KEY — an EVM wallet private key (without 0x prefix).

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.

Remote (Hosted)

Connect to the hosted instance without installing anything:

# Claude Code
claude mcp add symbiosis --transport http https://mcp.symbiosis.finance/mcp

For other clients:

{ "mcpServers": { "symbiosis": { "url": "https://mcp.symbiosis.finance/mcp" } } }

The hosted instance runs in read-only mode (no private key).

Transport Modes

The server supports two transport modes:

Mode Use case
stdio (default) Local agent frameworks and CLI tools — Claude Code, Cursor, etc.
Streamable HTTP Containerized deployments, web-based agents, remote access

Running with Node.js

# stdio (default) — used by MCP clients automatically
npm start

# HTTP on port 3000
MCP_TRANSPORT=http PORT=3000 npm start

Running with Docker

# stdio — for direct use with MCP clients (see examples above)
docker run -i --rm -e PRIVATE_KEY=YOUR_KEY symbiosisfinance/symbiosis-public-mcp node dist/index.js

# HTTP on port 3000 — for server/remote deployments
docker run -d -p 3000:3000 -e MCP_TRANSPORT=http symbiosisfinance/symbiosis-public-mcp

Or using Docker Compose:

docker compose up -d --build

Development

npm run dev          # stdio dev mode (no build needed)
npm run dev:http     # HTTP dev mode on port 3000
npm run inspect      # MCP Inspector UI

Tools

Tool Requires PRIVATE_KEY Description
get_instructions — Returns the agent guide with workflow, conventions, and tips
get_supported_chains — List all 50+ supported blockchain networks
search_tokens — Search 6000+ tokens by name, symbol, or address
get_quote — Get a swap quote — expected output, fees, estimated time
get_swap_calldata — Build transaction calldata with approve check and gas params
get_swap_url — Generate a pre-filled Symbiosis app URL
get_rpcs — Get validated RPC endpoints for any chain, sorted by latency
get_tx_status — Check cross-chain swap status
get_balances — Check token balances across all EVM chains
broadcast_transaction — Broadcast a signed transaction via RPCs
sign_transaction Yes Sign a transaction with the server wallet
sign_and_broadcast Yes Sign and broadcast in one step
get_swap_calldata_and_sign_and_broadcast Yes All-in-one: calldata + approve + sign + broadcast

Tools marked with — work without a private key, but get_swap_calldata and get_balances require explicit wallet addresses if PRIVATE_KEY is not set.

License

MIT, Copyright 2025 Symbiosis

View the full README on GitHub

Install

docker run -i --rm -e PRIVATE_KEY=YOUR_KEY symbiosisfinance/symbiosis-public-mcp node dist/index.js
New to MCP? Start with the mcpskill.org guide →

Configuration

{ "mcpServers": { "symbiosis": { "command": "node", "args": ["/full/path/to/dist/index.js"], "env": { "PRIVATE_KEY": "YOUR_KEY" } } } }