io.github.the-staq/tradestaq-mcp

Registre officiel Finance et paiements

AI-powered crypto trading tools. Strategies, backtests, bots, and portfolio management.

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

NPM package @the-staq/tradestaq-mcp
Claude Code
claude mcp add tradestaq-mcp -- npx -y @the-staq/tradestaq-mcp@0.6.3
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "tradestaq-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@the-staq/tradestaq-mcp@0.6.3"
            ]
        }
    }
}

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. TradeStaq MCP Server
  2. Quick Start
  3. Authenticate
  4. Tools
  5. Prompt Templates
  6. Resources
  7. Architecture
  8. Development
  9. Error Handling
  10. Security
  11. Links
  12. License

TradeStaq MCP Server

Website · Docs · MCP / AI Tools · Pricing

46 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"
    }
  }
}

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
ToolDescription
loginLog in with email and password
authenticateLog in via browser (OAuth + PKCE)
check_authCheck authentication status
set_tokenManually set a JWT token
connect_exchangeConnect an exchange account via browser
logoutRemove stored credentials
Market Data
ToolDescription
get_priceCurrent price, 24h change, volume
get_candlesOHLCV candlestick data (1m to 1d)
list_exchangesList connected exchange accounts
search_marketsFind trading pairs on a specific exchange
Portfolio
ToolDescription
get_portfolioTotal balance, exchanges, active bots
get_positionsOpen positions with live PnL
Strategies
ToolDescription
list_strategiesBrowse marketplace or your own strategies
get_strategyFull strategy details and performance
explain_strategyPlain-English explanation with risk profile
compare_strategiesSide-by-side metrics comparison
create_strategyCreate a strategy from TradeDroid code
generate_strategyGenerate a strategy from natural language using AI
Backtesting
ToolDescription
what_if_backtestRun a historical backtest (async, 30-120s)
get_backtest_resultsCheck status of a running backtest
Bot Management
ToolDescription
list_botsAll bots with status and performance
get_bot_statusDetailed bot metrics and config
get_bot_logsRun-by-run history: why a bot did or did not trade, dropped signals, errors
deploy_botDeploy a strategy as a trading bot
update_botChange risk settings, notifications, or stopAfterClose (pause once the current position closes)
stop_botStop a running bot now (open positions are left unmanaged)
close_positionClose an open position (full or partial)

deploy_bot defaults to paper trading. Pass live: true for real money. The bot trades on the strategy's own timeframe; pass timeframe (e.g. 4h) only to override it. Leave out name and the server names the bot.

Trade History
ToolDescription
get_trade_historyClosed trades with PnL, entry/exit prices
get_performance_metricsROI, win rate, Sortino ratio, PnL breakdown
Copy Trading
ToolDescription
list_top_tradersBrowse the leaderboard of top traders
follow_traderSubscribe to copy a trader's trades
Advisor
ToolDescription
suggest_strategiesMatch strategies to your risk profile
get_market_contextTrend, 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:

ResourceURIDescription
Portfoliotradestaq://portfolioBalances, positions, and active bots
Botstradestaq://botsAll bots with status and PnL
Strategiestradestaq://strategiesStrategy catalog with ratings

Architecture

                    stdio                                    HTTPS
┌──────────────┐◄──────────►┐                  ┌────────────────►┌──────────────┐
│Claude Desktop│             │                  │                 │              │
│Cursor / CLI  │             │  tradestaq-mcp   │   Bearer JWT    │  TradeStaq   │
└──────────────┘             │  46 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)

License

MIT

Questions fréquentes

Qu'est-ce que io.github.the-staq/tradestaq-mcp ?

AI-powered crypto trading tools. Strategies, backtests, bots, and portfolio management.

Comment installer io.github.the-staq/tradestaq-mcp ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add tradestaq-mcp -- npx -y @the-staq/tradestaq-mcp@0.6.3. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour io.github.the-staq/tradestaq-mcp ?

Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.

io.github.the-staq/tradestaq-mcp est-il open source ?

Son code est public sur GitHub, mais le dépôt ne déclare pas de licence standard.

Qui maintient io.github.the-staq/tradestaq-mcp ?

Il est publié par the-staq. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.