Skip to main content
Glama
MCP Market Data

MCP Market Data

by EricGrill

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.


Related MCP server: YFinance MCP Server

Quick Start

# 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

{
  "mcpServers": {
    "market-data": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mcp-market-data", "python", "-m", "mcp_market_data.server"]
    }
  }
}

Examples

"What's Tesla's stock price?"
"Get me a quote for Apple"
"What's Bitcoin trading at?"
"Show me the S&P 500"
"Show me TSLA history for the last month"
"Get 1 year of Apple stock data"
"Chart Bitcoin for the last week"
"Compare AAPL, GOOGL, and MSFT"
"Side by side: Tesla vs Rivian vs Lucid"
"Compare major tech stocks"
"Give me a market summary"
"How are the indices doing?"
"What's the VIX at?"
"Show me technology stocks"
"Screen healthcare sector"
"What crypto is available?"

Development

# 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


License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to access real-time financial data, historical stock prices, company information, financial statements, options data, market news, and analyst recommendations through Yahoo Finance. Built with FastMCP v2 for efficient HTTP streaming and comprehensive market analysis tools.
      4
      -
    • F
      license
      A
      quality
      D
      maintenance
      Provides financial data from Yahoo Finance via MCP, enabling AI agents to access real-time stock info, historical prices, financial statements, and market analysis.
      10
      14
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables querying stock data, financial information, news, and historical prices from Yahoo Finance through a set of MCP tools.
      5
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server that exposes Yahoo Finance data through tools for searching instruments, fetching quotes, history, company info, financials, dividends, news, recommendations, and options. Enables AI assistants to answer market-data questions using natural language.
      10
      24
      638 PyPI
      5
      MIT