MCP server for real-time market data

MCP server for real-time market data

market-data-mcp•bycstamigo-droid

An MCP server exposing uniform stock market data tools to MCP clients, including quotes, news, earnings calendar, a watchlist scanner, and optional Alpaca paper positions.

License: MIT•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •market_quote returns real-time price, percent change, and high/low/open/prev-close data from Finnhub.
  • •market_news returns the top five company-specific or general market headlines.
  • •market_scan ranks up to 25 watchlist tickers by absolute percent change.
  • •market_analyze combines momentum score, news catalyst, and earnings proximity, and broker_positions reads open positions from an Alpaca paper account.

BEST FOR

  • •Agents that need quick real-time stock quotes and comparison of watchlist movers.
  • •Agents triaging sentiment using a scored directional signal plus headline catalysts and earnings timing.

ABOUT MARKET-DATA-MCP

MCP server for real-time market data is cataloged as an MCP server attributed to cstamigo-droid. An MCP server exposing uniform stock market data tools to MCP clients, including quotes, news, earnings calendar, a watchlist scanner, and optional Alpaca paper positions. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for real-time market data are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server behave when a data source has no data or is unavailable?

It degrades gracefully, returning a failed result rather than a fabricated value.

What output formats can the tools return?

Each tool returns Markdown by default or JSON when response_format is set to json.

Upstream README

View this exact version on GitHub

README.md · 041b34aecc0e · Fetched 2026-11-13 13:11:47 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

market-data-mcp

market-data-mcp MCP server

License: MIT Python MCP

market-data-mcp - quote + verdict demo

Real-time market data: quotes, news, earnings calendar, and a watchlist scanner for AI agents — backed by Finnhub.

Gives any MCP client (Claude Desktop, Claude Code, agents) clean, uniform market data tools that fail gracefully. A missing or premium-gated source returns "no data", never a fabricated value. Markdown output by default, JSON on demand.


Tools

ToolWhat it doesSourceFree tier
market_quoteReal-time price, % change, high/low/open/prev-closeFinnhub /quoteYes
market_newsTop 5 headlines — company-specific or general marketFinnhub /company-news, /newsYes
market_calendarEarnings calendar for the next N days (with EPS/revenue estimates)Finnhub /calendar/earningsYes*
market_scanWatchlist scanner: rank up to 25 tickers by absolute % changeFinnhub /quote x NYes
market_analyzeComposite: momentum score + news catalyst + earnings proximityAll of the aboveYes
broker_positionsRead open positions from Alpaca paper accountAlpaca Paper APIOptional**

*Calendar tested live on 2026-06-14: accessible on Finnhub free tier.
**broker_positions requires ALPACA_API_KEY + ALPACA_SECRET_KEY in .env. Degrades gracefully without them.

Every tool returns Markdown (human-readable, default) or JSON (response_format="json") for programmatic use.


Live demo output (2026-06-14)

market_quote AAPL:
  AAPL: $291.13  (-1.52%  -$4.50)  prev close $295.63

market_scan AAPL,MSFT,NVDA,TSLA:
  Scanned 4/4 symbols. Top mover: TSLA +1.82%

market_calendar days=7:
  20 earnings events in the next 7 days: ACN, KR, MEI ...

market_analyze AAPL:
  Signal: Lean negative  [......##|........] -30/100  confidence 60%
  AAPL: $291.13  -1.52%  → Lean negative [TRIM]
  Catalyst: Apple's iOS 27 surprise could change the AI narrative


Quick start

Note: the market-data-mcp package on PyPI is a different, unrelated project by another author. Install this one from source:

git clone https://github.com/cstamigo-droid/market-data-mcp.git
cd market-data-mcp
python -m venv .venv
.venv\Scripts\activate        # Windows
pip install -r requirements.txt

copy .env.example .env        # edit: add FINNHUB_API_KEY
python tests/test_smoke.py    # live test all 6 tools

Get a free Finnhub key at: https://finnhub.io/register


Claude Desktop config

Add this to claude_desktop_config.json (%APPDATA%\Claude\ on Windows, ~/Library/Application Support/Claude/ on macOS), then restart Claude Desktop:

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

Use the system Python path if you are not using a venv:

{
  "mcpServers": {
    "market-data-mcp": {
      "command": "C:/Users/YourName/AppData/Local/Python/pythoncore-3.14-64/python.exe",
      "args": ["-m", "market_data_mcp"],
      "cwd": "C:/path/to/market-data-mcp",
      "env": { "PYTHONUTF8": "1" }
    }
  }
}

Optional: Alpaca broker source

The broker_positions tool reads your Alpaca paper account. To enable it:

  1. Go to https://app.alpaca.markets/ → Paper Trading → API Keys
  2. Add to .env:
    ALPACA_API_KEY=your-key-here
    ALPACA_SECRET_KEY=your-secret-here
    
  3. Restart the server.

Without these keys, broker_positions returns a graceful "keys not set" message.


Why it's built this way

  • Uniform result contract. Every source returns the same Result shape (source, ok, summary, data, score, confidence, error). An LLM can reason across all tools without parsing N formats.
  • Graceful degradation. A source with no data, a premium-gated endpoint, or a missing key returns Result.failed(...) — never a fabricated value. Zero-price from Finnhub for unknown symbols is treated as "no data", not a quote.
  • Scored analysis. The composite market_analyze tool emits a -100..+100 directional score with confidence, so an agent can triage without reading prose.
  • TTL cache. Per-source in-process cache avoids hammering rate-limited APIs when an agent calls several tools in one turn (e.g. scan + analyze in sequence).

Disclaimer

For research and educational use only. Data comes from Finnhub and Alpaca and may be delayed or incomplete. Never use automated market data for financial decisions without independent verification.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for real-time market data from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/market-data-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics