Skip to main content
Glama
aahl

OKX MCP Server

by aahl

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OKX_API_KEYYesAPI key of your OKX account. Please refer to my api page regarding API Key creation.
OKX_BASE_URLNoBase URL of OKX. Default: https://www.okx.comhttps://www.okx.com
MCP_AUTH_TOKENNoCustom token for authentication. Default same as OKX_API_KEY
OKX_API_SECRETYesAPI secret key of your OKX account.
OKX_PASSPHRASEYesAPI passphrase of your OKX account.
OKX_TRADE_FLAGYes0: Production trading, 1: Demo trading

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
account_configA

Retrieve current OKX account configuration. It is recommended to use this tool to obtain account configuration information before using all other tools

account_balanceA

Retrieve a list of assets (with non-zero balance), remaining balance, and available amount in the OKX trading account

account_positionsA

Retrieve information on your OKX positions. When the account is in net mode, net positions will be displayed, and when the account is in long/short mode, long or short positions will be displayed. Return in reverse chronological order using ctime.

account_position_riskC

Obtain the overall holding risk of the OKX account

place_orderC

Place a new order on OKX for trading

cancel_orderC

Cancel an incomplete order on OKX

get_trade_orderC

Retrieve order details on OKX. For a detailed schema of the output object, please read the resource at: schema://trade/order

get_order_listC

Retrieve all incomplete orders under the current OKX account. For a detailed schema of the output object, please read the resource at: schema://trade/order

get_orders_historyB

Get completed orders on OKX which are placed in the last 7 days, including those placed 7 days ago but completed in the last 7 days.The incomplete orders that have been canceled are only reserved for 2 hours. For a detailed schema of the output object, please read the resource at: schema://trade/order

close_positionsA

Liquidate all positions in the designated trading product at market price on OKX

market_tickersC

Retrieve the latest price snapshot, best bid/ask price, and trading volume in the last 24 hours.Get the ranking of coins with the highest increase or the largest trading volume.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
schema_trade_orderThis resource is used to describe the schema of the trade order on OKX

TDQS

B3.2/5.0

Scored across 11 tools

Disambiguation4/5

Most tools have distinct purposes, such as account_balance for balances, place_order for trading, and market_tickers for market data. However, get_order_list, get_orders_history, and get_trade_order could cause confusion as they all retrieve order information with overlapping scopes, though descriptions clarify differences like incomplete vs. completed orders.

Naming Consistency5/5

Tool names consistently follow a verb_noun or noun_verb pattern with snake_case throughout, such as account_balance, cancel_order, and market_tickers. This uniformity makes the set predictable and easy to navigate for an agent.

Tool Count5/5

With 11 tools, the server is well-scoped for an OKX trading platform, covering account management, order handling, and market data. Each tool serves a clear purpose without being overly sparse or bloated, fitting typical expectations for such a domain.

Completeness4/5

The tool set provides comprehensive coverage for core trading operations, including account info, order placement, cancellation, and market data. A minor gap exists in lacking tools for modifying existing orders or positions beyond cancellation and liquidation, but agents can work around this with the available tools.

Maintenance

ActivityInactive
ResponsivenessNo issues