Yahoo Finance MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Yahoo Finance MCP ServerWhat's the latest news for AMZN?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Yahoo Finance MCP Server ๐
Real-time stock market data for Claude Desktop and any MCP-compatible client, powered by Yahoo Finance. Get quotes, historical prices, company profiles, financial statements, analyst ratings, and multi-stock comparisons, all from natural language.
npm package:
yahoo-finance-mcp-serverย ยทย GitHub repo:danishashko/yahoo-finance-mcp. The repo name is shorter than the package name; both refer to this project.
๐ฏ What You Get
๐ Real-time stock quotes with full market data
๐ Historical prices (OHLCV) with summary statistics
๐ข Company profiles, officers, and key statistics
๐ฐ Financial statements (income, balance sheet, cash flow)
๐ฏ Analyst ratings, price targets, and the recent recommendation trend
โ๏ธ Multi-stock comparisons side by side
๐ฐ Latest financial news per ticker
๐งพ Options chains (calls/puts, strikes, IV, open interest)
๐ฆ Ownership data โ institutional, mutual fund, and insider activity
๐ต Dividend & split history
๐ฎ Forward analyst estimates (price targets, EPS/revenue, growth)
๐ Symbol search by company name or keyword
๐ Market status (open/closed) and index summary
Every tool returns human-readable markdown by default, or structured JSON on request (response_format: "json"). Requests share a single browser-impersonating HTTP session to reduce Yahoo Finance rate-limiting.
๐ Quick Start
Add this to your Claude Desktop config and restart Claude:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"yahoo-finance": {
"command": "npx",
"args": ["-y", "yahoo-finance-mcp-server"]
}
}
}That is it. On first launch the npx wrapper creates an isolated Python environment and installs the dependencies for you (a one-time step that can take a minute). You only need Python 3.10+ and Node.js 16+ on your machine.
Prefer a global install?
npm install -g yahoo-finance-mcp-server{
"mcpServers": {
"yahoo-finance": {
"command": "yahoo-finance-mcp-server"
}
}
}๐ง Available Tools
Tool | What it returns | Parameters |
| Current price, change, day and 52-week range, volume, market cap, P/E, EPS, dividend yield |
|
| OHLCV history with summary stats and total return |
|
| Business summary, key executives, valuation and financial highlights |
|
| Annual income statement, balance sheet, and cash flow |
|
| Key metrics for multiple tickers side by side, plus quick insights |
|
| Price targets, consensus, recommendation trend, and recent upgrades/downgrades |
|
| Latest news headlines with source, date, summary, and link |
|
| Expiration dates, or the calls/puts chain (strike, bid/ask, volume, OI, IV) |
|
| Institutional, mutual-fund, or major holders, or insider transactions |
|
| Dividend payment history (with summary) and stock-split history |
|
| Forward price targets, EPS/revenue estimates by period, and growth estimates |
|
| Find ticker symbols by company name or keyword |
|
| Whether a market is open/closed, with timing and a major-index summary |
|
Every tool also accepts response_format ("markdown", the default, or "json").
get_historical_prices options:
period:1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,maxinterval:1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo
get_options_chain: call without expiration_date to list available dates, then again with a date. option_type is calls, puts, or both.
get_holders: holder_type is institutional, mutualfund, major, or insider_transactions.
๐ฌ Example Prompts
Once the server is connected, just ask Claude:
"What's the current price of Apple stock?"
"Show me Amazon's stock performance over the last year"
"Tell me about Tesla as a company and who runs it"
"Show me Apple's income statement"
"Compare AAPL, MSFT, and GOOGL"
"What do analysts think about Amazon, and what's the price target?"
"What's the latest news on NVIDIA?"
"Show me the SPY call options expiring next month"
"Who are the biggest institutional holders of Apple?"
"What's Coca-Cola's dividend history?"
๐ ๏ธ Manual Installation (Alternative)
If you would rather run the Python file directly instead of via npx:
1. Download the server
Save yahoo_finance_mcp.py somewhere on your machine and install the dependencies:
pip install yfinance curl_cffi pandas tabulate mcp pydantic httpx(or pip3 on macOS/Linux)
2. Point Claude Desktop at it
{
"mcpServers": {
"yahoo-finance": {
"command": "python3",
"args": ["/absolute/path/to/yahoo_finance_mcp.py"]
}
}
}On Windows use "command": "python" and a path like "C:\\path\\to\\yahoo_finance_mcp.py" (double backslashes or forward slashes).
3. Restart Claude Desktop.
๐ Troubleshooting
"Command not found" / "Python not found"
Make sure Python and Node.js are installed and on your PATH. On macOS/Linux, try python3 instead of python in the config.
"Module not found: yfinance" (manual install only) Install the dependencies:
pip install yfinance curl_cffi pandas tabulate mcp pydantic httpxTools not showing up in Claude
Confirm the config file is valid JSON (no trailing commas).
Fully quit and reopen Claude Desktop.
Check the path in your config actually exists.
"Error fetching data"
Check your internet connection.
Verify the ticker symbol (for example
AAPL, notApple).Some smaller companies have limited data, and Yahoo Finance can be briefly unavailable.
๐ Privacy & Rate Limits
Uses the free Yahoo Finance API via the
yfinancelibrary.Requests go straight to Yahoo Finance. Nothing is stored or proxied.
Yahoo Finance rate-limits roughly 2,000 requests/hour per IP.
Intended for personal, educational, and research use.
๐ Notes
Use ticker symbols in uppercase (
AAPL,MSFT,TSLA).Some quotes may be delayed 15 to 20 minutes.
Financial statements are generally available for larger public companies.
๐ Changelog
See CHANGELOG.md for the full version history. The core fixes (tool input validation, analyst recommendations, dividend yield, working npx install) landed in v1.1.0.
๐ Resources
โ๏ธ Legal Disclaimer
This tool uses Yahoo Finance's publicly available data through the yfinance library. Yahoo!, Y!Finance, and Yahoo! Finance are registered trademarks of Yahoo, Inc. This tool is not affiliated with, endorsed by, or vetted by Yahoo, Inc. Please refer to Yahoo!'s terms of use for details on your rights to use the data.
๐ค Author
Daniel Shashko
GitHub: @danishashko
LinkedIn: daniel-shashko
npm: danielshashko
๐ License
MIT ยฉ Daniel Shashko
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/danishashko/yahoo-finance-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server