MCP server wrapping Polygon.io Python SDK for stocks, options, forex, and crypto
Project description
Polygon.io MCP Server
MCP server wrapping the Polygon.io Python SDK for stocks, options, forex, and crypto market data.
Installation
cd polygon_mcp
uv pip install -e .
Configuration
Set your Polygon.io API key as an environment variable:
export POLYGON_API_KEY="your_api_key_here"
Usage
Run directly
uv run polygon-mcp
MCP Configuration
Add to your MCP config (e.g., ~/.kiro/settings/mcp.json):
{
"mcpServers": {
"polygon": {
"command": "uv",
"args": ["--directory", "/path/to/polygon_mcp", "run", "polygon-mcp"],
"env": {
"POLYGON_API_KEY": "your_api_key_here"
}
}
}
}
Available Tools
Stocks
stocks_get_sma- Simple Moving Averagestocks_get_ema- Exponential Moving Averagestocks_get_rsi- Relative Strength Indexstocks_get_macd- MACDstocks_get_trades- Trades for a datestocks_get_trades_v3- Trades v3 APIstocks_get_quotes- Quotes for a datestocks_get_quotes_v3- NBBO quotes v3stocks_get_last_trade- Most recent tradestocks_get_last_quote- Most recent quotestocks_get_daily_open_close- Daily OHLCVstocks_get_aggregate_bars- Candles/barsstocks_get_grouped_daily_bars- Market-wide daily barsstocks_get_previous_close- Previous day OHLCVstocks_get_snapshot- Current snapshotstocks_get_snapshot_all- All snapshotsstocks_get_current_price- Current pricestocks_get_gainers_and_losers- Top movers
Options
options_get_sma/ema/rsi/macd- Technical indicatorsoptions_get_trades- Option tradesoptions_get_quotes- Option quotesoptions_get_last_trade- Most recent tradeoptions_get_daily_open_close- Daily OHLCVoptions_get_aggregate_bars- Candles/barsoptions_get_previous_close- Previous day OHLCoptions_get_snapshot- Option snapshotoptions_build_symbol- Build option symboloptions_parse_symbol- Parse option symbol
Forex
forex_get_sma/ema/rsi/macd- Technical indicatorsforex_real_time_conversion- Currency conversionforex_get_historic_ticks- Historic ticksforex_get_quotes- NBBO quotesforex_get_last_quote- Last quoteforex_get_aggregate_bars- Candles/barsforex_get_grouped_daily_bars- Market-wide dailyforex_get_previous_close- Previous day OHLCforex_get_gainers_and_losers- Top movers
Crypto
crypto_get_sma/ema/rsi/macd- Technical indicatorscrypto_get_historic_trades- Historic tradescrypto_get_trades- Trades in time rangecrypto_get_last_trade- Last tradecrypto_get_daily_open_close- Daily open/closecrypto_get_aggregate_bars- Candles/barscrypto_get_grouped_daily_bars- Market-wide dailycrypto_get_previous_close- Previous day OHLCcrypto_get_snapshot_all- All snapshotscrypto_get_snapshot- Single snapshotcrypto_get_gainers_and_losers- Top moverscrypto_get_level2_book- Order book
Reference
reference_get_tickers- Query tickersreference_get_ticker_types- Ticker type mappingsreference_get_ticker_details- Ticker detailsreference_get_option_contract- Option contract inforeference_get_option_contracts- List option contractsreference_get_ticker_news- News articlesreference_get_stock_dividends- Dividend historyreference_get_stock_financials- SEC financialsreference_get_stock_splits- Split historyreference_get_market_holidays- Market holidaysreference_get_market_status- Market statusreference_get_conditions- Polygon conditionsreference_get_exchanges- Exchange list
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polygon_mcp-0.1.0.tar.gz.
File metadata
- Download URL: polygon_mcp-0.1.0.tar.gz
- Upload date:
- Size: 64.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d935fefac50a1150e9d88326f9de77cf80ff9faa778c512470b229c428cb5173
|
|
| MD5 |
8bfdcf2c782d754bebf71fb8ca9ac245
|
|
| BLAKE2b-256 |
0bfa8a0b5a99d833e16945044596a465753ea1947c303f5a4ce8821fb954146f
|
Provenance
The following attestation bundles were made for polygon_mcp-0.1.0.tar.gz:
Publisher:
publish.yml on atomcp-ai/polygon-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polygon_mcp-0.1.0.tar.gz -
Subject digest:
d935fefac50a1150e9d88326f9de77cf80ff9faa778c512470b229c428cb5173 - Sigstore transparency entry: 779624713
- Sigstore integration time:
-
Permalink:
atomcp-ai/polygon-mcp@cf364cadc5ba7fc460791d188e7a07e451c58024 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/atomcp-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cf364cadc5ba7fc460791d188e7a07e451c58024 -
Trigger Event:
release
-
Statement type:
File details
Details for the file polygon_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: polygon_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf1cd6029a26926cf4df2229fe0a0c4de971224b00e7e327bff80bf7f158d3d3
|
|
| MD5 |
e16e02b3f125b696f37f45a8ed6eec9f
|
|
| BLAKE2b-256 |
692d4b9a9778780d025e7333489bded9478658ad5bd0b5e7ee359eeb20236bac
|
Provenance
The following attestation bundles were made for polygon_mcp-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on atomcp-ai/polygon-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polygon_mcp-0.1.0-py3-none-any.whl -
Subject digest:
bf1cd6029a26926cf4df2229fe0a0c4de971224b00e7e327bff80bf7f158d3d3 - Sigstore transparency entry: 779624715
- Sigstore integration time:
-
Permalink:
atomcp-ai/polygon-mcp@cf364cadc5ba7fc460791d188e7a07e451c58024 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/atomcp-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cf364cadc5ba7fc460791d188e7a07e451c58024 -
Trigger Event:
release
-
Statement type: