GammaRips

How to Get Options Flow & Microstructure Data for AI Agents (API & MCP Guide)

By Evan Parra··Updated ·5 min read

Sourcing reliable options flow and contract-microstructure data for liquid names like $SPY, $NVDA, or $AAPL is foundational when building quantitative research pipelines or AI trading agents. Historically, structured derivatives feeds required expensive institutional terminals or custom exchange parsers. Today, developers can combine market data APIs with Model Context Protocol (MCP) servers to feed clean, point-in-time option metrics directly into Claude, ChatGPT, Cursor, or Python workflows.

Understanding the tradeoffs between raw intraday OPRA firehoses, retail sweep dashboards, and curated MCP datasets will save you weeks of engineering and keep your AI agent from drowning in noisy ticks.


Why Standard Brokerage Chains Fall Short for Programmatic Analysis

Retail brokerage apps are built for manual order entry, not automated screening or agentic reasoning. When you open a standard option chain, you see static snapshots stripped of historical context:

  • No cross-sectional liquidity screening: You cannot easily scan 3,500 optionable US stocks at once to isolate chains with deep share volume, tight Penny-Program spreads, and resting open interest (OI >= 500).
  • No Realized-vs-Implied Volatility (RV/IV) context: Seeing an option's implied volatility in isolation does not tell you whether 14-day realized underlying movement (ATR_14) justifies the premium being charged.
  • No historical excursion baseline: A raw option chain cannot tell your agent how often comparable setups reached +40% or -30% over a 3-day window.

On the opposite extreme, raw Options Price Reporting Authority (OPRA) feeds emit millions of quote and trade messages per second. Streaming an unfiltered tick firehose directly into an LLM exhausts the context window immediately and causes severe reasoning degradation. Indeed, in our Catalyst Lab walk-forward audit across N = 5,575 enriched option signals, even a 60-feature XGBoost ranker trained on noisy unusual-activity ratios failed to beat a coin flip out-of-sample (AUC = 0.4947), whereas four physical microstructure and volatility gates (Combo A) held up consistently.


Three Ways Developers Source Options Data in 2026

ApproachLatency & CadenceBest Use CaseMain Limitation for AI Agents
1. Visual Sweep ScannersReal-time UIManual tape readingClosed web dashboards; no typed tool schema for LLMs.
2. Raw Market Data APIs (Polygon / Massive, OPRA)Real-time / 1-min REST & WebSocketCustom backtesters & tick storageHigh bandwidth and engineering overhead; requires building your own filtering and feature pipeline.
3. Curated Options MCP Server (GammaRips MCP)Nightly 23:00-05:30 ET pool + 10-min intraday liquidity (09:02-16:52 ET)Claude, ChatGPT, Cursor, Codex & agent harnessesFocused on swing/multi-day liquid call setups (DTE 10-45), not sub-second 0DTE scalping.

Method 1: Visual Retail Scanners

Browser-based unusual options activity scanners highlight intraday sweeps and blocks for human day traders. While convenient for visual monitoring, most lack agent-native MCP endpoints or point-in-time excursion databases.

Method 2: Direct Market Data APIs (REST & WebSockets)

If you are writing custom ingestion services in Python, providers like Polygon (Massive) expose REST and WebSocket endpoints for option aggregates, quotes, and snapshots:

import os
import requests

API_KEY = os.environ["POLYGON_API_KEY"]
url = "https://api.polygon.io/v3/snapshot/options/AAPL"
resp = requests.get(url, params={"limit": 50, "apiKey": API_KEY}, timeout=15)
contracts = resp.json().get("results", [])

Raw APIs give you complete control, but you still have to engineer universe selection, sub-dollar tick-friction filters, leakage-safe feature views, and historical MFE/MAE outcome tables yourself.

Method 3: Connecting an Options Dataset MCP Server

For AI-assisted workflows, the Model Context Protocol eliminates custom glue code. Instead of piping raw chains into prompts, you connect your agent to a remote Streamable HTTP MCP server that pre-filters the market and exposes typed tools for the exact data an AI trading agent needs when building a trading agent with Claude.


Step-by-Step: Wiring GammaRips Options Data into Your Stack

GammaRips pairs an overnight liquid-universe scanner (23:00 ET scan + 05:30 ET enrichment) with 10-minute intraday liquidity snapshots (09:02-16:52 ET via get_liquidity). Every contract in the daily Combo A pool clears hard tradability and volatility floors: Mid >= $1.00, OI >= 500, Delta 0.22-0.48, DTE 10-45, and rv_iv_ratio >= 0.85.

Step 1: Test the Keyless Free Preview in 10 Seconds

In Claude Code, connect the public Streamable HTTP endpoint with one command (no API key or card required):

claude mcp add --transport http gammarips https://mcp.gammarips.com/mcp

This unlocks the daily 3-contract preview (get_pool(view="preview")), daily macro reports, VIX/VIX3M regime context, NYSE calendar status, and methodology playbooks.

Step 2: Authenticate Pro for Full Pool & 10-Minute Intraday Liquidity

Start a 30-day free trial ($29/mo founding price at gammarips.com/pricing) to unlock all 9 tools: the full 40-50 contract daily Combo A dataset, 10-minute intraday liquidity snapshots (get_liquidity), per-ticker detail and earnings checks (get_signal), 3-day MFE/MAE outcome surfaces (query_outcomes), and minute-bar contract replay (replay_contract).

  • Chat Clients (Claude.ai, Claude Desktop, ChatGPT): Add https://mcp.gammarips.com/pro as a custom MCP connector and sign in via OAuth 2.1.
  • CLI & IDE Clients (Claude Code, Cursor, Codex): Generate a gr_live_... key on your account page and configure Streamable HTTP:
{
  "mcpServers": {
    "gammarips": {
      "url": "https://mcp.gammarips.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:GAMMARIPS_MCP_KEY}"
      }
    }
  }
}

Step 3: Enforce Microstructure & Morning Liquidity Gates Before Entry

Overnight scan metrics freeze at market close. Before planning any trade after 09:30 ET, instruct your agent (or use the open-source gammarips-harness) to verify live session liquidity and earnings risk:

  1. Call get_pool(view="enriched") and filter for setups with rv_iv_ratio >= 0.85.
  2. Call get_signal(ticker=..., view="earnings") so you do not hold unhedged through an earnings print.
  3. Call get_liquidity(contracts=[...]) to verify 10-minute morning open interest (OI >= 500 lifted 5-minute fast fills from 30.3% to 50.1% in our Catalyst Lab audit) and active session volume.
  4. Call query_outcomes to calibrate target, stop loss, and mandatory time-stop brackets from historical 3-day excursion distributions.

Educational market data and historical research only. Not investment advice. Past performance is not a guarantee of future results.


Frequently Asked Questions

Does GammaRips stream raw millisecond OPRA sweeps or curated options datasets?

GammaRips is a curated options-flow and contract-microstructure data engine, not a raw OPRA tick firehose. It runs a nightly scan across ~3,500 optionable US stocks (23:00-05:30 ET) to build the 40-50 contract Combo A dataset (DTE 10-45), and updates 10-minute intraday contract liquidity snapshots from 09:02 to 16:52 ET via get_liquidity.

How do I connect my AI agent without installing a local MCP package?

GammaRips is hosted over Streamable HTTP at https://mcp.gammarips.com/mcp (anonymous preview or Bearer API key) and https://mcp.gammarips.com/pro (OAuth 2.1 sign-in). Run claude mcp add --transport http gammarips https://mcp.gammarips.com/mcp in Claude Code or add the URL directly in Cursor, Claude, or ChatGPT.

What contract filters improve intraday option fill rates?

Across N = 5,575 contracts audited in Catalyst Lab, requiring resting Open Interest >= 500 lifted 5-minute fast fills at the open from 30.3% to 50.1% (56.5% at OI >= 1,000), while Mid >= $1.00 avoids the $0.05 minimum tick-size friction on sub-dollar options.

Research notes & dataset updates

Get Catalyst Lab walk-forward experiments, Combo A methodology updates, and new MCP workflow releases. No firehose, no FOMO.

Free weekly newsletter. No spam. Unsubscribe anytime.

    We Use Cookies

    We use cookies to enhance your experience, analyze site traffic, and for marketing purposes. By clicking "Accept," you agree to our use of cookies. Read our Privacy Policy.