@cexyio/mcp
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., "@@cexyio/mcpwhat's the BTC/USDT price and 24h volume right now?"
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.
@cexyio/mcp
The official Model Context Protocol server for the CEXY.io exchange. It lets an AI assistant (Claude Code, Claude Desktop, or any MCP client) read market data and, with your API key, your balances, orders and history.
Read-only by default. Trading tools do not exist unless you turn them on.
It never moves funds. There are no withdrawal, transfer or deposit-address tools, and CEXY API keys cannot withdraw anyway.
Runs locally over stdio. It opens no network port.
Built on the official TypeScript SDK,
@cexyio/cexy.
Status: 0.x prerelease. Tool names and outputs may still change.
Install
It needs Node.js 20 or newer. Nothing to install globally: MCP clients start it with npx.
Claude Code
Public market data only (no key):
claude mcp add cexy -- npx -y @cexyio/mcpWith your account (read-only key):
claude mcp add cexy \
-e CEXY_API_KEY=ak_your_key_here \
-e CEXY_API_SECRET=your_secret_here \
-- npx -y @cexyio/mcpWith trading enabled and guardrails (see Safety first):
claude mcp add cexy \
-e CEXY_API_KEY=ak_your_key_here \
-e CEXY_API_SECRET=your_secret_here \
-e CEXY_MCP_ENABLE_TRADING=true \
-e CEXY_MCP_MAX_ORDER_NOTIONAL=100 \
-e CEXY_MCP_ALLOWED_MARKETS=BTC/USDT,ETH/USDT \
-- npx -y @cexyio/mcpClaude Desktop
Add this to claude_desktop_config.json (Settings, Developer, Edit Config) and restart Claude Desktop:
{
"mcpServers": {
"cexy": {
"command": "npx",
"args": ["-y", "@cexyio/mcp"],
"env": {
"CEXY_API_KEY": "ak_your_key_here",
"CEXY_API_SECRET": "your_secret_here"
}
}
}
}Leave out the env block for public data only. Add "CEXY_MCP_ENABLE_TRADING": "true" (and the
guardrails) only if you want the assistant to place orders.
Other MCP clients
Run npx -y @cexyio/mcp as a stdio server and pass the configuration as environment variables.
Related MCP server: Trading MCP Server
Configuration
Variable | Default | Meaning |
| unset | API key id ( |
| unset | API key secret. Optional; must be set together with the key. |
|
| API base URL. Must be |
| unset |
|
|
| Exactly |
| unset | Per-order cap, in the market's quote currency (e.g. |
| unset (all) | Comma-separated markets |
|
|
|
The server refuses to start when only one of the key and the secret is set, when the base URL
is not https:// (outside the loopback exception above), or when CEXY_MCP_ENABLE_TRADING has an
unrecognised value such as tru. It never echoes
either of them in tool output, errors or logs.
Tools
Every read tool is annotated readOnlyHint: true and openWorldHint: true. The trading tools
are annotated destructiveHint: true.
Public (always available, no key):
Tool | What it returns |
| Server time and clock skew, maintenance state, page sizes, candle intervals, and this server's own settings |
| Markets with a compact ticker; filters |
| One market's trading rules (tick/lot size, minimums, order types) and 24h ticker |
| Compact 24h ticker for one market |
| Order-book snapshot, |
| Recent public trades; |
| OHLCV rows; |
| Assets and, per network, deposit/withdrawal status, maintenance, minimums and fees |
| Maker/taker fee tiers |
Read key (registered only when CEXY_API_KEY and CEXY_API_SECRET are set; the key needs the read scope):
Tool | What it returns |
| Balances per asset; zero balances hidden unless |
| Your open orders; optional |
| One order, by |
| Your orders, paged with |
| Your fills, paged |
| Your deposit history, paged (read only) |
| Your withdrawal history, paged (read only) |
| Every balance change, paged |
Trade (registered only when CEXY_MCP_ENABLE_TRADING=true and a key is set; the key needs the trade scope):
Tool | What it does |
| Places a real order. Always sends a |
| Cancels one order, by |
| Cancels your open orders in one market. |
Never available: withdrawals, transfers (including sub-account transfers), liquidity-pool join/exit, deposit-address lookup (the API creates an address on first use), API-key management, login/2FA, exports and any admin function. A test asserts that none of these ever appear.
Output
Results are compact JSON (structuredContent), plus a text block with a one-line summary followed
by the same JSON, for clients that read only text. Amounts are decimal strings (never floats) and
timestamps are ISO 8601. Lists default to 10-50 items; paged tools return next_cursor (or
next_offset) to fetch more. No result is larger than about 20 KB: longer lists are trimmed and
marked truncated: true with a note.
Errors come back as MCP tool errors with a structured body:
{ "error": { "code": "FORBIDDEN", "message": "...", "retryable": false, "request_id": "..." } }code is the API error code (e.g. INSUFFICIENT_FUNDS, RATE_LIMITED), or one of this server's:
GUARDRAIL_REJECTED, INVALID_INPUT, TIMEOUT, CONNECTION_ERROR, ORDER_STATE_UNKNOWN,
INTERNAL_ERROR. Quote the request_id when you contact support.
Safety
Read-only by default. Without
CEXY_MCP_ENABLE_TRADING=truethe trading tools are not registered at all, so the assistant cannot see or call them.Use a read-only key unless you want trading. Create the key with only the
readscope and restrict it to your IP address withallowed_ips.Trading is opt-in, with caps. If you enable it, also set
CEXY_MCP_MAX_ORDER_NOTIONALandCEXY_MCP_ALLOWED_MARKETS. With a notional cap set,place_orderrefuses any order whose value it cannot bound: limit buys use price x quantity, limit sells use the higher of the price and the best bid, market buys are priced by walking the current asks (or usequote_quantity), market sells use the best bid, and stop orders whose fill price depends on a future book are refused. The check is made against the book at the time of the call; fast markets can move.Orders are real and irreversible once filled. Ask your assistant to confirm each order with you; most MCP clients also ask for approval before calling a tool marked destructive.
No withdrawal tools exist, and CEXY API keys cannot withdraw or transfer funds anyway.
The server runs locally over stdio, opens no port and sends no telemetry.
Rate limits
The exchange allows about 120 requests per minute per IP without a key, and about 600 per minute
per API key. The SDK underneath throttles itself below that (100/min without a key, 300/min with
one) and adapts to the server's X-RateLimit-* headers. Most tools make one request;
get_server_status and list_assets make two, and place_order with a notional cap may read the
order book first. A RATE_LIMITED error includes retry_after_ms.
Development
npm install
npm run lint && npm run typecheck && npm test
npm run build # dist/cli.js (the bin) and dist/index.js
npm run test:live # opt-in: a few unauthenticated GETs to api.cexy.ioThis prerelease depends on the SDK from a sibling checkout ("@cexyio/cexy": "file:../cexy-typescript").
Released versions pin the published @cexyio/cexy version from npm.
Security
See SECURITY.md. Never paste real API keys or secrets into issues.
License
MIT, see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Trade 16 crypto exchanges + MetaTrader 5 from your AI assistant via one MCP connection.
Trade across 22+ exchanges and brokers from any MCP-capable AI agent, no install required.
Crypto trading intelligence MCP — 34+ endpoints, x402 pay-per-use, AI agent strategy & execution
Read-only educational MCP for CryptoDecentral Sovereign. No auth, trading, custody, or advice.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides access to cryptocurrency exchange APIs through CCXT, enabling market data retrieval, account balance checks, and trading operations across multiple exchanges like Binance, Coinbase, and Kraken with built-in security features.4-
- AlicenseBqualityDmaintenanceProvides a comprehensive suite of 20 tools for cryptocurrency trading and technical analysis across 100+ exchanges like Binance and MEXC via CCXT. It enables users to execute orders, track positions, and scan for market opportunities through Claude Desktop using natural language.2020 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with OKX cryptocurrency exchange, providing tools for market data, trading, account management, and more through the Model Context Protocol.105MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLM agents to access BingX cryptocurrency exchange market data and execute trades through the official API, with support for account management, order creation, and technical indicators.-