Yahoo MCP Server

Yahoo Finance MCP Server - Real-time stock data, company info, financial statements, and market analysis via Model Context Protocol

Local serverstdioPython

What is the Yahoo MCP server?

Yahoo Finance MCP Server - Real-time stock data, company info, financial statements, and market analysis via Model Context Protocol. Exposed over MCP by the yahoo mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

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.

Its toolset

Everything the assistant can do here goes through one of these:

  • period — 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max
  • interval — 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo
  • get_stock_quote — Current price, change, day and 52-week range, volume, market cap, P/E, EPS, dividend yield
  • get_historical_prices — OHLCV history with summary stats and total return
  • get_company_info — Business summary, key executives, valuation and financial highlights
  • get_financial_statements — Annual income statement, balance sheet, and cash flow
  • compare_stocks — Key metrics for multiple tickers side by side, plus quick insights
  • get_analyst_recommendations — Price targets, consensus, recommendation trend, and recent upgrades/downgrades
  • get_market_news — Latest news headlines with source, date, summary, and link
  • get_options_chain — Expiration dates, or the calls/puts chain (strike, bid/ask, volume, OI, IV)
  • get_holders — Institutional, mutual-fund, or major holders, or insider transactions
  • get_dividends_splits — Dividend payment history (with summary) and stock-split history

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at wrapper on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Configuration

You will need one environment variable: ANTHROPIC_BASE_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

When to reach for it

Among the payments and commerce options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Yahoo's toolset — period, interval, get_stock_quote and 11 more — is a fair guide to whether it matches your workflow. It is maintained by danielshashko; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Yahoo's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Yahoo.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the yahoo mcp server does with a few real requests.

Available tools

ToolWhat it does
period1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max
interval1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo
get_stock_quoteCurrent price, change, day and 52-week range, volume, market cap, P/E, EPS, dividend yield
get_historical_pricesOHLCV history with summary stats and total return
get_company_infoBusiness summary, key executives, valuation and financial highlights
get_financial_statementsAnnual income statement, balance sheet, and cash flow
compare_stocksKey metrics for multiple tickers side by side, plus quick insights
get_analyst_recommendationsPrice targets, consensus, recommendation trend, and recent upgrades/downgrades
get_market_newsLatest news headlines with source, date, summary, and link
get_options_chainExpiration dates, or the calls/puts chain (strike, bid/ask, volume, OI, IV)
get_holdersInstitutional, mutual-fund, or major holders, or insider transactions
get_dividends_splitsDividend payment history (with summary) and stock-split history
get_analyst_estimatesForward price targets, EPS/revenue estimates by period, and growth estimates
search_symbolsFind ticker symbols by company name or keyword

How to install the Yahoo MCP server

{
  "mcpServers": {
    "yahoo-finance": {
      "command": "npx",
      "args": ["-y", "yahoo-finance-mcp-server"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
ANTHROPIC_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Yahoo to period.
  • Use Yahoo to interval.
  • Use Yahoo to get stock quote.

Frequently asked questions

It connects Yahoo to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (period, interval, get_stock_quote, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Yahoo directly.