okx/agent-trade-kit

OKX trading MCP server — connect AI agents to spot, swap, futures, options & grid bots via the Model Context Protocol.

What it solves

This toolkit provides a way for AI assistants to interact directly with an OKX trading account. It eliminates the need for users to manually switch between an AI chat interface and the exchange's user interface to execute trades or analyze market data.

How it works

The project consists of two main components: an MCP (Model Context Protocol) server and a CLI tool. The MCP server allows AI clients like Claude Desktop or Cursor to call tools that execute actions on OKX. The CLI tool allows users to operate OKX from the terminal. Both run as local processes, ensuring that API keys are stored locally on the user's machine and not in the cloud.

Who it’s for

Traders and developers who use AI assistants to manage their OKX accounts, execute trades, and monitor market data through a natural language interface.

Highlights

  • Extensive Toolset: Includes 167 tools across 11 modules covering market data, spot/swap/futures/options trading, account management, and trading bots.

  • MCP Standard: Compatible with any MCP-compatible AI client, including Claude Desktop and Cursor.

  • Local Security: API keys are stored locally; no cloud services or external databases are required.

  • Built-in Safety: Features a --read-only flag to prevent accidental trades and a built-in rate limiter.

  • Agent Skills: Includes pre-built skill files that provide instructions for AI agents to handle specific tasks like portfolio management or smart money analysis.

Related

  • Project
  • Project
  • Project
  • Project
  • Project