yahoo-finance-mcp

by @Alex2Yang97

Yahoo Finance MCP Server

Fetch Yahoo Finance historical OHLCV stock prices, company metrics, annual and quarterly financial statements, institutional holders, options chains, market news, and analyst recommendations directly inside Claude Desktop over stdio. Written in Python under MIT on yfinance, it launches clone-free via uvx.

Finance & Commerce375pythonMIT

Server facts

yahoo-finance-mcp

GitHub stars

375

Last commit

Sep 19, 2026

Runtime

python

License

MIT

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
Documented launch / install command
uvx --from git+https://github.com/Alex2Yang97/yahoo-finance-mcp yahoo-finance-mcp

Add 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`.

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.

Claude Desktop configuration
{
  "mcpServers": {
    "yfinance": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
        "yahoo-finance-mcp"
      ]
    }
  }
}

Read the Claude Desktop setup guide

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.

Cursor configuration
{
  "mcpServers": {
    "yfinance": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
        "yahoo-finance-mcp"
      ]
    }
  }
}

Read the Cursor setup guide

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.

VS Code configuration
{
  "servers": {
    "yfinance": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
        "yahoo-finance-mcp"
      ]
    }
  }
}

Read the VS Code setup guide

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.

Windsurf configuration
{
  "mcpServers": {
    "yfinance": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
        "yahoo-finance-mcp"
      ]
    }
  }
}

Read the Windsurf setup guide

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.

Claude Code configuration
{
  "mcpServers": {
    "yfinance": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
        "yahoo-finance-mcp"
      ]
    }
  }
}

Read the Claude Code setup guide

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.

ToolWhat it does
get_historical_stock_pricesRetrieve historical OHLCV stock price series with customizable time period and interval parameters.
get_stock_infoFetch comprehensive equity metadata including current price, key financial metrics, and company details.
get_yahoo_finance_newsPull the latest Yahoo Finance news articles associated with a given ticker.
get_stock_actionsReturn historical dividend payouts and stock split records for an equity.
get_financial_statementRetrieve annual or quarterly income statements, balance sheets, or cash flow statements.
get_holder_infoInspect major holders, institutional ownership, mutual fund stakes, or insider transactions.
get_option_expiration_datesList available options contract expiration dates for a stock ticker.
get_option_chainFetch the options chain (calls or puts) for a specific ticker and expiration date.
get_recommendationsRetrieve 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.

Frequently asked questions

No official hosted Yahoo Finance MCP URL is provided here; `Alex2Yang97/yahoo-finance-mcp` is an MIT-licensed community Python server built on `yfinance` that runs locally over `stdio`. You launch it on your machine via `uvx` rather than connecting to a remote HTTP endpoint.

Related MCP servers