Yfinance MCP Server

MCP server for Yahoo Finance data - stock quotes, historical prices, financials, company info, and news

Local serverstdioTypeScript

What is the Yfinance MCP server?

Yfinance MCP server exists for a simple reason — assistants are far more useful when they can act on Yfinance directly instead of describing what you should do. MCP server for Yahoo Finance data - stock quotes, historical prices, financials, company info, and news.

What you get

A Model Context Protocol (MCP) server that provides access to Yahoo Finance data including stock quotes, historical prices, financial statements, company information, symbol search, and news.

What the assistant can call

Once Yfinance is connected, these are the calls the assistant has available:

  • get_quote — Get real-time stock quote data including price, change, volume, and key metrics
  • get_historical — Get historical OHLCV (Open, High, Low, Close, Volume) price data
  • get_financials — Get company financial statements (income statement, balance sheet, or cash flow)
  • get_company_info — Get company profile including sector, industry, description, and key statistics
  • search_symbols — The search_symbols tool exposed by this server
  • get_news — The get_news tool exposed by this server
  • Build — The Build tool exposed by this server

Setting it up

Installation goes through your MCP client rather than a global install: point it at yfinance-mcp 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.

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Yfinance's toolset — get_quote, get_historical, get_financials and 4 more — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • 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.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the yfinance mcp server does with a few real requests.

Available tools

ToolWhat it does
get_quoteGet real-time stock quote data including price, change, volume, and key metrics.
get_historicalGet historical OHLCV (Open, High, Low, Close, Volume) price data.
get_financialsGet company financial statements (income statement, balance sheet, or cash flow).
get_company_infoGet company profile including sector, industry, description, and key statistics.
search_symbolsThe search_symbols tool exposed by this server.
get_newsThe get_news tool exposed by this server.
BuildThe Build tool exposed by this server.

How to install the Yfinance MCP server

{
  "mcpServers": {
    "yfinance-1": {
      "command": "npx",
      "args": ["-y", "yfinance-mcp"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Yfinance to get quote.
  • Use Yfinance to get historical.
  • Use Yfinance to get financials.

Frequently asked questions

It connects Yfinance to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (get_quote, get_historical, get_financials, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Yfinance directly.