
选项链 MCP 服务器
概览
选项研究只读的 MCP 服务器 。 可插件数据提供者——目前支持Tradier和Alpaca. 与包装免费公共API的服务器不同,这个服务器代表您与经纪数据提供商交谈,因此它需要TRADIER TOKEN,或者在它的环境里需要ALPACA API KEY ID + ALPACA SECRET KEY. 免费的沙盒/纸张帐号运作良好——见选择数据提供者。 启动时没有证书, 服务器立即退出并打印缺少的变量 。 这个模式背景协议(MCP)服务器为AI助手提供了研究选项的工具,而没有任何能力放置交易: - 符号+过期的链条,过滤到有实际体积/投标/任务选项,并在一分点内击出。 自动调整到重大撞击,以保持有效载荷LLM友好. - 井下工程的有效终止日期。 - 股票符号或单一OCC选择合同的最新引文.
概述(AI 翻译)
选项研究只读的 MCP 服务器 。 可插件数据提供者——目前支持Tradier和Alpaca.
** 你必须提供自己的市场数据证明。 ** 不像一个服务器包着一个 免费公共API,这个代表您与经纪数据提供者交谈,所以 需要其[[T0],或[[T1]+
ALPACA_SECRET_KEY环境。 免费沙盒/纸张帐号工作顺利——见 选择数据提供者。 开始没有证书, 服务器立即退出, 并打印缺失的变量 。
□ 概览
这个模式背景协议(MCP)服务器为AI助手提供了研究选项的工具,而没有任何能力放置交易:
- [[T3]]——一个符号+过期的链条,被过滤到有实际体积/出价/任务选项,并按出值百分比击出. 自动调整到重大撞击,以保持有效载荷LLM友好.
- [[T4]]——一个基础的有效失效日期。
- [[T5]]——股票符号或单一OCC选择合同的最新引文。 在提供者支持时包括希腊人+IV(阿尔帕卡确实支持;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 anALPACA_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 > 0andbid/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)
安装
npx -y options-chain-mcp配置
{
"mcpServers": {
"options-chain": {
"command": "npx",
"args": ["-y", "options-chain-mcp"],
"env": {
"TRADIER_TOKEN": "your_tradier_sandbox_token"
}
}
}
}