# Okx (npm · @pipeworx/mcp-okx)

OKX v5 public MCP.

- Trust score: 81/100 (high trust)
- Change this week: +3
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-11-05

## Components

- remote · `gateway.pipeworx.io`: 83/100, [markdown](https://verifymcp.io/servers/pipeworx-io-okx/okx-mcp.md), [page](https://verifymcp.io/servers/pipeworx-io-okx/okx-mcp)
- npm · `@pipeworx/mcp-okx`: 81/100 (this document), [markdown](https://verifymcp.io/servers/pipeworx-io-okx/pipeworx-mcp-okx.md), [page](https://verifymcp.io/servers/pipeworx-io-okx/pipeworx-mcp-okx)

## Channel facts

- Registry: `npm`
- Package: `@pipeworx/mcp-okx`
- Version: `0.2.1`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-11-05.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - No production dependencies, so there is no dependency health to assess.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to pipeworx-io/mcp-okx).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 1 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 69/100
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 1493 tokens (~87/item across 17 items; 17 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 23/100
  - Stability observed for 7 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 74/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 23% of tool parameters carry a description.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 17 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 18 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### How do I install the Okx MCP server?

Okx runs locally as an npm package, launched with npx -y @pipeworx/mcp-okx. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add pipeworx-io-okx -- npx -y @pipeworx/mcp-okx
```

### Cursor

```json
{
  "mcpServers": {
    "pipeworx-io-okx": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-okx"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "pipeworx-io-okx": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-okx"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add pipeworx-io-okx -- npx -y @pipeworx/mcp-okx
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "pipeworx-io-okx": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@pipeworx/mcp-okx"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add pipeworx-io-okx --command npx --arg -y --arg @pipeworx/mcp-okx
```

### Hermes

```yaml
mcp_servers:
  pipeworx-io-okx:
    command: "npx"
    args: ["-y", "@pipeworx/mcp-okx"]
```

### Netclaw

```json
{
  "McpServers": {
    "pipeworx-io-okx": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "@pipeworx/mcp-okx"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add pipeworx-io-okx -t stdio -c npx -a -y @pipeworx/mcp-okx
```

### Other

```json
{
  "mcpServers": {
    "pipeworx-io-okx": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-okx"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-11-04 (score 81, +16)

- [security improvement] Malware scan: unverified → pass

### 2026-11-03 (score 65, −13)

- [security regression] Malware scan: pass → unverified
- [functional regression] Security disclosure: fail → unverified
- [functional improvement] Stability: unverified → 0.17
- [functional] Package version: 0.2.0 → 0.2.1

### 2026-10-30 (score 78, 0)

- [functional regression] Security disclosure: unverified → fail

### 2026-10-29 (score 78)

First indexed and scored.

## MCP tools (17)

### `instruments` (~85 tokens)

OKX crypto exchange — list instruments by type: 'SPOT', 'MARGIN', 'SWAP', 'FUTURES', or 'OPTION'. Returns instrument IDs, tick sizes, lot sizes, and trading rules for each.

Input parameters:

- `instFamily` (string)
- `instId` (string)
- `instType` (string, required)
- `uly` (string)

### `ticker` (~64 tokens)

OKX crypto exchange — single instrument ticker (e.g. "BTC-USDT", "BTC-USD-SWAP"). Returns bid/ask, last, 24h vol/change. Use for current pricing of an OKX-listed instrument.

Input parameters:

- `instId` (string, required)

### `tickers` (~89 tokens)

OKX crypto exchange — bulk tickers by instrument type ("SPOT", "MARGIN", "SWAP", "FUTURES", "OPTION"). Use to enumerate all spot or all perp instruments. NOT a general stock-ticker search — use polygon-io/tickers for that.

Input parameters:

- `instFamily` (string)
- `instType` (string, required)
- `uly` (string)

### `order_book` (~56 tokens)

OKX crypto exchange order book (bids + asks) for a spot/perp/futures instrument. Use for live depth-of-book on OKX-listed instruments.

Input parameters:

- `instId` (string, required)
- `sz` (number)

### `candles` (~79 tokens)

OKX crypto exchange OHLC candles for a spot/perp/futures instrument. Bars 1m through 1M. Use for charting and backtesting OKX instruments.

Input parameters:

- `after` (string)
- `bar` (string)
- `before` (string)
- `instId` (string, required)
- `limit` (number)

### `trades` (~52 tokens)

OKX crypto exchange recent trade tape for an instrument. Returns price, size, side, timestamp. Use for tick-level execution analysis on OKX.

Input parameters:

- `instId` (string, required)
- `limit` (number)

### `market_24hr` (~54 tokens)

OKX crypto exchange 24-hour rolling stats for an instrument: open, high, low, last, volume, vol-ccy. Use for daily summary on OKX.

Input parameters:

- `instId` (string, required)

### `index_tickers` (~64 tokens)

OKX crypto exchange index tickers — current index price and 24h change for OKX index instruments. Filter by quote currency (e.g. 'USD') or specific instId.

Input parameters:

- `instId` (string)
- `quoteCcy` (string)

### `funding_rate` (~52 tokens)

OKX crypto exchange current perpetual swap funding rate for a SWAP instrument (e.g. 'BTC-USDT-SWAP'): funding rate, next settlement time, and method.

Input parameters:

- `instId` (string, required)

### `funding_rate_history` (~83 tokens)

OKX crypto exchange historical perpetual swap funding rates for a SWAP instrument (e.g. 'BTC-USDT-SWAP'). Optional before/after (ms epoch) cursors and limit. Use for funding cost analysis.

Input parameters:

- `after` (string)
- `before` (string)
- `instId` (string, required)
- `limit` (number)

### `mark_price` (~73 tokens)

OKX crypto exchange mark price for derivatives: pass instType (e.g. 'SWAP') and optionally uly or instId. Returns the mark price used for unrealised P&L and liquidation calculations.

Input parameters:

- `instId` (string)
- `instType` (string, required)
- `uly` (string)

### `time` (~27 tokens)

OKX exchange server time in Unix milliseconds. Use to synchronise request timestamps or verify API connectivity.

### `status` (~26 tokens)

OKX exchange system status — current operational state and any scheduled or ongoing maintenance windows affecting trading.

### `perp_metrics` (~236 tokens)

Crypto perpetual futures snapshot in one call: funding rate, open interest, taker buy/sell volume (CVD) and long/short account ratio for a perpetual swap. Accepts exchange-style symbols such as 'MASKUSDT', 'MASK' or 'MASK-USDT-SWAP'. Figures come from the OKX venue and the response states that venue, so a symbol quoted on Binance or Bybit is answered with OKX's own contract for that coin, labelled as such.

Input parameters:

- `buckets` (number): How many recent buckets of taker flow to sum for CVD. Default 24, max 100.
- `instId` (string, required): Perpetual symbol — 'MASKUSDT', 'MASK', 'MASK-USDT' and 'MASK-USDT-SWAP' all resolve to the same OKX contract.
- `period` (string): Bucket size for taker flow and long/short ratio: 5m, 15m, 30m, 1H, 2H, 4H, 6H, 12H, 1D. Default 5m.

### `open_interest` (~96 tokens)

Open interest for a crypto perpetual swap or dated futures contract on the OKX venue — contracts outstanding, coin-denominated size and USD notional, with timestamp. Accepts 'MASKUSDT', 'MASK' or 'MASK-USDT-SWAP'. Use to size how much leverage is riding on a perp.

Input parameters:

- `instId` (string, required)
- `instType` (string): SWAP (default), FUTURES or OPTION.

### `taker_volume` (~166 tokens)

Taker buy versus taker sell volume for a crypto perpetual contract on the OKX venue, bucketed by period. Returns the per-bucket series, the buy/sell ratio and cumulative volume delta (CVD) across the window — the aggressor-flow input for order-flow and CVD analysis.

Input parameters:

- `buckets` (number): Recent buckets to return and sum. Default 24, max 100.
- `instId` (string, required)
- `period` (string): 5m, 15m, 30m, 1H, 2H, 4H, 6H, 12H or 1D. Default 5m.
- `unit` (string): '0' for contracts (default), '1' for coin.

### `long_short_ratio` (~139 tokens)

Long/short account ratio for a crypto perpetual contract on the OKX venue — the ratio of accounts holding longs to accounts holding shorts, bucketed by period. A value above 1 means more accounts sit long. Use for positioning and crowd-sentiment reads on a perp.

Input parameters:

- `buckets` (number): Recent buckets to return. Default 24, max 100.
- `instId` (string, required)
- `period` (string): 5m, 15m, 30m, 1H, 2H, 4H, 6H, 12H or 1D. Default 5m.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/pipeworx-io-okx/pipeworx-mcp-okx#diagnostics

## Score history

- 2026-11-05: 81
- 2026-11-04: 81
- 2026-11-03: 65
- 2026-11-02: 78
- 2026-11-01: 78
- 2026-10-31: 78
- 2026-10-30: 78
- 2026-10-29: 78

## Common questions

### What is the Okx MCP server?

Okx is an MCP server listed in the public MCP registry as io.github.pipeworx-io/okx. OKX v5 public MCP. This page covers its npm package (@pipeworx/mcp-okx).

### Is the Okx MCP server safe to use?

Okx scores 81 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 5 November 2026. It declares no install or post-install scripts. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the Okx MCP server expose?

Okx exposes 17 tools: instruments, ticker, tickers, order_book, candles, and 12 more. Their descriptions and schemas cost roughly 1,441 tokens of context every time the server is loaded.

### Is the Okx MCP server still maintained?

Okx is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the Okx MCP server under?

Okx declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

### What did VerifyMCP test on the Okx MCP server?

VerifyMCP ran 16 checks on Okx, covering Malware scan, Known CVEs, Install scripts, Dependency health and 12 more. Endpoint Security and Transport & Reachability do not apply to an npm package, so they were not tested. The score does not measure everything, and the scoring documentation lists what it leaves out.

## Links

- npm package: https://www.npmjs.com/package/@pipeworx/mcp-okx
- Socket report: https://socket.dev/npm/package/@pipeworx/mcp-okx
- Repository: https://github.com/pipeworx-io/mcp-okx
- Website: https://pipeworx.io/packs/okx
- Changelog RSS feed: https://verifymcp.io/servers/pipeworx-io-okx/pipeworx-mcp-okx.xml
- Changelog JSON feed: https://verifymcp.io/servers/pipeworx-io-okx/pipeworx-mcp-okx/changelog.json
- Trust report (JSON): https://verifymcp.io/servers/pipeworx-io-okx/pipeworx-mcp-okx.json
- HTML version of this page: https://verifymcp.io/servers/pipeworx-io-okx/pipeworx-mcp-okx
