AgentHubAgentHub

trade-router-mcp

MCP ServerMCP Registry官方收录

io.github.TradeRouter/trade-router-mcp · v1.0.9

Non-custodial Solana swap & limit order engine for AI agents.

概览

trade-router-mcp 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "trade-router-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@traderouter/trade-router-mcp"
      ],
      "env": {
        "TRADEROUTER_PRIVATE_KEY": "<TRADEROUTER_PRIVATE_KEY>"
      }
    }
  }
}

环境变量

TRADEROUTER_PRIVATE_KEY必填secret

Solana base58-encoded private key. Local signing only, never transmitted. See SECURITY.md.

SOLANA_RPC_URL可选

Optional RPC endpoint override (default https://api.mainnet-beta.solana.com).

TRADEROUTER_SERVER_PUBKEY可选

Optional override for the server public key used to verify order_filled ed25519 signatures.

TRADEROUTER_SERVER_PUBKEY_NEXT可选

Optional second server public key accepted during key rotation.

TRADEROUTER_REQUIRE_SERVER_SIGNATURE可选

Default 'true'. Verify server signatures on order_filled / twap_execution.

TRADEROUTER_REQUIRE_ORDER_CREATED_SIGNATURE可选

Default 'true'. Verify server signatures on order_created.

TRADEROUTER_DRY_RUN可选

Default '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.

相关资源

统一 Manifest

{
  "id": "io.github.TradeRouter/trade-router-mcp",
  "type": "mcp-server",
  "version": "1.0.9",
  "displayName": "trade-router-mcp",
  "description": "Non-custodial Solana swap & limit order engine for AI agents.",
  "repository": {
    "url": "https://github.com/TradeRouter/trade-router-mcp",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "@traderouter/trade-router-mcp",
        "version": "1.0.9",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "TRADEROUTER_PRIVATE_KEY",
            "description": "Solana base58-encoded private key. Local signing only, never transmitted. See SECURITY.md.",
            "isRequired": true,
            "isSecret": true
          },
          {
            "name": "SOLANA_RPC_URL",
            "description": "Optional RPC endpoint override (default https://api.mainnet-beta.solana.com)."
          },
          {
            "name": "TRADEROUTER_SERVER_PUBKEY",
            "description": "Optional override for the server public key used to verify order_filled ed25519 signatures."
          },
          {
            "name": "TRADEROUTER_SERVER_PUBKEY_NEXT",
            "description": "Optional second server public key accepted during key rotation."
          },
          {
            "name": "TRADEROUTER_REQUIRE_SERVER_SIGNATURE",
            "description": "Default 'true'. Verify server signatures on order_filled / twap_execution."
          },
          {
            "name": "TRADEROUTER_REQUIRE_ORDER_CREATED_SIGNATURE",
            "description": "Default 'true'. Verify server signatures on order_created."
          },
          {
            "name": "TRADEROUTER_DRY_RUN",
            "description": "Default '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."
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.TradeRouter/trade-router-mcp",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.TradeRouter%2Ftrade-router-mcp/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
trade-router-mcp — MCP Server 安装与配置 · AgentHub