GitHub - memetus/okx-mcp-playground (original) (raw)

OKX MCP Playground

This repository contains a Model Context Protocol (MCP) server that provides Claude with access to various blockchain data and market price data via the OKX API. The server enables Claude to perform operations like retrieve assets prices, transaction data, account history data and trade instruction data.

Overview

The MCP server exposes the following tools to Claude:

Balance Operations

Gateway Operations

Index Price Operation

Market Price Operation

Trade Operation

Transaction Operation

Prerequisites

Installation

  1. Clone this repository:
    git clone https://github.com/memetus/okx-mcp-playground
    cd okx-mcp-playground
  2. Install dependencies:
  3. Build the project:
  4. Build the project with Smithery:

Configuration

Configure Claude Desktop

To configure Claude Desktop to use this MCP server:

  1. Open Claude Desktop
  2. Navigate to the Claude Desktop configuration file:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  3. Add the MCP server configuration:

{ "mcpServers": { "okx-mcp-playground": { "command": "node", "args": ["your project path/dist/index.js"], "env": { "OKX_API_KEY": "your-okx-api-key", "OKX_API_SECRET": "your-okx-api-secret", "OKX_PASSPHRASE": "your-okx-api-passphrase", "OKX_PROJECT_ID": "your-okx-project-id" } } } }

Environment Variables

OKX_API_KEY="" OKX_API_SECRET="" OKX_PASSPHRASE="" OKX_PROJECT_ID=""

Running Locally

License

MIT