@traderouter/trade-router-mcp
A Model Context Protocol server for TradeRouter.ai — non-custodial Solana swap, limit, trailing, DCA, TWAP, and combo-order engine for AI agents.
接入你的智能体
發布者自己的指令。不是 PlugMCP 端點。
用我們的金鑰與日誌託管一份副本。
npx -y @traderouter/[email protected]Claude Code 沒有本機指令的安裝連結。複製下方指令並在終端機中執行。
TRADEROUTER_PRIVATE_KEY=<secret> SOLANA_RPC_URL=<value> TRADEROUTER_SERVER_PUBKEY=<value> TRADEROUTER_SERVER_PUBKEY_NEXT=<value> TRADEROUTER_REQUIRE_SERVER_SIGNATURE=<value> TRADEROUTER_REQUIRE_ORDER_CREATED_SIGNATURE=<value> TRADEROUTER_DRY_RUN=<value> claude mcp add ai.traderouter-trade-router-mcp -- npx -y @traderouter/trade-router-mcp@1.0.13在終端機中執行。
{ "mcpServers": { "ai.traderouter-trade-router-mcp": { "command": "npx", "args": [ "-y", "@traderouter/[email protected]" ], "env": { "TRADEROUTER_PRIVATE_KEY": "<secret>", "SOLANA_RPC_URL": "<value>", "TRADEROUTER_SERVER_PUBKEY": "<value>", "TRADEROUTER_SERVER_PUBKEY_NEXT": "<value>", "TRADEROUTER_REQUIRE_SERVER_SIGNATURE": "<value>", "TRADEROUTER_REQUIRE_ORDER_CREATED_SIGNATURE": "<value>", "TRADEROUTER_DRY_RUN": "<value>" } } }}claude_desktop_config.json
遠端 URL 還是本機指令? 兩種安裝方式的差異
來自發布者
A Model Context Protocol server for TradeRouter.ai — non-custodial Solana swap, limit, trailing, DCA, TWAP, and combo-order engine for AI agents.
Non-custodial Solana swap & limit order engine for AI agents.
Yes, and here's exactly why. The private key is read once from TRADEROUTER_PRIVATE_KEY, used for local signing with @solana/web3.js + tweetnacl, and never transmitted, logged, or persisted. Only signed transactions leave your machine. Server messages are Ed25519-verified against a hard-coded trust anchor. See SECURITY.md for the full threat model, data-flow diagram, and permissions manifest.
Signing flow:
build_swap → MCP sends wallet address (public key) to api.traderouter.aiTRADEROUTER_PRIVATE_KEY/protect (Jito MEV-protected bundle)npx -y @traderouter/trade-router-mcp
Or wire it into an MCP client (Claude Desktop, Cursor, Cline, etc.):
{
"mcpServers": {
"traderouter": {
"command": "npx",
"args": ["-y", "@traderouter/trade-router-mcp"],
"env": {
"TRADEROUTER_PRIVATE_KEY": "your_base58_private_key"
}
}
}
}
The baked-in server public key is EXX3nRzfDUvbjZSmxFzHDdiSYeGVP1EGr77iziFZ4Jd4. Every order_filled, order_created, and twap_execution message from the server is verified with Ed25519 before being treated as authoritative. See SECURITY.md for details and the rotation mechanism (TRADEROUTER_SERVER_PUBKEY_NEXT).
Any MCP server works in LangChain via the official adapter:
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"traderouter": {
"command": "npx",
"args": ["-y", "@traderouter/trade-router-mcp"],
"transport": "stdio",
"env": {"TRADEROUTER_PRIVATE_KEY": "<base58>"},
},
})
tools = await client.get_tools()
Flat 1% fee on swap volume, embedded in routing at /protect. No subscription, no API key, no monthly minimums. Read-only endpoints (/holdings, /mcap) are free.
Quick SDK generation:
# TypeScript
openapi-generator-cli generate -i https://traderouter.ai/openapi.yaml -g typescript-axios -o ./sdk-ts
# Python
openapi-generator-cli generate -i https://traderouter.ai/openapi.yaml -g python -o ./sdk-py
Email [email protected] or use GitHub Security Advisories on this repo. 48-hour acknowledgement. See SECURITY.md (or the hosted version if you'd rather link to a stable URL).
MIT. See LICENSE.
See CHANGELOG.md.
{ "mcpServers": { "ai.traderouter-trade-router-mcp": { "command": "npx", "args": [ "-y", "@traderouter/[email protected]" ], "env": { "TRADEROUTER_PRIVATE_KEY": "<secret>", "SOLANA_RPC_URL": "<value>", "TRADEROUTER_SERVER_PUBKEY": "<value>", "TRADEROUTER_SERVER_PUBKEY_NEXT": "<value>", "TRADEROUTER_REQUIRE_SERVER_SIGNATURE": "<value>", "TRADEROUTER_REQUIRE_ORDER_CREATED_SIGNATURE": "<value>", "TRADEROUTER_DRY_RUN": "<value>" } } }}工具
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
常見問題
在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
發布者列出了以下環境變數:TRADEROUTER_PRIVATE_KEY, SOLANA_RPC_URL, TRADEROUTER_SERVER_PUBKEY, TRADEROUTER_SERVER_PUBKEY_NEXT, TRADEROUTER_REQUIRE_SERVER_SIGNATURE, TRADEROUTER_REQUIRE_ORDER_CREATED_SIGNATURE, TRADEROUTER_DRY_RUN。
Trade Router 透過 stdio 在本機執行。
上次檢查時間:2026-11-07。 Non-custodial Solana swap & limit order engine for AI agents.