
How to add Polygon.io MCP Server to Cursor
Official Polygon.io server with tools for stocks, options, forex, and crypto market data. Paste the config into ~/.cursor/mcp.json and restart Cursor.
Last updated June 15, 2026 · 360★ · stdio · apikey · official
Cursor config for Polygon.io MCP Server
uvx --from git+https://github.com/polygon-io/mcp_polygon@v0.4.0 mcp_polygon{
"mcpServers": {
"polygon-io-mcp-server": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/polygon-io/mcp_polygon@v0.4.0",
"mcp_polygon"
],
"env": {
"POLYGON_API_KEY": "<your-polygon-api-key>"
}
}
}
}Requires `uv` (the Python package runner). Install it from https://docs.astral.sh/uv/ if `uvx` is not found.
Setup steps
- 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
- 2Paste the Polygon.io MCP Server config below into the "mcpServers" object.
- 3Fill in placeholder secrets, then save.
- 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
- 5Ask Cursor to use one of Polygon.io MCP Server's tools to confirm it's connected.
Before you start
- A Massive.com (formerly Polygon.io) API key from massive.com — set as MASSIVE_API_KEY (legacy POLYGON_API_KEY also accepted)
- Python 3.12 or higher
- Astral uv 0.4.0+ to install and run the server
What Polygon.io MCP Server can do in Cursor
search_endpointsDiscover the right Massive/Polygon REST endpoints and built-in functions from a natural-language query.
call_apiExecute any Massive/Polygon REST endpoint, with optional storage of the response into a local SQLite database.
query_dataRun SQL queries against data previously stored by call_api.
Built-in functions (Black-Scholes Greeks, returns, moving averages, ratios)Analytics helpers callable through the API layer — e.g. options delta/gamma/theta/vega/rho and return calculations.
Security
Read-only market data with no trading capability; keep POLYGON_API_KEY in env. Pin the git tag (e.g. @v0.4.0) rather than tracking main so you run reviewed code.
Polygon.io MCP Server + Cursor FAQ
Where is the Cursor config file?
Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the Polygon.io MCP Server config there under the "mcpServers" key and restart the client.
Is Polygon.io MCP Server safe to use with Cursor?
Read-only market data with no trading capability; keep POLYGON_API_KEY in env. Pin the git tag (e.g. @v0.4.0) rather than tracking main so you run reviewed code.
Why does the package say Massive.com instead of Polygon.io?
Polygon.io rebranded to Massive.com on Oct 30, 2025. The repo and package moved to massive-com/mcp_massive, but it is the same official server and data.
Does my existing Polygon API key still work?
Yes. Existing keys, accounts, and api.polygon.io continue to work, and POLYGON_API_KEY is accepted as a deprecated alias for MASSIVE_API_KEY.
Why only three tools?
The server uses a composable design — search_endpoints, call_api, and query_data — that together cover the entire REST API surface instead of one tool per endpoint.