Yahoo Finance MCP Server

Yahoo Finance MCP Server

Enables Claude to fetch live company data and news by ticker, including quotes, financials, analyst views, and historical data via Yahoo Finance.

Category
Visit Server

README

Yahoo Finance MCP Server

Live company data and news inside Claude, by ticker. Python + official MCP SDK (FastMCP, stdio) + yfinance.

Building a new MCP server for a different site? Start from MCP_PLAYBOOK.md — a self-contained recipe (with the common failure modes) that uses this repo as the reference implementation.

Tools

Tool What it returns
get_quote(tickers) Price, day change, day/52w range, volume, market cap — accepts multiple tickers
get_history(ticker, period, interval, start, end) OHLCV bars over a period or date range
get_financials(ticker, statement, period) Condensed income / balance / cashflow, annual or quarterly, + Yahoo link
get_profile(ticker) Sector, industry, description, employees, key stats
get_valuation(tickers) P/E, fwd P/E, EV/EBITDA, EV/Rev, P/B, margins, growth, leverage — multi-ticker for comps
get_analyst_view(ticker) Price targets, consensus, ratings breakdown, EPS/revenue estimates
get_news(ticker, limit) Headlines with source, timestamp, link

Non-US listings need the exchange suffix: D05.SI (SGX), 0700.HK (HKEX), 7203.T (Tokyo).

Install

cd "D:\Documents\AI Automation\Claude Code Projects\Yahoo Finance"
python -m venv .venv
.venv\Scripts\pip install -r requirements.txt

(Already done — the venv in this folder is ready.)

Register in Claude Desktop

Add to %APPDATA%\Claude\claude_desktop_config.json, then restart Claude Desktop:

{
  "mcpServers": {
    "yahoo-finance": {
      "command": "D:\\Documents\\AI Automation\\Claude Code Projects\\Yahoo Finance\\.venv\\Scripts\\python.exe",
      "args": ["D:\\Documents\\AI Automation\\Claude Code Projects\\Yahoo Finance\\server.py"]
    }
  }
}

Register in Claude Code

claude mcp add yahoo-finance -s user -- "D:\Documents\AI Automation\Claude Code Projects\Yahoo Finance\.venv\Scripts\python.exe" "D:\Documents\AI Automation\Claude Code Projects\Yahoo Finance\server.py"

-s user makes it available in every project.

Register in Claude chat (claude.ai) — custom connector

claude.ai only accepts remote servers, so the server must be hosted at a public HTTPS URL. The same server.py serves this with the --http flag (Streamable HTTP at /mcp).

Deploy free on Render (~10 min, one time):

  1. Push this folder to a GitHub repo (.venv is gitignored).
  2. At https://render.com → New → Web Service → connect the repo. render.yaml is picked up automatically (build: pip install -r requirements.txt, start: python server.py --http, free plan).
  3. Copy the service URL, e.g. https://yahoo-finance-mcp.onrender.com.

Then in any Claude account: Settings → Connectors → Add custom connector → paste https://<your-service>.onrender.com/mcp → Add (no authentication needed).

Notes:

  • Render's free tier sleeps after ~15 min idle; the first tool call after a pause takes ~30–60 s to cold-start, then it's fast.
  • The endpoint has no auth — anyone with the URL can query it. It only serves public market data, but don't post the URL anywhere.
  • If tool calls fail from the cloud but work locally, Yahoo is rate-limiting the host's IP — redeploy or upgrade the instance.

Run manually (debugging)

.venv\Scripts\python.exe server.py          # stdio (Claude Desktop / Code)
.venv\Scripts\python.exe server.py --http   # Streamable HTTP on :8000/mcp (claude.ai)

Speaks MCP over stdin/stdout; logs go to stderr. Data is unofficial Yahoo Finance via yfinance — fine for screens and sanity checks, not a substitute for filings or CapIQ on anything that goes in a deliverable.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured