MCP.so
登录

OKX MCP Server

@badger3000

基本信息

分类

其他

传输方式

stdio

作者

badger3000

关于 OKX MCP Server

暂无概览

OKX MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "okx-mcp-server": {
      "command": "node",
      "args": [
        "build/index.js"
      ]
    }
  }
}

OKX MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is OKX MCP Server?

OKX MCP Server is a Model Context Protocol server that fetches real-time cryptocurrency data from the OKX exchange. It provides AI assistants like Claude with tools to access up-to-date price information, historical candlestick data, and WebSocket live updates with visual formatting.

How to use OKX MCP Server?

Install Node.js (v16+), clone the repository, run npm install, then npm run build. Start the server with npm start or node build/index.js. Integrate with VSCode's Claude extension or Claude Desktop by adding the MCP configuration to the appropriate settings file.

Key features of OKX MCP Server

  • get_price: fetch latest price with visual formatting
  • get_candlesticks: retrieve historical candlestick data with ASCII charts
  • subscribe_ticker: subscribe to real-time WebSocket updates
  • get_live_ticker: retrieve latest live data from WebSocket
  • unsubscribe_ticker: stop receiving updates for a trading pair
  • Multiple output formats: markdown, json, table

Use cases of OKX MCP Server

  • Ask an AI assistant for the current Bitcoin price (BTC-USDT) with a formatted display.
  • Request a candlestick trend of Ethereum over the last hour using 5-minute intervals.
  • Monitor BTC-USDT in real-time and alert if price moves more than 1%.
  • Compare current prices of multiple trading pairs in a single query.
  • Track market volatility as it happens using WebSocket subscriptions.

常见问题

1

What tools are available in OKX MCP Server?

The server provides five tools: `get_price`, `get_candlesticks`, `subscribe_ticker`, `get_live_ticker`, and `unsubscribe_ticker`.

2

How do I get real-time price updates?

Use `subscribe_ticker` with an instrument ID to start a WebSocket subscription, then `get_live_ticker` to retrieve the latest cached data. Use `unsubscribe_ticker` to stop.

3

Do I need API keys to use this server?

No, the current implementation uses only public OKX API endpoints, so no API keys or authentication are required.

4

What output formats are supported?

- `get_price`: markdown (default) or json - `get_candlesticks`: markdown, table, or json - `get_live_ticker`: markdown or json

5

Where should I configure the MCP server for VSCode?

Edit the file `~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json` and add the server configuration with the path to `build/index.js`.

评论

其他 分类下的更多 MCP 服务器