/ Verzeichnis / Playground / yahoo-finance-mcp
● Community Alex2Yang97 ⚡ Sofort

yahoo-finance-mcp

von Alex2Yang97 · Alex2Yang97/yahoo-finance-mcp

Free Yahoo Finance data from chat — historical prices, statements, options, analyst calls — no API key, no quota to manage.

yahoo-finance-mcp wraps the public yfinance library. It exposes OHLCV history, company info, financial statements, holders, options chains, and analyst recommendations. Perfect for casual research; not for production trading (Yahoo's data is best-effort, no SLA).

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

yahoo-finance.replay ▶ bereit
0/0

Installieren

Wählen Sie Ihren Client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "yahoo-finance": {
      "command": "uvx",
      "args": [
        "yahoo-finance-mcp"
      ],
      "_inferred": true
    }
  }
}

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "yahoo-finance": {
      "command": "uvx",
      "args": [
        "yahoo-finance-mcp"
      ],
      "_inferred": true
    }
  }
}

Cursor nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "yahoo-finance": {
      "command": "uvx",
      "args": [
        "yahoo-finance-mcp"
      ],
      "_inferred": true
    }
  }
}

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "yahoo-finance": {
      "command": "uvx",
      "args": [
        "yahoo-finance-mcp"
      ],
      "_inferred": true
    }
  }
}

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "yahoo-finance",
      "command": "uvx",
      "args": [
        "yahoo-finance-mcp"
      ]
    }
  ]
}

Continue nutzt ein Array von Serverobjekten statt einer Map.

~/.config/zed/settings.json
{
  "context_servers": {
    "yahoo-finance": {
      "command": {
        "path": "uvx",
        "args": [
          "yahoo-finance-mcp"
        ]
      }
    }
  }
}

In context_servers hinzufügen. Zed lädt beim Speichern neu.

claude mcp add yahoo-finance -- uvx yahoo-finance-mcp

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: yahoo-finance-mcp

Get a quick snapshot on a stock

👤 Curious investors, finance students ⏱ ~3 min beginner

Wann einsetzen: You want a 30-second summary before reading deeper.

Voraussetzungen
  • yahoo-finance-mcp installed — uvx --from git+https://github.com/Alex2Yang97/yahoo-finance-mcp yahoo-finance-mcp
Ablauf
  1. Basic info
    Give me the current snapshot on NVDA — price, market cap, P/E, 52-week range.✓ Kopiert
    → Clean data card
  2. Recent news
    Latest 5 news items on NVDA with headlines and publication dates.✓ Kopiert
    → News feed
  3. Analyst view
    Show analyst recommendations trend and any rating changes in the last 60 days.✓ Kopiert
    → Rating counts and recent changes

Ergebnis: A one-screen briefing for any ticker.

Fallstricke
  • Yahoo data is delayed/best-effort — don't use for real-time trading — For live decisions, use a paid data feed; this is for research
  • International tickers need exchange suffix (7203.T for Toyota) — Include the suffix explicitly when asking
Kombinieren mit: notion

Compare fundamentals across several peers

👤 DIY investors doing homework ⏱ ~10 min intermediate

Wann einsetzen: You want a side-by-side before picking between similar names.

Ablauf
  1. Pull statements
    Compare MSFT, GOOGL, META on revenue growth, operating margin, and FCF for the last 4 annual filings.✓ Kopiert
    → Comparison table
  2. Normalize
    Express everything as year-over-year % to make the comparison fair.✓ Kopiert
    → Normalized view

Ergebnis: A peer comparison you can save for later.

Explore an options chain

👤 Options learners ⏱ ~10 min intermediate

Wann einsetzen: You want to see what contracts exist before paper-trading.

Ablauf
  1. List expirations
    Available option expirations for AAPL.✓ Kopiert
    → Date list
  2. Pull a chain
    Get the AAPL options chain for the nearest monthly expiration. Calls only, strikes within 5% of spot.✓ Kopiert
    → Filtered calls table

Ergebnis: A readable options view without an options-screener subscription.

Check dividend and split history

👤 Income-focused investors ⏱ ~5 min beginner

Wann einsetzen: Evaluating dividend consistency or adjusted-basis calculations.

Ablauf
  1. Pull actions
    Dividend and split history for KO for the last 20 years.✓ Kopiert
    → Two timelines
  2. Assess consistency
    Any missed or cut dividends? Call it out.✓ Kopiert
    → Narrative with specifics

Ergebnis: Data-grounded view of long-term dividend discipline.

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

yahoo-finance + notion

Build a watchlist dossier per ticker in Notion

For each ticker in my Notion Watchlist, pull the current snapshot + recent news + analyst ratings and append as a dated block.✓ Kopiert
yahoo-finance + maverick

Pair Yahoo data with technical analysis from maverick-mcp

Get NVDA fundamentals from Yahoo and RSI/MACD from maverick-mcp; synthesize a pro/con memo.✓ Kopiert

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
get_historical_stock_prices ticker: str, period?: str, interval?: str Price history / backtests / charting 1 yahoo request
get_stock_info ticker: str Quick card on a stock 1 request
get_yahoo_finance_news ticker: str Headlines per ticker 1 request
get_stock_actions ticker: str Dividend/split timeline 1 request
get_financial_statement ticker: str, type: income|balance|cashflow, annual|quarterly Fundamentals research 1 request
get_holder_info ticker: str Institutional/insider analysis 1 request
get_option_expiration_dates ticker: str Options workflow setup 1 request
get_option_chain ticker: str, expiration: date Examine contracts for an expiry 1 request
get_recommendations ticker: str Sentiment cross-check 1 request

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
Yahoo's public endpoints are best-effort; no official published limit — don't hammer
Tokens pro Aufruf
200-2000 per response depending on depth
Kosten in €
Free
Tipp
Cache statement queries — they update quarterly, not hourly. Avoid polling.

Sicherheit

Rechte, Secrets, Reichweite

Credential-Speicherung: None
Datenabfluss: Queries to finance.yahoo.com (via yfinance library)

Fehlerbehebung

Häufige Fehler und Lösungen

Empty data for ticker

Ticker symbol wrong or delisted; try the exchange-suffixed form (e.g. TSLA vs 'TSLA.BA' for BA listing).

Prüfen: Search yahoo finance web for the ticker
429 Too Many Requests

yfinance hit Yahoo's informal limits. Back off 5 min; avoid tight loops.

ImportError on yfinance

Reinstall with uvx --upgrade — yfinance version lag is common.

Prüfen: uvx --from ... yahoo-finance-mcp --help

Alternativen

yahoo-finance-mcp vs. andere

AlternativeWann stattdessenKompromiss
maverick-mcpYou want technical analysis, screens, backtesting on top of dataLarger surface; requires Tiingo key
Alpaca / IEX Cloud MCPsYou need real-time and a paid SLANot free; different data shape

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen