NativeAIHub
Yahoo Finance MCP Server

Yahoo Finance MCP Server

Give your AI agent access to real time stock prices, financial statements, earnings dates, dividends, analyst recommendations, and financial news. No API key required.

MCP Serverยท3 sectionsยท1 min read
financeresearch
Install Prompt

Paste this into Claude Code to set it up:

I want to add the Yahoo Finance MCP Server to my Claude Code setup.

IMPORTANT: Never use Read/Edit tools on ~/.claude.json. Use jq via Bash instead.

No API key or authentication is needed. Yahoo Finance MCP uses publicly available data.

Run this command to add the MCP server:
```bash
jq '.mcpServers["yahoo-finance"] = {"type": "stdio", "command": "uvx", "args": ["mcp-yahoo-finance"]}' ~/.claude.json > /tmp/claude-json-tmp && mv /tmp/claude-json-tmp ~/.claude.json
```

Prerequisites: You need uv (the Python package runner) installed. If you do not have it, install it with: curl -LsSf https://astral.sh/uv/install.sh | sh

After adding, restart Claude Code. The server connects immediately and gives your agent access to real time stock prices, financial statements, earnings dates, dividends, analyst recommendations, and news.

01What It Does

A financial research assistant at your fingertips

Yahoo Finance MCP turns your agent into a financial research assistant. It pulls live market data, analyzes company fundamentals, and surfaces investment relevant information on demand. Built on Yahoo Finance's public data, it covers US equities, international stocks, ETFs, and indices. Best of all, no API key is required.
๐Ÿ“ˆ
Prices and HistoryCurrent quotes with price, change, and volume. Historical data for any date or date range for performance analysis.
๐Ÿ“Š
Financial StatementsIncome statements and cash flow data for fundamental analysis. Quarterly or annual periods.
๐ŸŽฏ
Analyst InsightsConsensus ratings, price targets, recommendation trends, earnings dates, and dividend data.

02Real Scenarios

1

"What's AAPL trading at?"

Current price, daily change, volume, and market cap. Simple, fast, no browser needed.

2

"Show me NVDA's revenue growth over 4 quarters"

The agent pulls income statement data, extracts quarterly revenue, calculates growth rates, and presents a clear comparison.

3

"Compare P/E ratios of the mega cap tech stocks"

Retrieves prices and earnings for each ticker, calculates trailing P/E ratios, and presents them side by side.

4

"What happened to TSLA last month?"

Pulls daily closing prices, identifies significant moves, and checks news for catalysts explaining the price action.

03Setup

# Add to ~/.claude.json under mcpServers
"yahoo-finance": {
  "type": "stdio",
  "command": "npx",
  "args": ["-y", "@anthropic/yahoo-finance-mcp"]
}
No API keys, no authentication, no cost. Yahoo Finance MCP uses publicly available data. Add the config, restart Claude Code, and start querying. Data is near real time with a short delay, excellent for research and analysis, though not suitable for high frequency trading.