CCXT MCP Server
Provides tools for accessing Binance through CCXT, including exchange initialization/status, market listings, tickers, order books, recent trades, OHLCV candles, price comparison, and account balances when API credentials are configured.
Provides tools for accessing Coinbase through CCXT, including exchange status, market listings, ticker prices, order books, recent trades, OHLCV data, price comparisons, and account balances with configured credentials.
Provides tools for accessing KuCoin market data via CCXT, including tickers, order books, recent trades, OHLCV candles, market listings, exchange status, and account balances when credentials are configured.
Provides tools for accessing OKX market data via CCXT, including tickers, order books, recent trades, OHLCV candles, market listings, exchange status, and account balances when credentials are configured.
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., "@CCXT MCP Server Compare Bitcoin prices across Binance, Coinbase, and Kraken"
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.
๐ CCXT MCP Server
Universal cryptocurrency exchange access for Claude - Trade on 100+ exchanges through a single MCP interface!
๐ What This Does
graph LR
A[Claude Desktop] --> B[CCXT MCP Server]
B --> C[CCXT Library]
C --> D[Binance]
C --> E[Coinbase]
C --> F[Kraken]
C --> G[Bybit]
C --> H[...100+ more]
style A fill:#f9f,stroke:#333,stroke-width:2px,color:#000
style B fill:#bbf,stroke:#333,stroke-width:4px,color:#000
style C fill:#bfb,stroke:#333,stroke-width:2px,color:#000
style D fill:#fff,stroke:#333,stroke-width:1px,color:#000
style E fill:#fff,stroke:#333,stroke-width:1px,color:#000
style F fill:#fff,stroke:#333,stroke-width:1px,color:#000
style G fill:#fff,stroke:#333,stroke-width:1px,color:#000
style H fill:#fff,stroke:#333,stroke-width:1px,color:#000This MCP server gives Claude the ability to:
๐ Get real-time prices from any crypto exchange
๐ Analyze order books and market depth
๐ Compare prices across exchanges instantly
๐ฐ Detect arbitrage opportunities automatically
๐ Fetch historical data for technical analysis
๐ Calculate technical indicators (RSI, MACD, Bollinger Bands, ATR, Stochastic, Ichimoku)
Related MCP server: Cryptocurrency MCP Server
โก Quick Start (2 minutes)
1๏ธโฃ Install
# Clone the repository
git clone https://github.com/MyronKoch/ccxt-mcp-server.git
cd ccxt-mcp-server
# Install dependencies
npm install
# Build the project
npm run build2๏ธโฃ Add to Claude Desktop
{
"mcpServers": {
"ccxt-mcp-server": {
"command": "node",
"args": ["/path/to/ccxt-mcp-server/dist/index.js"]
}
}
}3๏ธโฃ Restart Claude & Trade!
Ask Claude: "What's the price of Bitcoin on Binance?"
๐ ๏ธ Available Tools
๐ Exchange Management
Tool | Description | Example |
| List all 106 supported exchanges | "Show me all available exchanges" |
| Connect to specific exchange | "Initialize Binance connection" |
| Check if exchange is working | "Is Coinbase operational?" |
| Get trading pairs | "What pairs does Kraken support?" |
๐ Market Data (No Auth Required!)
Tool | Description | Example |
| Current prices | "BTC price on Binance" |
| Bids & asks | "Show ETH order book" |
| Recent trades | "Latest SOL trades" |
| Candlestick data | "1-hour BTC chart data" |
๐ผ Account & Analytics
Tool | Description | Example |
| Check balances (requires env API keys) | "My Binance balance" |
| Multi-exchange comparison | "Compare ETH on all exchanges" |
๐ Technical Analysis
Tool | Description | Example |
| Calculate technical indicators | "Calculate RSI and MACD for BTC/USDT on Binance" |
Supported Indicators:
RSI - Relative Strength Index (overbought/oversold detection)
MACD - Moving Average Convergence Divergence (trend detection)
Bollinger Bands - Volatility and price range analysis
ATR - Average True Range (volatility measurement)
Stochastic - Momentum oscillator
Ichimoku Cloud - Comprehensive trend analysis
๐ฏ Killer Features
๐ Arbitrage Detection
graph TD
A[Check BTC Price] --> B{Price Difference?}
B -->|Yes| C[Buy on Exchange A]
C --> D[Sell on Exchange B]
D --> E[๐ฐ Profit!]
B -->|No| F[Keep Monitoring]
style A fill:#fff,stroke:#333,stroke-width:2px,color:#000
style B fill:#fff,stroke:#333,stroke-width:2px,color:#000
style C fill:#fff,stroke:#333,stroke-width:2px,color:#000
style D fill:#fff,stroke:#333,stroke-width:2px,color:#000
style E fill:#0f0,stroke:#333,stroke-width:2px,color:#000
style F fill:#fff,stroke:#333,stroke-width:2px,color:#000The server automatically detects when the same asset has different prices across exchanges!
โก Real Examples
You: "Compare Bitcoin prices across major exchanges"
Claude: Analyzing BTC/USDT across exchanges...
๐ Price Comparison:
โข Binance: $67,234.50
โข Coinbase: $67,256.00 (+$21.50)
โข Kraken: $67,245.75 (+$11.25)
โข Bybit: $67,232.00 (-$2.50)
๐ฏ Arbitrage Opportunity Detected!
Buy on Bybit at $67,232.00
Sell on Coinbase at $67,256.00
Potential profit: $24.00 per BTC (0.036%)You: "Calculate RSI and MACD for BTC/USDT on Binance"
Claude: Analyzing Bitcoin technical indicators...
๐ Technical Analysis (1-hour timeframe):
RSI (14): 58.32
โข Signal: Neutral
โข Not overbought (>70) or oversold (<30)
MACD:
โข MACD Line: 234.50
โข Signal Line: 198.25
โข Histogram: 36.25 (Bullish)
โข Trend: Bullish momentum increasing
Bollinger Bands:
โข Upper: $67,850
โข Middle: $67,234
โข Lower: $66,618
โข Current price within normal range
๐ก Interpretation: Moderate bullish momentum with RSI in neutral zone.
MACD showing positive divergence. Consider entry on pullback to middle band.๐๏ธ Architecture
System Design
flowchart TB
subgraph MCP[MCP Layer]
A[Tool Definitions]
B[Request Handler]
end
subgraph Core[Core System]
C[Exchange Manager<br/>Singleton Pattern]
D[Response Formatter<br/>TAPS Compliance]
E[Validation Utils<br/>Input Safety]
end
subgraph CCXT[CCXT Integration]
F[106 Exchange APIs]
G[Normalized Data]
H[Rate Limiting]
end
MCP --> Core
Core --> CCXT
style A fill:#fff,stroke:#333,stroke-width:2px,color:#000
style B fill:#fff,stroke:#333,stroke-width:2px,color:#000
style C fill:#bbf,stroke:#333,stroke-width:2px,color:#000
style D fill:#bbf,stroke:#333,stroke-width:2px,color:#000
style E fill:#bbf,stroke:#333,stroke-width:2px,color:#000
style F fill:#fff,stroke:#333,stroke-width:2px,color:#000
style G fill:#fff,stroke:#333,stroke-width:2px,color:#000
style H fill:#fff,stroke:#333,stroke-width:2px,color:#000TAPS v1.0 Response Format
{
"success": true,
"data": {
"symbol": "BTC/USDT",
"bid": 67234.50,
"ask": 67235.00,
"last": 67234.75
},
"metadata": {
"exchange": "binance",
"timestamp": 1738123456789,
"rateLimit": { "remaining": 99, "reset": 1738123460 },
"version": "TAPS-1.0.0"
}
}๐ Security
๐ Environment-only credentials - API keys MUST be set via environment variables (never in request parameters)
โฑ๏ธ Adaptive rate limiting - Automatic exponential backoff prevents exchange bans
๐ Automatic retries - Smart retry logic (up to 5 attempts) with backoff
๐ก๏ธ Input validation - Prevents costly mistakes and malformed requests
๐งน Credential sanitization - No leaks in logs or responses
โ Testnet support - Safe development environment
Setting Up API Credentials
For account operations, set credentials as environment variables:
# .env file
BINANCE_API_KEY=your_api_key_here
BINANCE_SECRET=your_secret_here
# For other exchanges, use: EXCHANGEID_API_KEY and EXCHANGEID_SECRET
COINBASE_API_KEY=...
COINBASE_SECRET=...Security Note: Credentials are NEVER accepted as tool parameters to prevent leakage in MCP logs.
๐ Supported Exchanges (106 Total!)
Binance (+ Testnet)
Coinbase (+ Sandbox)
Kraken
Bybit (+ Testnet)
OKX
Bitfinex
Huobi
Gate.io
KuCoin
Bitget
Bitstamp
Gemini
Crypto.com
MEXC
And 90+ more...
๐งโ๐ป Development
# Install dependencies
npm install
# Development mode with hot reload
npm run dev
# Build for production
npm run build
# Run tests
npm testProject Structure
ccxt-mcp-server/
โโโ src/
โ โโโ index.ts # Main MCP server
โ โโโ exchange-manager.ts # Exchange instance management with rate limiting
โ โโโ response-formatter.ts # TAPS response formatting
โ โโโ arbitrage/
โ โ โโโ advanced-scanner.ts # Real-time arbitrage detection
โ โโโ cache/
โ โ โโโ lru-cache-manager.ts # LRU caching for market data
โ โโโ indicators/
โ โ โโโ technical-analysis.ts # RSI, MACD, Bollinger, ATR, Stochastic, Ichimoku
โ โโโ rate-limiting/
โ โ โโโ adaptive-limiter.ts # Exponential backoff retry logic
โ โโโ risk/
โ โ โโโ risk-manager.ts # Kelly Criterion, position sizing
โ โโโ utils/
โ โ โโโ validation.ts # Input validation and sanitization
โ โโโ types/
โ โโโ taps.ts # TAPS v1.0 type definitions
โโโ dist/ # Compiled JavaScript
โโโ tests/ # Comprehensive test suite
โโโ docs/
โโโ standards/
โ โโโ TAPS-v1.0-STANDARD.md # Protocol specification
โโโ architecture/
โ โโโ ARCHITECTURE.md # System design
โโโ guides/
โโโ TESTING-GUIDE.md # Testing documentation๐ Troubleshooting
Issue | Solution |
"Exchange not found" | Check exact exchange ID (lowercase, e.g., |
"Rate limit exceeded" | Server auto-retries with exponential backoff (up to 5 attempts) |
"Invalid symbol" | Use format: |
"No balance data" | Set |
"Invalid credentials" | Credentials must be in |
Build errors | Run |
Type errors | Run |
๐ Performance
โก Response time: < 2 seconds (< 1ms for cache hits)
๐ Concurrent requests: Unlimited with automatic rate limiting
๐พ Memory usage: < 100MB
๐ Exchange connections: Cached & reused
๐ฆ Smart caching: 100% coverage on market data endpoints
Tickers: 10s TTL
Order books: 5s TTL
Trades: 10s TTL
OHLCV: 60s TTL
Markets: 1hr TTL
๐ Auto-retry: Exponential backoff on errors (1s โ 2s โ 4s โ 8s โ 16s)
๐ค Contributing
This is a TAPS v1.0 reference implementation. PRs welcome!
Fork the repository
Create your feature branch
Follow TAPS v1.0 standards
Submit a pull request
๐ License
MIT - Use freely in commercial projects!
๐ Credits
CCXT - The amazing library that makes this possible
MCP - Anthropic's Model Context Protocol
TAPS v1.0 - Trading API Protocol Standard (created for this project)
๐ Documentation
TAPS v1.0 Standard - Trading API Protocol Standard specification
Architecture Guide - System design and patterns
Testing Guide - Comprehensive testing documentation
Implementation Roadmap - Development phases
Ultimate Roadmap - Future vision & competitive analysis
Available Tools
14 toolsaccount_balanceB
Get account balance (requires API credentials set in environment variables)
Inputs: exchange (required).
analytics_calculate_riskB
Calculate comprehensive risk metrics (Sharpe Ratio, Max Drawdown, Kelly Criterion) from trade history
Inputs: trades (required).
analytics_compare_pricesC
Compare prices for a symbol across multiple exchanges (supports modes: full, summary, minimal)
Inputs: symbol (required), mode, page, pageSize, +2 more.
analytics_position_sizeC
Calculate optimal position size using Kelly Criterion with risk management
Inputs: avgWin (required), avgLoss (required), winRate (required), entryPrice (required), +4 more.
analytics_scan_arbitrageC
Scan for arbitrage opportunities across multiple exchanges with risk scoring and fee calculations
Inputs: symbol (required), exchanges, minVolume, maxRiskScore, +3 more.
exchange_initC
Initialize connection to a specific exchange
Inputs: exchange (required), testnet.
exchange_listB
List all supported cryptocurrency exchanges (100+ exchanges)
Inputs: no named parameters.
exchange_marketsC
Get all available trading pairs/markets for an exchange
Inputs: exchange (required), active.
exchange_statusA
Check if an exchange is operational and get its capabilities
Inputs: exchange (required).
indicators_calculateC
Calculate technical indicators (RSI, MACD, Bollinger Bands, ATR, Stochastic, Ichimoku) from OHLCV data
Inputs: symbol (required), exchange (required), limit, timeframe, +1 more.
market_ohlcvC
Get OHLCV (candlestick) data for a trading pair
Inputs: symbol (required), exchange (required), limit, timeframe.
market_orderbookC
Get order book (bids and asks) for a trading pair
Inputs: symbol (required), exchange (required), limit.
market_tickerC
Get current price ticker for a trading pair
Inputs: symbol (required), exchange (required).
market_tradesC
Get recent trades for a trading pair
Inputs: symbol (required), exchange (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 14 tools
Most tools have clearly distinct resource/action targets, such as market_ohlcv vs. market_orderbook vs. market_trades. There is minor overlap between analytics_compare_prices and analytics_scan_arbitrage, and between exchange_init and exchange_status, but descriptions make the intended boundaries reasonably clear.
Names use consistent domain prefixes such as market_, exchange_, analytics_, and account_, which makes the set readable. However, the ordering convention is mixed: exchange_list and indicators_calculate are noun_verb, while analytics_compare_prices and market_ohlcv follow different patterns.
The server has 14 tools, which fits comfortably within a well-scoped range for a multi-purpose CCXT data and analytics server. Each tool appears to cover a meaningful operation rather than being redundant filler.
Market data, exchange metadata, account balance, and analytics are well covered for a read-only crypto data server. However, the account/trading lifecycle is notably incomplete: there is no order management, trade-history retrieval, or positions tool, and analytics_calculate_risk expects trade history without a clear tool to fetch it.
Maintenance
Related MCP Connectors
Real-time crypto market data: candles, tickers, orderbooks across 13+ exchanges via MCP.
Trade 16 crypto exchanges + MetaTrader 5 from your AI assistant via one MCP connection.
Live prices, perps, prediction markets and a paper trading desk over one MCP.
Unlock the power of real-time cryptocurrency data with our Crypto Price Insights MCP server.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP service for cryptocurrency data acquisition with advanced technical analysis capabilities, supporting 100+ exchanges, 158 TA-Lib indicators, and dual transport protocols (stdio and HTTP/SSE).5MIT
- FlicenseNot gradedqualityDmaintenancePython-based MCP server that provides real-time and historical cryptocurrency data from 100+ exchanges via CCXT, with tools for tickers, OHLCV, markets, and order books.1-
- FlicenseNot gradedqualityDmaintenanceEnables AI tools to execute trades and fetch market data across six crypto exchanges via natural language or API, with dual Telegram and MCP interfaces.2-
- AlicenseAqualityCmaintenanceProvides real-time and historical crypto market data via WebSocket and REST for MCP clients, supporting multiple exchanges, 73 technical indicators, and advanced chart analysis tools.1929 PyPI1MIT