# cstamigo-droid/market-data-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/cstamigo-droid/market-data-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/cstamigo-droid-market-data-mcp

## Description
Live market data over Finnhub's free tier (free API key required): quotes, company and market news, earnings calendar, a watchlist scanner and a composite verdict, plus optional read-only Alpaca paper-trading positions.

## Tools
Capabilities this server exposes over MCP:

- **market_quote** — Real-time price, % change, high/low/open/prev-close
- **market_news** — Top 5 headlines — company-specific or general market
- **market_calendar** — Earnings calendar for the next N days (with EPS/revenue estimates)
- **market_scan** — Watchlist scanner: rank up to 25 tickers by absolute % change
- **market_analyze** — Composite: momentum score + news catalyst + earnings proximity
- **broker_positions** — Read open positions from Alpaca paper account

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/cstamigo-droid/market-data-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/cstamigo-droid/market-data-mcp.git
```

2. Run:

```sh
cd market-data-mcp
```

3. Configure:

```sh
python -m venv .venv
```

4. Configure:

```sh
.venv\Scripts\activate        # Windows
```

5. Install:

```sh
pip install -r requirements.txt
```

6. Configure:

```sh
copy .env.example .env        # edit: add FINNHUB_API_KEY
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/cstamigo-droid-market-data-mcp/readme_

