Skip to main content
Glama
okx-spot-derivatives-mcp

okx-spot-derivatives-mcp

okx-spot-derivatives-mcp

Live OKX spot and perpetual swap tickers, orderbook depth, OHLCV candlestick bars, perpetual funding rates, and 24h volume leaders over Model Context Protocol (MCP). Trading desks, market makers, and quantitative researchers can query OKX public v5 endpoints directly without an API key or account. It connects right away.

Hosted endpoint

Point any Streamable HTTP MCP client at the free hosted Cloudflare Worker endpoint.

https://okx-spot-derivatives-mcp.lipmichal.workers.dev/mcp

Related MCP server: mcp-okx

Available tools

Tool

Purpose

get_okx_ticker

Fetch live OKX spot or perpetual swap ticker with last price, bid, ask, spread in bps, 24h high, low, and volume

get_okx_orderbook

Retrieve live OKX orderbook depth with top bids, asks, spread, and bid/ask volume imbalance

get_okx_candles

Pull OKX OHLCV candlestick bars across intervals from 1 minute to 1 week

get_okx_funding_rate

Inspect current and next OKX perpetual swap funding rates with annualized APR and funding timestamp

list_okx_top_markets

Rank active OKX spot or swap markets by 24h quote volume with optional symbol filter

Client configuration

Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.

{
  "mcpServers": {
    "okx-spot-derivatives": {
      "url": "https://okx-spot-derivatives-mcp.lipmichal.workers.dev/mcp"
    }
  }
}

Run locally over stdio

You can also run the server locally on Node 20 or newer over stdio.

npm install
npm start

Compliance and reliability

Every upstream request queries www.okx.com/api/v5/ with a polite User-Agent header and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates newer MCP protocol versions down to the SDK version cleanly.

More MCP servers and readiness check

This server belongs to the public MCP directory maintained by MCPStamp and Zovo.

Available Tools

5 tools
get_okx_candlesGet OKX candlestick barsB
Read-onlyIdempotent
Inspect

Fetch OHLCV candlestick bars for an OKX spot or perpetual swap instrument.

Inputs: bar, limit, inst_id.

get_okx_funding_rateGet OKX perpetual funding rateA
Read-onlyIdempotent
Inspect

Fetch the live OKX perpetual swap funding rate, annualized APR, min/max bounds, and next funding timestamp.

Inputs: inst_id.

get_okx_orderbookGet OKX orderbook depthB
Read-onlyIdempotent
Inspect

Retrieve top bid and ask levels from the live OKX orderbook along with spread in bps and bid/ask volume imbalance.

Inputs: depth, inst_id.

get_okx_tickerGet OKX live tickerA
Read-onlyIdempotent
Inspect

Fetch live OKX spot or perpetual swap ticker including last price, best bid, best ask, spread in basis points, 24h high/low, and volume.

Inputs: inst_id.

list_okx_top_marketsList OKX top markets by volumeA
Read-onlyIdempotent
Inspect

Rank active OKX spot, perpetual swap, or futures markets by 24h quote volume with optional symbol search.

Inputs: limit, search, inst_type.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool maps to a distinct market-data artifact: snapshot ticker, orderbook depth, OHLCV candles, funding rate, and market rankings. The only mild overlap is spread reporting in both ticker and orderbook, but the primary resources are clearly separate and an agent can select confidently.

    Naming Consistency5/5

    All five names follow a predictable verb_okx_noun pattern (get_okx_*, list_okx_*), with the verb varying meaningfully between single-resource fetch and ranked listing. Uniform snake_case with a consistent domain prefix.

    Tool Count5/5

    Five tools is well-scoped for a read-only OKX market-data server; each covers a distinct data type with no filler. Nothing feels redundant or conspicuously absent in terms of surface size.

    Completeness4/5

    Core market snapshots are covered (price, depth, candles, funding, rankings), enabling most analysis workflows. Minor gaps remain for a derivatives data surface — no open interest, mark/index price, or historical funding rate series — though agents can approximate much of this from the existing tools.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides real-time and historical cryptocurrency price data from the OKX exchange, including live WebSocket updates, candlestick charts, and visual price analysis for trading pairs.
      5
      3
      ISC
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides tools to query OKX cryptocurrency exchange data including instruments, tickers, candles, funding rates, and mark prices via MCP.
      92 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents and developers to retrieve read-only OKX public market data such as tickers, OHLCV candles, funding rates, and open interest, and to run stateless threshold alerts through MCP tools or a CLI with strict allowlisting and no credentials.
      5
      MIT