MCP server
by mbarinov
Track your crypto portfolio with OKX. Access portfolio performance, trading positions & order history using this leading
Provides read-only access to your OKX cryptocurrency exchange account data including portfolios, positions, and order history for AI-powered trading analytics.
OKX is a community-built MCP server published by mbarinov that provides AI assistants with tools and capabilities via the Model Context Protocol. Track your crypto portfolio with OKX. Access portfolio performance, trading positions & order history using this leading It is categorized under finance, analytics data.
You can install OKX in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
OKX is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
According to our notes, OKX benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
I recommend OKX for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
OKX reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
OKX is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Strong directory entry: OKX surfaces stars and publisher context so we could sanity-check maintenance before adopting.
OKX has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
I recommend OKX for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
According to our notes, OKX benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
OKX has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
OKX is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
showing 1-10 of 59
A Model Context Protocol (MCP) server that provides access to OKX trading and portfolio management functionality. This package allows AI assistants to interact with your OKX account to retrieve portfolio information, trading positions, order history, and more.
This MCP server is designed with security as a top priority. Here's what makes it safe to use:

Example: Ask Claude "give me account summary" and instantly get your portfolio breakdown, asset allocation, and trading insights—all from your OKX account data.
Transform your trading experience with AI-powered portfolio insights. Once configured, you can ask Claude natural language questions about your OKX account:
The AI can provide instant analysis, generate insights, and help you make informed trading decisions—all through simple conversation.
Access Your OKX Account:
Open API Management:
Create Your API Key:
Set Read-Only Permissions:
Generate and Copy Credentials:
Your credentials will look like this:
apikey = "12345678-abcd-1234-efgh-123456789abc"
secretkey = "ABCD1234EFGH5678IJKL9012MNOP3456"
IP = ""
API key name = "MCP Server"
Permissions = "Read"
Secure Your Credentials:
Before configuring Claude Desktop, you need to install Node.js.
Option 1: Download from Official Website
Open Claude Desktop Settings:
Access Developer Section:
Edit Configuration:
claude_desktop_config.json file in your default text editorAdd OKX MCP Server Configuration:
{
"mcpServers": {
"okx-mcp": {
"command": "okx-mcp",
"env": {
"OKX_API_KEY": "your_api_key_here",
"OKX_API_SECRET": "your_secret_key_here",
"OKX_API_PASSPHRASE": "your_passphrase_here"
}
}
}
}
Update Your Credentials:
your_api_key_here with your actual API Key from Step 1your_secret_key_here with your actual Secret Key from Step 1your_passphrase_here with your actual Passphrase from Step 1Restart Claude Desktop:
Test the Connection:
This MCP server provides the following tools for AI assistants:
get_account_summaryget_portfolioget_positionsget_open_ordersget_order_historyinstId (required): Instrument ID (e.g., "BTC-USDT")begin (optional): Start timestampend (optional): End timestamp# Clone the repository
git clone https://github.com/maxbarinov/okx-mcp.git
cd okx-mcp
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Edit .env with your OKX API credentials
# Run in development mode
npm run dev
npm run build
src/
├── services/
│ └── okxApiClient.ts # OKX API client wrapper
└── tools/ # MCP tool implementations
├── get_account_summary.ts
├── get_portfolio.ts
├── get_positions.ts
├── get_open_orders.ts
└── get_order_history.ts
MIT
If you encounter any issues or have questions:
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.