ccxt-mcp
Skill này làm gì
Skill này giải thích cách cài đặt và thiết lập máy chủ CCXT MCP, cho phép agent AI đọc dữ liệu thị trường và số dư, và tùy chọn giao dịch, qua một kết nối cục bộ. Nó dành cho người muốn AI làm việc với tài khoản sàn của họ một cách an toàn.
Khi nào nên dùng
- ✓Khi bạn muốn một trợ lý AI trong Claude hoặc Cursor đọc dữ liệu thị trường của sàn.
- ✓Khi bạn muốn thiết lập các tài khoản sàn có tên riêng mà không chia sẻ khóa cho AI.
- ✓Khi bạn muốn thử giao dịch trên sandbox hoặc testnet trước khi dùng tài khoản thật.
Liên kết skill
https://github.com/ccxt/ccxt/blob/master/.claude/skills/ccxt-mcp/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thiết lập máy chủ CCXT MCP trong Claude Code để tôi có thể kiểm tra số dư sàn của mình.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn thêm máy chủ vào cấu hình của công cụ AI và lưu khóa API cục bộ. Sau đó AI gọi các công cụ sàn theo tên tài khoản, mà không bao giờ thấy khóa.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
CCXT MCP Server
ccxt-mcp is the official CCXT Model Context Protocol server. It runs locally over stdio and lets an AI agent (Claude Desktop/Code, Cursor, VS Code, Windsurf, …) use the unified CCXT API across 100+ crypto exchanges and prediction markets.
- npm:
ccxt-mcp· runs vianpx -y ccxt-mcp· source: https://github.com/ccxt/ccxt/tree/master/mcp - Full docs: https://docs.ccxt.com/docs/mcp
Key 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.
Install
Requires Node.js ≥ 18. Pick the host:
- Claude Code:
claude mcp add ccxt -- npx -y ccxt-mcp - Claude Desktop / Cursor / Windsurf — add to the host's MCP config:
{ "mcpServers": { "ccxt": { "command": "npx", "args": ["-y", "ccxt-mcp"] } } } - VS Code (
.vscode/mcp.json) — useinputsfor 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}" } } } } - Non-technical / Claude Desktop: a signed
.mcpbdesktop-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.
Configure accounts
To use private data or trading, create the config file (its path is shown by the get_safety_status tool):
- macOS:
~/Library/Application Support/ccxt-mcp/config.json - Linux:
~/.config/ccxt-mcp/config.json - Windows:
%APPDATA%\ccxt-mcp\config.json - Or set
CCXT_MCP_CONFIGto 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.
Capability tiers (opt-in, off by default)
| 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 to
Câu hỏi thường gặp
AI có thấy khóa API của tôi không?
Không. Skill nói khóa được giữ trên máy của bạn và mô hình không bao giờ thấy chúng.
Tôi cần cài gì để chạy nó?
Skill nói cần Node.js 18 trở lên, và máy chủ chạy qua npx.
Nó có hỗ trợ giao dịch không?
Có, như một khả năng tùy chọn bật thủ công với các rào chắn an toàn, và có chế độ sandbox hoặc testnet.
Chi tiết
Mô tả gốc của tác giả
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 installing the 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
repo: ccxt/ccxt
Độ phổ biến
- Sao GitHub
- 45k
- Vị trí xếp hạng
- #6383
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
binance-agentic-wallet
45kCho agent của bạn quản lý ví Binance Web3 qua công cụ dòng lệnh baw, gồm đăng nhập, số dư, chuyển khoản, hoán đổi token và lệnh giới hạn.
binance-sports-ai-analyzer
45kGiúp agent của bạn tra cứu dự đoán trận đấu World Cup, phân tích AI và thông tin tin tức, rồi tính lại tỷ lệ thắng khi bạn điều chỉnh các tín hiệu.
binance-tokenized-securities-info
45kGiúp agent của bạn tra cứu cổ phiếu Mỹ token hóa Ondo trên Binance Web3: danh sách token, thông tin công ty, trạng thái giao dịch và giá on-chain.
binance
45kCho agent của bạn dùng Binance Spot, USD-M Futures và Convert qua công cụ binance-cli. Yêu cầu bạn thiết lập xác thực trước.
Skill tương tự
mcporter
394kGiúp agent của bạn liệt kê, gọi và kiểm tra các máy chủ MCP cùng công cụ của chúng qua HTTP hoặc stdio, và quản lý cài đặt đăng nhập.
fastmcp
260kGiúp bạn xây dựng, kiểm thử và triển khai một máy chủ MCP bằng Python, cấp cho trợ lý AI quyền truy cập API, cơ sở dữ liệu hoặc file của bạn dưới dạng công cụ.
mcp-oauth-remote-gateway
260kHướng dẫn bạn đăng nhập OAuth cho máy chủ MCP từ xa khi Hermes chạy trên máy chủ, nơi đăng nhập bằng trình duyệt thông thường không thể truy cập được.