{"slug": "backtest-spx-dealer-gamma-rules-from-your-ai-assistant", "title": "Backtest SPX dealer-gamma rules from your AI assistant", "summary": "Gex.live has launched an MCP server that lets AI assistants like Claude, Cursor, and ChatGPT access its dealer-positioning archive and drive its backtesting Lab. The server provides free tools for reading finished SPX session data and keyed tools for compiling and running backtests, with authentication via header or OAuth. The service is listed in the official MCP registry.", "body_md": "gex.live has an MCP server. Add it to Claude, Cursor, ChatGPT or any MCP client and the assistant can read the dealer-positioning archive and drive the backtesting Lab on your behalf. The one-line version is the title. Here is the rest.\n\n**Free, no key** — the same finished-session data that is free on the website:\n\n`list_sessions`\n\n— finished SPX sessions in the archive, newest first, paged (max 50 a call).`get_session(day)`\n\n— one session's dealer-positioning summary: OHLC, the zero-gamma flip and how often price crossed it, call/put walls, the hold band, net-gamma percentile, ATM IV at the open. Measurements only.`get_levels(day)`\n\n— just the level set for one session — flip, call resistance, put support, hold band — plus where the session closed relative to them.**Keyed** — the Lab, metered in credits exactly as on the site. These tools only appear in the tool list once the client sends a Lab token:\n\n`lab_compile(message)`\n\n— turn a plain-words idea (\"fade a +3 sigma stretch above vwap on top-decile volume\") into a testable rule. Free of credits, needs a positive balance. Returns the compiled spec, a clarifying question, or compile errors — never a guess.`lab_run(id, kind)`\n\n— one conveyor step: `backtest`\n\nfirst (rule → tested), then `quant`\n\n(the LightGBM optimize, tested → ready). One credit, refunded on failure. The result is the engine's honest verdict: per-leg era tables — all / this year / holdout.`lab_state`\n\n— your whole Lab in one call: ideas with stages and results, which idea holds the conveyor, your credit balance.`lab_thread(id)`\n\n— the compile-chat thread for one idea.`lab_idea(id, action)`\n\n— desk actions: put a ready idea on the desk, drop it back to the start, delete, or set its desk display/alert options.When a keyed tool is called without a token, the error is the instruction: what it does, where to get a key (gex.live/account → LAB & API, shown once, scoped to the Lab only, revocable), what it costs. The assistant relays it verbatim. The funnel is one sentence.\n\nHeader-based auth is fine for Cursor and the CLI (`claude mcp add --transport http gex https://mcp.gex.live/mcp --header \"Authorization: Bearer labk_…\"`\n\n). claude.ai web and desktop cannot send headers, so there is an OAuth facade on the product host: discovery documents, dynamic client registration, a consent page behind the normal login, PKCE required, codes encrypted and short-lived. Connect once, the Lab tier is there.\n\n`list_sessions`\n\n, `get_session`\n\n× 10, an honest summary.`lab_compile`\n\n, then `lab_run(backtest)`\n\n, a verdict with era tables and a holdout column — probably a polite no.`lab_state`\n\n: stages, results, balance.A signal service, and not a live feed: today's positioning is the paid stream on the site, not an MCP tool. The server exposes finished measurements and a way to test rules against them. If a rule survives the holdout the Lab will say so; so far, very few do, including the site's own levels. The MCP server is listed in the official registry (`registry.modelcontextprotocol.io`\n\n, `live.gex/gex-mcp`\n\n) and on glama.ai.\n\nInstall: [https://gex.live/mcp](https://gex.live/mcp) · free archive: [https://gex.live/sessions](https://gex.live/sessions)", "url": "https://wpnews.pro/news/backtest-spx-dealer-gamma-rules-from-your-ai-assistant", "canonical_source": "https://dev.to/gexlive/backtest-spx-dealer-gamma-rules-from-your-ai-assistant-2ffn", "published_at": "2026-08-20 18:21:11+00:00", "updated_at": "2026-08-20 18:44:26.508921+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "machine-learning"], "entities": ["gex.live", "Claude", "Cursor", "ChatGPT", "MCP", "LightGBM"], "alternates": {"html": "https://wpnews.pro/news/backtest-spx-dealer-gamma-rules-from-your-ai-assistant", "markdown": "https://wpnews.pro/news/backtest-spx-dealer-gamma-rules-from-your-ai-assistant.md", "text": "https://wpnews.pro/news/backtest-spx-dealer-gamma-rules-from-your-ai-assistant.txt", "jsonld": "https://wpnews.pro/news/backtest-spx-dealer-gamma-rules-from-your-ai-assistant.jsonld"}}