Enables fetching market data including OHLCV prices, option chains, and Greeks by implementing support for Polygon as a data provider through the pluggable DataProvider interface.
market-data-mcp
Market & Options Data MCP ("market-data") — FastAPI server
A deployable, minimal, vendor-pluggable service that exposes endpoints used by an LLM or any client to fetch OHLCV, option chains, Greeks, basic corporate events, and to assemble a training dataset with alignment/caching. Uses yfinance as a default provider so it runs out-of-the-box; swap in Polygon/IEX/etc by implementing the DataProvider interface below.
Run locally: pip install -r requirements.txt uvicorn main:app --host 0.0.0.0 --port 8000
Docker:
Example curl:
Notes
Image will publish to
ghcr.io/pishnuke/market-data-mcp:edge
onmaster
, plus asha-<short>
tag, and toghcr.io/pishnuke/market-data-mcp:<tag>
when you push a Git tag likev0.1.0
.Ensure your repo is public or that consumers have permission to pull from GHCR. For private repos, consumers need a token.
The GHCR repository name is lowercase; if your GitHub org/repo has uppercase, GHCR normalizes it.
Point your MCP client at mcp.json
(or the running URL) and call tools like /get_ohlcv
.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables fetching market and options data including OHLCV prices, option chains, Greeks, and corporate events through a pluggable FastAPI service. Supports creating aligned training datasets for financial analysis and uses yfinance by default with support for custom data providers.