Market Data MCP logo

Market Data MCP

by cstamigo-droid

Finnhub-backed MCP tools for quotes, news, earnings, watchlists, analysis, and optional Alpaca paper positions.

Install Market Data MCP

Run the project’s own setup commands, in order.

Setup steps from the project

cstamigo-droid/market-data-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/cstamigo-droid/market-data-mcp.git
    
  2. 2. Run
    cd market-data-mcp
    
  3. 3. Configure
    python -m venv .venv
    
  4. 4. Configure
    .venv\Scripts\activate        # Windows
    
  5. 5. Install
    pip install -r requirements.txt
    
  6. 6. Configure
    copy .env.example .env        # edit: add FINNHUB_API_KEY
    

Overview

cstamigo-droid/market-data-mcp exposes Finnhub market data through MCP tools for quotes, news, earnings calendars, watchlist scans, and composite analysis. It runs locally as a Python server over standard MCP configuration and requires a free Finnhub API key. An optional Alpaca connection adds read-only paper-account positions. Reach for it when an agent needs structured market context in Markdown or JSON, with graceful handling for unavailable data.

Use cases

  • Retrieve a quote for a stock symbol
  • Scan up to 25 watchlist symbols by price movement
  • Review upcoming earnings events and estimates
  • Combine momentum, news, and earnings timing into a signal
  • Read open positions from an Alpaca paper account

Key features

  • Finnhub quotes, news, and earnings data
  • Watchlist scanning for up to 25 tickers
  • Composite score from -100 to +100 with confidence
  • Markdown output with optional JSON responses
  • Graceful no-data handling
  • Optional read-only Alpaca paper positions

Tools6

What Market Data MCP lets your agent do. Expand a tool for its parameters.

Self-reported~104 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

9/9 checks healthy over the last 32d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit1mo agoMost recent push to the default branch.
Tools exposed6Callable tools this server registers over MCP.

How Market Data MCP works

What cstamigo-droid/market-data-mcp does

cstamigo-droid/market-data-mcp connects MCP-compatible AI clients to Finnhub's free API tier for common market-research tasks. It can retrieve a real-time quote, return recent company or general-market headlines, list upcoming earnings events, scan a watchlist, and combine several signals into a directional assessment. A separate optional tool reads open positions from an Alpaca paper-trading account.

The server is aimed at research and educational workflows. Its outputs may be delayed or incomplete, so market information should be independently verified before it informs a financial decision.

How it works

The server runs locally as a Python module and communicates with an MCP client through the standard server configuration. Finnhub supplies the quote, news, and earnings data. The watchlist scanner calls quote data for each symbol and ranks up to 25 symbols by absolute percentage change.

market_analyze combines quote momentum, news catalysts, and proximity to earnings into a score from -100 to +100 with a confidence value. Results use a common structure containing fields such as source, success status, summary, data, score, confidence, and error information. Calls return Markdown by default; clients can request JSON with response_format="json".

A per-source in-process TTL cache helps avoid repeatedly requesting rate-limited endpoints when several tools are used during one interaction. Missing data, unavailable endpoints, unknown symbols, and absent optional credentials produce an explicit no-data or failure result rather than an invented value.

Setup and configuration

Clone the repository rather than installing the similarly named, unrelated PyPI package. Create a virtual environment, install the requirements, and place a Finnhub API key in a .env file:

text
FINNHUB_API_KEY=your-key-here

A free Finnhub key can be obtained from Finnhub's registration page. The smoke test can be run with python tests/test_smoke.py after installation.

For Claude Desktop, add an MCP entry that runs python -m market_data_mcp with the repository as its working directory, then restart the client. A full Python executable path can be used when the virtual environment is not selected. On Windows, PYTHONUTF8=1 can be included in the client environment configuration.

To enable Alpaca paper positions, add ALPACA_API_KEY and ALPACA_SECRET_KEY to .env, then restart the server. Without those optional credentials, broker_positions reports that the keys are not set.

Tools and capabilities

  • market_quote returns price, percentage change, high, low, open, and previous close for a symbol.
  • market_news provides up to five headlines for a company or for the broader market.
  • market_calendar lists earnings events over the next requested number of days, including EPS and revenue estimates.
  • market_scan ranks as many as 25 watchlist symbols by absolute percentage move.
  • market_analyze produces a composite momentum score, confidence, news catalyst, and earnings-proximity assessment.
  • broker_positions reads open positions from an Alpaca paper account and does not describe an order-placement workflow.

Limitations and notes

Finnhub access depends on the free-tier API key and endpoint availability. Some sources can be delayed, incomplete, or restricted by the provider's plan. The server treats zero-price results for unknown symbols as no data. Alpaca support is read-only and applies to a paper account; it is not an execution interface.

The repository is licensed under MIT and requires Python 3.10 or newer. The server is intended for research and education, not unattended financial decision-making.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Market Data MCP

cstamigo-droid/market-data-mcp is an MCP server that connects AI clients to Finnhub market data and optionally Alpaca paper accounts. Its main tools provide quotes, news, earnings calendars, watchlist scans, composite market analysis, and read-only open positions, with Markdown or JSON results.

Clone the GitHub repository, create a Python virtual environment, install `requirements.txt`, and add `FINNHUB_API_KEY` to `.env`. Run `python -m market_data_mcp` through your MCP client, or use `python tests/test_smoke.py` to run the live smoke test.

Add an `mcpServers` entry to Claude Desktop's `claude_desktop_config.json` with `command` set to `python`, `args` set to `['-m', 'market_data_mcp']`, and `cwd` set to the cloned repository path. Restart Claude Desktop after saving the file.

Add `ALPACA_API_KEY` and `ALPACA_SECRET_KEY` to `.env`, then restart the server. The `broker_positions` tool reads open positions from an Alpaca paper account; without those credentials it returns a keys-not-set message.

No. Its Alpaca integration is limited to reading open positions from a paper account. The documented tools do not provide order submission or trade execution.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMarket Data MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cstamigo-droid-market-data-mcp?style=directory)](https://allmcps.com/mcp/cstamigo-droid-market-data-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/cstamigo-droid-market-data-mcp"><img src="https://allmcps.com/api/badge/cstamigo-droid-market-data-mcp?style=directory" alt="Market Data MCP on AllMCPs" /></a>