MCP Server for okx.com
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"io-github-aahl-mcp-okx": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
"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
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in finance
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
MCP server for InsightSentry financial data API - market data, options, screeners, and more
Model Context Protocol for Actual Budget API
A Model Context Protocol server allows Clients to interact with Xero
MCP Security Weekly
Get CVE alerts and security updates for io.github.aahl/mcp-okx and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
{
"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
}
}
}
}
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"
}
}
}
}
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 rankings