# MEXC API (slim)

> MEXC's spot and futures API gives programmatic access to market data, orders, balances, transfers and withdrawals over REST and WebSocket, with an official command-line tool that also runs as a local MCP server for AI agents.

- Full: https://www.anchorterminal.com/tools/mexc.md (~9,550 tokens) · this version ~2,230 tokens · JSON https://www.anchorterminal.com/tools/mexc.json · canonical https://www.anchorterminal.com/tools/mexc
- Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · MCP: https://www.anchorterminal.com/mcp · Updated: 2026-11-04 · pricing https://www.anchorterminal.com/tools/mexc#pricing · reviews https://www.anchorterminal.com/tools/mexc#reviews
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)

**C · 56.3/100 · rank #791 of 1349 · #13 in Crypto exchanges · not agent-ready · confidence medium**


Assessment: MEXC publishes granular key permissions, per-pair key limits, weighted rate limits with Retry-After and a dated changelog, and its official CLI runs a read-only-capable MCP server with confirmation before any fund movement. There is no sandbox or status page, API futures orders pay a higher fee schedule, and the user agreement excludes the US, UK, EU members and others.

## Facts

- Kind: HTTP API · vendor: MEXC (Comoros) Ltd · category: Crypto exchanges · legal entity: MEXC (Comoros) Ltd · provenance 78/100
- Local only (stdio): npm `@mexc-ai/cli`
- Auth: API key · pricing: Pay per use · x402: no · licence: unknown
- Probe metrics: not measured yet (probes haven't run)
- Surface listed: The spot v3 and futures REST and WebSocket APIs at api.mexc.com and contract.mexc.com, read from mexc.com/api-docs, mexcdevelop.github.io, mexc.com/mexc-api, llms.txt, the terms and privacy pages, the mexcdevelop GitHub organisation, npm and the MCP registry on 3 November 2026. No account was made, no private endpoint was called and the CLI was not run
- MCP server: Official, local. `mexc mcp <category>` in the `@mexc-ai/cli` npm package (0.0.22, 29 September 2026) runs a stdio MCP server; categories spot (123 tools), contract (117), financial (51), activity (8) and spot market data only (22); `--read-only` lists reads only. Documented since 14 September 2026 with 25 capability reference files for skills. Not in the official MCP registry, which lists only the third-party io.github.mrfentmen/mexc-mcp. Authenticates with the account's API key
- Key permissions: SPOT_ACCOUNT_READ, SPOT_DEAL_WRITE, SPOT_WITHDRAW_WRITE, SPOT_TRANSFER_WRITE and futures equivalents; per-key trading-pair list; up to 10 IP addresses per key; 90-day validity without a linked IP, renewable from 5 days before expiry; up to 30 keys per account. Withdrawal address allow-lists unchecked
- Rate limits: Weight buckets of 300 per 10 seconds per IP and 500 per 10 seconds per UID; order placement and cancellation 12 requests a second per UID; batch orders up to 20 per request at 2 a second; WebSocket 100 messages a second and 30 streams per connection, connections valid for 24 hours. 429 and 418 carry Retry-After; bans of 2 minutes to 3 days; 403 is a WAF block. Futures: 20 requests per 2 seconds on most endpoints
- Testnet: None. POST /api/v3/order/test validates an order without sending it
- Countries: Prohibited per the user agreement of 13 October 2026: North Korea, Cuba, Sudan, Iran, Mainland China, Singapore, Malaysia, the United States, the United Kingdom, Hong Kong, Kazakhstan, Russia, Belarus, Canada, the Netherlands, Russian-controlled regions of Ukraine, France, and sanctioned countries. The list is "non-exclusive and is subject to change". llms.txt claims 170 or more countries and regions served
- Fees: Per MEXC's fee guide of 20 October 2026 (rates verified 8 October 2026), spot maker 0 per cent, taker 0.05 per cent (0.04 with MX); futures BTCUSDT 0 maker and 0.02 taker, standard contracts 0.01 maker and 0.04 taker, up to 0.04 and 0.10 by contract and region; API futures orders 0.06 maker and 0.08 taker since 1 June 2026. Zero-fee events and MX discounts don't apply to API trading. Alpha Trader tiers A1 to A7 from 10,000,000 USDT monthly volume
- FIX and WebSocket: WebSocket at wss://wbs-api.mexc.com/ws for spot (JSON and Protocol Buffers) and wss://contract.mexc.com/edge for futures. No FIX found in the docs
- Terms on automation: No clause on API trading. Clause 17(f) bans "web crawlers, bots, spiders or other automatic devices, programs, scripts" for accessing or copying platform content, and 17(d) bans commercial use of market data without written consent. Clause 9 allows suspension without notice for "illegal or improper technical means". Governing law England and Wales, HKIAC arbitration
- CLI and skills: `@mexc-ai/cli` with 307 capabilities (127 spot, 117 contract, 51 financial, 8 activity, 4 futures market data), 63 needing no key; `--dry-run`, `--read-only`, `--yes`; `mexc skills install` for Claude Code, Cursor, Codex, Gemini and Kiro CLI. Confirmations and cancellations are "logged and reported to MEXC"
- SDKs: mexcdevelop/mexc-api-sdk for Python, .NET, Java, JavaScript and Go (315 stars, last pushed 12 February 2024), mexc-api-demo (27 June 2026) and a Postman collection. Only SDKs in the official docs are supported
- Legal entity: MEXC (Comoros) Ltd, Mutsamudu, Anjouan, Union of Comoros, per the user agreement. The privacy policy names no entity
- Prices: Spot taker fee 0.05% percentage fee; API futures taker fee 0.08% percentage fee

- Scores: Reliability 43, Performance pending, Schema & documentation 64, Agent ergonomics 64, Security & auth 65, Payments & pricing 31, Task success pending, Maintenance & community 75, Transparency & trust 58 · total over the 7 assessed categories
- Why: Reliability, Read with the hosted lines. · Schema & documentation, No OpenAPI found; a Postman collection and the CLI's 25 capability reference files are the nearest machine-readable contract (5 of 25). · Agent ergonomics, Graded on the REST API with the CLI's MCP mode. · Security & auth, Granular permissions (account read, trade, withdraw, transfer), per-pair restriction, up to 10 linked IPs, 90-day expiry without an IP, rene… · Payments & pricing, No machine payment protocol (0). · Maintenance & community, Read as a closed service. · Transparency & trust, The editorial half.
- Sources: 26, open questions: 8, both in the full twin
- Capabilities: exchange.market-data, exchange.spot-trading, exchange.derivatives, exchange.balances, exchange.transfers, market.crypto
- JSON: https://www.anchorterminal.com/api/v1/tools/mexc.json
- Verify (for the vendor): the badge `https://www.anchorterminal.com/badges/mexc.svg` or a link to https://www.anchorterminal.com/tools/mexc from a page on mexc.com or one of its subdomains, then `POST https://www.anchorterminal.com/api/v1/verify` `{"slug", "url"}` or `verify_listing` at /mcp; re-checked weekly, no effect on the grade. Snippets in the full twin.
- Support: Discord https://discord.gg/BGCtaTsAdu; https://www.mexc.com/support; https://www.mexc.com/support/ticket/submit/submit-inquiry; more in the full twin

## Before you call it

1. Use a key limited to SPOT_ACCOUNT_READ and SPOT_DEAL_WRITE, the pairs you trade and your IP addresses; keys without a linked IP expire after 90 days
2. Start the MCP server as `mexc mcp spot --read-only` unless the task trades, and never pass `--yes`; orders and transfers wait for the person's confirmation
3. Call POST /api/v3/order/test before a live order, since there is no sandbox
4. On 429 or 418 wait for Retry-After; order placement and cancellation share 12 requests a second per UID, and repeated breaches ban the IP for up to 3 days
5. Treat a 5xx on an order as unknown, not failed, and query the order before retrying; set newClientOrderId so the order can be found

## Connect

```bash
npm install -g @mexc-ai/cli
```

```bash
curl 'https://api.mexc.com/api/v3/ticker/price?symbol=BTCUSDT'
```
Full config and headless snippets are in the full page. Through letme (picks today, calling later): https://letme.dev/mexc

## Similar tools

| Tool | Grade | Score | Shared capabilities | Slim |
| --- | --- | --- | --- | --- |
| Gemini Exchange API | BB | 74.6 | exchange.market-data, exchange.spot-trading, exchange.derivatives, exchange.balances, exchange.transfers, market.crypto | https://www.anchorterminal.com/tools/gemini-exchange.min.md |
| Kraken API | BB | 71 | exchange.spot-trading, exchange.market-data, exchange.derivatives, exchange.balances, exchange.transfers, market.crypto | https://www.anchorterminal.com/tools/kraken.min.md |
| OKX API | B | 64.3 | exchange.spot-trading, exchange.market-data, exchange.derivatives, exchange.balances, exchange.transfers, market.crypto | https://www.anchorterminal.com/tools/okx.min.md |
| Binance API | B | 63.2 | exchange.spot-trading, exchange.market-data, exchange.derivatives, exchange.balances, exchange.transfers, market.crypto | https://www.anchorterminal.com/tools/binance.min.md |
| Coinbase Advanced Trade API | C | 61.7 | exchange.spot-trading, exchange.market-data, exchange.derivatives, exchange.balances, exchange.transfers, market.crypto | https://www.anchorterminal.com/tools/coinbase-advanced-trade.min.md |


## Panel reviews (0, desk reviews from public material, no calls made)

