
CCXT MCP Server
Community server bridging LLMs to 100+ crypto exchanges via the CCXT library for data and trading.
Add to your client
Copy the config for your MCP client and paste it into its config file.
npx -y @mcpfun/mcp-server-ccxtPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"ccxt-mcp-server": {
"command": "npx",
"args": [
"-y",
"@mcpfun/mcp-server-ccxt"
],
"env": {
"BINANCE_SECRET": "<your-binance-secret>",
"BINANCE_API_KEY": "<your-binance-api-key>",
"DEFAULT_EXCHANGE": "binance"
}
}
}
}Before you start
- Node.js (install via npm/npx)
- Exchange API keys only if you want to trade or read private account data — public market data needs none
- Per-exchange credentials set as environment variables, e.g. `BINANCE_API_KEY` / `BINANCE_SECRET`, or `KUCOIN_API_KEY` / `KUCOIN_SECRET` / `KUCOIN_PASSPHRASE` for exchanges that require a passphrase
- An MCP-compatible client (Claude Desktop, Cursor, etc.)
About CCXT MCP Server
CCXT MCP Server is a community-built Model Context Protocol server that bridges LLMs to cryptocurrency exchanges using the popular CCXT library. It gives AI assistants a unified interface for fetching real-time market data and executing trades across many exchanges.
The README states it connects to 20+ cryptocurrency exchanges (Binance, Coinbase, Kraken, KuCoin, and others), covering spot, futures, and swap markets. Public market-data tools work without credentials; trading tools require per-exchange API keys.
It's engineered for production use with LRU caching at tuned TTLs (e.g. ticker ~10s, orderbook ~5s, markets ~1h), adaptive rate limiting with exponential backoff, and optional proxy configuration to keep requests reliable under load.
Tools & capabilities (12)
list-exchangesList supported/available exchanges
get-tickerGet the latest ticker for a symbol
batch-get-tickersFetch tickers for multiple symbols at once
get-orderbookRetrieve the order book for a market
get-ohlcvFetch OHLCV candlestick data
get-funding-ratesGet perpetual funding rates
account-balanceRead account balances (requires API keys)
place-market-orderPlace a spot market order
place-limit-orderPlace a spot limit order
place-futures-limit-orderPlace a futures limit order
set-leverageSet leverage for a futures position
cancel-all-ordersCancel all open orders on an exchange
When to use it
- You want one unified interface to pull tickers, order books, and OHLCV across many crypto exchanges
- You're building an AI agent that analyzes spot and futures market data in real time
- You want to place and cancel spot or futures orders on an exchange via natural language
- You need funding rates, leverage tiers, or positions data for perpetuals
- You want exchange data without writing per-exchange API integration code
- You need caching and rate-limit handling so frequent LLM queries don't get throttled
Quick setup
- 1Run the server with `npx @mcpfun/mcp-server-ccxt` (or install globally with npm)
- 2For trading, gather API keys from each exchange you'll use
- 3Set per-exchange env vars like `BINANCE_API_KEY` and `BINANCE_SECRET` (add a passphrase var where required)
- 4Add the server to your MCP client config with the npx command and env block
- 5Restart your MCP client and confirm the CCXT tools load
- 6Verify by listing exchanges or fetching a ticker
Security notes
Exchange API keys with trading/withdrawal permissions can move real funds; create keys without withdrawal rights and IP-restrict them. Use read-only keys if you only need market data.
CCXT MCP Server FAQ
How many exchanges does it support?
The README states it connects to 20+ cryptocurrency exchanges via CCXT, including Binance, Coinbase, Kraken, and KuCoin. CCXT itself supports many more, but this server documents 20+.
Do I need API keys to use it?
Not for public market data (tickers, order books, OHLCV). API keys are only required for private/trading tools like balances and placing orders.
Is it official?
No. It's a community project (published as @mcpfun/mcp-server-ccxt) built on top of the open-source CCXT library, not maintained by any single exchange.
How are credentials configured?
Through environment variables named per exchange, e.g. `BINANCE_API_KEY`/`BINANCE_SECRET`; some exchanges like KuCoin also require a `KUCOIN_PASSPHRASE`.
Can it trade futures and use leverage?
Yes. It includes futures order tools (place-futures-market-order, place-futures-limit-order) plus set-leverage and set-margin-mode.
Alternatives to CCXT MCP Server
Official Stripe server for payments, customers, subscriptions, invoices, and billing via natural language.
Coinbase's AgentKit MCP extension for onchain actions: transfers, swaps, and contract calls.
Alpaca's official trading server for stocks, ETFs, options, and crypto in plain English.
Compare CCXT MCP Server with: