MCP Server for okx.com
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
OKX_API_KEY: API key of your OKX account. Please refer to my api page regarding API Key creation.OKX_API_SECRET: API secret key of your OKX account.OKX_PASSPHRASE: API passphrase of your OKX account.OKX_TRADE_FLAG: 0: Production trading, 1: Demo tradingOKX_BASE_URL: Base URL of OKX. Default: https://www.okx.comMCP_AUTH_TOKEN: Custom token for authentication. Default same as OKX_API_KEYaccount_config - Get account configurationaccount_balance - Get account balanceaccount_positions - Get account positionsaccount_position_risk - Get account position riskplace_order - Place a new ordercancel_order - Cancel an incomplete orderget_trade_order - Get order detailsget_order_list - Get incomplete order listget_orders_history - Get Order Historyclose_positions - Liquidate all positionsmarket_tickers - Get cryptocurrency rankingsShowcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/okx-mcp-server)<a href="https://allmcps.com/mcp/okx-mcp-server"><img src="https://allmcps.com/api/badge/okx-mcp-server?style=directory" alt="OKX MCP Server on AllMCPs" /></a>