TradeRouter.ai MCP Server — Non-custodial Solana swap & limit order engine for AI agents
Project description
TradeRouter MCP (Python)
Non-custodial Solana trading API for AI agents. One integration replaces Jupiter + Helius + Jito + custom limit-order code. Your private key never leaves the local process — only signed transactions are transmitted to api.traderouter.ai.
See SECURITY.md for the full threat model and data-flow diagram.
Install
Run directly without installing (recommended):
{
"traderouter": {
"command": "uvx",
"args": ["traderouter-mcp"],
"env": {
"TRADEROUTER_PRIVATE_KEY": "<your-solana-base58-private-key>"
}
}
}
Or install into a project:
uv add traderouter-mcp
Environment variables
| Variable | Default | Purpose |
|---|---|---|
TRADEROUTER_PRIVATE_KEY |
required for signing | Solana base58-encoded private key. Used locally for signing, never transmitted. |
TRADEROUTER_SERVER_PUBKEY |
hardcoded trust anchor | Override the server public key used to verify order_filled events |
TRADEROUTER_BASE_URL |
https://api.traderouter.ai |
Override API base (e.g. for staging) |
Features
REST tools
swap— build an unsigned swap transaction (multi-DEX: Raydium, PumpSwap, Orca, Meteora)protect— submit signed tx via Jito bundle, returns confirmed balance changesholdings— most accurate wallet scan on Solanamcap— market cap + priceflex— generate trade-card PNG
WebSocket order types
place_limit— limit order by mcap or priceplace_trailing— trailing stop (percentage or absolute)place_dca— dollar-cost averagingplace_twap— time-weighted average priceplace_combo— limit + trailing + TWAP in one chaincheck_order,list_orders,cancel_order,extend_order
Server monitors mcap ~every 5 seconds. When an order triggers, you receive a signed-tx-ready payload; the MCP signs it locally (using TRADEROUTER_PRIVATE_KEY) and submits to /protect automatically.
Non-custodial by construction
See SECURITY.md for the complete threat model. TL;DR:
swaptool returns unsigned transaction- MCP signs locally with
TRADEROUTER_PRIVATE_KEY(held in local process memory) - Signed transaction sent to
api.traderouter.ai/protect - Server submits to Jito bundle, returns confirmed balance changes
- Private key never touches the network
Links
- Docs / API reference: https://traderouter.ai/
- OpenAPI spec: https://traderouter.ai/openapi.yaml
- llms.txt: https://traderouter.ai/llms.txt
- GitHub: https://github.com/re-bruce-wayne/openclaw-skills/tree/main/trade-router
- X/Twitter: @trade_router
License
MIT. See LICENSE.
Security disclosure
Email security@traderouter.ai or open a GitHub Security Advisory. See SECURITY.md for policy.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file traderouter_mcp-1.0.0.tar.gz.
File metadata
- Download URL: traderouter_mcp-1.0.0.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92613b0d7a4236a7e450e29fe342d41a8c24ac6904f88bdadebf884a8d3be4b1
|
|
| MD5 |
9991ca8c41014e00b786cdfbe0e1cc01
|
|
| BLAKE2b-256 |
adc9860693e1d05d90a2af1761539f51ab3814fc6a9d2228b00b74fb8d92e28a
|
File details
Details for the file traderouter_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: traderouter_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6df1283e314237fb420d8de35d0af294647bac5f880e1f3a81090e5460e81dd
|
|
| MD5 |
85fb9d460edaaa2545366bda595772df
|
|
| BLAKE2b-256 |
0f3e6d7dc24d4644af8eedec066a9021566978c522a29282733e119403394e2b
|