Skip to main content
Glama

Polygon MCP Server

Polygon MCP Server

A Model Context Protocol (MCP) server that provides tools for interacting with the Polygon.io API for market data.

Features

This MCP server provides the following tools:

  • get_ticker_details - Get details about a ticker symbol
  • get_latest_quote - Get real-time quote for a ticker
  • get_aggregates - Get aggregate bars for a ticker
  • get_daily_open_close - Get daily open/close prices
  • get_market_status - Check if markets are open
  • get_ticker_news - Get news articles for a ticker
  • list_tickers - Search/list available tickers
  • get_snapshot - Get snapshot of ticker(s)

Installation

  1. Clone this repository
  2. Install dependencies:
    npm install
  3. Build the server:
    npm run build

Configuration

The server requires the following environment variable:

  • POLYGON_API_KEY - Your Polygon.io API key

MCP Settings Configuration

Add the following to your MCP settings file:

{ "mcpServers": { "polygon": { "command": "node", "args": ["/path/to/polygon-server/build/index.js"], "env": { "POLYGON_API_KEY": "your-api-key" } } } }

Usage Examples

Get Market Status

{ "tool": "get_market_status", "arguments": {} }

Get Ticker Details

{ "tool": "get_ticker_details", "arguments": { "ticker": "AAPL" } }

Get Historical Data

{ "tool": "get_aggregates", "arguments": { "ticker": "AAPL", "timespan": "day", "from": "2024-01-01", "to": "2024-01-31" } }

Get News

{ "tool": "get_ticker_news", "arguments": { "ticker": "TSLA", "limit": 5 } }

Development

  • Run in watch mode: npm run watch
  • Run tests: npm test
  • Lint code: npm run lint

API Documentation

For more information about the Polygon.io API, visit: https://polygon.io/docs

License

MIT

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A Model Context Protocol server that enables users to interact with Polygon.io API for retrieving financial market data including ticker details, quotes, aggregates, market status and news.

  1. Features
    1. Installation
      1. Configuration
        1. MCP Settings Configuration
      2. Usage Examples
        1. Get Market Status
        2. Get Ticker Details
        3. Get Historical Data
        4. Get News
      3. Development
        1. API Documentation
          1. License

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that provides access to CoinMarketCap's cryptocurrency data, enabling AI applications to retrieve cryptocurrency listings, quotes, and detailed information.
              Last updated -
              3
              33
              Python
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              A server that allows AI models to interact with cryptocurrency exchange APIs through the Model Context Protocol, providing access to over 100 exchanges and their trading capabilities.
              Last updated -
              20
              682
              56
              TypeScript
              MIT License
              • Apple
              • Linux
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that provides tools for interacting with Yahoo Finance, allowing users to retrieve stock prices, company information, and perform financial data comparisons.
              Last updated -
              11
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              A server that implements the Model Context Protocol, providing a standardized way to connect AI models to different data sources and tools.
              Last updated -
              1
              8
              TypeScript
              MIT License

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/jwaresolutions/polygon-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server