
A Model Context Protocol server that provides real-time cryptocurrency price data from OKX exchange.
A Model Context Protocol server that provides real-time cryptocurrency price data from OKX exchange.
·
A Model Context Protocol server that provides real-time cryptocurrency price data from OKX exchange.
This MCP server connects to the OKX API to provide cryptocurrency price information through a simple tool interface. It includes comprehensive error handling, request logging, and rate limiting via OKX's API.
get_candlesticksRetrieves historical candlestick (OHLCV) data for any instrument on OKX.
instrument: String (required) - Instrument ID (e.g. "BTC-USDT")bar: String (optional) - Time interval (e.g. "1m", "5m", "1H", "1D"), default "1m"limit: Number (optional) - Number of candlesticks to return (max 100), default 100timestamp: ISO timestamp of the candlestickopen: Opening pricehigh: Highest pricelow: Lowest priceclose: Closing pricevolume: Trading volumevolumeCurrency: Volume in currency termsExample usage:
[
{
"timestamp": "2025-03-07T17:00:00.000Z",
"open": "87242.8",
"high": "87580.2",
"low": "86548.0",
"close": "87191.8",
"volume": "455.72150427",
"volumeCurrency": "39661166.242091111"
}
]get_priceFetches the latest price and 24-hour market data for any instrument on OKX.
instrument: String (required) - Instrument ID (e.g. "BTC-USDT")instrument: The requested instrument IDlastPrice: Latest trade pricebid: Current best bid priceask: Current best ask pricehigh24h: 24-hour high pricelow24h: 24-hour low pricevolume24h: 24-hour trading volumetimestamp: ISO timestamp of the dataExample usage:
{
"instrument": "BTC-USDT",
"lastPrice": "65432.1",
"bid": "65432.0",
"ask": "65432.2",
"high24h": "66000.0",
"low24h": "64000.0",
"volume24h": "1234.56",
"timestamp": "2024-03-07T17:22:28.000Z"
}Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchTo use with Claude Desktop or VSCode, add the server config to your MCP settings:
macOS (VSCode):
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonmacOS (Claude Desktop):
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows (VSCode):
%APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonWindows (Claude Desktop):
%APPDATA%/Claude/claude_desktop_config.jsonConfiguration:
{
"mcpServers": {
"okx": {
"command": "node",
"args": ["/path/to/okx-mcp-server/build/index.js"],
"disabled": false,
"autoApprove": []
}
}
}The server implements comprehensive error handling:
Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add okx -- node /path/to/okx-mcp-server/build/index.js{
"mcpServers": {
"okx": {
"args": [
"/path/to/okx-mcp-server/build/index.js"
],
"command": "node"
}
}
}code --add-mcp '{"name":"okx","args":["/path/to/okx-mcp-server/build/index.js"],"command":"node"}'[mcp_servers.okx]
command = "node"
args = ["/path/to/okx-mcp-server/build/index.js"]Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/okx-mcp-server to learn what the "OKX MCP Server" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
This server runs locally, so we can't read its tool list over the web yet.
We could not run this server: it ships no npx package for our sandbox and no public endpoint. The four checks that need a live server are left out, and the grade tops out at B until one exists.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/okx-mcp-server)Nothing comparable is listed yet.
No tagged releases on record.
Connect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "okx-mcp-server" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.