0xAuto OKX MCP Server

0xAuto OKX MCP Server

0xauto-okx-mcp-server•bybuidl-land

An MCP server that provides a tool interface layer for the OKX V5 API and OKX DEX API, giving AI agents access to exchange functionalities.

License: Not specified•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Exposes OKX centralized exchange operations as MCP tools, including account information, balances, positions, market data, trading, and funding.
  • •Provides MCP tools for OKX DEX aggregator, covering quotes, token prices, K-line data, balances, approvals, swaps, and cross-chain swaps.
  • •Handles OKX API authentication and signature logic, returning standardized JSON responses and errors over MCP protocol sessions.

BEST FOR

  • •AI agents that need to query OKX account balances, positions, and market data through MCP tools.
  • •Agents performing OKX CEX trading tasks such as placing, canceling, and reviewing orders.
  • •Agents executing on-chain token swaps and cross-chain swaps via the OKX DEX aggregator.

ABOUT 0XAUTO-OKX-MCP-SERVER

0xAuto OKX MCP Server is cataloged as an MCP server attributed to buidl-land. An MCP server that provides a tool interface layer for the OKX V5 API and OKX DEX API, giving AI agents access to exchange functionalities. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for 0xAuto OKX MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server operate against a simulated OKX trading account instead of live trading?

Yes, the configuration supports a simulated trading mode via the SIMULATED_TRADING setting, where 1 selects a demo account and 0 selects live trading.

Which endpoints can MCP clients use to communicate with the server?

Clients can use the /mcp main MCP request endpoint, plus the backward-compatible /sse and /messages endpoints.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 290be969e97a · 采集于 2026-11-13 13:48:25 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

0xAuto OKX MCP Server

This server is based on the Model Context Protocol (MCP), providing a tool interface layer for OKX V5 API and OKX DEX API, offering AI agents simplified access to OKX exchange (CEX) and decentralized exchange (DEX) functionalities.

Features

CEX (Centralized Exchange) Features

  • Hides complex OKX API authentication and signature logic
  • Provides standard MCP tool interfaces
  • Covers core functionalities:
    • Account information (balances, positions, history)
    • Market data (quotes, K-lines)
    • Trading operations (place orders, cancel orders, order management)
    • Funding operations (deposit addresses, withdrawals)

DEX (Decentralized Exchange) Features

  • Provides access to OKX DEX aggregator

  • Supports multi-chain transactions and token exchanges

  • Covers functionalities:

    • Token quote retrieval
    • Token price queries and K-line data
    • On-chain balance queries
    • Token authorization operations
    • Intra-chain and cross-chain swaps
  • Standardized JSON responses and error handling

  • Support for MCP protocol session management and streaming

System Requirements

  • Node.js (v16 or higher)
  • pnpm

Installation Steps

  1. Install dependencies:

    pnpm install
    
  2. Set up environment variables: Create a .env file by copying the contents from .env.example:

    cp .env.example .env
    

    Edit the .env file and fill in your OKX API credentials and other settings:

    # OKX API Configuration
    OKX_API_KEY=your_okx_api_key
    OKX_SECRET_KEY=your_okx_secret_key
    OKX_PASSPHRASE=your_okx_api_password
    OKX_API_BASE_URL=https://www.okx.com
    OKX_DEX_API_BASE=https://web3.okx.com/api/v5/dex
    
    # Simulated trading: 0 for live trading, 1 for demo account
    SIMULATED_TRADING=0
    
    SERVER_PORT=3000
    LOG_LEVEL=info
    

    Important note: Ensure your OKX API Key has the necessary permissions (read, trade).

Running the Server

pnpm start
# or development mode
pnpm dev

The server will start on the port specified by SERVER_PORT (default 3000).

MCP Tool List

The server implements the following MCP tools:

CEX (Centralized Exchange) Tools

  • okx_get_account_info - Get account information
  • okx_get_positions - Get position information
  • okx_get_balance - Get account balance
  • okx_place_order - Place trade order
  • okx_cancel_order - Cancel order
  • okx_get_orders - Get order information
  • okx_get_order_history - Get historical orders

Market Data Tools

  • okx_get_ticker - Get market quotes
  • okx_get_kline - Get K-line data
  • okx_get_instruments - Get product list
  • okx_get_deposit_address - Get deposit address
  • okx_get_deposit_history - Get deposit records
  • okx_withdraw - Withdraw funds

DEX (Decentralized Exchange) Tools

Quotes and Market Data

  • okx_get_quote - Get OKX DEX aggregator quotes (supports slippage settings)
  • okx_get_supported_chains - Get chains supported by OKX DEX
  • okx_get_token_list - Get token list supported by OKX DEX
  • okx_get_price - Get latest price of tokens on OKX DEX
  • okx_get_kline - Get K-line data for tokens on OKX DEX (supports different time granularities)
  • okx_approve_transaction - Get OKX DEX authorization transaction information
  • okx_swap - Initiate OKX DEX swap
  • okx_cross_chain_swap - Initiate OKX DEX cross-chain swap

Balance Queries

  • okx_get_balance - Get all token balances for a wallet address on a specified chain

Project Structure

src/
├── app.js              # Express application configuration
├── index.js            # Server startup entry
├── server.js           # MCP server creation and tool registration
├── config/             # Configuration files
├── controllers/        # Controller logic
├── middleware/         # Middleware
├── services/           # Service layer
│   ├── okxService.js   # OKX CEX API service
│   └── okxDexService.js# OKX DEX API service
├── tools/              # MCP tool implementation
│   ├── accountTools.js # CEX account tools
│   ├── fundingTools.js # CEX funding tools
│   ├── marketTools.js  # CEX market tools
│   ├── tradeTools.js   # CEX trading tools
│   ├── dexTools.js     # DEX tool registration
│   └── dex/            # DEX tool files
│       ├── quoteTool.js         # Quote tool
│       ├── supportedChainsTool.js# Supported chains tool
│       ├── tokenListTool.js     # Token list tool
│       ├── priceTool.js         # Price tool
│       ├── klineTool.js         # K-line tool
│       ├── balanceTool.js       # Balance tool
│       ├── approveTool.js       # Approval tool
│       ├── swapTool.js          # Swap tool
│       └── crossChainSwapTool.js# Cross-chain swap tool
└── utils/              # Utility functions

MCP Client Connection

MCP clients can communicate with the server through the following endpoints:

  • /mcp - Main MCP request endpoint
  • /sse - Backward-compatible SSE endpoint
  • /messages - Backward-compatible message endpoint

Uses standard MCP session management, including session ID and initialization requests.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for 0xAuto OKX MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/0xauto-okx-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics