# yfinance-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/nrempel/yahoo-finance-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 188  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/yfinance-mcp

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

## Tools
Capabilities this server exposes over MCP:

- **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** — Search for stock symbols by company name or keywords
- **get_news** — Get latest news for a stock symbol

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

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

## Documentation

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

```bash
claude mcp add yfinance-mcp -- npx yfinance-mcp
```

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

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

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

