# Yahoo Finance

Gives your coding agent Yahoo Finance data: quotes, price history, statements, analyst ratings and ticker news, all from a prompt.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 23
- Author: danishashko
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/danishashko/yahoo-finance-mcp
- Updated: 2026-09-04
- HTML: https://affpapa.org/en/nevibecode/mcp/danishashko-yahoo-finance

## What it does

The server exposes 13 tools. You get a live quote with day and 52-week range, OHLCV history for a chosen period and interval, a company profile, annual income statement, balance sheet and cash flow, a side-by-side comparison of up to 10 tickers, options chains, holders, dividend and split records, plus symbol lookup by company name. Answers arrive as markdown unless you ask for `response_format: "json"`.

Nothing to build by hand: the `npx` wrapper sets up its own isolated Python environment and pulls dependencies on the first launch, a one-time step of roughly a minute. Your machine needs Python 3.10+ and Node.js 16+. Outgoing calls share one browser-impersonating HTTP session, which lowers the chance of tripping Yahoo Finance rate limits.

Clients that only accept a URL, n8n's MCP Client Tool node among them, can use `--http`. The same 13 tools are then served over Streamable HTTP at `/mcp`, bound to `127.0.0.1:8000` unless you change it. There is no authentication, so binding to a wider interface is a decision about who can reach your machine. DNS-rebinding protection stays active: names other than `localhost`, `127.0.0.1` and `host.docker.internal` must be listed with `--allowed-host`, or the request comes back as `421 Misdirected Request`.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add yahoo-finance-mcp -- npx -y yahoo-finance-mcp-server
```

### Codex

**Platform CLI**
```bash
codex mcp add danishashko-yahoo-finance -- npx -y yahoo-finance-mcp-server
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "danishashko-yahoo-finance": {
            "command": "npx",
            "args": [
                "-y",
                "yahoo-finance-mcp-server"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "danishashko-yahoo-finance": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "yahoo-finance-mcp-server"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add danishashko-yahoo-finance npx -y yahoo-finance-mcp-server
```

## When to use it
- check a ticker's current price and market cap
- pull OHLCV price history for a set period
- compare key metrics across several stocks
- read an options chain for a given expiration
- find a ticker symbol from a company name

## Example prompts
- What is Apple trading at right now, with the day range?
- Compare AAPL, MSFT and GOOGL on key metrics
- Show me the SPY calls expiring next month

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44583
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5458
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2814
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2188
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

## Other versions with the same name
- [Yahoo Finance · narumiruna](https://affpapa.org/en/nevibecode/mcp/yahoo-finance.md) — ★ 204

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
