BO

blake365/options-chain

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

11 stars 6 forks 品質 80 トレンド 16MIT

オプション チェーン MCP サーバー

概要

オプションの研究のための読み取り専用MCPサーバー。 プラグイン可能なデータプロバイダ — 現在 Tradier と Alpaca をサポートしています。 無料のパブリック API をラップするサーバーとは異なり、この 1 つは代わって仲介データプロバイダに話します。そのため、TRADIER TOKEN や、ALPACA API KEY ID + ALPACA SECRET KEY が必要です。 無料のサンドボックス/ペーパーアカウントは、データプロバイダの選択を参照してください。 認証なしで起動し、サーバーがすぐに終了し、変数が欠落している印刷します。 このモデルコンテキストプロトコル (MCP) サーバーは、AI アシスタントに、取引を配置する能力がなくても、オプションを研究することができます。 - — シンボル + 満了のためのチェーン, 実際のボリューム/bid/ask とポイントのパーセンテージ内のストライキでオプションにフィルタリング. 自動的にペイロードLM-friendlyを保つために重要な殴打にトリムします。 - — — 有効期限が切れる期限 - — 株式のシンボルまたは単一OCCオプション契約の最新の引用.

概要(AI 翻訳)

オプションの研究のための読み取り専用MCPサーバー。 プラグイン可能なデータプロバイダ — 現在 Tradier と Alpaca をサポートしています。

あなたはあなた自身の市場データ資格情報を持参する必要があります。 ラップするサーバとは違って 無料の公開 API は、この API は、代わって仲介データプロバイダに話します。 TRADIER_TOKEN または ALPACA_API_KEY_ID + ALPACA_SECRET_KEY が必要です。 環境。 無料のサンドボックス/ペーパーアカウントは正常に動作します — 参照 データプロバイダの選択 資格情報なしで始めて下さい、 サーバはすぐに終了し、変数が欠落している印刷します。

概要

このモデルコンテキストプロトコル (MCP) サーバーは、AI アシスタントに、取引を配置する能力がなくても、オプションを研究することができます。

-[find-options-chain - シンボル+有効期限のチェーン、実際のボリューム/bid/askとオプションにフィルタリングし、スポットの割合内でストライキします。 自動的にペイロードLM-friendlyを保つために重要な殴打にトリムします。 -[find-option-expirations — アンダーリングの有効期限

  • [get-quote — 株式記号または単一OCCオプション契約の最新の引用。 プロバイダーがそれらをサポートするときにギリシャ + IV が含まれています(Alpaca は、Tradier はチェーンルックアップが必要です).

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

options-chain-mcp

Read-only MCP server for options research. Pluggable data provider — currently supports Tradier and Alpaca.

npx -y options-chain-mcp

You must bring your own market data credentials. Unlike a server that wraps a free public API, this one talks to a brokerage data provider on your behalf, so it needs a TRADIER_TOKEN, or an ALPACA_API_KEY_ID + ALPACA_SECRET_KEY, in its environment. Free sandbox/paper accounts work fine — see Choosing a data provider. Started without credentials, the server exits immediately and prints which variable is missing.

Overview

This Model Context Protocol (MCP) server gives AI assistants the tools to research options, without any ability to place trades:

  • find-options-chain — chain for a symbol + expiration, filtered to options with real volume/bid/ask and strikes within a percentage of spot. Automatically trims to significant strikes to keep the payload LLM-friendly.
  • find-option-expirations — valid expiration dates for an underlying.
  • get-quote — latest quote for a stock symbol or a single OCC option contract. Includes Greeks + IV when the provider supports them (Alpaca does; Tradier requires a chain lookup).
  • historical-prices — OHLCV bars for a stock or OCC option over any range and interval.

The server runs two ways:

  • Locally over stdio for Claude Desktop
  • Remotely on Cloudflare Workers with OAuth 2.1, for Claude.ai and other MCP clients that speak the remote-connector protocol

Please note:

  • Requires API credentials for whichever provider you use (free paper/sandbox accounts work)
  • Market data on free plans is typically 15-min delayed
  • Intended for informational purposes only

Users can run queries using natural language.

Why this server (instead of the official Tradier or Alpaca MCP)

Built for LLM context budgets. A typical underlying has hundreds of strikes across dozens of expirations. Calling a raw get_option_chain from the official Alpaca server returns all of them — every dead far-OTM strike, every penny-bid contract, every field the API exposes. That payload eats thousands of tokens per call and forces the model to filter the noise itself. This server filters server-side:

  • Strikes are pre-filtered to a configurable percentage band around spot
  • Dead contracts are dropped (volume > 0 OR open_interest > 0 and bid/ask > $0.10)
  • A “significant strikes” pass keeps round-numbered strikes at distance and finer-grained strikes near the money — mimicking how a human trader actually reads a chain
  • Only the fields a research workflow needs are returned (no exchange codes, no raw timestamps, no boilerplate)
GitHub で README 全文を見る

インストール

npx -y options-chain-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "options-chain": { "command": "npx", "args": ["-y", "options-chain-mcp"], "env": { "TRADIER_TOKEN": "your_tradier_sandbox_token" } } } }