Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
TradeStaq MCP logo

TradeStaq MCP

the-staq/tradestaq-mcp
0 starsv0.1.1STDIORegistry activeUpdated 2026-04-22Community

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

claude mcp add tradestaq -- npx -y @the-staq/tradestaq-mcp

Summary

Provides 31 AI-powered crypto trading tools for Claude, Cursor, and any MCP client, enabling strategy creation, backtesting, bot deployment, copy trading, and portfolio management across multiple exchanges.

Connect from your MCP client

One-click install

Add this server to your editor with a single click. Fill in any required credentials afterward.

Claude Code

Run this once and Claude Code registers the server for you:

claude mcp add tradestaq -- npx -y @the-staq/tradestaq-mcp

Claude Desktop

Add this to claude_desktop_config.json under Settings → Developer → Edit Config:

{
  "mcpServers": {
    "tradestaq": {
      "command": "npx",
      "args": [
        "-y",
        "@the-staq/tradestaq-mcp"
      ]
    }
  }
}

Cursor

Add this to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{
  "mcpServers": {
    "tradestaq": {
      "command": "npx",
      "args": [
        "-y",
        "@the-staq/tradestaq-mcp"
      ]
    }
  }
}

Cline and other MCP clients

Most MCP clients accept the standard mcpServers JSON block:

{
  "mcpServers": {
    "tradestaq": {
      "command": "npx",
      "args": [
        "-y",
        "@the-staq/tradestaq-mcp"
      ]
    }
  }
}

Codex CLI

Register the server with OpenAI's Codex CLI — run this once, or add the equivalent block to ~/.codex/config.toml:

codex mcp add tradestaq -- npx -y @the-staq/tradestaq-mcp

# or add to ~/.codex/config.toml:
[mcp_servers.tradestaq]
command = "npx"
args = ["-y", "@the-staq/tradestaq-mcp"]

OpenClaw

OpenClaw reads MCP servers from the mcp.servers section of ~/.openclaw/openclaw.json (managed via `openclaw mcp add` or the mcporter skill):

{
  "mcp": {
    "servers": {
      "tradestaq": {
        "command": "npx",
        "args": [
          "-y",
          "@the-staq/tradestaq-mcp"
        ]
      }
    }
  }
}

README.md

TradeStaq MCP Server

![npm version](https://www.npmjs.com/package/@the-staq/tradestaq-mcp) ![License: MIT](https://opensource.org/licenses/MIT)

Website · Docs · MCP / AI Tools · Pricing

31 AI-powered trading tools for Claude, Cursor, and any MCP client.

Create strategies, backtest them, deploy trading bots, copy top traders, monitor positions, and manage your crypto portfolio, all from conversation. Supports Binance, Bybit, OKX, Bitget, Hyperliquid, dYdX, and more.

"Show me my portfolio" → get_portfolio
"Backtest GhostRider on BTC/USDT for 3 months" → what_if_backtest
"Deploy it on my Binance account" → deploy_bot
"Who are the top traders this month?" → list_top_traders
"Generate a momentum strategy for ETH" → generate_strategy

Quick Start

Option A: Remote server (no install needed)

For MCP clients that support HTTP transport:

{
  "mcpServers": {
    "tradestaq": {
      "url": "https://mcp.tradestaq.com/mcp"
    }
  }
}

Option B: npx (recommended for local)

No clone, no build. Just add to your MCP config:

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "tradestaq": {
      "command": "npx",
      "args": ["-y", "@the-staq/tradestaq-mcp"]
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "tradestaq": {
      "command": "npx",
      "args": ["-y", "@the-staq/tradestaq-mcp"]
    }
  }
}

Claude Code:

claude mcp add tradestaq -- npx -y @the-staq/tradestaq-mcp

Option C: Clone and build

git clone https://github.com/the-staq/tradestaq-mcp.git
cd tradestaq-mcp
npm install
npm run build

Then point your MCP client to dist/index.js.

Authenticate

After adding the server, ask your AI assistant to log in:

  • "Log me in to TradeStaq" — uses email/password directly
  • "Authenticate with TradeStaq" — opens a browser window for secure OAuth login

Credentials never enter the chat when using the browser flow. Token is stored locally at ~/.tradestaq/mcp-config.json with restricted permissions (0600).

Tools

Auth

| Tool | Description | |------|-------------| | login | Log in with email and password | | authenticate | Log in via browser (OAuth + PKCE) | | check_auth | Check authentication status | | set_token | Manually set a JWT token | | connect_exchange | Connect an exchange account via browser | | logout | Remove stored credentials |

Market Data

| Tool | Description | |------|-------------| | get_price | Current price, 24h change, volume | | get_candles | OHLCV candlestick data (1m to 1d) | | list_exchanges | List connected exchange accounts | | search_markets | Find trading pairs on a specific exchange |

Portfolio

| Tool | Description | |------|-------------| | get_portfolio | Total balance, exchanges, active bots | | get_positions | Open positions with live PnL |

Strategies

| Tool | Description | |------|-------------| | list_strategies | Browse marketplace or your own strategies | | get_strategy | Full strategy details and performance | | explain_strategy | Plain-English explanation with risk profile | | compare_strategies | Side-by-side metrics comparison | | create_strategy | Create a strategy from TradeDroid code | | generate_strategy | Generate a strategy from natural language using AI |

Backtesting

| Tool | Description | |------|-------------| | what_if_backtest | Run a historical backtest (async, 30-120s) | | get_backtest_results | Check status of a running backtest |

Bot Management

| Tool | Description | |------|-------------| | list_bots | All bots with status and performance | | get_bot_status | Detailed bot metrics and config | | deploy_bot | Deploy a strategy as a trading bot | | stop_bot | Stop a running bot | | close_position | Close an open position (full or partial) |

deploy_bot defaults to paper trading. Pass live: true for real money.

Trade History

| Tool | Description | |------|-------------| | get_trade_history | Closed trades with PnL, entry/exit prices | | get_performance_metrics | ROI, win rate, Sortino ratio, PnL breakdown |

Copy Trading

| Tool | Description | |------|-------------| | list_top_traders | Browse the leaderboard of top traders | | follow_trader | Subscribe to copy a trader's trades |

Advisor

| Tool | Description | |------|-------------| | suggest_strategies | Match strategies to your risk profile | | get_market_context | Trend, volatility, support/resistance for a symbol |

Prompt Templates

Trading Assistant — Start a conversation about your portfolio and positions. The AI calls get_portfolio and get_positions to ground its responses in your actual data.

Strategy Builder — Walk through creating, backtesting, and deploying a strategy. Pass an optional goal like "momentum strategy for ETH" to get focused suggestions.

Portfolio Reviewer — Deep analysis of your portfolio, positions, trade history, and performance. Identifies what's working, what isn't, and suggests improvements.

Resources

MCP resources provide browsable data that AI clients can read directly:

| Resource | URI | Description | |----------|-----|-------------| | Portfolio | tradestaq://portfolio | Balances, positions, and active bots | | Bots | tradestaq://bots | All bots with status and PnL | | Strategies | tradestaq://strategies | Strategy catalog with ratings |

Architecture

                    stdio                                    HTTPS
┌──────────────┐◄──────────►┐                  ┌────────────────►┌──────────────┐
│Claude Desktop│             │                  │                 │              │
│Cursor / CLI  │             │  tradestaq-mcp   │   Bearer JWT    │  TradeStaq   │
└──────────────┘             │  31 tools        │◄────────────────│  API         │
                             │  3 prompts       │                 │              │
┌──────────────┐  HTTP+SSE  │  3 resources      │                 └──────────────┘
│ Any MCP      │◄──────────►│                  │
│ client (web) │             └──────────────────┘
└──────────────┘
  • Two transports: stdio (local, default) and HTTP+SSE (remote, --http flag)
  • Hosted at https://mcp.tradestaq.com/mcp for remote clients
  • JWT auth via OAuth PKCE or email/password login
  • All tools return structured JSON with error contract
  • Token auto-refresh when expiring within 1 hour

Development

npm run dev        # watch mode with tsx
npm run build      # compile TypeScript
npm run lint       # type check without emitting
npm test           # run tests
npm start          # run server (stdio)
npm run start:http # run server (HTTP+SSE on port 3100)

Error Handling

All tool errors return structured responses:

{
  "error": {
    "code": "INSUFFICIENT_BALANCE",
    "message": "Human-readable description",
    "retryable": true,
    "retryAfterMs": 5000
  }
}

Error codes: AUTH_EXPIRED, TIMEOUT, RATE_LIMITED, NETWORK_ERROR, HTTP_4xx, HTTP_5xx.

Security

  • Credentials never enter AI conversation history
  • OAuth PKCE flow with browser-based authentication
  • Token stored with 0600 file permissions
  • Localhost-only OAuth callbacks
  • deploy_bot, stop_bot, close_position, and follow_trader are destructive operations (AI confirms with user)

Links

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Cloud & DevOps servers.