Skip to main content
Glama
sgdividends

spx-dealer-gamma

by sgdividends

spx-dealer-gamma

Computes SPX dealer gamma exposure (GEX) from free CBOE delayed option quotes (~15-minute delay, official open interest and implied volatility — no brokerage market-data entitlement required). Exposed as an MCP tool for Claude Desktop.

Why CBOE delayed quotes

CBOE lists SPX/SPXW natively, so this is a first-party source for OI and IV on the exact index most dealer-gamma analysis targets — not a proxy via SPY. The public endpoint (https://cdn.cboe.com/api/global/delayed_quotes/options/_SPX.json) also returns CBOE's own precomputed per-contract Greeks (delta, gamma, vega, theta), so the current-spot GEX snapshot uses their greeks directly rather than a re-derived model.

Related MCP server: mcp-tradingview-server

Method

  • Current-spot net GEX: sign * gamma * open_interest * 100 * spot^2 * 0.01, summed over all contracts with open interest > 0. Calls contribute positively, puts negatively — the standard convention used by most public GEX calculators (dealers modeled as net long gamma via calls / net short via puts). This is a modeling assumption, not directly observable dealer positioning.

  • Zero-gamma flip level: the current-spot GEX above is a single point. To find where dealer gamma flips sign, this recomputes Black-Scholes gamma for every contract with a valid IV across a scan of hypothetical spot prices (default ±15% band, 121 steps), holding each contract's own quoted IV/strike/expiry fixed, and finds where cumulative signed GEX crosses zero. This does not shift the vol surface with spot (no skew dynamics) — a known simplification shared by most open-source GEX trackers.

  • Contracts with iv <= 0 (stale/no recent quote) are excluded from the flip scan but still included in the current-spot snapshot via CBOE's own gamma.

Files

  • gamma.py — data fetch + calculation, runnable standalone (python gamma.py)

  • server.py — MCP server wrapper exposing spx_dealer_gamma as a tool

Setup

python -m venv .venv
./.venv/Scripts/pip install -r requirements.txt   # Windows
# ./.venv/bin/pip install -r requirements.txt      # macOS/Linux

Claude Desktop

Add to claude_desktop_config.json:

"spx-dealer-gamma": {
  "command": "C:\\path\\to\\spx-dealer-gamma\\.venv\\Scripts\\python.exe",
  "args": ["C:\\path\\to\\spx-dealer-gamma\\server.py"]
}

Limitations

  • 15-minute delayed data, not live.

  • Aggregates all listed SPX/SPXW expiries (including LEAPS), not just the front-month/0DTE window some trackers restrict to — net GEX magnitude isn't directly comparable to trackers that scope differently.

  • Dealer-side sign convention is an assumption, not observed fact.

  • No vol-surface skew shift in the flip scan (see Method above).

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    F
    maintenance
    Provides AI agents with access to real-time and historical SPX 0DTE options market data from QuantData. It enables analysis of market indicators like gamma exposure walls, net drift, max pain, and trade side statistics through natural language.
    Last updated
    8
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    Provides real-time stock market data for Claude Desktop and MCP-compatible clients, enabling natural language queries for quotes, historical prices, company profiles, financial statements, analyst ratings, comparisons, news, options, holdings, dividends, estimates, symbol search, and market status.
    Last updated
    604
    16
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Provides natural language access to ApexVol's options analytics platform, enabling queries on options chains, volatility metrics, Greeks, flow analysis, and strategy building via Claude Code or Claude Desktop.
    Last updated
    MIT

View all related MCP servers

Related MCP Connectors

  • Real-time & historical options analytics: GEX, dealer positioning, greeks, SVI vol, VRP, 0DTE

  • Options analytics: 17 pricing models, 17 Greeks, GEX, IV, 23 screeners, unusual, dark pool, max pain

  • Hosted MCP for stocks, options, Greeks, brokers, order previews, alerts, and workflows.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sgdividends/spx-dealer-gamma'

If you have feedback or need assistance with the MCP directory API, please join our Discord server