Read-only MCP server for options research with pluggable market data providers

Read-only MCP server for options research with pluggable market data providers

options-chain•byblake365

An MCP server that provides AI assistants tools to research options chains, expirations, quotes, and historical prices without the ability to place trades.

License: Not specified•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Provides a find-options-chain tool that fetches a chain for a symbol and expiration, filtered to options with real volume, bid/ask, and strikes near spot, trimmed to significant strikes.
  • •Provides find-option-expirations to return valid expiration dates for an underlying.
  • •Provides get-quote for the latest quote on a stock symbol or a single OCC option contract, including Greeks and IV where the provider supports them.
  • •Provides historical-prices returning OHLCV bars for a stock or OCC option over any range and interval.

BEST FOR

  • •Researching an underlying's options chain and identifying significant strikes with fewer tokens than raw provider endpoints.
  • •Giving an LLM options market access without risk of placing or closing trades.
  • •Running options research from natural-language queries in an assistant.

ABOUT OPTIONS-CHAIN

Read-only MCP server for options research with pluggable market data providers is cataloged as an MCP server attributed to blake365. An MCP server that provides AI assistants tools to research options chains, expirations, quotes, and historical prices without the ability to place trades. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Read-only MCP server for options research with pluggable market data providers are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does this server let an assistant place or exercise trades?

No. It is read-only by design and exposes no order placement, position closing, or option exercise tools.

Which data providers can it use?

It supports Tradier and Alpaca, selected via environment credentials; if DATA_PROVIDER is unset, Alpaca is used when both Alpaca keys are set, otherwise Tradier.

Can it run remotely for MCP clients like Claude.ai?

Yes, a Cloudflare Workers entrypoint exposes the same tools over MCP's SSE and Streamable HTTP transports behind an OAuth 2.1 provider for remote clients.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 320d48791351 · 采集于 2026-11-13 10:15:53 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

options-chain-mcp

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

npm version

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)

In practice a NVDA chain comes back as ~15 strikes instead of ~400 — roughly 20–40× fewer tokens per call, leaving room for actual analysis in the conversation.

Other things going for it:

  • Read-only by design. No place_order, no close_position, no exercise_options_position. Point an LLM at it without worrying about hallucinated trades.
  • Provider-pluggable. Tradier and Alpaca behind one identical tool surface. Swap with one env var; if one provider's data goes stale or the account expires, fall over to the other without changing prompts or client config.
  • Remote OAuth deployment included. Works from claude.ai web (and any other OAuth-aware MCP client), not just locally-connected Claude Desktop. The official Alpaca server is stdio-only.

Sample Output

Q: What are the highlights of the SPY options chain for two weeks out?

A: I'll check the current SPY options chain for two weeks out from today.

View Result from find-options-chain from options-chain (local)

{
  "symbol": "SPY",
  "expiration": "2025-03-28"
}

Now that I have the SPY options chain for March 28, 2025 (two weeks out), I'll highlight the key information:

SPY Options Chain Highlights (March 28, 2025 Expiration)

Current Market Context

Current SPY price appears to be around $565-566 based on the at-the-money options

Call Options Highlights

  1. Highest Volume:
  • $590 calls with 217 contracts traded
  • $600 calls with 174 contracts traded
  • $571 calls with 130 contracts traded
  1. Highest Open Interest:
  • $600 calls: 8,299 contracts
  • $590 calls: 6,591 contracts
  • $605 calls: 4,676 contracts
  • $580 calls: 4,596 contracts
  1. Notable Activity:
  • Far out-of-the-money calls ($590-$600) showing significant volume, suggesting some traders are positioning for potential upside movement
  • The $590 calls (priced at $1.07-$1.09) have high volume and open interest

Put Options Highlights

  1. Highest Volume:
  • $500 puts with 217 contracts traded
  • $460 puts with 160 contracts traded
  • $510 puts with 163 contracts traded
  1. Highest Open Interest:
  • $525 puts: 79,196 contracts (extremely high)
  • $530 puts: 7,060 contracts
  • $550 puts: 4,883 contracts
  • $570 puts: 4,337 contracts
  1. Notable Activity:
  • The massive open interest in $525 puts is striking, suggesting a significant hedging position
  • Overall put activity shows traders protecting against downside risk

Implied Volatility Indicators

  • Looking at the pricing, implied volatility appears moderate
  • The put-call ratio based on open interest is skewed toward puts, suggesting market participants are hedging against downside risk

Options Skew

  • There's higher open interest in OTM puts than OTM calls, indicating traders are more concerned about downside protection than upside speculation

Installation

Requires Node.js 20 or newer. No install step is needed — npx fetches the server on first run. You do need credentials for one of the two data providers; see Choosing a data provider.

There are two ways to run this server, and they authenticate differently:

Local (stdio, npx)Remote (Cloudflare Workers)
Client authenticationnone — runs as a local subprocessOAuth 2.1 with a passcode
Provider credentialsyours, in the client's env configyours, as Worker secrets
Who it suitsyou, on your own machineyou across devices, or people you share the passcode with
Whose API quotathe local user'sthe deploying account's

Local setup is covered directly below; remote setup is under Running on Cloudflare Workers.

Claude Code

claude mcp add options-chain --env TRADIER_TOKEN=your_token -- npx -y options-chain-mcp

Any other MCP client

The server speaks MCP over STDIO. Run it with npx -y options-chain-mcp, or install it globally with npm install -g options-chain-mcp and run options-chain-mcp, with the provider credentials present in the environment.

Development

npm install        # install dependencies
npm run dev:stdio  # run the stdio server from source
npm run build      # compile TypeScript to build/
npm run typecheck  # type-check both the stdio and Workers configs
npm run dev        # run the Cloudflare Workers version locally
npm run deploy     # deploy the Workers version

Tool definitions live in src/tools.ts and are shared by both entry points: src/index.ts (stdio) and src/worker.ts (Cloudflare Workers). Provider-specific code lives in src/providers/.

build/ is generated and not checked in — run npm run build before pointing Claude Desktop at a local build.

Choosing a data provider

The server supports two providers. Set the credentials for whichever you want and (optionally) DATA_PROVIDER to pick explicitly. If DATA_PROVIDER is unset, Alpaca is used when both Alpaca keys are set, otherwise Tradier.

ProviderEnv varsNotes
Tradier sandboxTRADIER_TOKEN15-min delayed. Sandbox tokens expire — dashboard lets you regenerate.
AlpacaALPACA_API_KEY_ID, ALPACA_SECRET_KEYPaper account key works fine. Free indicative options feed includes Greeks + IV.

See sample.env for optional overrides (feed selection, base-URL overrides for live accounts).

Provider differences worth knowing

FieldTradierAlpaca
volume (per option)Daily totalnull — not exposed by the snapshot endpoint
open_interestReturned nativelyFetched from the trading API's contracts endpoint and merged in
Greeks + IV on free tierYes (when greeks=true)Yes (free indicative feed)

The chain filter treats volume > 0 OR open_interest > 0 as "real market interest," so dead strikes get dropped on either provider. When you see "volume": null in an Alpaca response, that means the provider doesn't report it — not that the contract is inactive. Use open_interest for liquidity assessments on Alpaca.

Connecting with Claude Desktop (stdio)

  1. Open your Claude Desktop configuration at:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the server configuration (using whichever provider you want):

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

To run a local build instead, use "command": "node" with "args": ["/full/path/to/options-chain/build/index.js"] after npm run build.

Or for Alpaca:

"env": {
    "ALPACA_API_KEY_ID": "your_key_id",
    "ALPACA_SECRET_KEY": "your_secret"
}
  1. Close/Quit then restart Claude Desktop

Once you restart you should see a small hammer icon in the lower right corner of the textbox. If you hover over the icon you'll see the number of MCP tools available.

The legacy lowercase token env var is still accepted for backward compatibility with older configs.

Running on Cloudflare Workers (remote, OAuth 2.1)

The Worker entrypoint (src/worker.ts) exposes the same tools over MCP's SSE and Streamable HTTP transports, wrapped in an OAuth 2.1 provider. Claude.ai (web and desktop) discovers the endpoints automatically via Dynamic Client Registration.

Requirements

  • A Cloudflare account on any paid Workers plan (Durable Objects are used for MCP session state)
  • Wrangler authenticated: npx wrangler login
  • A KV namespace bound as OAUTH_KV (create with npx wrangler kv namespace create OAUTH_KV and paste the ID into wrangler.jsonc)

Configure secrets

For Tradier:

npx wrangler secret put TRADIER_TOKEN

For Alpaca:

npx wrangler secret put ALPACA_API_KEY_ID
npx wrangler secret put ALPACA_SECRET_KEY
# optional:
npx wrangler secret put DATA_PROVIDER            # "alpaca" or "tradier"

And the auth passcode that gates the consent page:

npx wrangler secret put APPROVE_PASSCODE         # e.g. `openssl rand -base64 18`

For local dev, put the same keys in a .dev.vars file at the repo root (gitignored).

Deploy

npm run dev       # local dev server with hot reload
npm run deploy    # publish to <name>.<account>.workers.dev

Connect Claude to the deployed server

In Claude.ai → Settings → Connectors → Add custom connector:

  1. URL: https://<your-worker>.workers.dev/sse (or /mcp for Streamable HTTP).
  2. Leave client ID/secret blank — the server advertises Dynamic Client Registration.
  3. Save and click connect. Claude opens a consent page; enter the APPROVE_PASSCODE you set above.
  4. You'll be redirected back, authorized. Tokens refresh for 30 days.

Auth upgrade path

For multi-user access or SSO, put Cloudflare Access in front of the Worker route. The OAuth flow still works for the MCP client; Access just adds a second layer for the human consent page.

Troubleshooting

If Claude Desktop cannot find npx, provide its full path (on macOS, typically /usr/local/bin/npx or /opt/homebrew/bin/npx). The same applies to node if you are running a local build.

If the server does not appear at all, check Claude Desktop's logs — the server now writes a specific reason to stderr (for example, missing provider credentials) instead of exiting silently.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Read-only MCP server for options research with pluggable market data providers from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/options-chain)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics