CCXT — Claude Code MCP server: what it does, how to install
Connects AI assistants to 100+ crypto exchanges and prediction platforms via CCXT. It provides market data, balance tracking, and guarded order execution.
claude mcp add ccxt-mcp -- npx -y ccxt-mcpWhat CCXT does
The server runs locally over stdio without third-party relays. Your exchange credentials stay on your drive and never pass into prompt context. Tools identify endpoints strictly by assigned account aliases.
Out of the box, the server only returns public market data like order books, tickers, and OHLCV bars. Private reads, trading, and fund transfers require explicit opt-in flags inside config.json. Live trade placement fails unless marked with trading: "live".
Setup requires Node.js 18 or newer. To mitigate unexpected execution risk, the configuration lets you enforce dollar caps per transaction alongside strict symbol allowlists.
What it helps with
- fetch live tickers, depth books, and OHLCV bars across crypto exchanges
- inspect wallet balances and open positions without exposing keys to prompts
- create, update, and cancel trade orders with required confirmation
- restrict execution risk via notional order limits and symbol allowlists
Example prompts for the agent
- Fetch the latest BTC/USDT order book from Binance
- Check the current account balances on binance-main
- Show recent prediction market events on Polymarket
How to install CCXT
Platform CLI
claude mcp add ccxt-mcp -- npx -y ccxt-mcpPlatform CLI
codex mcp add mcp -- npx -y ccxt-mcpConfig file
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"ccxt-mcp"
]
}
}
}Config file
{
"servers": {
"mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ccxt-mcp"
]
}
}
}Platform CLI
gemini mcp add mcp npx -y ccxt-mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about CCXT
How to install CCXT in Claude Code?
Run claude mcp add ccxt-mcp -- npx -y ccxt-mcp in your terminal. This registers the stdio server directly inside your environment.
What does the CCXT MCP server do?
It connects your AI host to over 100 crypto exchanges through CCXT. The default setup fetches public tickers, candles, and market depth without requiring API credentials.
Does the model receive my private API keys?
No, credentials reside exclusively in your local configuration. Tools take account labels instead of secrets, and an internal redaction filter cleans outgoing logs.