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.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

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.

Upstream README

View this exact version on GitHub

README.md · 290be969e97a · Fetched 2026-11-13 13:48:25 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

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.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

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