An MCP server that exposes all Polygon.io financial-market data endpoints as Model Context Protocol (MCP) tools so LLMs can query real-time & historical market data.
https://github.com/polygon-io/mcp_polygonStop writing boilerplate financial API code. The Polygon.io MCP server turns Claude into your personal financial data analyst with direct access to real-time and historical market data across stocks, options, forex, and crypto.
You know the drill: authenticate, handle rate limits, parse responses, manage pagination, deal with different data formats across endpoints. With the Polygon.io MCP server, you skip straight to the insights.
Instead of writing this:
import requests
from datetime import datetime, timedelta
# Yet another API wrapper function
def get_stock_data(symbol, days_back=30):
end_date = datetime.now()
start_date = end_date - timedelta(days=days_back)
headers = {"Authorization": f"Bearer {API_KEY}"}
url = f"https://api.polygon.io/v2/aggs/ticker/{symbol}/range/1/day/{start_date.strftime('%Y-%m-%d')}/{end_date.strftime('%Y-%m-%d')}"
response = requests.get(url, headers=headers)
# ... error handling, pagination, etc.
You just ask Claude:
Show me AAPL's price performance over the last 30 days compared to the S&P 500
The MCP server exposes Polygon.io's entire API surface through natural language:
Market Data: Real-time quotes, historical bars, trade data across all asset classes Reference Data: Company fundamentals, dividend history, stock splits, market holidays News & Events: Ticker-specific news, earnings data, corporate actions Market Analysis: Top gainers/losers, market snapshots, sector performance
Every endpoint from Polygon.io's comprehensive API becomes available through conversational queries.
Quick Market Analysis
What were the top 10 stock gainers today and their trading volumes?
Get Bitcoin's price action over the last 24 hours with 1-minute bars
Show me all S&P 500 companies that went ex-dividend this week
Development & Testing
I need sample options data for TSLA with different strike prices and expiration dates
Get me historical volatility data for NVDA to backtest this strategy
Pull the latest earnings data for tech stocks in my portfolio
Research & Due Diligence
Compare the last 5 earnings reports for MSFT vs GOOGL
What's the dividend yield history for REITs in my watchlist?
Show me all recent insider trading activity for AAPL
Claude Desktop: Add one config block to your claude_desktop_config.json
Claude Code: Single command: claude mcp add polygon
No server setup, no database management, no API client libraries to maintain. Just your Polygon.io API key and you're live.
Comprehensive Coverage: All of Polygon.io's endpoints are available—stocks, options, forex, crypto, fundamentals, news. No cherry-picking which data you need upfront.
Always Current: Built on the official Polygon.io Python SDK, so you automatically get new endpoints and features as they're released.
LLM-Optimized: Responses are formatted specifically for LLM consumption, making complex financial data queries feel natural.
Zero Maintenance: No API changes to track, no rate limiting logic to debug, no authentication flows to maintain.
claude mcp add polygon -e POLYGON_API_KEY=your_key_here -- uvx --from git+https://github.com/polygon-io/[email protected] mcp_polygon
Your LLM now has real-time access to the same financial data that powers professional trading platforms. No more context switching between your code editor and financial websites—just natural language queries that return actionable market data.
Perfect for fintech developers, quantitative analysts, or anyone building applications that need reliable financial market data without the integration overhead.