market-data-mcp
Fetch real-time market data, news, earnings, watchlist scans, composite analysis, and Alpaca paper positions through MCP tools.
Quotes:
market_quotereturns real-time price, % change, day high/low, and previous close for a symbol.News:
market_newsreturns top 5 company-specific or general market headlines.Earnings:
market_calendarlists upcoming earnings for 1–30 days with EPS/revenue estimates when available.Scanner:
market_scanranks up to 25 tickers by absolute % change.Analysis:
market_analyzecombines quote momentum, news catalyst, and earnings proximity into a -100 to +100 score with confidence.Broker:
broker_positionsreads open Alpaca paper positions if API keys are set; otherwise degrades gracefully.Output: Every tool returns Markdown by default or JSON on demand, with uniform graceful no-data/error handling.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@market-data-mcp get quote for AAPL"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
market-data-mcp

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
Tool | What it does | Source | Free tier |
| Real-time price, % change, high/low/open/prev-close | Finnhub | Yes |
| Top 5 headlines — company-specific or general market | Finnhub | Yes |
| Earnings calendar for the next N days (with EPS/revenue estimates) | Finnhub | Yes* |
| Watchlist scanner: rank up to 25 tickers by absolute % change | Finnhub | Yes |
| Composite: momentum score + news catalyst + earnings proximity | All of the above | Yes |
| Read open positions from Alpaca paper account | Alpaca Paper API | Optional** |
*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.
Related MCP server: MonteWalk
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-mcppackage 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 toolsGet 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:
Go to https://app.alpaca.markets/ → Paper Trading → API Keys
Add to
.env:ALPACA_API_KEY=your-key-here ALPACA_SECRET_KEY=your-secret-hereRestart 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
Resultshape (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_analyzetool 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
Available Tools
6 toolsbroker_positionsARead-only
Read open positions from an Alpaca paper trading account.
OPTIONAL — requires ALPACA_API_KEY and ALPACA_SECRET_KEY in .env. If keys are absent, returns a graceful 'no data' message with setup instructions. Read-only: never places orders or moves money.
Args: params: response_format ('markdown'|'json').
Examples: - "What positions do I have open in my paper account?" -> (no ticker needed) - "Show me my paper portfolio" -> (no ticker needed)
Inputs: params (required). Returns: result
market_analyzeARead-only
Composite market analysis: momentum score, news catalyst, and earnings proximity.
Combines real-time quote (momentum), latest news headline (catalyst), and earnings calendar (risk flag) into a single scored verdict. Each component degrades gracefully — if news or calendar are unavailable, only quote is used. Score: -100 (strong selling pressure) to +100 (strong upward momentum).
Args: params: symbol (str) and response_format ('markdown'|'json').
Examples: - "Give me a full read on Apple" -> symbol='AAPL' - "What's the momentum on NVIDIA right now?" -> symbol='NVDA' - "Analyze Tesla for me" -> symbol='TSLA'
Inputs: params (required). Returns: result
market_calendarARead-onlyIdempotent
Fetch the earnings calendar for the next N days.
Returns upcoming earnings reports with estimated EPS and revenue where available. NOTE: This endpoint may be premium-gated on the Finnhub free tier. If so, it degrades gracefully with an honest 'no data' message rather than fabricating events.
Args: params: days (int, 1-30, default 7) and response_format.
Examples: - "Which companies report earnings this week?" -> days=7 - "Show me earnings for the next 2 weeks" -> days=14 - "What's reporting tomorrow?" -> days=1
Inputs: params (required). Returns: result
market_newsARead-only
Fetch the latest market news — company-specific or general market headlines.
With a symbol: returns top 5 news items for that ticker from the past 7 days. Without a symbol: returns top 5 general market headlines. Backed by Finnhub free tier.
Args: params: symbol (optional ticker) and response_format ('markdown'|'json').
Examples: - "What's the latest news about Microsoft?" -> symbol='MSFT' - "Give me today's market news" -> (no symbol) - "Any news on Amazon this week?" -> symbol='AMZN'
Inputs: params (required). Returns: result
market_quoteARead-onlyIdempotent
Get a real-time stock quote: price, % change, day high/low, and previous close.
Backed by Finnhub free tier. Returns 'no data' for unknown/delisted symbols (Finnhub returns zeros for unknowns — we treat that as no data, never fabricate).
Args: params: symbol (str) and response_format ('markdown'|'json').
Examples: - "What is Apple's current stock price?" -> symbol='AAPL' - "How much is NVIDIA up today?" -> symbol='NVDA' - "Get me a quote for Tesla" -> symbol='TSLA'
Inputs: params (required). Returns: result
market_scanARead-onlyIdempotent
Scan a watchlist of stocks and rank them by absolute % change (biggest movers first).
Accepts up to 25 symbols. Unknown or delisted tickers are skipped gracefully. Useful for monitoring a portfolio or sector basket for unusual activity.
Args: params: symbols (comma-separated string, max 25) and response_format.
Examples: - "Which of AAPL, MSFT, GOOGL, AMZN, META is moving most today?" -> symbols='AAPL,MSFT,GOOGL,AMZN,META' - "Scan my tech watchlist: NVDA,AMD,INTC,TSM,AVGO" -> symbols='NVDA,AMD,INTC,TSM,AVGO' - "Show biggest movers in AAPL TSLA MSFT today" -> symbols='AAPL,TSLA,MSFT'
Inputs: params (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct aspect of market data: positions, analysis, calendar, news, quote, and scan. No two tools have overlapping purposes, making it easy for an agent to select the correct one.
All tools use lowercase and underscores, and five out of six start with 'market_'. The outlier 'broker_positions' breaks the prefix pattern, but the naming style is otherwise consistent.
6 tools is well-scoped for a market data server. Each tool serves a clear purpose without being excessive or insufficient.
The server covers core market data needs: quotes, news, earnings, scan, and composite analysis. A minor gap is historical price data, but the surface is sufficient for most real-time queries.
Maintenance
Related MCP Connectors
Live stock quotes, a stock screener, crypto prices and FX rates as agent tools.
Financial intelligence for AI agents: market events, sentiment, technicals, news feed.
Unified financial infrastructure connecting AI agents directly to trade live/demo brokerage accounts, Web3 non-custodial wallets, real-time market data across equities, ETFs, crypto, forex, options, DeFi swaps, and prediction markets, institutional research feeds, and algorithmic strategy backtesters.
Stocks, options flow, SEC filings, earnings, GPU prices, supply chain and macro data for agents
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides comprehensive financial market data and news through the Finnhub API. Enables real-time stock quotes, company profiles, financial metrics, analyst recommendations, and market news access.1MIT
- AlicenseCqualityDmaintenanceProvides AI agents with institutional-grade quantitative finance tools including real-time market data, paper trading via Alpaca, risk analysis with Monte Carlo simulations, backtesting, and multi-source news sentiment analysis for portfolio management and trading strategy development.315MIT
- FlicenseAqualityDmaintenanceProvides stock market data and analysis tools using the Finnhub API, including stock prices, financial metrics, news, and historical data.67-
- FlicenseNot gradedqualityDmaintenanceConnects AI agents to the Finnhub API for real-time stock quotes, market news, earnings reports, and financial metrics.-