
Thinchain
io.github.SnipMCP由 GitHub 账号 SnipMCP 发布v0.1.1更新于 Oct 24, 2026
MCP server that sanitizes bad broker data and compresses options chains 95% for AI trading agents.
概览
本地 MCP 服务器,在券商期权链数据送达 AI 交易代理前进行清洗与压缩。
- 可以做什么
- 按标的与到期日获取压缩后的期权链,并按铁鹰、跨式等策略裁剪行权价
- 获取经清洗的标的报价,剔除幽灵报价、倒挂价差与异常数值
- 查询某标的与到期日的熔断状态与数据质量等级
- 通过卫生规则、策略切片与异常阈值对原始券商输出做清洗、压缩与门控
- 适用场景
- 适合助手处理 Tradier 或 Polygon 的期权数据、而原始期权链过大或噪声过多时使用。也适用于铁鹰、跨式等策略查询,以及交易前判断期权链数据是否可信。
- 运行要求
- 以本地 Python 包运行(pip 安装,或用 docker-compose 启动 Docker)。需在 .env 文件中配置券商 API 密钥与基础地址,包括 TRADIER_API_KEY 与 POLYGON_API_KEY,以及 DEFAULT_BROKER、CACHE_TTL_SECONDS 等设置。需要能访问券商 API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Thinchain,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ThinChain
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.
☁️ 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.
Installation
Or with Docker:
Configuration
Usage
Three example prompts to send to Claude (or any MCP-compatible agent):
Use get_compressed_chain to get an iron condor setup on SPY expiring 2026-06-19Check if SPY options data is trustworthy before I place my tradeGet me the ATM straddle strikes for AAPL expiring 2026-06-19
Run it in two terminals
How it works
Three layers between raw broker output and 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)
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.
Roadmap
- Managed cloud tier (hosted, multi-tenant, webhook alerts)
- Polygon connector hardening (live SIP feed)
- Webhook alerts for circuit breaker trips
Contributing
PRs welcome. Run pytest before submitting.
来源:README.md,提交 9373301
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分