okx-mcp-server
The OKX MCP Server is designed to facilitate real-time cryptocurrency data fetching and accessibility for AI assistants, featuring tools for price retrieval and candlestick visualization. It leverages real-time updates through WebSocket and is easily extendable for enhanced functionality.
OKX MCP Server
This project creates a Model Context Protocol (MCP) server that fetches real-time cryptocurrency data from the OKX exchange, allowing AI assistants to access up-to-date price information and historical data. The server offers tools for price retrieval, candlestick data, and WebSocket subscription for real-time updates. It features data visualization capabilities such as formatted markdown output and ASCII charts.
Features
- Fetch latest price data with visual formatting
- Retrieve historical candlestick data
- Subscribe to WebSocket updates
- Visualization options include markdown, table, and JSON formats
Prerequisites
- Node.js, npm or yarn
- VSCode with Claude extension, or Claude Desktop
Installation and Usage
Clone the repository, install dependencies, and start the server. Test with MCP Inspector before integration. Features include formatted displays, trend analysis, and real-time monitoring.
Development and Extensibility
The server can be extended with additional tools, support for other exchanges, and advanced visualizations and analysis indicators.