MCP Market Data
by EricGrill
README.md
<p align="center">
<h1 align="center">MCP Market Data</h1>
<p align="center">
<strong>Real-time financial market data through Claude</strong>
</p>
<p align="center">
<a href="https://github.com/EricGrill/mcp-market-data/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT License"></a>
<img src="https://img.shields.io/badge/tools-6-green.svg" alt="6 Tools">
<img src="https://img.shields.io/badge/source-Yahoo%20Finance-purple.svg" alt="Yahoo Finance">
<img src="https://img.shields.io/badge/python-%3E%3D3.11-orange.svg" alt="Python >= 3.11">
</p>
<p align="center">
<a href="#-quick-start">Quick Start</a> |
<a href="#-available-tools">Tools</a> |
<a href="#-asset-coverage">Assets</a> |
<a href="#%EF%B8%8F-configuration">Configuration</a> |
<a href="https://github.com/EricGrill/agents-skills-plugins">Plugin Marketplace</a>
</p>
</p>
---
## What is this?
An MCP (Model Context Protocol) server that provides **real-time financial market data** via Yahoo Finance. Query stock prices, view historical charts, compare assets, and screen stocks by sector through natural language.
**Works with Claude Desktop, Claude Code, Cursor, and any MCP-compatible client.**
**Part of the [Claude Code Plugin Marketplace](https://github.com/EricGrill/agents-skills-plugins).**
---
## Quick Start
```bash
# Clone and install
git clone https://github.com/EricGrill/mcp-market-data.git
cd mcp-market-data
uv sync
# Run the server
uv run python -m mcp_market_data.server
```
Add to your Claude config and start querying:
> "What's Tesla's stock price?"
---
## Why Use This?
| Feature | Description |
|---------|-------------|
| **Real-Time Quotes** | Current prices for stocks, indices, crypto, forex, commodities |
| **Historical Data** | OHLCV candlestick data for any time period |
| **Market Overview** | S&P 500, Nasdaq, Dow Jones, VIX at a glance |
| **Asset Comparison** | Side-by-side comparison of multiple tickers |
| **Stock Screener** | Filter by sector (tech, healthcare, finance, etc.) |
| **News Headlines** | Recent news for any ticker |
---
## Available Tools
| Tool | Description |
|------|-------------|
| `get_quote` | Current price, change, volume, market cap for any ticker |
| `get_history` | Historical OHLCV data (1d to max) |
| `market_summary` | Overview of major indices |
| `compare_assets` | Side-by-side comparison |
| `screen_stocks` | Filter stocks by sector |
| `get_news` | Recent news headlines |
---
## Asset Coverage
| Type | Examples |
|------|----------|
| **Stocks** | `TSLA`, `AAPL`, `GOOGL`, `NVDA` |
| **Indices** | `^GSPC` (S&P 500), `^IXIC` (Nasdaq), `^DJI` (Dow) |
| **Crypto** | `BTC-USD`, `ETH-USD`, `SOL-USD` |
| **Forex** | `EURUSD=X`, `GBPUSD=X` |
| **Commodities** | `GC=F` (Gold), `CL=F` (Oil) |
---
## Configuration
### Claude Desktop Setup
| Platform | Config Path |
|----------|-------------|
| macOS | `~/Library/Application Support/Claude/claude_desktop_config.json` |
| Windows | `%APPDATA%\Claude\claude_desktop_config.json` |
| Linux | `~/.config/Claude/claude_desktop_config.json` |
```json
{
"mcpServers": {
"market-data": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-market-data", "python", "-m", "mcp_market_data.server"]
}
}
}
```
---
## Examples
<details>
<summary><b>Stock Quotes</b></summary>
```
"What's Tesla's stock price?"
"Get me a quote for Apple"
"What's Bitcoin trading at?"
"Show me the S&P 500"
```
</details>
<details>
<summary><b>Historical Data</b></summary>
```
"Show me TSLA history for the last month"
"Get 1 year of Apple stock data"
"Chart Bitcoin for the last week"
```
</details>
<details>
<summary><b>Comparisons</b></summary>
```
"Compare AAPL, GOOGL, and MSFT"
"Side by side: Tesla vs Rivian vs Lucid"
"Compare major tech stocks"
```
</details>
<details>
<summary><b>Market Overview</b></summary>
```
"Give me a market summary"
"How are the indices doing?"
"What's the VIX at?"
```
</details>
<details>
<summary><b>Stock Screening</b></summary>
```
"Show me technology stocks"
"Screen healthcare sector"
"What crypto is available?"
```
</details>
---
## Development
```bash
# Clone
git clone https://github.com/EricGrill/mcp-market-data.git
cd mcp-market-data
# Install with dev dependencies
uv sync --extra dev
# Run tests
uv run pytest -v
```
---
## Related Projects
- [mcp-predictive-market](https://github.com/EricGrill/mcp-predictive-market) - Prediction market aggregation
- [Claude Code Plugin Marketplace](https://github.com/EricGrill/agents-skills-plugins)
---
## License
MIT
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues