Yfinance MCP logo

Yfinance MCP

Queries Yahoo Finance for quotes, price history, financial statements, company data, symbol matches, and stock news.

Install Yfinance MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "yfinance-mcp": {
      "command": "npx",
      "args": [
        "yfinance-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio yfinance-mcp -- npx yfinance-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 6 tools correctly ().

Overview

yfinance-mcp connects MCP-compatible AI clients to Yahoo Finance through tools for market quotes, historical OHLCV data, financial statements, company profiles, symbol search, and stock news. Historical queries accept configurable periods and intervals, while financial statement requests can target annual or quarterly data. Install it as an npm command with npx and use it when an agent needs structured market or company information.

Use cases

  • Look up a ticker from a company name
  • Retrieve recent stock quotes and key metrics
  • Compare historical OHLCV price ranges
  • Inspect annual or quarterly financial statements
  • Find company profiles and related stock news

Key features

  • Yahoo Finance quote retrieval
  • Configurable historical OHLCV data
  • Annual and quarterly financial statements
  • Company profiles and key statistics
  • Ticker symbol search
  • Stock-specific news retrieval

Tools6

What Yfinance MCP lets your agent do. Expand a tool for its parameters.

Verified live~587 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

7/7 checks healthy over the last 28d

What it can do

From the 6 tools this server returned when we ran it.

Read-only tools · 6
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age311 days
Maintainers1

Observed 2026-11-08 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · yfinance-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads188Package downloads in the last 30 days.
Last commit11mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed6Callable tools this server registers over MCP.

How Yfinance MCP works

What yfinance-mcp does

yfinance-mcp exposes Yahoo Finance data through the Model Context Protocol. It covers six finance-oriented operations:

  • get_quote returns quote information such as price, price change, percentage change, volume, market capitalization, and price-to-earnings ratio.
  • get_historical retrieves open, high, low, close, and volume data for a ticker.
  • get_financials provides an income statement, balance sheet, or cash flow statement.
  • get_company_info returns profile details including sector, industry, description, and key statistics.
  • search_symbols finds ticker symbols using a company name or other search terms.
  • get_news retrieves the latest news associated with a stock symbol.

The server fits agents that need to identify securities, inspect recent or historical prices, compare company information, or retrieve financial statement data as part of a finance workflow.

How it works

An MCP client starts the server as a local process and communicates with it using the MCP interface. Each operation accepts structured inputs validated by the server. Most requests use a ticker symbol such as AAPL or GOOGL; symbol discovery uses a text query instead.

Historical price requests support periods including one day, five days, one month, three months, six months, one year, two years, five years, and the maximum available range. Supported intervals are daily, weekly, and monthly, with a one-month period and daily interval as defaults.

Financial statement requests require a statement type: income, balance, or cashflow. A boolean option switches between annual and quarterly results, with annual data as the default. Data is sourced from Yahoo Finance through the project’s Yahoo Finance client library.

Setup and configuration

Claude Code can register the server with:

Terminal
claude mcp add yfinance-mcp -- npx yfinance-mcp

For Claude Desktop, add an mcpServers entry to claude_desktop_config.json:

config.json
{
  "mcpServers": {
    "yfinance-mcp": {
      "command": "npx",
      "args": ["yfinance-mcp"]
    }
  }
}

The repository also includes development commands for running the project with pnpm, building it, executing tests, checking coverage, and applying linting or formatting.

Tools and capabilities

The exposed operations are useful at different stages of an agent workflow:

  • Use search_symbols when the user provides a company name rather than a ticker.
  • Use get_quote for current quote fields and key metrics.
  • Use get_historical for OHLCV series over a selected range.
  • Use get_financials to inspect income, balance-sheet, or cash-flow data.
  • Use get_company_info for sector, industry, descriptions, and statistics.
  • Use get_news to retrieve recent stock-related news.

Inputs are defined with typed schemas using Zod, and the implementation is written in TypeScript with the MCP SDK.

Limitations and notes

Historical data is limited to the periods and intervals accepted by the historical-data tool. Financial statement retrieval is limited to the three supported statement categories. The server is focused on Yahoo Finance data and exposes market, company, statement, search, and news operations rather than general-purpose financial analysis.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Yfinance MCP

yfinance-mcp is an MCP server that connects AI clients to Yahoo Finance and exposes get_quote, get_historical, get_financials, get_company_info, search_symbols, and get_news. It supports ticker lookups, configurable history periods and intervals, annual or quarterly statements, company profiles, symbol search, and finance-focused agent workflows.

Install it by running it with npx through your MCP client. For Claude Code, use `claude mcp add yfinance-mcp -- npx yfinance-mcp`; Claude Desktop requires an `mcpServers` entry with `npx` as the command and `yfinance-mcp` as its argument.

Yes, yfinance-mcp works with Claude Desktop through its MCP server configuration. Add the server under the `mcpServers` key in `claude_desktop_config.json`, using `npx` as the command and `yfinance-mcp` in the argument list.

yfinance-mcp retrieves quotes, historical open-high-low-close-volume data, income statements, balance sheets, cash-flow statements, company profiles, symbol search results, and stock news. Financial statements can be requested as annual or quarterly data.

Yes, yfinance-mcp can return quarterly financial statements. Call `get_financials` with a ticker, choose `income`, `balance`, or `cashflow` for the statement type, and set the `quarterly` option to true.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewYfinance MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/yfinance-mcp?style=directory)](https://allmcps.com/mcp/yfinance-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/yfinance-mcp"><img src="https://allmcps.com/api/badge/yfinance-mcp?style=directory" alt="Yfinance MCP on AllMCPs" /></a>