MCP.so
ログイン
M

Market Data Mcp

@cstamigo-droid

Market Data Mcp について

概要はまだありません

基本情報

カテゴリ

データと分析

トランスポート

stdio

公開者

cstamigo-droid

投稿者

cstamigo-droid

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "market-data-mcp": {
      "command": "python",
      "args": [
        "-m",
        "market_data_mcp"
      ],
      "cwd": "C:/path/to/market-data-mcp"
    }
  }
}

ツール

6

Real-time price, % change, high/low/open/prev-close

Top 5 headlines — company-specific or general market

Earnings calendar for the next N days (with EPS/revenue estimates)

Watchlist scanner: rank up to 25 tickers by absolute % change

Composite: momentum score + news catalyst + earnings proximity

Read open positions from Alpaca paper account

概要

What is Market Data Mcp?

Market Data Mcp is a Model Context Protocol server that provides real-time market data—quotes, news, earnings calendars, and a watchlist scanner—to AI agents. It integrates with Finnhub as its primary data source and optionally Alpaca for broker positions. Designed for any MCP client (e.g., Claude Desktop, Claude Code), it returns clean, uniform results that fail gracefully rather than fabricating values.

How to use Market Data Mcp?

Clone the repository, create a Python virtual environment, install dependencies, and configure a .env file with FINNHUB_API_KEY. Run the server via python -m market_data_mcp. Add a mcpServers entry to your Claude Desktop configuration file. Tools are invoked by name (e.g., market_quote, market_scan) and return Markdown by default or JSON with response_format="json".

Key features of Market Data Mcp

  • Real-time quotes, news, earnings calendar, and watchlist scanner.
  • Composite analysis tool with directional score and confidence.
  • Uniform Result contract across all tools (source, ok, summary, data, score, confidence, error).
  • Graceful degradation: missing or premium-gated data returns Result.failed, never a fabricated value.
  • Per-source TTL cache to respect API rate limits.
  • Optional Alpaca paper account integration for reading open positions.

Use cases of Market Data Mcp

  • Ask an AI agent for the current price and daily change of a stock.
  • Get the top 5 market headlines or company-specific news.
  • Retrieve upcoming earnings calendar events with EPS and revenue estimates.
  • Scan a watchlist of up to 25 tickers and rank them by absolute percentage change.
  • Perform a composite analysis of a ticker including momentum, news catalyst, and earnings proximity.
  • Read open positions from an Alpaca paper trading account.

FAQ from Market Data Mcp

What data sources does Market Data Mcp use?

The primary source is Finnhub. The broker_positions tool optionally uses Alpaca’s Paper Trading API if API keys are provided.

Does Market Data Mcp require an API key?

Yes, you need a free Finnhub API key, obtainable at https://finnhub.io/register. The Alpaca keys are optional.

Are the tools free to use?

Most tools operate on Finnhub’s free tier. The earnings calendar tool was verified live on 2026-06-14 and accessible on the free tier. The broker_positions tool requires Alpaca keys but is free for paper trading.

What transport does Market Data Mcp use?

It uses the standard MCP transport over stdio, configured via Claude Desktop’s mcpServers JSON with a command and args pointing to the Python module.

What happens when data is unavailable?

The server returns a Result.failed object with an error message. It never fabricates a value—missing or premium-gated sources produce “no data.”

コメント

「データと分析」の他のコンテンツ