by okx
OKX trading MCP server — connect AI agents to spot, swap, futures, options & grid bots via the Model Context Protocol.
# Add to your Claude Code skills
git clone https://github.com/okx/agent-trade-kitOKX Agent Trade Kit — an AI-powered trading toolkit with two standalone packages:
| Package | Description |
|---|---|
| okx-trade-mcp | MCP server for Claude / Cursor and any MCP-compatible AI client |
| okx-trade-cli | CLI for operating OKX from terminal |
OKX Agent Trade Kit connects AI assistants directly to your OKX account via the Model Context Protocol. Instead of switching between your AI and the exchange UI, you describe what you want — the AI calls the right tools and executes it.
It runs as a local process with your API keys stored only on your machine. No cloud services, no data leaving your device.
No comments yet. Be the first to share your thoughts!
| Feature | Description |
|---------|-------------|
| 108 tools across 8 modules | Full trading lifecycle: market data → orders → algo orders → account management → earn → trading bots |
| Algo orders built-in | Conditional, OCO take-profit/stop-loss, trailing stop |
| Safety controls | --read-only flag, per-module filtering, built-in rate limiter |
| Zero infrastructure | Local stdio process, no server or database required |
| MCP standard | Works with Claude Desktop, Cursor, openCxxW, and any MCP-compatible client |
| Open source | MIT license, API keys never leave your machine |
| Module | Tools | Description | Docs |
|--------|-------|-------------|------|
| market | 13 | Ticker, orderbook, candles (+history), index ticker, index candles, price limit, funding rate, mark price, open interest, stock tokens | → |
| spot | 13 | Place/cancel/amend orders, batch orders, fills (+archive), order history (+archive), conditional orders, OCO | → |
| swap | 17 | Perpetual trading, batch orders, positions, leverage, conditional orders, OCO, trailing stop | → |
| futures | 18 | Delivery contract trading, positions, fills, order history, amend/close/leverage, batch orders, algo orders (TP/SL, OCO, trailing stop) | [→](do...