Yfinance MCP logo

Yfinance MCP

by narumiruna

Query Yahoo Finance for market data, news, analyst activity, screeners, options, ownership, and historical price charts.

Install Yfinance MCP

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "narumiruna-yfinance-mcp": {
      "command": "uvx",
      "args": [
        "yfmcp@latest"
      ]
    }
  }
}

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

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

narumiruna/yfinance-mcp MCP server connects AI assistants to Yahoo Finance through the yfinance Python library. It exposes tools for security lookup, company metrics, financial statements, analyst estimates, news, screeners, fund holdings, options, ownership, and historical prices. Price history can return Markdown tables or charts for price and volume analysis. Reach for it when an agent needs broad Yahoo Finance coverage without building separate market-data queries.

Use cases

  • Research a company’s valuation, financials, dividends, and trading metrics
  • Compare analyst targets, estimates, revisions, and rating changes
  • Screen equities, ETFs, funds, or opening-session gappers
  • Inspect options chains, ownership records, and insider activity
  • Generate historical price tables and technical-analysis charts

Key features

  • Yahoo Finance data through yfinance
  • Company metrics and financial statements
  • Analyst estimates, targets, and rating actions
  • News search, screeners, and sector rankings
  • Options, fund holdings, and ownership data
  • Historical prices with optional charts

Tools15

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

Verified live~4.2k 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 Today

Recent health check succeeded.

21/21 checks healthy over the last 78d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · yfmcp@latest (PyPI)

Adoption & maintenance

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

GitHub stars205Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Tools exposed15Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Yfinance MCP works

What narumiruna/yfinance-mcp MCP server does

narumiruna/yfinance-mcp MCP server gives an MCP-compatible AI assistant access to Yahoo Finance data through yfinance. It covers equities, ETFs, mutual funds, analyst activity, financial statements, market news, options, ownership records, and sector rankings. Results are returned primarily as structured JSON, while historical prices can also be returned as a Markdown table or as a chart image.

The server is suited to research and analysis workflows that need several related views of a security. An agent can identify a symbol, inspect its valuation and financial history, review analyst actions, retrieve recent news, and examine options or holders using separate tools.

How it works

Requests are sent to named MCP tools with a ticker, search query, sector, screener definition, or other tool-specific parameters. The server queries Yahoo Finance through yfinance and maps the response into tool results. Available fields depend on the security and the data Yahoo Finance supplies; this is particularly relevant for analyst coverage, fund data, and security-specific company fields.

Historical prices support selectable periods and intervals. The result can include open, high, low, close, volume, dividends, and splits. Optional pre-market and post-market data can be requested when available. Chart modes cover price and volume, VWAP, and volume profile. Intraday minute intervals are restricted to short periods such as one or five days, and not every period-and-interval combination is valid.

Tools and capabilities

The tool set includes:

  • yfinance_get_ticker_info for company details, prices, valuation, trading measures, dividends, financial metrics, and performance indicators.
  • yfinance_get_financials for income statements, balance sheets, cash-flow data, and historical reporting periods.
  • yfinance_get_price_history for historical OHLCV data, dividend and split events, and optional charts.
  • yfinance_search and yfinance_get_ticker_news for finding securities, news, and ticker-specific articles or press releases.
  • yfinance_get_analyst_price_targets, yfinance_get_analyst_estimates, and yfinance_get_upgrades_downgrades for consensus targets, estimates, revisions, recommendations, and analyst actions.
  • yfinance_screen for predefined or custom equity, fund, and ETF queries, plus yfinance_screen_gappers for opening-session gap screens.
  • yfinance_get_top for sector-based ETF, mutual-fund, company, growth, and performance rankings.
  • yfinance_get_option_dates and yfinance_get_option_chain for expiration dates, calls, puts, strikes, implied volatility, volume, and open interest.
  • yfinance_get_holders for institutional and mutual-fund ownership, insider transactions, and insider rosters.
  • yfinance_get_fund_data for fund composition, holdings, exposures, ratings, and operating information.

Limitations and notes

narumiruna/yfinance-mcp depends on the information made available by Yahoo Finance, so fields and coverage can vary by symbol and security type. Analyst records may be absent or incomplete, and timestamps are converted to readable dates in ticker information. Screener result counts have Yahoo Finance limits, including a stated maximum of 250 for relevant query sizes.

Reviews

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

Frequently Asked Questions about Yfinance MCP

narumiruna/yfinance-mcp is an MCP server that connects AI assistants to Yahoo Finance through the yfinance library. Its main tools retrieve ticker information, financial statements, analyst data, news, screeners, historical prices, options, fund data, and ownership records, with selected price-history requests also producing charts.

It identifies the project as a Python package published as yfmcp, but does not specify the commands or MCP configuration needed to run it.

It can retrieve Yahoo Finance data for stocks, ETFs, mutual funds, and related market activity. Available categories include company information, financials, prices, analyst coverage, news, screeners, options, fund composition, sector rankings, institutional holders, and insider transactions.

Yes, its price-history tool can generate charts when a chart type is selected. Supported chart types are price and volume with candlesticks, VWAP, and volume profile; without a chart type, the tool returns historical data as a Markdown table.

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/narumiruna-yfinance-mcp?style=directory)](https://allmcps.com/mcp/narumiruna-yfinance-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/narumiruna-yfinance-mcp"><img src="https://allmcps.com/api/badge/narumiruna-yfinance-mcp?style=directory" alt="Yfinance MCP on AllMCPs" /></a>