MCP server that sanitizes bad broker data and compresses options chains 95% for AI trading agents.
This MCP server sanitizes bad broker data and compresses options chains by up to 95% for AI trading agents. It is positioned as a “catalytic converter” between raw broker feeds and agent consumption, with sanitization logic drawn from a production options trading application.
🛠️ Key Features
Sanitizes bad broker data
Compresses options chains by 95% for AI trading agents
Extracted sanitization logic from a production options trading app
Handles “every bad tick” from Tradier reported in production
🚀 Use Cases
Feeding cleaner broker data to AI trading agents
Reducing options-chain payload size for agent workflows
Interfacing with Tradier data streams that may contain problematic ticks
⚡ Developer Benefits
Local MCP server operation with your own API keys (per excerpt)
Developer-facing integration via MCP
Improved options-chain handling through sanitization and compression
⚠️ Limitations
Source text provided is truncated (“The Problem” section is cut off), so details beyond these behaviors are not available.
The catalytic converter between raw broker data and your AI trading agent.
Battle-tested. Sanitization logic extracted from a production options trading app. Handles every bad tick Tradier has thrown at us in production.
ThinChain Demo
☁️ Moving to production?
The open-source server runs locally with your own API keys.
For hosted infrastructure with multi-broker failover, SLA guarantees,
and webhook alerts — join the managed cloud waitlist.
The Problem
Tradier's MCP dumps 500-row JSON chains. One bad print can corrupt an agent's reasoning. ThinChain sanitizes, compresses, and circuit-breaks that data before it reaches your model.
Sanitize: Drops ghost quotes (0.0/0.0), inverted spreads, NaN/empty/dash values, clamps deltas to [-1, 1], normalizes positive theta on long options, flags illiquid strikes.
Compress: Slices the chain to only the strikes relevant to your strategy (iron condor, straddle, etc.) — typically 95%+ token reduction.
Circuit Break: Four-tier data quality (clean / noisy / degraded / circuit_breaker_active). When >65% of rows are anomalous, refuses to serve stale data and falls back to last known-good cache.
Real numbers from a live SPY iron condor (2026-06-19 expiration)
code
RAW TRADIER PAYLOAD THINCHAIN OUTPUT
─────────────────────────────────────────────
Rows: 482 Rows: 25
Est tokens: 38,560 Est tokens: 2,000
Token savings: 95%
Anomalous rows removed: 217
Data quality: noisy → still safely served
ThinChain compresses 482 rows / 38,560 tokens down to 25 rows / 2,000 tokens — and flags 217 anomalous strikes (illiquid, ghost quotes, wide spreads) that would have polluted the agent's context.