/ Annuaire / Playground / yahoo-finance-mcp
● Communauté Alex2Yang97 ⚡ Instantané

yahoo-finance-mcp

par 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).

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

yahoo-finance.replay ▶ prêt
0/0

Installer

Choisissez votre 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
    }
  }
}

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

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

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

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

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

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

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

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

Continue utilise un tableau d'objets serveur plutôt qu'une map.

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

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

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

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : yahoo-finance-mcp

Get a quick snapshot on a stock

👤 Curious investors, finance students ⏱ ~3 min beginner

Quand l'utiliser : You want a 30-second summary before reading deeper.

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

Résultat : A one-screen briefing for any ticker.

Pièges
  • 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
Combiner avec : notion

Compare fundamentals across several peers

👤 DIY investors doing homework ⏱ ~10 min intermediate

Quand l'utiliser : You want a side-by-side before picking between similar names.

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

Résultat : A peer comparison you can save for later.

Explore an options chain

👤 Options learners ⏱ ~10 min intermediate

Quand l'utiliser : You want to see what contracts exist before paper-trading.

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

Résultat : A readable options view without an options-screener subscription.

Check dividend and split history

👤 Income-focused investors ⏱ ~5 min beginner

Quand l'utiliser : Evaluating dividend consistency or adjusted-basis calculations.

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

Résultat : Data-grounded view of long-term dividend discipline.

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

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.✓ Copié
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.✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
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

Coût et limites

Coût d'exécution

Quota d'API
Yahoo's public endpoints are best-effort; no official published limit — don't hammer
Tokens par appel
200-2000 per response depending on depth
Monétaire
Free
Astuce
Cache statement queries — they update quarterly, not hourly. Avoid polling.

Sécurité

Permissions, secrets, portée

Stockage des identifiants : None
Sortie de données : Queries to finance.yahoo.com (via yfinance library)

Dépannage

Erreurs courantes et correctifs

Empty data for ticker

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

Vérifier : 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.

Vérifier : uvx --from ... yahoo-finance-mcp --help

Alternatives

yahoo-finance-mcp vs autres

AlternativeQuand l'utiliserCompromis
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

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills