Trade Router MCP server
io.github.TradeRouter/trade-router-mcp·v1.0.9·3 starsNon-custodial Solana swap & limit order engine for AI agents.
3 stars74 downloads/wk
Reviews
Write oneNobody has reviewed Trade Router yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Trade Router tools (21, 11 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
auto_swapBuild + sign + submit in one step. Requires TRADEROUTER_PRIVATE_KEY.
build_swapBuild an unsigned Solana swap tx via REST. Returns base58 swap_tx. Pass to submit_signed_swap or use auto_swap.
cancel_orderwrite actionCancel an active limit or trailing order.
check_orderwrite actionCheck the status of a specific order by order_id.
connect_websocketConnect WS for a wallet and wait until registered (up to 25s). Call before placing orders.
connection_statusReturn live WS connection state for a wallet.
extend_orderwrite actionExtend an order's expiry. expiry_hours is the new total (1–336).
get_fill_logReturn all order_filled events received since process start (capped at 200).
get_flex_cardGet the URL for a flex trade card PNG for a wallet and token. GET /flex. Returns the URL to display the image.
get_holdingsScan SPL token holdings for a Solana wallet. Slow — up to 100s.
get_mcapGet market cap (and price/pool) data for one or more token addresses. GET /mcap.
get_wallet_addressDerive the Solana wallet address from TRADEROUTER_PRIVATE_KEY. Call first at session start — also starts WebSocket connection.
list_ordersList all active limit/trailing orders for a wallet.
place_limit_orderwrite actionPlace a market-cap-based limit order over WS. action: sell|buy. target: bps vs current mcap at placement.
place_limit_trailing_orderwrite actionPlace a limit-then-trailing order. Wait for limit, then trailing phase; when trail triggers, single swap. action: limit_trailing_sell|limit_trailing_buy.
place_limit_trailing_twap_orderwrite actionPlace a limit-then-trailing-then-TWAP order. Limit → trail → on trail trigger, execute via TWAP. action: limit_trailing_twap_sell|limit_trailing_twap_buy.
place_limit_twap_orderwrite actionPlace a limit-then-TWAP order. Wait for limit target (bps), then execute via TWAP. action: limit_twap_sell|limit_twap_buy.
place_trailing_orderwrite actionPlace a trailing stop or trailing buy over WS. action: trailing_sell|trailing_buy. trail: bps distance.
place_trailing_twap_orderwrite actionPlace a trailing-then-TWAP order. When trail triggers, execute via TWAP. action: trailing_twap_sell|trailing_twap_buy.
place_twap_orderwrite actionPlace a TWAP (time-weighted) buy or sell order. Splits total amount into frequency slices over duration seconds. action: twap_buy|twap_sell.
submit_signed_swapwrite actionSubmit a base64-encoded signed Solana transaction via MEV-protected lane.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan2 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 152 days ago8/15
- Maintainer identityregistry namespace matches repository owner7/10
How Trade Router compares
Against every graded E-commerce MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 71/100
- higher than 43% of 2,174 E-commerce servers
- Tools
- 21
- the typical E-commerce server has 6
- Tools that change things
- 52%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 3
- more than 85% of 1,047 E-commerce servers
- Downloads a week
- 74
- more than 61% of 411 E-commerce servers with a package
What its tools let an agent do: 10 read · 10 change · 1 delete
Install Trade Router in Claude Code, Cursor or VS Code
Runs npx -y @traderouter/trade-router-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add trade-router-mcp -- npx -y @traderouter/trade-router-mcp
What the publisher says
From the Trade Router repository's README, as published. We do not edit it. Read it on GitHub
@traderouter/trade-router-mcp
<!-- mcp-name: ai.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.
Is this safe?
Yes, and here's exactly why. The private key is read once from TRADEROUTERPRIVATEKEY, 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:
- Agent calls buildswap → MCP sends wallet address* (public key) to api.traderouter.ai
- API returns an unsigned transaction
- MCP signs the tx locally using TRADEROUTERPRIVATEKEY
- The signed transaction is submitted to /protect (Jito MEV-protected bundle)
- Server confirms and returns balance changes. The private key never crosses the network.
Requirements
- Node.js ≥ 18
- A Solana wallet private key in base58 format (use a dedicated trading wallet, not your main holdings)
Install
npx -y @traderouter/trade-router-mcpOr 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"
}
}
}
}Environment variables
Tools
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Trade Router: common questions
- Is Trade Router MCP server safe?
- Mostly: it is graded B (71/100). Read the Trade Router safety report
- How do I install Trade Router?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Trade Router need an API key?
- Yes. The registry entry asks for
TRADEROUTER_PRIVATE_KEY. - Is Trade Router maintained?
- The last commit was 190 days ago (2026-04-28). The latest release is v1.0.9.
- What can I use instead of Trade Router?
- Servers from other publishers that do the same job: Iran Crypto Exchanges MCP server, Omie MCP server and Polymarket Toolkit MCP server.
- How does Trade Router compare with other E-commerce MCP servers?
- safety score 71/100 (higher than 43% of 2,174 E-commerce servers); tools 21 (the typical E-commerce server has 6); tools that change things 52% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Trade Router
Same job from other publishers: the closest match first, then the best rated.
- Iran Crypto ExchangesUnofficial read-only Iranian crypto exchanges: prices in Toman, order books, trades, candles.not reviewedGrowingA
- OmieMCP server for Omie — ERP, customers, products, orders, invoices, financialsnot reviewedEstablishedB
- Polymarket ToolkitRead-only Polymarket data tools for AI agents: profiles, PnL, market scans. No keys, no orders.not reviewedEstablishedB
- Sv NumberPhone numbers for AI agents: order a private number, read the SMS verification code, hand it back.not reviewedEstablishedB
- WebCake StorefrontBuild pages and manage products, orders, and content on the WebCake/StoreCake storefront builder.not reviewedGrowingA