Trading MCP Server
Provides tools for cryptocurrency trading on Binance, including real-time market data retrieval, technical analysis indicators, account balance monitoring, and order management for both spot and perpetual futures markets.
Enables cryptocurrency trading on OKX with capabilities for fetching market data, calculating technical analysis signals, monitoring account balances, and managing orders for spot and perpetual futures.
Click on "Deploy 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., "@Trading MCP Server Analyze BTC/USDT and give me a buy or sell recommendation based on TA"
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.
Trading MCP Server
MCP (Model Context Protocol) server for cryptocurrency trading with Claude Desktop. Connect to MEXC, Binance, Bybit, and other exchanges via CCXT.
Features
20 Trading Tools for Claude Desktop
Multi-Exchange Support via CCXT (MEXC, Binance, Bybit, OKX, and 100+ more)
Demo Mode for safe testing
Real-time Market Data (tickers, orderbook, OHLCV, spreads)
Technical Analysis (RSI, MACD, EMA, Bollinger Bands, Stochastic)
Market Scanning (spread detection, TA signals, comprehensive opportunity finder)
Order Management (place, cancel, list)
Perpetual Futures (leverage, positions, P&L tracking)
Related MCP server: Binance MCP Server
Installation
npm install trading-mcp-serverQuick Start
1. Create .env file
EXCHANGE=mexc
MEXC_API_KEY=your_api_key
MEXC_SECRET=your_secret
TRADING_MODE=demo
MARKET_TYPE=spot2. Add to Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"trading": {
"command": "npx",
"args": ["trading-mcp-server"],
"env": {
"EXCHANGE": "mexc",
"MEXC_API_KEY": "your_key",
"MEXC_SECRET": "your_secret",
"TRADING_MODE": "demo"
}
}
}
}3. Restart Claude Desktop
Available Tools
Account Tools (2)
Tool | Description |
| Get account balance (spot or futures) |
| Get open futures positions with P&L |
Market Data Tools (6)
Tool | Description |
| Get current price for spot or perpetual pair |
| Get ticker data for multiple symbols at once |
| Get order book depth |
| Get historical candlesticks (OHLCV) |
| Get all USDT pairs with volume and spread |
| Get bid-ask spread for a pair |
Order Tools (4)
Tool | Description |
| Place spot or perpetual order (demo mode simulates) |
| Cancel an open order |
| Cancel all open orders (optionally for specific symbol) |
| List all open orders |
Futures Tools (2)
Tool | Description |
| Set leverage for perpetual futures (1-125x) |
| Get current leverage setting |
Technical Analysis Tools (2)
Tool | Description |
| Full TA analysis (RSI, MACD, EMA, Bollinger, Stochastic) with buy/sell/hold recommendation |
| Get specific indicator (RSI, MACD, EMA, Bollinger, Stochastic, or all) |
Market Scanning Tools (3)
Tool | Description |
| Scan ALL USDT pairs for TA signals, ranked by confidence |
| Find wide bid-ask spreads for market-making opportunities |
| Comprehensive scan combining spread, volume, and TA signals |
System Tools (1)
Tool | Description |
| Get current trading mode (demo/live) |
Total: 20 Tools (2 Account + 6 Market + 4 Order + 2 Futures + 2 TA + 3 Scanner + 1 System)
Example Prompts for Claude
Account & Balance
"Show my balance"
"Show my futures balance"
"What are my open positions?"Spot Trading
"Get the current price of BTC/USDT"
"Show me the top 10 pairs by volume"
"What's the spread on ETH/USDT?"
"Place a $50 market buy for SOL/USDT"Perpetual Futures Trading
"Set 10x leverage for BTC/USDT:USDT short positions"
"Place a short order for 0.001 BTC/USDT:USDT at $90,000 with 10x leverage"
"Place a limit sell for BTC/USDT:USDT with stop loss at $91,000 and take profit at $88,000"
"Get current leverage for BTC/USDT:USDT"Technical Analysis
"Run technical analysis on BTC/USDT"
"Find buy signals across all USDT pairs"
"What's the RSI for ETH/USDT on the 1h timeframe?"
"Show me all indicators for SOL/USDT"
"Find the top 10 buy signals with at least 60% confidence"Market Scanning
"Scan for wide spreads with high volume"
"Find the best trading opportunities right now"
"Show me pairs with spreads above 0.2% and volume over 100k USDT"
"Find opportunities sorted by combined score"Multi-Timeframe Analysis
"Analyze BTC/USDT across multiple timeframes"
"Find pairs with strong buy signals on 15m and 1h"Trading Modes
Mode | Description |
| Orders are simulated (safe for testing) |
| Orders are real (use with caution) |
Always start with demo mode!
Technical Analysis
The server includes 5 technical indicators:
Indicator | Description | Signal Generation |
RSI (14) | Relative Strength Index | Oversold <35, Overbought >65 |
MACD (12,26,9) | Moving Average Convergence Divergence | Crossovers and histogram |
EMA (9,21) | Exponential Moving Averages | Crossovers and trend |
Bollinger Bands (20,2) | Price bands based on std deviation | Position within bands |
Stochastic (14,3) | Momentum oscillator | Oversold <20, Overbought >80 |
TA Signal Confidence
The analyze_symbol_ta and find_ta_signals tools generate buy/sell recommendations based on consensus across all 5 indicators:
60%+ confidence (3/5 indicators agree) = Strong signal
80%+ confidence (4/5 indicators agree) = Very strong signal
100% confidence (5/5 indicators agree) = Unanimous signal
Market Scanning
Spread Scanner
Finds pairs with wide bid-ask spreads, useful for market-making strategies.
TA Signal Scanner
Scans all USDT pairs for technical analysis signals. Configurable:
Signal type (buy/sell/any)
Minimum confidence (1-100)
Timeframe (1m, 5m, 15m, 1h, 4h, 1d)
Volume filter
Result limit
Best Opportunities Scanner
Comprehensive scanner that combines:
Volume Score (20%): Higher volume = better liquidity
Spread Score (30%): Wider spread = more profit potential
TA Score (50%): Signal confidence from technical analysis
Returns opportunities sorted by combined score, confidence, volume, or spread.
Supported Exchanges
MEXC
Binance
Bybit
Bitget
OKX
And 100+ more via CCXT
Programmatic Usage
import { TradingMCPServer, ExchangeAdapter } from 'trading-mcp-server';
const server = new TradingMCPServer({
exchange: 'mexc',
apiKey: 'your_key',
secret: 'your_secret',
mode: 'demo',
marketType: 'spot'
});
await server.run();Configuration
Environment Variable | Description | Default |
| Exchange name |
|
| API key | - |
| API secret | - |
|
|
|
|
|
|
| Log level |
|
Scanner Defaults
Parameter | Default | Description |
| 50,000 | Minimum 24h volume to analyze |
| 100 | Maximum pairs to scan |
| 50 | Minimum TA signal confidence |
Security
Never share your API keys
Use API keys without withdrawal permission
Start with
demomodeSet conservative limits
Test with small amounts first
Changelog
v1.2.0
Added
cancel_all_orderstool (20 total tools)Added
clientOrderIdpassthrough for idempotent order placementImproved error logging in scanner tools
Added comprehensive
.env.exampletemplateAdded
.npmignorefor cleaner npm packagesBug fixes and stability improvements
Added 9 new tools (19 total, up from 10)
Technical analysis with 5 indicators
Market scanning for spreads and TA signals
Comprehensive opportunity finder
Multi-symbol analysis support
Futures positions tracking
v1.0.0
Initial release with 10 basic trading tools
Spot and perpetual futures support
Demo mode for safe testing
License
MIT
Available Tools
20 toolsanalyze_symbol_taA
Run full technical analysis on a symbol using RSI, MACD, EMA, Bollinger Bands, and Stochastic. Returns buy/sell/hold recommendation with confidence score.
Inputs: symbol (required), limit, timeframe.
cancel_all_ordersB
Cancel all open orders, optionally for a specific symbol
Inputs: symbol.
cancel_orderB
Cancel an open order by order ID
Inputs: symbol (required), orderId (required).
find_ta_signalsB
Scan trading pairs for technical analysis signals. Returns buy/sell opportunities ranked by confidence.
Inputs: limit, maxPairs, minVolume, timeframe, +3 more.
get_all_pairsC
Get all trading pairs with volume and spread data
Inputs: minVolume, quoteAsset.
get_balanceA
Get account balance. Returns free, used, and total balance for all currencies or a specific one.
Inputs: currency.
get_indicatorC
Get a specific technical indicator value (rsi, macd, ema, bollinger, stochastic)
Inputs: symbol (required), indicator (required), period, timeframe.
get_leverageC
Get current leverage for a perpetual futures symbol
Inputs: symbol (required), positionSide.
get_modeA
Get current trading mode (demo/live)
Inputs: no named parameters.
get_multiple_tickersA
Get ticker data for multiple symbols at once (max 50 symbols)
Inputs: symbols (required).
get_ohlcvC
Get historical candlestick data (OHLCV). Timeframes: 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w
Inputs: symbol (required), timeframe (required), limit, since.
get_open_ordersB
Get all open orders, optionally filtered by symbol
Inputs: symbol.
get_orderbookC
Get order book depth for a trading pair
Inputs: symbol (required), limit.
get_positionsA
Get open positions with P&L (futures/perpetual only)
Inputs: no named parameters.
get_spreadC
Get bid-ask spread for a trading pair
Inputs: symbol (required).
get_tickerA
Get current price for a trading pair (e.g., BTC/USDT or BTC/USDT:USDT for perpetual)
Inputs: symbol (required).
place_orderA
Place a buy or sell order. Amounts and prices must be strings (e.g., "0.001", "89600.25"). In demo mode, orders are simulated.
Inputs: side (required), type (required), amount (required), symbol (required), +6 more.
scan_best_opportunitiesC
Comprehensive market scan combining spread, volume, and TA signals. Returns the best trading opportunities.
Inputs: sortBy, minSpread, minVolume, timeframe, +4 more.
scan_spreadsC
Scan for wide bid-ask spreads across trading pairs. Useful for market-making opportunities.
Inputs: limit, maxPairs, minSpread, minVolume, +1 more.
set_leverageB
Set leverage for perpetual futures trading (e.g., BTC/USDT:USDT with 10x leverage). Supports isolated/cross margin.
Inputs: symbol (required), leverage (required), marginType, positionSide.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools have clearly distinct purposes (e.g., get_balance, place_order, get_orderbook). However, the three scanning tools (find_ta_signals, scan_spreads, scan_best_opportunities) overlap in scope and could cause misselection, and get_ticker vs get_multiple_tickers is slightly redundant.
All tool names follow a consistent verb_noun pattern with clear verbs like get, place, cancel, set, analyze, find, and scan. No mixed conventions or vague generic names are present.
With 20 tools, the server is slightly above the ideal 3-15 range, but the breadth of market data, account management, order execution, and technical analysis scanning justifies the count. It feels comprehensive rather than bloated.
Core trading operations are covered (place/cancel orders, get balances, positions, market data, leverage). However, there is no way to retrieve order history or the status of a specific filled/canceled order, and no order update/modify capability, leaving gaps in the order lifecycle.
Maintenance
Related MCP Connectors
Live crypto + IDX stock market intelligence for AI agents — 19 tools, no API key.
Crypto screener for AI agents: Binance, Bybit, OKX, Hyperliquid data, trends, charts and alerts.
Trade 16 crypto exchanges + MetaTrader 5 from your AI assistant via one MCP connection.
Read-only access to your own crypto portfolio across 11+ exchanges and 20+ chains: holdings, full history, FIFO cost basis and P&L, fees and income. Ask Claude or ChatGPT about your portfolio; the connector can never trade, move funds or act as a login.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to interact with Hyperliquid DEX for trading perpetual futures using natural language, supporting 27 tools across trading, account management, market data analysis, and real-time WebSocket subscriptions.36MIT
- AlicenseCqualityBmaintenanceProvides over 156 tools to interact with the Binance.com global exchange API for spot trading, wallet management, and staking operations. It enables users to execute orders, retrieve market data, and manage crypto assets through natural language interfaces like Claude and ChatGPT.195134 npm40MIT
- AlicenseBqualityBmaintenanceProvides 32 trading analysis tools for AI-powered market analysis, including real-time data, technical indicators, options Greeks, scanners, and Interactive Brokers portfolio management, all accessible via natural language in Claude Desktop.36412MIT
- AlicenseAqualityDmaintenanceProvides comprehensive Binance trading capabilities through Claude Desktop, including account management, spot and futures trading, market data, and advanced analysis tools.35366 npm10MIT