# Yahoo Finance

> Yahoo Finance is an open-source MCP server for finance and payments. Yahoo Finance quotes, financials, options, screeners and news for MCP clients, no API key. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/danishashko/yahoo-finance-mcp
- **MCP Registry name:** io.github.danishashko/yahoo-finance-mcp
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-23

## About

This server wraps Yahoo Finance data in 18 read-only tools and needs no API key. The README says a single npx command starts it locally, and the wrapper builds an isolated Python environment on first launch, so Python 3.10+ and Node.js 16+ are required.

Coverage is broad: quotes and OHLCV history, company profiles, annual statements, analyst ratings and estimates, options chains with implied volatility and open interest, institutional and insider holders, dividend and split history, ETF and fund holdings, sector overviews, an earnings calendar and predefined screeners such as day gainers or most shorted. Requests share one browser-impersonating HTTP session to reduce rate limiting.

Results come as Markdown by default or JSON on request, and also as structured content with a published output schema. Besides stdio, an --http flag serves Streamable HTTP at /mcp, useful for n8n; it adds no authentication, so keep it on a trusted interface.

## Features

- **18 read-only tools:** Covers quotes, history, statements, options, holders and news.
- **Stock screeners:** Runs Yahoo predefined screeners such as gainers and most active.
- **Earnings tools:** Next dates, beat/miss history and a market-wide calendar.
- **Fund and sector data:** ETF holdings, expense ratios and sector overviews.
- **HTTP mode:** Serves Streamable HTTP for n8n and URL-only clients.
- **Markdown or JSON:** Returns readable text or structured data.

## Good for

- Compare several stocks side by side
- Check next earnings dates and estimates
- Inspect an options chain for a ticker
- Screen for undervalued growth stocks
- Feed market data into an n8n workflow

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add yahoo-finance-mcp -- npx -y yahoo-finance-mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "yahoo-finance-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "yahoo-finance-mcp-server"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add yahoo-finance-mcp -- npx -y yahoo-finance-mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.yahoo-finance-mcp]
command = "npx"
args = ["-y", "yahoo-finance-mcp-server"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

Or run: gemini mcp add -s user yahoo-finance-mcp npx -- -y yahoo-finance-mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "yahoo-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "yahoo-finance-mcp-server"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

From the tool list in its README, going by the names, 16 of 18 tools read data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `get_stock_quote` (name suggests: reads): Current price, change, ranges, volume, market cap, P/E, EPS and dividend yield.
- `get_historical_prices` (name suggests: reads): OHLCV history with summary stats and total return.
- `get_company_info` (name suggests: reads): Business summary, key executives, valuation and financial highlights.
- `get_financial_statements` (name suggests: reads): Annual income statement, balance sheet and cash flow.
- `compare_stocks`: Key metrics for 2 to 10 tickers side by side.
- `get_analyst_recommendations` (name suggests: reads): Price targets, consensus and recent rating changes.
- `get_market_news` (name suggests: reads): Latest news headlines per ticker.
- `get_options_chain` (name suggests: reads): Expiration dates or calls and puts with strikes, volume, OI and IV.
- `get_holders` (name suggests: reads): Institutional, mutual-fund, major holders or insider transactions.
- `get_dividends_splits` (name suggests: reads): Dividend and stock-split history.
- `get_analyst_estimates` (name suggests: reads): Forward price targets and EPS and revenue estimates.
- `search_symbols` (name suggests: reads): Find ticker symbols by company name or keyword.
- `get_market_status` (name suggests: reads): Whether a market is open, with an index summary.
- `get_earnings` (name suggests: reads): Next earnings date, ex-dividend date and beat/miss history.
- `get_earnings_calendar` (name suggests: reads): Companies reporting in a date range.
- `screen_stocks`: Yahoo predefined screener results.
- `get_fund_data` (name suggests: reads): ETF or mutual fund holdings, expense ratio and sector weights.
- `get_sector_overview` (name suggests: reads): Sector or industry overview with top companies.

## FAQ

### Do I need an API key?

No, the README calls it a free server with no key.

### What do I need installed?

Python 3.10+ and Node.js 16+; npx sets up the rest.

### Is the HTTP mode secured?

No authentication is added, so bind it to a trusted interface.

### Can Yahoo Finance place trades?

The tools listed are read-only data tools.

### Is Yahoo Finance free?

Yes. Yahoo Finance is open source, so you can use and self-host it for free.

### How do I add Yahoo Finance to Claude Code?

Run this command in your terminal: claude mcp add yahoo-finance-mcp -- npx -y yahoo-finance-mcp-server

### What are the best alternatives to Yahoo Finance?

The closest alternatives to Yahoo Finance are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, NostrPulse, Australian Economic Data (ABS, RBA & APRA) and Crypto Perp Pulse & Outage Radar (x402).

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [NostrPulse](https://ai-powered.com/mcp/nostrpulse): NostrPulse is an open-source MCP server for finance and payments.
- [Australian Economic Data (ABS, RBA & APRA)](https://ai-powered.com/mcp/australian-economic-data-abs-rba-and-apra): Australian Economic Data (ABS, RBA & APRA) is an open-source MCP server for analytics and data.
- [Crypto Perp Pulse & Outage Radar (x402)](https://ai-powered.com/mcp/crypto-perp-pulse-and-outage-radar-x402): Crypto Perp Pulse & Outage Radar (x402) is a paid MCP server for finance and payments.
- [LATAM Business, Fiscal & FX (x402)](https://ai-powered.com/mcp/latam-business-fiscal-and-fx-x402): LATAM Business, Fiscal & FX (x402) is a paid MCP server for finance and payments.
- [Base & EVM DeFi Pre-Trade Shield (x402)](https://ai-powered.com/mcp/base-and-evm-defi-pre-trade-shield-x402): Base & EVM DeFi Pre-Trade Shield (x402) is a paid MCP server for finance and payments.
- [x402 Micropayments MCP](https://ai-powered.com/mcp/x402-micropayments-mcp): x402 Micropayments MCP is a paid MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/yahoo-finance
