SuperAPI AI Directory

greeks-mcp

Live options analytics: Greeks, GEX/DEX and gamma flip, max pain, unusual flow, IV surface, expected move, term structure, a screener and GEX heatmap.

Open website

About this tool

greeks-mcp is a Model Context Protocol (MCP) server that exposes the Greeks options analytics API as tools to any MCP client, including Claude Desktop, Cursor, Claude Code, and others. Users can ask the assistant directly about GEX, Greeks, Max Pain, unusual options flow, or the full dashboard for any ticker symbol, and the server pulls data from the API in real time. The server exposes only derived/computed analytics data and does not redistribute raw market data.

Main capabilities: provides 17 tools covering options analytics functions such as Greeks, GEX/DEX and gamma flip, Max Pain, unusual options flow, IV surface, expected move, term structure, screener, and GEX heatmap.

Usage: first register at greeks.pro and create an API key, which has the format grk_<48 hexadecimal digits>. Public tools (screener, health check, plans) can be used without a key. Then add an mcpServers block to the MCP client configuration and restart the client, and the assistant will gain access to all 17 tools. uv will download and run the published package on demand in an isolated environment, with no manual installation or updating required. If you prefer pipx, run pipx install greeks-mcp, then use "command": "greeks-mcp" with no arguments. The repository also includes a Dockerfile for containerized running; the server uses stdio communication, so it must be run in interactive mode (-i). Once the image starts, it can respond to MCP introspection (initialize + tools/list) without a key, and GREEKS_API_KEY is only used for analytics tools that require authentication. When connecting the container to an MCP client, set "command": "docker" and "args": ["run","--rm","-i","-e","GREEKS_API_KEY","greeks-mcp"]. The same mcpServers configuration block works for all MCP clients, only the file location differs; copy-paste-ready configuration examples are in the examples/ directory. After reloading, the server will appear in Cursor's Settings → MCP, showinga green dot and its 17 tools; type @greeks-analytics in chat (or just ask about GEX/greeks/max pain) to use it.

Tool parameters: most analytics tools accept symbol (required) and an optional expiration (Unix timestamp, or "all" for all expirations; if omitted, the nearest expiration is used). get_greeks also accepts range="atm", moneyness="low,high", and limit. Two tools have different parameters: get_gex_intraday uses date="YYYY-MM-DD" (instead of expiration), and get_track_record_detail accepts only an optional symbol.

Running from source: requires Python ≥ 3.10.

Publishing (maintainers): publish to PyPI via Trusted Publishing (OIDC, no stored API token). One-time setup: in PyPI → Account settings → Publishing, add a pending publisher with project greeks-mcp, owner ArtBreguez, repository greeks-mcp, workflow publish.yml, environment pypi; in the GitHub repository settings → Environments, create an environment named pypi. Then publish by bumping the version in pyproject.toml and init.py and pushing a tag. The workflow builds the sdist+wheel, verifies that the wheel can be installed and registers all 17 tools, then publishes.

Limits and errors: 402 / 403 means the current plan does not include that route (or a code/rate limit was triggered). You can call list_plans to see the features unlocked by each plan. expiration="all" returns all expirations, with richer but slower data; for popular underlyings, it is recommended to use a specific expiration timestamp, or increase GREEKS_TIMEOUT. Only derived data is provided; raw market data (quotes, bid/ask, open interest, contract prices) is not redistributed. The license is MIT, see LICENSE for details.