OKX MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OKX_API_KEY | Yes | API key of your OKX account. Please refer to my api page regarding API Key creation. | |
| OKX_BASE_URL | No | Base URL of OKX. Default: https://www.okx.com | https://www.okx.com |
| MCP_AUTH_TOKEN | No | Custom token for authentication. Default same as OKX_API_KEY | |
| OKX_API_SECRET | Yes | API secret key of your OKX account. | |
| OKX_PASSPHRASE | Yes | API passphrase of your OKX account. | |
| OKX_TRADE_FLAG | Yes | 0: 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
| Name | Description |
|---|---|
| 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: |
| 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: |
| 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: |
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| schema_trade_order | This resource is used to describe the schema of the trade order on OKX |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aahl/mcp-okx'
If you have feedback or need assistance with the MCP directory API, please join our Discord server