# yahoo-finance2 [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/gadicc/yahoo-finance2  
**GitHub Stars:** 821  
**npm Downloads (last month):** 1029571  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/yahoo-finance2

## Description
Unofficial API for Yahoo Finance with CLI, MCP and Agent Skill

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "yahoo-finance2": {
    "command": "npx",
    "args": ["-y","yahoo-finance2"]
  }
}
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/yahoo-finance2/readme_

