Trade Router MCP logo

Trade Router MCP

by TradeRouter

Non-custodial Solana trading over MCP with swaps, conditional orders, portfolio reads, and local transaction signing.

Install Trade Router MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "traderouter-trade-router-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@traderouter/trade-router-mcp"
      ],
      "env": {
        "TRADEROUTER_PRIVATE_KEY": "YOUR_VALUE_HERE",
        "SOLANA_RPC_URL": "YOUR_VALUE_HERE",
        "TRADEROUTER_SERVER_PUBKEY": "YOUR_VALUE_HERE",
        "TRADEROUTER_SERVER_PUBKEY_NEXT": "YOUR_VALUE_HERE",
        "TRADEROUTER_REQUIRE_SERVER_SIGNATURE": "YOUR_VALUE_HERE",
        "TRADEROUTER_REQUIRE_ORDER_CREATED_SIGNATURE": "YOUR_VALUE_HERE",
        "TRADEROUTER_DRY_RUN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env TRADEROUTER_PRIVATE_KEY=YOUR_VALUE_HERE --env SOLANA_RPC_URL=YOUR_VALUE_HERE --env TRADEROUTER_SERVER_PUBKEY=YOUR_VALUE_HERE --env TRADEROUTER_SERVER_PUBKEY_NEXT=YOUR_VALUE_HERE --env TRADEROUTER_REQUIRE_SERVER_SIGNATURE=YOUR_VALUE_HERE --env TRADEROUTER_REQUIRE_ORDER_CREATED_SIGNATURE=YOUR_VALUE_HERE --env TRADEROUTER_DRY_RUN=YOUR_VALUE_HERE --transport stdio traderouter-trade-router-mcp -- npx -y @traderouter/trade-router-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @traderouter/trade-router-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

TradeRouter/trade-router-mcp MCP server connects AI agents to TradeRouter.ai for non-custodial Solana swaps and automated order strategies. It signs transactions locally with a configured base58 private key, submits signed swaps through Jito-protected execution, and verifies selected server messages with Ed25519. Use it when an agent needs wallet holdings, token data, swaps, limit orders, trailing orders, TWAPs, DCA-style execution, or combined order triggers across supported Solana venues. The package runs through npx as a standard MCP stdio server and supports custom RPC and dry-run configuration.

Use cases

  • Execute Solana swaps from an AI agent
  • Create limit, trailing, or TWAP orders
  • Monitor wallet holdings and token market data
  • Inspect, cancel, or extend active orders
  • Test write-tool arguments with dry-run mode

Key features

  • Local signing with a base58 Solana private key
  • Multi-DEX swap routing across four Solana venues
  • Limit, trailing, TWAP, DCA, and combined orders
  • Jito bundle submission for protected swaps
  • Ed25519 verification for selected server messages
  • Persistent WebSocket order management

Tools21

What Trade Router MCP lets your agent do. Expand a tool for its parameters.

Self-reported~262 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/27 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @traderouter/trade-router-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads853Package downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed21Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Trade Router MCP works

What TradeRouter/trade-router-mcp does

TradeRouter/trade-router-mcp exposes TradeRouter.ai’s Solana trading functions as MCP tools for AI agents. It supports wallet address lookup, token holdings, market-cap and price queries, trade-card URLs, swaps, and order management. Swap routing covers Raydium, PumpSwap, Orca, and Meteora.

The order tools cover direct limit and trailing orders, time-weighted average price (TWAP) execution, and multi-stage combinations. These combinations can use a limit or trailing trigger before TWAP execution, or combine limit and trailing conditions before a single swap or TWAP sequence. Agents can list active orders, inspect an order, cancel it, extend its expiry, and review filled-order activity.

How it works

The package communicates with TradeRouter.ai over HTTP for swap construction and related reads, and uses a persistent WebSocket for limit, trailing, DCA, TWAP, and combined orders. A swap can be handled in two stages: the agent requests an unsigned transaction, then submits a manually signed transaction. Alternatively, auto_swap builds, signs, and submits the transaction in one tool call.

The private key is loaded from the local TRADEROUTER_PRIVATE_KEY environment variable and used for signing in the MCP process. The documented signing flow sends the wallet’s public address to the API, receives an unsigned transaction, signs it locally, and sends only the signed transaction onward. Signed swaps are submitted through the /protect endpoint using a Jito bundle. Server messages related to order creation, fills, and TWAP execution are checked against an Ed25519 trust anchor before being accepted.

Setup and configuration

TradeRouter/trade-router-mcp requires Node.js 18 or newer and a Solana wallet private key in base58 format. The documented installation command is:

Terminal
npx -y @traderouter/trade-router-mcp

Configure it as a stdio MCP server by setting TRADEROUTER_PRIVATE_KEY in the client environment. A dedicated trading wallet is recommended by the project rather than a wallet containing primary holdings.

SOLANA_RPC_URL can replace the default Solana mainnet RPC endpoint for read operations. Signature verification can be configured with TRADEROUTER_SERVER_PUBKEY, TRADEROUTER_SERVER_PUBKEY_NEXT, TRADEROUTER_REQUIRE_SERVER_SIGNATURE, and TRADEROUTER_REQUIRE_ORDER_CREATED_SIGNATURE. Setting TRADEROUTER_DRY_RUN=true makes write tools return their tool name and arguments without calling the API; read-only tools continue to run normally.

Tools and capabilities

The 21 tools include:

  • Build unsigned swaps or submit manually signed swaps.
  • Build, sign, and submit swaps in one call.
  • Read wallet holdings, market data, and trade-card image URLs.
  • Create limit, trailing, TWAP, and combined trigger orders.
  • Connect and inspect a wallet’s persistent WebSocket state.
  • List, inspect, cancel, or extend orders and retrieve fill logs.

Limitations and notes

TradeRouter/trade-router-mcp is specific to Solana and requires access to a configured private key for write operations. The private key should not be treated as an ordinary application secret shared with the remote API; the documented design keeps it in the local process. Swap actions carry a flat 1% fee on swap volume, while the documented holdings and market-data reads are free. Dry-run mode prevents write calls but does not simulate blockchain execution or order results.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Trade Router MCP

TradeRouter/trade-router-mcp is an MCP server that connects AI agents to TradeRouter.ai for non-custodial Solana trading. Its main tools build, sign, and submit swaps; read wallet holdings and token data; create limit, trailing, TWAP, DCA, and combined orders; and manage order status, cancellation, expiry, connections, and fill logs.

Install it with `npx -y @traderouter/trade-router-mcp`. Configure the command as a stdio MCP server in a compatible client and provide `TRADEROUTER_PRIVATE_KEY` in the client environment. Node.js 18 or newer is required.

Yes, TradeRouter/trade-router-mcp works with Cursor through its standard MCP configuration. Add the npx command and set `TRADEROUTER_PRIVATE_KEY` in the server environment.

The private key is read locally, used for signing in the MCP process, and not transmitted, logged, or persisted by the documented flow. The API receives the wallet address and unsigned transaction workflow, while only signed transactions leave the machine.

Yes, set `TRADEROUTER_DRY_RUN=true` to make write-action tools return a dry-run response containing the tool and arguments instead of calling the API. Read-only tools still execute normally.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTrade Router MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/traderouter-trade-router-mcp?style=directory)](https://allmcps.com/mcp/traderouter-trade-router-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/traderouter-trade-router-mcp"><img src="https://allmcps.com/api/badge/traderouter-trade-router-mcp?style=directory" alt="Trade Router MCP on AllMCPs" /></a>