MCP server
Trade Router MCP
Non-custodial Solana swap & limit order engine for AI agents.
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.0.13
- Listing updated
- 5 days ago
About Trade Router MCP
Trade Router MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add trade-router-mcp --env TRADEROUTER_PRIVATE_KEY='<TRADEROUTER_PRIVATE_KEY>' -- npx -y @traderouter/trade-router-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"trade-router-mcp": {
"command": "npx",
"args": [
"-y",
"@traderouter/trade-router-mcp"
],
"env": {
"TRADEROUTER_PRIVATE_KEY": "<TRADEROUTER_PRIVATE_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"trade-router-mcp": {
"command": "npx",
"args": [
"-y",
"@traderouter/trade-router-mcp"
],
"env": {
"TRADEROUTER_PRIVATE_KEY": "<TRADEROUTER_PRIVATE_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"trade-router-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@traderouter/trade-router-mcp"
],
"env": {
"TRADEROUTER_PRIVATE_KEY": "<TRADEROUTER_PRIVATE_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"trade-router-mcp": {
"command": "npx",
"args": [
"-y",
"@traderouter/trade-router-mcp"
],
"env": {
"TRADEROUTER_PRIVATE_KEY": "<TRADEROUTER_PRIVATE_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"trade-router-mcp": {
"command": "npx",
"args": [
"-y",
"@traderouter/trade-router-mcp"
],
"env": {
"TRADEROUTER_PRIVATE_KEY": "<TRADEROUTER_PRIVATE_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
TRADEROUTER_PRIVATE_KEYSolana base58-encoded private key. Local signing only, never transmitted. See SECURITY.md.RequiredSOLANA_RPC_URLOptional RPC endpoint override (default https://api.mainnet-beta.solana.com).TRADEROUTER_SERVER_PUBKEYOptional override for the server public key used to verify order_filled ed25519 signatures.TRADEROUTER_SERVER_PUBKEY_NEXTOptional second server public key accepted during key rotation.TRADEROUTER_REQUIRE_SERVER_SIGNATUREDefault 'true'. Verify server signatures on order_filled / twap_execution.TRADEROUTER_REQUIRE_ORDER_CREATED_SIGNATUREDefault 'true'. Verify server signatures on order_created.TRADEROUTER_DRY_RUNDefault 'false'. When 'true', write-action tools (submit_signed_swap, auto_swap, place_*_order, cancel_order, extend_order) short-circuit and return { dry_run: true, ... } instead of calling the API. Read-only tools execute normally.
Pricing
Open source
Trade Router MCP FAQ
Is Trade Router MCP free?
Yes. Trade Router MCP is open source, so you can use and self-host it for free.
How do I add Trade Router MCP to Claude Code?
Run this command in your terminal: claude mcp add trade-router-mcp --env TRADEROUTER_PRIVATE_KEY='<TRADEROUTER_PRIVATE_KEY>' -- npx -y @traderouter/trade-router-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.