Skip to main content
Glama
Polygon-io MCP Server

Polygon-io MCP Server

Official
by massive-com
IMPORTANT

:test_tube: This project is experimental and could be subject to breaking changes.

Massive.com MCP Server

GitHub release

A Model Context Protocol (MCP) server that provides access to the full Massive.com financial data API through an LLM-friendly interface.

Rather than exposing one tool per endpoint, this server gives the LLM three composable tools — search, call, and query — that cover the entire Massive.com API surface. Data can be stored in an in-memory SQLite database, and enriched with built-in financial functions.

TIP

Don't want to install anything? Massive hosts this server athttps://mcp.massive.com. See the AI Tools quickstart for setup in each client.

Tools

Tool

Description

search_endpoints

Search for API endpoints and built-in functions by natural language query. Returns titles, path patterns, and descriptions. Set detail to "more" for query parameter docs, or "verbose" for full documentation. Use max_results to limit results.

call_api

Call any Massive.com REST API endpoint. Supports storing results as an in-memory database table (store_as) and applying post-processing functions (apply). Paginated responses include a next-page hint.

query_data

Run SQL against stored SQLite DB. Supports SHOW TABLES, DESCRIBE <table>, DROP TABLE <table>, CTEs, window functions, and more. Results can also be post-processed with apply.

Built-in Functions

Functions can be applied to API results or query output via the apply parameter on call_api and query_data. Use search_endpoints with scope="functions" to discover them.

Category

Functions

Greeks

bs_price, bs_delta, bs_gamma, bs_theta, bs_vega, bs_rho — Black-Scholes option pricing and greeks

Returns

simple_return, log_return, cumulative_return, sharpe_ratio, sortino_ratio

Technical

sma (simple moving average), ema (exponential moving average)

Data Coverage

The server dynamically indexes all Massive.com API endpoints at startup from llms.txt, so it automatically stays in sync with the API. Coverage includes:

  • Stock, options, forex, crypto, and futures aggregates

  • Real-time and historical trades and quotes

  • Market snapshots, gainers/losers

  • Ticker details and reference data

  • Dividends, splits, IPOs

  • Financial fundamentals

  • Analyst ratings and news (Benzinga)

  • Treasury yields, inflation data

  • Market status and holidays

Related MCP server: market-data-mcp

Installation

Prerequisites

  • Python 3.12+

  • A Massive.com API key Button

  • Astral UV (v0.4.0+)

Claude Code

First, install Claude Code

npm install -g @anthropic-ai/claude-code

Install the MCP server, then register it with Claude Code:

# Install the server (one-time — downloads dependencies ahead of time)
uv tool install "mcp_massive @ git+https://github.com/massive-com/mcp_massive@v0.10.0"

# Register with Claude Code
claude mcp add massive -e MASSIVE_API_KEY=your_api_key_here -- mcp_massive

To upgrade to a new version later:

uv tool upgrade mcp_massive
NOTE

Upgrading from uvx or uv run --with? Previous versions recommended uvx --from ... mcp_massive or uv run --with. These commands download dependencies on every cold start, which can cause the server to exceed Claude's 30-second connection timeout. Switch to uv tool install as shown above — it downloads dependencies once and starts instantly after that.

This command will install the MCP server in your current project. If you want to install it globally, you can run the command with -s <scope> flag. See claude mcp add --help for more options.

To start Claude Code, run claude in your terminal.

  • If this is your first time using, follow the setup prompts to authenticate

You can also run claude mcp add-from-claude-desktop if the MCP server is installed already for Claude Desktop.

Claude Desktop

  1. Follow the Claude Desktop MCP installation instructions to complete the initial installation and find your configuration file.

  2. Install the server:

uv tool install "mcp_massive @ git+https://github.com/massive-com/mcp_massive@v0.10.0"
  1. Find the installed binary path:

# Mac/Linux
which mcp_massive

# Windows
where mcp_massive
  1. Add the server to your Claude Desktop config. Replace <path_to_mcp_massive> with the output from the previous step, and fill in the remaining fields.

{
    "mcpServers": {
        "massive": {
            "command": "<path_to_mcp_massive>",
            "env": {
                "MASSIVE_API_KEY": "<your_api_key_here>",
                "HOME": "<your_home_directory>"
            }
        }
    }
}

Configuration

Environment Variables

Variable

Required

Default

Description

MASSIVE_API_KEY

Yes

—

Your Massive.com API key

POLYGON_API_KEY

No

—

Deprecated alias for MASSIVE_API_KEY

MCP_TRANSPORT

No

stdio

Transport protocol: stdio, sse, or streamable-http

MASSIVE_API_BASE_URL

No

https://api.massive.com

Base URL for API requests

MASSIVE_LLMS_TXT_URL

No

https://massive.com/docs/rest/llms.txt

URL for the endpoint index

MASSIVE_MAX_TABLES

No

50

Maximum number of in-memory tables

MASSIVE_MAX_ROWS

No

50000

Maximum rows per stored tables

Transport

By default, STDIO transport is used. The transport can be set via the --transport CLI argument or the MCP_TRANSPORT environment variable (CLI argument takes precedence).

# CLI argument
MASSIVE_API_KEY=<your_api_key_here> uv run mcp_massive --transport streamable-http

# Environment variable
MCP_TRANSPORT=streamable-http MASSIVE_API_KEY=<your_api_key_here> uv run mcp_massive

Usage Examples

Once integrated, you can prompt Claude to access Massive.com data:

Get the latest price for AAPL stock
Show me yesterday's trading volume for MSFT
What were the biggest stock market gainers today?
Get me the latest crypto market data for BTC-USD
Calculate the 20-day SMA for AAPL closing prices over the last 3 months
Compute Black-Scholes delta for these option contracts

Development

Running Locally

Check to ensure you have the Prerequisites installed.

# Sync dependencies
uv sync

# Run the server
MASSIVE_API_KEY=your_api_key_here uv run mcp_massive

Install from your local checkout, then reference the binary directly:

uv tool install --force /path/to/mcp_massive
{
  "mcpServers": {
    "massive": {
      "command": "mcp_massive",
      "env": {
        "MASSIVE_API_KEY": "your_api_key_here"
      }
    }
  }
}

Debugging

For debugging and testing, we recommend using the MCP Inspector:

npx @modelcontextprotocol/inspector uv --directory /path/to/mcp_massive run mcp_massive

This will launch a browser interface where you can interact with your MCP server directly and see input/output for each tool.

Select the STDIO transport type in the browser UI with the command uv and run mcp_massive as the arguments.

Code Linting

This project uses just for common development tasks. To lint your code before submitting a PR:

just lint

This will run ruff format and ruff check --fix to automatically format your code and fix linting issues.

Privacy Policy

This MCP server interacts with Massive.com's API to fetch market data. All data requests are subject to Massive.com's privacy policy and terms of service.

  • Massive.com Privacy Policy: https://massive.com/legal/privacy

  • Data Handling: This server does not store or cache any user data. All requests are proxied directly to Massive.com's API.

  • API Key: Your Massive.com API key is used only for authenticating requests to their API.

  • User-Agent: API requests include a User-Agent string containing the MCP server version (e.g., MCP-Massive/0.x.y). No personally identifiable information is included.

Contributing

If you found a bug or have an idea for a new feature, please first discuss it with us by submitting a new issue. We will respond to issues within at most 3 weeks. We're also open to volunteers if you want to submit a PR for any open issues but please discuss it with us beforehand. PRs that aren't linked to an existing issue or discussed with us ahead of time will generally be declined.

Available Tools

53 tools
get_aggsC

List aggregate bars for a ticker over a given date range in custom time window sizes.

Inputs: from_ (required), multiplier (required), ticker (required), timespan (required), +5 more.

get_daily_open_close_aggC

Get daily open, close, high, and low for a specific ticker and date.

Inputs: date (required), ticker (required), adjusted, params.

get_exchangesC

List exchanges known by Polygon.io.

Inputs: asset_class, locale, params.

get_futures_contract_detailsC

Get details for a single futures contract at a specified point in time.

Inputs: ticker (required), as_of, params.

get_futures_product_detailsC

Get details for a single futures product as it was at a specific day.

Inputs: product_code (required), as_of, params, type.

get_futures_snapshotD

Get snapshots for futures contracts.

Inputs: limit, params, product_code, product_code_any_of, +11 more.

get_grouped_daily_aggsC

Get grouped daily bars for entire market for a specific date.

Inputs: date (required), adjusted, include_otc, locale, +2 more.

get_last_crypto_tradeC

Get the most recent trade for a crypto pair.

Inputs: from_ (required), to (required), params.

get_last_forex_quoteC

Get the most recent forex quote.

Inputs: from_ (required), to (required), params.

get_last_quoteC

Get the most recent quote for a ticker symbol.

Inputs: ticker (required), params.

get_last_tradeC

Get the most recent trade for a ticker symbol.

Inputs: ticker (required), params.

get_market_holidaysC

Get upcoming market holidays and their open/close times.

Inputs: params.

get_market_statusC

Get current trading status of exchanges and financial markets.

Inputs: params.

get_previous_close_aggC

Get previous day's open, close, high, and low for a specific ticker.

Inputs: ticker (required), adjusted, params.

get_real_time_currency_conversionC

Get real-time currency conversion.

Inputs: from_ (required), to (required), amount, params, +1 more.

get_snapshot_allC

Get a snapshot of all tickers in a market.

Inputs: market_type (required), include_otc, params, tickers.

get_snapshot_crypto_bookC

Get snapshot for a crypto ticker's order book.

Inputs: ticker (required), params.

get_snapshot_directionD

Get gainers or losers for a market.

Inputs: direction (required), market_type (required), include_otc, params.

get_snapshot_optionC

Get snapshot for a specific option contract.

Inputs: option_contract (required), underlying_asset (required), params.

get_snapshot_tickerC

Get snapshot for a specific ticker.

Inputs: market_type (required), ticker (required), params.

get_ticker_detailsC

Get detailed information about a specific ticker.

Inputs: ticker (required), date, params.

get_ticker_typesC

List all ticker types supported by Polygon.io.

Inputs: asset_class, locale, params.

list_aggsC

Iterate through aggregate bars for a ticker over a given date range.

Inputs: from_ (required), multiplier (required), ticker (required), timespan (required), +5 more.

list_benzinga_analyst_insightsD

List Benzinga analyst insights.

Inputs: benzinga_firm_id, benzinga_firm_id_any_of, benzinga_firm_id_gt, benzinga_firm_id_gte, +41 more.

list_benzinga_analystsD

List Benzinga analysts.

Inputs: benzinga_firm_id, benzinga_firm_id_any_of, benzinga_firm_id_gt, benzinga_firm_id_gte, +23 more.

list_benzinga_consensus_ratingsC

List Benzinga consensus ratings for a ticker.

Inputs: ticker (required), date, date_gt, date_gte, +4 more.

list_benzinga_earningsD

List Benzinga earnings.

Inputs: date, date_any_of, date_gt, date_gte, +53 more.

list_benzinga_firmsD

List Benzinga firms.

Inputs: benzinga_id, benzinga_id_any_of, benzinga_id_gt, benzinga_id_gte, +5 more.

list_benzinga_guidanceD

List Benzinga guidance.

Inputs: date, date_any_of, date_gt, date_gte, +41 more.

list_benzinga_newsD

List Benzinga news.

Inputs: author, author_any_of, author_gt, author_gte, +26 more.

list_benzinga_ratingsD

List Benzinga ratings.

Inputs: benzinga_analyst_id, benzinga_analyst_id_any_of, benzinga_analyst_id_gt, benzinga_analyst_id_gte, +53 more.

list_conditionsD

List conditions used by Polygon.io.

Inputs: asset_class, data_type, id, params, +1 more.

list_dividendsC

Get historical cash dividends.

Inputs: dividend_type, ex_dividend_date, frequency, limit, +2 more.

list_futures_aggregatesC

Get aggregates for a futures contract in a given time range.

Inputs: resolution (required), ticker (required), limit, params, +6 more.

list_futures_contractsC

Get a paginated list of futures contracts.

Inputs: active, as_of, first_trade_date, last_trade_date, +5 more.

list_futures_market_statusesC

Get market statuses for futures products.

Inputs: limit, params, product_code, product_code_any_of, +1 more.

list_futures_productsC

Get a list of futures products (including combos).

Inputs: as_of, asset_class, asset_sub_class, limit, +8 more.

list_futures_quotesC

Get quotes for a futures contract in a given time range.

Inputs: ticker (required), limit, params, session_end_date, +10 more.

list_futures_schedulesC

Get trading schedules for multiple futures products on a specific date.

Inputs: limit, params, session_end_date, sort, +1 more.

list_futures_schedules_by_product_codeC

Get schedule data for a single futures product across many trading dates.

Inputs: product_code (required), limit, params, session_end_date, +5 more.

list_futures_tradesC

Get trades for a futures contract in a given time range.

Inputs: ticker (required), limit, params, session_end_date, +10 more.

list_inflationC

Get inflation data from the Federal Reserve.

Inputs: date, date_any_of, date_gt, date_gte, +5 more.

list_iposC

Retrieve upcoming or historical IPOs.

Inputs: ipo_status, limit, listing_date, listing_date_gt, +7 more.

list_quotesC

Get quotes for a ticker symbol.

Inputs: ticker (required), limit, order, params, +6 more.

list_short_interestC

Retrieve short interest data for stocks.

Inputs: limit, order, params, settlement_date, +6 more.

list_short_volumeC

Retrieve short volume data for stocks.

Inputs: date, date_gt, date_gte, date_lt, +6 more.

list_splitsC

Get historical stock splits.

Inputs: execution_date, limit, params, reverse_split, +1 more.

list_stock_financialsC

Get fundamental financial data for companies.

Inputs: cik, company_name, company_name_search, filing_date, +17 more.

list_ticker_newsC

Get recent news articles for a stock ticker.

Inputs: limit, order, params, published_utc, +2 more.

list_tickersC

Query supported ticker symbols across stocks, indices, forex, and crypto.

Inputs: active, cik, cusip, date, +9 more.

list_tradesC

Get trades for a ticker symbol.

Inputs: ticker (required), limit, order, params, +6 more.

list_treasury_yieldsD

Retrieve treasury yield data.

Inputs: date, date_any_of, date_gt, date_gte, +6 more.

list_universal_snapshotsC

Get universal snapshots for multiple assets of a specific type.

Inputs: type (required), limit, order, params, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.5/5.0

    Scored across 53 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific asset classes (e.g., stocks, crypto, futures) or data types (e.g., aggregates, snapshots, lists), with clear boundaries. However, some overlap exists between similar 'list' and 'get' functions (e.g., list_aggs vs get_aggs) that could cause minor confusion, though descriptions help differentiate them.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, using 'get_' for single-item retrieval and 'list_' for collections, with clear and descriptive nouns (e.g., get_ticker_details, list_futures_contracts). There are no deviations in naming conventions, making the set predictable and readable.

    Tool Count2/5

    With 53 tools, the count is excessive for a single server, making it overwhelming and difficult for agents to navigate efficiently. While the domain (financial data) is broad, this many tools suggests poor scoping and could lead to usability issues, as typical well-scoped servers have 3-15 tools.

    Completeness5/5

    The tool surface provides comprehensive coverage for financial data retrieval, including stocks, crypto, forex, futures, and market metadata, with full CRUD-like operations (mostly read/list functions) and no apparent gaps. It supports diverse workflows from real-time quotes to historical analysis and auxiliary data like news or holidays.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Real-time financial market data MCP server. Stocks, crypto, technicals, sentiment, FDA calendar. No API keys required.
      -
    • F
      license
      A
      quality
      D
      maintenance
      Extensible trading-intelligence MCP server with diagnostic tools, structured logging, and tool registration; currently provides server info tool with plans for market data adapters.
      1
      -