order-flow-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP port. Equivalent to the --port flag. | 3333 |
| HTTPS_PROXY | No | Send exchange WebSockets and REST calls through an HTTP(S) proxy. | |
| ORDERFLOW_HOST | No | HTTP bind address. Equivalent to the --host flag. | 127.0.0.1 |
| ORDERFLOW_PROXY | No | Send exchange WebSockets and REST calls through an HTTP(S) proxy. | |
| ORDERFLOW_WATCH | No | Markets that stream from startup and are never closed; 'none' for no watchlist. Equivalent to the --watch flag. | BTC,ETH,SOL |
| ORDERFLOW_TRANSPORT | No | Set to 'http' to serve Streamable HTTP at /mcp. Equivalent to the --http flag. | stdio |
| ORDERFLOW_HTTP_TOKEN | No | Require Authorization: Bearer <token>. Equivalent to the --token flag. | |
| ORDERFLOW_MAX_MARKETS | No | Upper bound on concurrent markets. Equivalent to the --max-markets flag. | 20 |
| ORDERFLOW_IDLE_MINUTES | No | Close markets outside the watchlist after this much idle time; 0 means never. Equivalent to the --idle-minutes flag. | 0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Live crypto order-flow data streamed from up to 10 exchanges (Binance, Bybit, OKX, Bitget, Hyperliquid, Deribit, Coinbase, Gate, KuCoin, Kraken, HTX), normalized and aggregated.
How to use:
Start with get_market_snapshot for a symbol (e.g. "BTC", "ETH", "SOL"). It returns price, session VWAP, delta, CVD windows, volume profile levels, order-book imbalance, open interest, funding, liquidations, big prints, absorption/iceberg events and plain-language signals.
Drill down with get_footprint, get_volume_profile, get_order_book, get_flow_series (CVD / volume z-score), get_derivatives, get_liquidations, get_big_trades, get_trades, get_microstructure_events, get_venue_comparison and get_liquidity_heatmap.
Use scan_markets to screen several symbols at once.
Defaults: market_type="perp" and venue="all" (every venue listing the market, aggregated). Pass venue="bybit" etc. for one exchange, market_type="spot" for spot.
Important: data is live and in-memory, and streams continuously while the server runs. The server's watchlist (BTC, ETH and SOL perpetuals by default) streams from startup; any other market starts streaming the first time it is requested and then keeps streaming. Session statistics cover only the time since a market began streaming (see stream_age_s; warming_up=true for the first minute), so wait before drawing conclusions from a young stream. list_active_markets shows what is streaming and for how long; watch_markets pins more markets. This is market data for analysis only; it cannot place orders.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_marketsB | Supported crypto assets (plus gold and silver perpetuals), which exchanges list each as perpetual or spot, and timeframes. Filter with query (e.g. 'sol', 'meme'). |
| get_market_snapshotB | One-call overview of live order flow for a market: price/spread, session OHLC & VWAP (σ distance), buy/sell volume & delta over 1m/5m/15m, volume z-score, realized vol, POC/VAH/VAL, order-book imbalance and depth bands, open interest & regime, funding, basis, liquidations, big prints, absorption/iceberg events, plain-language signals and venue connection status. |
| get_footprintB | Footprint (bid × ask volume per price row) candles: OHLC, volume, delta, CVD, POC, VWAP, per-row bid/ask volume with imbalance flags, and stacked imbalances. Rows are grouped so each candle has at most max_rows rows. |
| get_volume_profileB | Volume at price for the streamed session: POC, value area high/low, high-volume nodes, and per-row buy/sell volume and delta. |
| get_order_bookB | Live aggregated order book: top levels with cumulative size, spread, imbalance, depth within 0.1–2% of mid, large resting walls, and optionally per-venue top of book. |
| get_tradesA | Recent executed trades (tape), newest first, with aggressor side and notional. Filter by minimum notional, side or venue. |
| get_big_tradesB | Block / whale prints: trades at least N× the session's average print size, with buy vs sell totals. |
| get_flow_seriesA | Time bars of executed flow: OHLC, volume, buy/sell volume, delta, cumulative volume delta (CVD), trade count and rolling volume z-score, plus realized volatility. Built from 1-second bars (2h kept). |
| get_derivativesA | Perpetuals positioning: aggregate and per-venue open interest, funding (native and 8h-normalized, annualized), next funding, mark/index basis, OI change over 1m/5m/15m/60m with the price × OI regime (new longs, short covering, new shorts, long unwind), and per-minute OI history. |
| get_liquidationsB | Forced liquidations on perpetuals: long vs short notional over a window, per-minute buckets, largest liquidation, cascade flag and the latest events. |
| get_microstructure_eventsB | Detected absorption (passive side holding against aggressive flow without price moving) and iceberg orders (hidden size refilling at a level). |
| get_venue_comparisonB | Cross-exchange view for an aggregated market: each venue's last price premium vs the median, 60s volume share and delta, and which venue leads price (lag in ms). |
| get_liquidity_heatmapA | Order-book depth over time (sampled every second) within ±1% of mid: average resting size per price row and time column, plus persistent walls and whether they were pulled, added or held. |
| scan_marketsA | Screen several markets side by side: price change, 5m delta and buy %, 5m notional, 1m volume z-score, VWAP distance, book imbalance, funding, 5m OI change, 5m liquidations and big prints. Starts streams that are not running yet. |
| watch_marketsA | Start streaming markets now and keep them running (pinned, never idle-closed) so history accumulates for later analysis. Returns each market's status. |
| unwatch_marketB | Stop streaming a market and discard its in-memory history. |
| list_active_marketsA | Markets currently streaming on this server, with age, trade count, pin state and venue connection status. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| analyze_order_flow | Read the live order flow for a market and summarize who is in control, key levels and risks. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 17 tools
Most tools target clearly distinct analytical views: tape, footprint, volume profile, order book, derivatives, liquidations, venue comparison, and stream lifecycle are separable. The main overlap is that get_market_snapshot aggregates many of the same metrics available in specialized tools, and scan_markets overlaps somewhat with snapshot but is clearly multi-market.
Tool names follow a consistent verb_noun convention: list_*, get_*, scan_*, watch_*, unwatch_*, and list_* again. The only minor wrinkle is plural 'watch_markets' versus singular 'unwatch_market', but this does not meaningfully hurt readability or predictability.
Seventeen tools is slightly above the ideal compact range, but each maps to a meaningful order-flow concept or stream-lifecycle operation. The set is broad without obvious redundant filler, though a few overview tools could potentially be consolidated.
The surface covers market discovery, stream lifecycle, single-market overview, order-book depth, tape, block trades, footprint, volume profile, flow series, derivatives, liquidations, microstructure events, venue comparison, and multi-market scanning. For an order-flow analytics server, this is comprehensive with no obvious dead ends.