OKX

OKX MCP Connector for Claude

F

Trade crypto and manage your OKX account via AI — check balances, track positions, and execute orders directly from your agent.

6 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect your OKX trading account to any AI agent to monitor markets and manage your portfolio through natural language.

What you can do

  • Market Data — Retrieve available instruments for spot, margin, futures, and options trading using get_instruments.
  • Account Monitoring — Fetch real-time asset balances with get_balance and track active positions across different instrument types with get_positions.
  • Order Management — Place new trade orders (limit, market, etc.) via place_order, amend existing ones with amend_order, or cancel pending orders instantly using cancel_order.
  • Flexible Trading — Support for various trade modes including cash, cross, and isolated margin directly from your conversation.

How it works

  1. Subscribe to this server
  2. Enter your OKX API Key, Secret Key, and Passphrase
  3. Start trading and monitoring your portfolio from Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Traders — execute orders and check positions without switching between multiple exchange tabs or mobile apps.
  • Developers — integrate trading capabilities into automated workflows or code editors to monitor exposure while working.
  • Portfolio Managers — get quick summaries of balances and risk exposure across different asset classes using natural language queries.
cryptocurrency-tradingportfolio-managementmarket-dataasset-trackingmargin-tradingapi-trading

6 tools expose this connector's capabilities to your AI agent.

amend_order

Requires instrument ID and either order ID or client order ID. Amend an existing incomplete order

get_balance

Can be filtered by specific currencies. Retrieve asset balances in the trading account

cancel_order

Requires instrument ID and either order ID or client order ID. Cancel an incomplete order

get_instruments

Can be filtered by instrument type. Retrieve available instruments for the account

place_order

Requires instrument ID, trade mode, side, order type, and size. Place a new trade order

get_positions

Can be filtered by instrument type, instrument ID, or position ID. Retrieve active positions

See how to talk to your AI agent using OKX.

Show me my current USDT and BTC balance on OKX.

I've retrieved your balances. You currently have 1,250.50 USDT available and 0.045 BTC. Would you like to see balances for any other assets?

List all my active futures positions.

You have one active position: BTC-USDT-SWAP (Long) with a size of 0.1 BTC at an entry price of 65,000. Your current unrealized PnL is +$120.00.

Place a market buy order for 0.01 BTC on the BTC-USDT spot market.

Market buy order for 0.01 BTC on BTC-USDT has been placed successfully. Order ID: 192837465. Trade mode: cash.

Yes! Use the `get_balance` tool and provide a comma-separated list of currencies in the `ccy` parameter. The agent will return the available and frozen balances for those specific assets.

Related Connectors