TradeStaq MCP
OfficialTradeStaq MCP provides 31 AI-powered crypto trading tools, letting you manage your entire trading workflow through natural language conversation with MCP clients like Claude or Cursor.
Authentication & Account Management
Log in via email/password or browser-based OAuth (PKCE), check auth status and active scopes
Connect exchange accounts (Binance, Bybit, OKX, Bitget, Hyperliquid, dYdX, and more)
Create paper-trading accounts with a virtual balance; manually set JWT tokens for advanced use
Market Data
Get real-time prices, 24h change, and volume for any trading pair
Retrieve OHLCV candlestick data across timeframes (1m to 1d)
Search trading pairs on specific exchanges and list all connected accounts
Portfolio & Positions
View portfolio overview: total balance, connected exchanges, and active bots
Monitor all open positions with live PnL
Strategy Management
Browse the marketplace or your own strategies; get detailed info, plain-English explanations, and side-by-side comparisons
Create strategies from TradeDroid code or generate them from natural language using AI
Backtesting
Run async historical backtests (30–120s) with configurable periods, symbols, timeframes, and initial balance
Check status, retrieve results, and export as CSV or PDF
Bot Management
Deploy strategies as paper or live trading bots with configurable leverage and risk parameters
List bots with status and performance, view detailed metrics, stop bots, export trade history
Close open positions (full or partial) via market order
Trade History & Performance
Retrieve closed trade history with PnL, entry/exit prices, and duration
Analyze performance metrics: ROI, win rate, Sortino ratio, and PnL breakdown
Copy Trading
Browse a leaderboard of top traders (sortable by ROI, PnL, win rate)
Follow and copy their trades with a configurable size multiplier
AI Advisor
Get strategy suggestions matched to your risk profile, drawdown tolerance, and preferred assets
Retrieve market context for any symbol: trend direction, volatility, and support/resistance levels
Prompts & Resources
Built-in prompt templates for Trading Assistant, Strategy Builder, and Portfolio Reviewer
Browsable resources for portfolio, bots, and strategies for AI clients
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TradeStaq MCPShow me my portfolio"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TradeStaq MCP Server
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_strategyQuick 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-mcpOption C: Clone and build
git clone https://github.com/the-staq/tradestaq-mcp.git
cd tradestaq-mcp
npm install
npm run buildThen point your MCP client to dist/index.js.
Related MCP server: Trading MCP Server
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 |
| Log in with email and password |
| Log in via browser (OAuth + PKCE) |
| Check authentication status |
| Manually set a JWT token |
| Connect an exchange account via browser |
| Remove stored credentials |
Market Data
Tool | Description |
| Current price, 24h change, volume |
| OHLCV candlestick data (1m to 1d) |
| List connected exchange accounts |
| Find trading pairs on a specific exchange |
Portfolio
Tool | Description |
| Total balance, exchanges, active bots |
| Open positions with live PnL |
Strategies
Tool | Description |
| Browse marketplace or your own strategies |
| Full strategy details and performance |
| Plain-English explanation with risk profile |
| Side-by-side metrics comparison |
| Create a strategy from TradeDroid code |
| Generate a strategy from natural language using AI |
Backtesting
Tool | Description |
| Run a historical backtest (async, 30-120s) |
| Check status of a running backtest |
Bot Management
Tool | Description |
| All bots with status and performance |
| Detailed bot metrics and config |
| Deploy a strategy as a trading bot |
| Stop a running bot |
| Close an open position (full or partial) |
deploy_bot defaults to paper trading. Pass live: true for real money.
Trade History
Tool | Description |
| Closed trades with PnL, entry/exit prices |
| ROI, win rate, Sortino ratio, PnL breakdown |
Copy Trading
Tool | Description |
| Browse the leaderboard of top traders |
| Subscribe to copy a trader's trades |
Advisor
Tool | Description |
| Match strategies to your risk profile |
| 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 |
| Balances, positions, and active bots |
Bots |
| All bots with status and PnL |
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,
--httpflag)Hosted at
https://mcp.tradestaq.com/mcpfor remote clientsJWT 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, andfollow_traderare destructive operations (AI confirms with user)
Links
Website: tradestaq.com
Documentation: tradestaq.com/docs
MCP & AI trading tools: tradestaq.com/mcp
Pricing: tradestaq.com/pricing
npm package: @the-staq/tradestaq-mcp
License
MIT
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/the-staq/tradestaq-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server