/ccxt-local:ccxt-mcpfrom CCXT Local
Official CCXT MCP (Model Context Protocol) server — connect an AI agent to 100+ cryptocurrency exchanges and prediction markets for market data, balances, and opt-in trading. Covers the hosted no-install server (https://mcp.ccxt.com/mcp, public market data) and installing the local server in Claude Desktop/Code, Cursor, VS Code and other MCP hosts; configuring named accounts and API keys (kept local, never seen by the model); the capability tiers and safety rails; sandbox/testnet trading; and how to drive the tools. Use when the user wants an agent to fetch prices/order books/candles, check balances/orders/positions, place or cancel orders, or explore prediction markets across exchanges.
Ships in CCXT Local. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ccxt-mcp is the official CCXT Model Context Protocol server. It runs locally over stdio (a read-only hosted version needs no install) and lets an AI agent (Claude Desktop/Code, Cursor, VS Code, Windsurf, …) use the unified CCXT API across 100+ crypto exchanges and prediction markets.
ccxt-mcp · runs via npx -y ccxt-mcp · source: https://github.com/ccxt/ccxt/tree/master/mcpKey property: your API keys stay on your machine and the model never sees them. Tools reference accounts by a name you choose; credentials are never tool parameters and never appear in results.
CCXT also runs a public, read-only MCP endpoint at https://mcp.ccxt.com/mcp (Streamable HTTP, no sign-in, no API keys). Use it when the user only needs market data and does not want to install anything; use the local server below for balances, orders, positions or trading.
https://mcp.ccxt.com/mcp, No sign-in; or the prefilled link https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=CCXT&connectorUrl=https%3A%2F%2Fmcp.ccxt.com%2Fmcp. It then also works in the Claude mobile apps.claude plugin install ccxt --marketplace ccxt/ccxt-plugins (server plus usage skill; Claude Code 2.1.292+, else claude plugin marketplace add ccxt/ccxt-plugins then claude plugin install ccxt@ccxt), or the server alone, claude mcp add --transport http ccxt https://mcp.ccxt.com/mcp.ccxt/ccxt-plugins > add CCXT, then connect it on the plugin's Connectors tab.codex plugin marketplace add ccxt/ccxt-plugins then codex plugin add ccxt@ccxt; or Settings > MCP servers > Add server > Streamable HTTP, or [mcp_servers.ccxt] url = "https://mcp.ccxt.com/mcp" in ~/.codex/config.toml.{ "mcpServers": { "ccxt": { "url": "https://mcp.ccxt.com/mcp" } } } / { "servers": { "ccxt": { "type": "http", "url": "https://mcp.ccxt.com/mcp" } } }.What it offers: list_exchanges, describe_exchange, search_markets, get_tickers, get_orderbook, get_ohlcv, get_trades, and the show_chart / show_orderbook / show_tickers views, on a curated set of major exchanges (list_exchanges names them). get_balance, get_orders, get_positions and get_my_trades return ACCOUNT_REQUIRED: relay it and point the user to the local server. No trading, no watch_* streams, no prediction markets, no params, no call_read_method. It is shared and rate-limited: on RATE_LIMITED / EXCHANGE_UNAVAILABLE wait retryAfterSeconds, don't loop. Data is briefly cached: order books 1 s, tickers and trades 2 s, candles a tenth of the candle length (2–60 s). Phase 1: signing in with exchange accounts is planned, not available. Details: https://docs.ccxt.com/docs/mcp#hosted-server-no-install
Requires Node.js ≥ 20. Pick the host:
claude mcp add ccxt -- npx -y ccxt-mcp{ "mcpServers": { "ccxt": { "command": "npx", "args": ["-y", "ccxt-mcp"] } } }
.vscode/mcp.json) — use inputs for encrypted key storage:
{
"inputs": [
{ "id": "binance-key", "type": "promptString", "password": true },
{ "id": "binance-secret", "type": "promptString", "password": true }
],
"servers": { "ccxt": {
"command": "npx", "args": ["-y", "ccxt-mcp"],
"env": { "BINANCE_APIKEY": "${input:binance-key}", "BINANCE_SECRET": "${input:binance-secret}" }
} }
}
.mcpb desktop-extension bundle installs by drag-and-drop and stores keys in the OS keychain.With no configuration the server already serves public market data on every exchange — a useful install on its own.
To use private data or trading, create the config file (its path is shown by the get_safety_status tool):
~/Library/Application Support/ccxt-mcp/config.json~/.config/ccxt-mcp/config.json%APPDATA%\ccxt-mcp\config.jsonCCXT_MCP_CONFIG to any path.{
"accounts": {
"binance-testnet": {
"exchange": "binance",
"apiKey": "…", "secret": "…",
"sandbox": true, // testnet — trades fake money; recommended first stop
"trading": true // "true" enables trading on SANDBOX/DEMO accounts only
},
"binance-main": {
"exchange": "binance",
"apiKey": "…", "secret": "…",
"trading": "live", // live trading requires the explicit string "live"…
"maxOrderValue": 250, // …and a per-order USD cap you author (null = opt out)
"maxDailyValue": 1000, // optional rolling-24h cap
"allowedSymbols": ["BTC/USDT", "ETH/*"], // optional strict allowlist
"confirm": "live" // always (every order) | live (default: only LIVE accounts; sandbox/demo execute WITHOUT a confirm step) | never
},
"polymarket-main": { "exchange": "polymarket", "walletAddress": "0x…", "privateKey": "0x…" }
}
}
Any credential the exchange needs works (apiKey, secret, password, uid, walletAddress, privateKey, …), plus sandbox/demo, defaultType, options, and prediction: true for exchanges that exist in both crypto and prediction namespaces (e.g. hyperliquid). chmod 600 the file. Env vars also work: <EXCHANGEID>_<CREDENTIAL> (e.g. BINANCE_APIKEY, OKX_PASSWORD) fill missing fields, and CCXT_MCP_EXCHANGE/CCXT_MCP_APIKEY/CCXT_MCP_SECRET/CCXT_MCP_SANDBOX/CCXT_MCP_TRADING define a single account named default. The accounts map holds as many exchanges/accounts as you want — one entry each.
On Claude Desktop the .mcpb install form has fields for a single exchange plus a Config file picker — point that at a config.json (as above) to configure multiple exchanges, or create the file at the default path and leave the form blank.
| Tier | What it enables | How to turn it on |
|---|---|---|
| market | tickers, order books, OHLCV, trades, market search, prediction events, raw GET endpoints | on by default, no keys |
| read | balances, orders, own trades, positions | configure an account |
| trading | create/edit/cancel orders, leverage, margin | per-account "trading": true (sandbox) or "live" |
| funds | withdraw, transfer, deposit addresses | per-account "funds": true or "live" |
| implicitWrites | raw POST/PUT/DELETE endpoints | per-account "implicitWrites": true |
Tiers can only be enabled by the user editing the config file — never from the conversation, and there is no tool that edits config. Disabled tiers do not appear in the tool list. "trading": true works on sandbox/demo accounts only; live trading requires typing "trading": "live" plus a maxOrderValue. Order-placing tools preview and require confirmation, validate against market limits and your caps, and journal every mutating call.
Set "sandbox": true on an account to trade fake money on the exchange testnet — create_order then goes to the testnet host (e.g. testnet.binance.vision), never production. Use testnet keys from the exchange's testnet portal (live keys won't authenticate against testnet). This is the recommended way to try trading.
list_exchanges, describe_exchange, describe_method (search method names / signatures / per-exchange params + doc links), get_safety_status (which accounts/tiers are active).search_markets (resolve a symbol — there is no list-all-markets tool), get_tickers, get_orderbook, get_ohlcv, get_trades. Long-tail reads (funding rates, open interest, ledger, …) via call_read_method; raw exchange GET endpoints via call_implicit_get.watch_subscribe opens a background stream and returns a subscriptionId and a streamKind. State streams are snapshots — watchTicker(s), watchOrderBook(ForSymbols), watchOHLCV, watchBalance, watchPositions, watchBidsAsks, watchMarkPrice(s): watch_read returns the full current set in latest (the server merges live updates, so a multi-symbol stream always shows every subscribed symbol, not just the one that last changed) — just read it whenever you need the current value (the live order book, all your positions, the recent candle window). Event streams are logs — watchTrades and the private watchOrders/watchMyTrades/watch(My)Liquidations (private need an account): watch_read returns new items oldest-first in events plus a nextCursor — thread it back as cursor on each poll so you don't re-receive old items. Pass waitForChange: true (optional timeoutMs) to block until the next update instead of polling — ideal for waiting on an order fill or position change; the response's timedOut says whether anything arrived. watch_unsubscribe when done; watch_list shows active streams. Prefer one-shot get_* tools for a single snapshot; use watch_* for live/continuous data.show_chart (candlestick chart), show_orderbook (depth chart + ladder), show_tickers (price board). They return a compact summary; meta.ui says whether a view was shown ("displayed") or not ("unsupported", "off") — when it was, comment on the summary instead of repeating the data. Where the host lets views call tools (Claude, ChatGPT), a shown view updates itself: about every 2 s from a shared stream ("Live"), 5 s or more from REST ("Delayed"), on both the hosted and the local server. It does this through live_update, an app-only tool: don't call it yourself, and don't re-call show_* just to refresh a view. A chart of a past window (since that ends more than two candles ago) and a view rendered with params stay snapshots with a Refresh button: leave since and params out when the user wants a live view. Use the get_* tools when you need the raw rows. CCXT_MCP_UI (auto / always / off) overrides the host detection; CCXT_MCP_TOOLS=core lists only the essential tools on hosts that cap tool definitions.list_accounts, get_balance, get_orders, get_my_trades, get_positions.fetch_route (no account needed) — see below.create_order, edit_order, cancel_order, cancel_all_orders, set_leverage, set_margin_mode, call_write_method, execute_route.withdraw, transfer, get_deposit_address.Conventions to follow:
BTC/USDT (spot), BTC/USDT:USDT (linear swap), BTC/USD:BTC (inverse). Resolve them with search_markets — don't guess. Derivatives-only methods (funding rate, positions) need the :SETTLE form.search_markets with fields: ["symbol"] (or e.g. ["symbol", "contractSize", "limits"]) and a limit up to 1000 — full rows are ~450 chars each and capped at 100. Page with meta.nextOffset while meta.hasMore is true; meta.limitClamped says when your limit was reduced. Perpetuals are type: "swap"; an empty result lists the exchange's real types in meta.marketTypes.params passthrough for exchange-specific options; discover supported keys with describe_method.since accepts a millisecond timestamp or an ISO8601 string; results carry timestamp (ms) and datetime (ISO8601) when the exchange provides them. Ticker fields vary by exchange: some tickers lack a timestamp, bid/ask or 24h stats, and some venues count the change from the day's open rather than a rolling 24h. When an exchange does not serve data from since (okx fetchTrades returns only the latest trades), meta.notice says so.limit is a positive integer; a value over a tool's max is clamped and reported in meta.limitClamped.meta (count/returned/available/hasMore/truncated) and page rather than assuming completeness.search_events to find an event and its outcome handles, then pass an outcome handle (priced 0–1) as the symbol to the ordinary tools.fetch_route, execute_route)For "where should I buy 1 BTC?" or "what's the best way to turn 5,000 USDT into ETH?", call fetch_route — don't compare get_orderbook / get_tickers across venues by hand. The CCXT order router walks live L2 books on ~50 venues, accounts for fees and depth, can split across venues (strategy: "split_optimal" / "split_capped" + maxVenues) and bridge through USDT/USDC/BTC/ETH. Top-of-book is only right for tiny sizes; at any real size depth decides the answer.
from, to (asset codes, not symbols) and exactly one of amountIn (exact spend) or amountOut (exact receive). Narrow with exchanges (e.g. only venues you have accounts on), bridges, certified.fillRatio before effectiveRate. A better rate on a partial fill is not a better route; fillRatio < 1 means the size isn't fully fillable at current depth (or set requireFullFill). impactBps / referenceRate show price impact versus top of book.ok: true with unroutableReason — it's an answer, not a failure. A RATE_LIMITED error carries retryAfterSeconds (the router allows 5 req/s per IP).get_orderbook / get_tickers when you need one venue's book or price itself, not a conversion decision.fetch_route is a quote, not an order. To act on it, pass its routeId to execute_route (trading tier). Each venue the route uses needs a trading-enabled account (matched automatically when there is one per exchange; otherwise pass accounts). Execution choices are yours: strategy, slippageBps, allowMarketOrders, maxPlanAgeMs, dryRun. Every order still goes through the account's caps, symbol lists and confirmation, and a route executes once. If it halts mid-route, the result's unwind is a suggestion only — nothing is reversed automatically.sandbox: true with testnet keys.confirm policy fires (always, or live on a live account) — show the preview (symbol, side, amount, estimated USD value) to the user, then repeat the identical call with the confirm token (or approve the native prompt) to execute. Under the default live policy, sandbox/demo orders execute immediately without a preview, and maxOrderValue: null means no cap — so on a demo account an order can execute in one call with no gate.maxOrderValue cap and, on the exchange, use API keys with withdrawal disabled and an IP allowlist.get_safety_status to see what's active.loadMarkets() takes a few seconds, then is cached 24h.npx @modelcontextprotocol/inspector npx -y ccxt-mcp.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ccxt/ccxt-plugins --plugin ccxt-local