Server facts
yahoo-finance-mcp
GitHub stars
375
Last commit
Sep 19, 2026
Runtime
python
License
MIT
Project
- Author
- Alex2Yang97
- Repository
- github.com/Alex2Yang97/yahoo-finance-mcp
- License
- MIT
- Category
- Finance & Commerce
Tech
- Runtime
- python
- Transports
- stdio
- Remote access
- No
- Authentication
- None (public Yahoo Finance data via yfinance)
Activity
- GitHub stars
- 375
- Last commit
- Data as of
Tags
- mcp
- mcp server
- yahoo finance
- yfinance
- yfinance mcp
Overview
Investors and developers searching for a `yahoo finance mcp` connector can wire Claude for Desktop to Yahoo Finance data locally using `Alex2Yang97/yahoo-finance-mcp` (MIT license, Python 3.14.6+ on `mcp`, `yfinance`, `pandas`, and `pydantic`). No brokerage credentials or API key are needed, and there is no hosted remote URL—instead, the server runs locally over `stdio`. Configure `claude_desktop_config.json` on macOS or Windows to run the `yahoo-finance-mcp` entrypoint straight from the GitHub repo via `uvx` (or specify the absolute `uv` executable path from `which uv` / `where uv` if GUI apps miss your shell `PATH`), then restart Claude for Desktop; local contributors can clone the repo and run `uv sync` followed by `uv run server.py`.
Across 9 dedicated tools, the server covers day-to-day equity and derivatives research without custom scraping scripts: `get_historical_stock_prices` (customizable OHLCV periods and intervals), `get_stock_info`, `get_yahoo_finance_news`, and `get_stock_actions` (dividends and splits) handle price and event monitoring; `get_financial_statement` (annual or quarterly income, balance sheet, and cash flow) and `get_holder_info` (major, institutional, mutual fund, and insider holders) support fundamental review; and `get_option_expiration_dates`, `get_option_chain` (calls and puts), and `get_recommendations` expose options and analyst upgrade/downgrade history.
Install & configure
Requirements
- Python 3.14.6 or higher with `uv` / `uvx` installed
- Dependencies managed via `pyproject.toml` (`mcp`, `yfinance`, `pandas`, `pydantic`)
- Absolute path to `uv` (`which uv` on macOS/Linux or `where uv` on Windows) if Claude Desktop cannot locate `uvx` in PATH
uvx --from git+https://github.com/Alex2Yang97/yahoo-finance-mcp yahoo-finance-mcpAdd the `yfinance` entry under `mcpServers` in `claude_desktop_config.json` calling `uvx --from git+https://github.com/Alex2Yang97/yahoo-finance-mcp yahoo-finance-mcp` and restart Claude for Desktop. For local checkout changes, run `uv sync` and launch via `uvx --from . yahoo-finance-mcp` or `uv run server.py`.
Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"yfinance": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
"yahoo-finance-mcp"
]
}
}
}Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"yfinance": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
"yahoo-finance-mcp"
]
}
}
}Config file · Workspace: .vscode/mcp.json
For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.
{
"servers": {
"yfinance": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
"yahoo-finance-mcp"
]
}
}
}Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"yfinance": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
"yahoo-finance-mcp"
]
}
}
}Config file · Project scope: .mcp.json at the repository root
The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"yfinance": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
"yahoo-finance-mcp"
]
}
}
}Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Tools
Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.
| Tool | What it does |
|---|---|
| get_historical_stock_prices | Retrieve historical OHLCV stock price series with customizable time period and interval parameters. |
| get_stock_info | Fetch comprehensive equity metadata including current price, key financial metrics, and company details. |
| get_yahoo_finance_news | Pull the latest Yahoo Finance news articles associated with a given ticker. |
| get_stock_actions | Return historical dividend payouts and stock split records for an equity. |
| get_financial_statement | Retrieve annual or quarterly income statements, balance sheets, or cash flow statements. |
| get_holder_info | Inspect major holders, institutional ownership, mutual fund stakes, or insider transactions. |
| get_option_expiration_dates | List available options contract expiration dates for a stock ticker. |
| get_option_chain | Fetch the options chain (calls or puts) for a specific ticker and expiration date. |
| get_recommendations | Retrieve analyst rating recommendations and historical upgrades or downgrades. |
Use cases
- Pull daily historical OHLCV prices and compare quarterly income statements or cash flows across peer tickers in Claude Desktop.
- Audit dividend payouts, stock splits, institutional ownership shifts, and insider transactions before earnings.
- Query available expiration dates and inspect call or put options chains for upcoming maturities.
- Summarize recent Yahoo Finance headlines alongside analyst upgrades and downgrades over recent months.
Strengths
- Covers 9 focused financial tools spanning OHLCV prices, statements, ownership, dividends/splits, options chains, news, and analyst calls.
- Requires no Yahoo Finance API key or paid data feed—runs locally over `stdio` via `yfinance`.
- Launches directly from GitHub with `uvx` without cloning or manually managing a virtual environment.
Limitations
- Specifies Python 3.14.6 or higher in README requirements, which is newer than standard system Python installs on many machines.
- Runs locally over `stdio` only—there is no official Yahoo Finance hosted MCP URL or remote HTTP server documented.
- Relies on the unofficial `yfinance` library, which carries standard upstream Yahoo Finance rate-limit and schema-change risks.
yahoo-finance-mcp setup notes
- yahoo-finance-mcp's stdio example needs a client that launches local processes.