Connects Claude to the TradeStaq platform for crypto trading automation. You get 31 tools covering strategy creation, backtesting, bot deployment, and portfolio management across exchanges like Binance, Bybit, OKX, and Hyperliquid. Generate strategies from natural language prompts, backtest them historically, then deploy as paper or live bots. Also includes copy trading via a leaderboard, position monitoring with live PnL, and performance analytics. Auth uses OAuth PKCE with browser flow or direct JWT, stored locally with 0600 permissions. Available via npx for stdio or remotely over HTTP. Defaults to paper trading unless you explicitly pass the live flag.
Public tool metadata for what this MCP can expose to an agent.
loginLog in to TradeStaq with email and password.2 paramsLog in to TradeStaq with email and password.
emailstringpasswordstringauthenticateLog in to TradeStaq via browser. Opens a login page in your browser — you authenticate there and the token is saved automatically. No credentials enter the chat.Log in to TradeStaq via browser. Opens a login page in your browser — you authenticate there and the token is saved automatically. No credentials enter the chat.
No parameter schema in public metadata yet.
check_authCheck if you are authenticated with TradeStaq.Check if you are authenticated with TradeStaq.
No parameter schema in public metadata yet.
set_tokenManually set a JWT token. For advanced use only.2 paramsManually set a JWT token. For advanced use only.
tokenstringbaseUrlstringconnect_exchangeConnect a new exchange account via browser. Opens a page where you securely enter your exchange API keys. Keys never enter the chat.Connect a new exchange account via browser. Opens a page where you securely enter your exchange API keys. Keys never enter the chat.
No parameter schema in public metadata yet.
logoutRemove stored TradeStaq credentials.Remove stored TradeStaq credentials.
No parameter schema in public metadata yet.
get_priceGet the current price of a trading pair (e.g. BTC/USDT).2 paramsGet the current price of a trading pair (e.g. BTC/USDT).
symbolstringexchangestringget_candlesGet OHLCV candlestick data for a trading pair.4 paramsGet OHLCV candlestick data for a trading pair.
limitnumbersymbolstringexchangestringtimeframestring1m · 5m · 15m · 1h · 4h · 1ddefault: 1hlist_exchangesList your connected exchange accounts with their IDs, platform names, and status.List your connected exchange accounts with their IDs, platform names, and status.
No parameter schema in public metadata yet.
search_marketsSearch for trading pairs on a specific exchange. Use list_exchanges to find your exchange IDs.2 paramsSearch for trading pairs on a specific exchange. Use list_exchanges to find your exchange IDs.
querystringexchangestringget_portfolioGet portfolio overview: total balance, exchanges, and active bots.Get portfolio overview: total balance, exchanges, and active bots.
No parameter schema in public metadata yet.
get_positionsGet all open trading positions with current PnL.1 paramsGet all open trading positions with current PnL.
exchangestringlist_strategiesList available trading strategies.1 paramsList available trading strategies.
ownedbooleanget_strategyGet detailed info about a specific strategy.1 paramsGet detailed info about a specific strategy.
idstringexplain_strategyGet a plain-English explanation of a strategy: what it does, risk profile, best market conditions.1 paramsGet a plain-English explanation of a strategy: what it does, risk profile, best market conditions.
idstringcompare_strategiesCompare multiple strategies side by side on key metrics.1 paramsCompare multiple strategies side by side on key metrics.
idsarraycreate_strategyCreate a new trading strategy from TradeDroid code.5 paramsCreate a new trading strategy from TradeDroid code.
codestringnamestringmarketstringspot · futuresdefault: futurestimeframestringdescriptionstringgenerate_strategyGenerate a trading strategy from a natural language description using AI. Describe what you want and AI creates the TradeDroid code.3 paramsGenerate a trading strategy from a natural language description using AI. Describe what you want and AI creates the TradeDroid code.
marketstringspot · futuresdefault: futurestimeframestringdescriptionstringwhat_if_backtestRun a backtest on a strategy. Async, may take 30-120 seconds. Returns full performance metrics.6 paramsRun a backtest on a strategy. Async, may take 30-120 seconds. Returns full performance metrics.
periodstring1m · 3m · 6m · 1ydefault: 3msymbolstringexchangestringtimeframestringstrategyIdstringinitialBalancenumberget_backtest_resultsCheck status/results of a previously started backtest.1 paramsCheck status/results of a previously started backtest.
jobIdstringlist_botsList all your trading bots with status and performance.List all your trading bots with status and performance.
No parameter schema in public metadata yet.
get_bot_statusGet detailed status and performance for a specific bot.1 paramsGet detailed status and performance for a specific bot.
idstringdeploy_botDeploy a strategy as a trading bot. Defaults to paper trading for safety.8 paramsDeploy a strategy as a trading bot. Defaults to paper trading for safety.
livebooleannamestringsymbolstringleveragenumberstopLossnumberexchangeIdstringstrategyIdstringtakeProfitnumberstop_botStop a running trading bot. Open positions remain.1 paramsStop a running trading bot. Open positions remain.
idstringclose_positionClose an open trading position. WARNING: This executes a market order to close your position.4 paramsClose an open trading position. WARNING: This executes a market order to close your position.
symbolstringtradeIdstringexchangeIdstringpercentagenumberget_trade_historyGet your closed trade history with PnL, entry/exit prices, and duration.4 paramsGet your closed trade history with PnL, entry/exit prices, and duration.
pagenumberlimitnumbersymbolstringexchangestringget_performance_metricsGet trading performance metrics: ROI, win rate, PnL, Sortino ratio.3 paramsGet trading performance metrics: ROI, win rate, PnL, Sortino ratio.
timeRangestringtoday · 7d · 30d · 90ddefault: 30dtradeTypestringlive · paperexchangeIdstringlist_top_tradersBrowse the leaderboard of top-performing traders you can copy.3 paramsBrowse the leaderboard of top-performing traders you can copy.
limitnumberperiodstring7d · 30d · 90ddefault: 30dsortBystringroi · pnl · winRatedefault: roifollow_traderSubscribe to copy a top trader's trades. WARNING: This commits capital to copy trading.3 paramsSubscribe to copy a top trader's trades. WARNING: This commits capital to copy trading.
masterIdstringexchangeIdstringmultipliernumbersuggest_strategiesSuggest trading strategies matching your risk profile. Filters by risk tolerance, max drawdown, preferred assets, and minimum Sharpe ratio.4 paramsSuggest trading strategies matching your risk profile. Filters by risk tolerance, max drawdown, preferred assets, and minimum Sharpe ratio.
minSharpenumbermaxDrawdownnumberriskTolerancestringconservative · moderate · aggressivedefault: moderatepreferredAssetsarrayget_market_contextGet market context for a symbol: trend direction, volatility level, support/resistance levels.3 paramsGet market context for a symbol: trend direction, volatility level, support/resistance levels.
symbolstringtimeframestring1h · 4h · 1ddefault: 4hexchangeIdstring31 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
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
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.
After adding the server, ask your AI assistant to log in:
Credentials never enter the chat when using the browser flow. Token is stored locally at ~/.tradestaq/mcp-config.json with restricted permissions (0600).
| 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 |
| 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 |
| Tool | Description |
|---|---|
get_portfolio | Total balance, exchanges, active bots |
get_positions | Open positions with live PnL |
| 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 |
| Tool | Description |
|---|---|
what_if_backtest | Run a historical backtest (async, 30-120s) |
get_backtest_results | Check status of a running backtest |
| 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.
| Tool | Description |
|---|---|
get_trade_history | Closed trades with PnL, entry/exit prices |
get_performance_metrics | ROI, win rate, Sortino ratio, PnL breakdown |
| Tool | Description |
|---|---|
list_top_traders | Browse the leaderboard of top traders |
follow_trader | Subscribe to copy a trader's trades |
| Tool | Description |
|---|---|
suggest_strategies | Match strategies to your risk profile |
get_market_context | Trend, volatility, support/resistance for a symbol |
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.
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 |
stdio HTTPS
┌──────────────┐◄──────────►┐ ┌────────────────►┌──────────────┐
│Claude Desktop│ │ │ │ │
│Cursor / CLI │ │ tradestaq-mcp │ Bearer JWT │ TradeStaq │
└──────────────┘ │ 31 tools │◄────────────────│ API │
│ 3 prompts │ │ │
┌──────────────┐ HTTP+SSE │ 3 resources │ └──────────────┘
│ Any MCP │◄──────────►│ │
│ client (web) │ └──────────────────┘
└──────────────┘
--http flag)https://mcp.tradestaq.com/mcp for remote clientsnpm 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)
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.
deploy_bot, stop_bot, close_position, and follow_trader are destructive operations (AI confirms with user)MIT
io.github.shelvick/shopify-subscription-reconciliation
zleventer/google-ads-mcp
csoai-org/meok-stripe-acp-checkout-mcp
io.github.mharnett/google-ads
csoai-org/stripe-billing-mcp
co.pipeboard/google-ads-mcp