MKT CAP$2.23T-0.3%
24H VOL$71.6B
BTC DOM57.7%
HEALTH34BEARISH
SHORT-TERM50NEUTRAL
LONG-TERM19BEARISH
OI$47.0B-0.5%
24H LIQ$148M
LONG/SHORT58.8% / 41.2%
REGIME (LT)ESTABLISHED BEAR MARKET
REGIME (ST)SQUEEZE
HL OI$7.3B
WHALESSHORT 46.3%
MKT CAP$2.23T-0.3%
24H VOL$71.6B
BTC DOM57.7%
HEALTH34BEARISH
SHORT-TERM50NEUTRAL
LONG-TERM19BEARISH
OI$47.0B-0.5%
24H LIQ$148M
LONG/SHORT58.8% / 41.2%
REGIME (LT)ESTABLISHED BEAR MARKET
REGIME (ST)SQUEEZE
HL OI$7.3B
WHALESSHORT 46.3%
Plug real-time crypto data into your AI agent — one command: Get your free API key →
Get API KeyLogin
CX

OpenAI Codex

Coding agent setup

Give OpenAI Codex CLI live crypto market data — prices, funding, open interest, liquidations, market regimes, Fear & Greed, dealer gamma and whale activity — as native MCP tools.

Two parts: the Agent Skill (knowledge) and the MCP server (live tools). Codex stores MCP servers in ~/.codex/config.toml as [mcp_servers.<name>] tables; the transport is chosen by which keys you set (command = stdio, url = streamable HTTP).

Vendor · OpenAI MCP · stdio + http (streamable) Config · ~/.codex/config.toml Skills · .agents/skills/ (skills CLI) Agent docs →
1

Install the Agent Skill

Install the skill with the skills CLI. For Codex, skills install under the agent skills directory (.agents/skills/); the CLI handles placement. See the Agent Skill page for what's inside.

Terminal
npx skills add Crypto-Data-API/cryptodataapi-skills -g -y
2

Connect the MCP server

The reliable path on Codex is the stdio bridge — the cryptodataapi-mcp npm package, which carries your key in the CRYPTODATA_API_KEY env var (needs Node.js). Add it with the CLI, or hand-edit ~/.codex/config.toml.

Codex also supports remote streamable-HTTP servers (a url key), but its HTTP auth is oriented around a bearer-token env var, so passing our custom X-API-Key header isn't cleanly supported on every version — prefer stdio unless your Codex build documents custom HTTP headers.

CLI (stdio)
codex mcp add cryptodataapi \
  --env CRYPTODATA_API_KEY=cdk_live_YOUR_KEY \
  -- npx -y cryptodataapi-mcp
~/.codex/config.toml
[mcp_servers.cryptodataapi]
command = "npx"
args = ["-y", "cryptodataapi-mcp"]
env = { CRYPTODATA_API_KEY = "cdk_live_YOUR_KEY" }
3

Try these prompts

Start Codex and confirm the server loaded (/mcp or codex mcp list). Then ask for a market read — see the example prompts below.

Example prompts

“What's the current market regime and which strategy baskets fit it?”

“Compare BTC funding rates across exchanges and flag crowded positioning.”

“Which coins have the highest liquidation risk right now?”

“Pull the daily snapshot and generate a Python backtest scaffold from it.”

“Is dealer gamma amplifying or dampening BTC moves today?”

FAQ

Does it cost anything?

No. The skill is free and the Free API tier (no card) covers the whole market-wide picture. Per-coin quant, gamma and whale signals need Pro.

Where does my API key live?

In the env of the [mcp_servers.cryptodataapi] table in ~/.codex/config.toml (or the --env you pass to codex mcp add). The bridge sends it as X-API-Key on each call.

The HTTP server won't initialize — what now?

Some Codex builds have had trouble initializing streamable-HTTP MCP servers, and our auth uses a custom header rather than a bearer token. If the remote form misbehaves, switch to the stdio config above — it's the dependable path on Codex. Also confirm Node.js is installed so npx can run the bridge.

Was this page helpful?

Missing an agent, a config that changed, or a step that didn't work? Tell us and we'll fix it.