OKX MCP Server
MCP Server for okx.com
OKX MCP Server scores 46 (Fair), licensed MIT and written in Python. It installs as a local process. It declares 11 tools. Filed under Finance. GitHub shows 2 stars. Package registries report about 57 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
46 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: short README, 11 of 11 tools barely described, short summary.
How quality is graded
Where the 46 comes from
22 + 1 + 2 + 10 + 4 + 7 = 46. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 1 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 2 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "aahl-mcp-okx": { "command": "uvx", "args": [ "mcp-okx" ] } }}
Environment variables
This server does not declare environment variables.
Tools11Tool docs quality grade D
All capabilitiesaccount_balancetoolGet account balance
account_configtoolGet account configuration
Get account position risk
Get account positions
cancel_ordertoolCancel an incomplete order
close_positionstoolLiquidate all positions
get_order_listtoolGet incomplete order list
Get Order History
get_trade_ordertoolGet order details
market_tickerstoolGet cryptocurrency rankings
place_ordertoolPlace a new order
About
🆗 OKX MCP Server
📲 Install
Method 1: uvx
{
"mcpServers": {
"mcp-okx": {
"command": "uvx",
"args": ["mcp-okx"],
"env": {
"OKX_API_KEY": "your-okx-api-key",
"OKX_API_SECRET": "api-secret-key",
"OKX_PASSPHRASE": "api-passphrase",
"OKX_TRADE_FLAG": "1", # 0: Production trading, 1: Demo trading
"OKX_BASE_URL": "https://www.okx.com", # Optional
"MCP_AUTH_TOKEN": "your-custom-token" # Default same as OKX_API_KEY
}
}
}
}
Method 2: Docker
mkdir /opt/mcp-okx
cd /opt/mcp-okx
wget https://raw.githubusercontent.com/aahl/mcp-okx/refs/heads/main/docker-compose.yml
docker-compose up -d
{
"mcpServers": {
"mcp-okx": {
"url": "http://0.0.0.0:8811/mcp", # Streamable HTTP
"headers": {
"Authorization": "Bearer your-okx-api-key-or-custom-token"
}
}
}
}
⚙️ Environment variables
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 asOKX_API_KEY
🛠️ Available Tools
account_config- Get account configurationaccount_balance- Get account balanceaccount_positions- Get account positionsaccount_position_risk- Get account position risk
place_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 positions
market_tickers- Get cryptocurrency rankings
Frequently asked questions
What is OKX MCP Server?
MCP Server for okx.com
How do I install OKX MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. OKX MCP Server runs locally from the PyPI package mcp-okx with the command uvx mcp-okx.
Is OKX MCP Server free and open source?
Yes. OKX MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does OKX MCP Server support remote (HTTP) connections?
No remote endpoint is listed for OKX MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does OKX MCP Server provide?
OKX MCP Server provides 11 tools, including account_balance, account_config, account_position_risk, and account_positions. See the full tool list for descriptions and parameters.
How is OKX MCP Server's trust score calculated?
OKX MCP Server scores 46 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.