Yahoo Finance2 logo

Yahoo Finance2

Expose Yahoo Finance market data, search, quotes, charts, fundamentals, options, and recommendations through MCP.

Install Yahoo Finance2

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": {
    "yahoo-finance2": {
      "command": "npx",
      "args": [
        "-y",
        "yahoo-finance2"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio yahoo-finance2 -- npx -y yahoo-finance2

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

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

npx -y yahoo-finance2

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

yahoo-finance2 MCP server exposes the unofficial yahoo-finance2 API to MCP clients, giving agents access to Yahoo Finance data. Its available API modules cover symbol search, quotes, charts, historical data, options, fundamentals, screeners, recommendations, and trending symbols. Reach for it when an agent needs to retrieve or inspect financial data through an MCP-compatible client. The package also provides a CLI, TypeScript API, and an Agent Skills-compatible skill.

Use cases

  • Search for ticker symbols and companies
  • Retrieve quotes and historical market data
  • Inspect company fundamentals and financial statements
  • Query options, recommendations, and ownership data
  • Build agent workflows around screeners and trending symbols

Key features

  • Yahoo Finance data through MCP
  • Symbol search and quote retrieval
  • Chart and historical data access
  • Fundamentals and quote-summary modules
  • Options, screeners, recommendations, and trends
  • TypeScript, CLI, and Agent Skills support

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.

20/20 checks healthy over the last 45d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · yahoo-finance2 (npm)

Adoption & maintenance

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

GitHub stars821Stargazers on the source repository.
npm downloads1MPackage downloads in the last 30 days.
Last commit5d agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Yahoo Finance2 works

What yahoo-finance2 does

yahoo-finance2 MCP server brings the yahoo-finance2 library’s Yahoo Finance access into MCP clients. It is suited to agent workflows that need market and company data, including symbol lookup, current quote data, chart and historical series, options information, financial statements, ownership data, analyst recommendations, screeners, and trending symbols.

The underlying project is an unofficial Yahoo Finance API and is not created or endorsed by Yahoo Inc. It can also be used outside MCP through its command-line interface or TypeScript import, but the MCP interface is the relevant option when an agent needs these capabilities as tools.

How it works

The package exposes yahoo-finance2 operations to MCP clients. The API includes modules for search, quote, chart, historical, options, insights, fundamentalsTimeSeries, recommendationsBySymbol, screener, and trendingSymbols. quoteSummary provides a broad set of submodules, including company profiles, balance sheets, cash-flow statements, income statements, earnings, key statistics, ownership, SEC filings, sector and industry trends, price data, and upgrade or downgrade history.

A separate quoteCombine helper is also available. Agents can use the exposed tools to find symbols, retrieve quote information, request historical or chart data, and inspect fundamental or market-related records. The package is written in TypeScript and supports Bun, Deno, Node, Cloudflare, and server-side or serverless execution environments.

Setup and configuration

Install the package from npm and configure it for the MCP client you use. The project’s MCP documentation covers exposing its tools to clients including Codex, Claude, Cursor, and VS Code. The package’s documented runtime support includes Node.js 22 or newer, Deno 2 or newer, Bun 1 or newer, and modern Cloudflare environments.

Browser execution is not supported because of CORS and cookie issues. Run calls on a server, serverless function, or edge function, then pass the resulting data to browser code if needed.

The package is available under the MIT license. Yahoo Finance availability and response consistency are not guaranteed, and data can change or disappear. In particular, when a stock is delisted, Yahoo may remove related data, including historical and chart records from before the delisting.

Limitations and notes

This integration depends on an unofficial Yahoo Finance service rather than an official Yahoo developer API. Applications should account for request failures and changing service behavior. Delisted securities require special care because previously accessible records may no longer be retrievable. The package documentation also calls out error-handling behavior as an important part of using the API.

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 Yahoo Finance2

yahoo-finance2 is an MCP server that connects AI agents to Yahoo Finance through the unofficial yahoo-finance2 API. Its main tools cover symbol search, quotes, charts, historical data, options, fundamentals, recommendations, screeners, and trending symbols, with additional quote-summary modules for company and market information.

Install the yahoo-finance2 package from npm and configure it in an MCP client. The project documents use with Codex, Claude, Cursor, and VS Code, while the package also supports direct CLI and TypeScript usage.

yahoo-finance2 can retrieve symbol searches, quotes, chart and historical data, options, insights, fundamentals time series, screeners, recommendations by symbol, and trending symbols. Quote-summary modules add financial statements, ownership, earnings, profiles, statistics, SEC filings, and related records.

No, browser execution is not supported because of CORS and cookie issues. Run the calls on a server, serverless function, or edge function, then provide the data to browser code.

Yes, the project identifies Cursor as an MCP client that can expose yahoo-finance2 tools. Its MCP documentation also names Codex, Claude, and VS Code.

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 PreviewYahoo Finance2 AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/yahoo-finance2?style=directory)](https://allmcps.com/mcp/yahoo-finance2)
HTML Embed
<a href="https://allmcps.com/mcp/yahoo-finance2"><img src="https://allmcps.com/api/badge/yahoo-finance2?style=directory" alt="Yahoo Finance2 on AllMCPs" /></a>