OKX MCP Server

OKX MCP Server is an MCP server that provides real-time cryptocurrency price data and market metrics from the OKX exchange. It connects directly to public OKX API endpoints to supply AI assistants with accurate market indicators, historical candlestick pricing, and 24-hour volume statistics. Cryptocurrency analysts, financial software developers, and traders use this server to inspect digital asset values without leaving their LLM interface. By surfacing two core tools, get_candlesticks and get_price, the server enables automated queries across any supported trading pair such as BTC-USDT. Users can inspect current bids, asks, latest trade prices, and historical open-high-low-close-volume metrics across custom time intervals. The server features built-in network error handling, rate-limit management via Axios timeouts, and local request logging to ensure reliable market data delivery during agent conversations.

Category: Data & Analytics

Tags: cryptocurrency, finance, market data, okx, trading

Visit OKX MCP Server

How to install and configure OKX MCP Server

  1. Clone the repository and navigate to the project directory. 2. Install dependencies by running npm install. 3. Build the server using npm run build. 4. Open your MCP client configuration file, such as claude_desktop_config.json for Claude Desktop or cline_mcp_settings.json for VSCode. 5. Add the server entry under the mcpServers object: json { "mcpServers": { "okx": { "command": "node", "args": ["/path/to/okx-mcp-server/build/index.js"], "disabled": false, "autoApprove": [] } } } 6. Replace /path/to/okx-mcp-server with the absolute path to your compiled project directory, then restart your MCP client.

What you can do with OKX MCP Server

  • Checking real-time spot prices, bid-ask spreads, and 24-hour highs and lows for pairs like BTC-USDT during conversations. - Retrieving historical OHLCV candlestick records across intervals like 1m or 1H to analyze short-term market momentum. - Supplying accurate OKX trade volume data to AI agents generating automated daily market summary reports. - Auditing exchange volatility by comparing 24-hour price ranges and trading volumes directly from Claude Desktop.

Key facts

  • https://github.com/esshka/okx-mcp
  • Data & Analytics, Finance, Crypto & Payments
  • cryptocurrency, finance, market data, okx, trading

Part of MCP Servers

Related MCP servers

  • MCP KQL Server — MCP KQL Server is an MCP server that connects AI assistants to Azure Data Explorer clusters using Azure CLI authentication.…
  • MCP Jupyter Complete — MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP Mempool — MCP Mempool is an MCP server that exposes the mempool.space WebSocket and REST APIs to AI agents, LLM assistants, and…
  • MCP Options Order Flow Server — MCP Options Order Flow Server is an MCP server that provides real-time options order flow data, institutional bias tracking, and…
  • MCP Orlen Wholesale Price — MCP Orlen Wholesale Price is an MCP server that provides access to Polish Orlen fuel wholesale pricing data directly inside…
  • MCP Payment Server — MCP Payment Server is an MCP server that provides payment link processing capabilities to AI assistants and autonomous agents using…

What can OKX MCP Server do?

OKX MCP Server enables AI clients to retrieve real-time and historical cryptocurrency market data from OKX. It exposes tools to fetch current prices, best bid and ask rates, 24-hour trading volumes, and historical OHLCV candlestick arrays across custom time intervals for any supported instrument.

Which MCP clients work with OKX MCP Server?

The server works with any Model Context Protocol client that supports local stdio command execution. This includes Claude Desktop on macOS and Windows, as well as VSCode extensions like Cline that use MCP settings files.

How do I install OKX MCP Server?

Clone the source repository from GitHub, run npm install to set up dependencies, and run npm run build to compile the TypeScript files. Afterward, add the compiled index.js path to your Claude Desktop or VSCode MCP configuration file using node as the command.

What tools are available in OKX MCP Server?

The server provides two tools: get_price and get_candlesticks. The get_price tool retrieves the latest price, bid, ask, 24-hour range, and volume for a symbol. The get_candlesticks tool returns an array of OHLCV data points with custom intervals and limits up to 100 bars.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories