/ Diretório / Playground / yahoo-finance-mcp
● Comunidade Alex2Yang97 ⚡ Instantâneo

yahoo-finance-mcp

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

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

yahoo-finance.replay ▶ pronto
0/0

Instalar

Escolha seu cliente

~/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
    }
  }
}

Abra Claude Desktop → Settings → Developer → Edit Config. Reinicie após salvar.

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

Cursor usa o mesmo esquema mcpServers que o Claude Desktop. Config de projeto vence a global.

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

Clique no ícone MCP Servers na barra lateral do Cline, depois "Edit Configuration".

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

Mesmo formato do Claude Desktop. Reinicie o Windsurf para aplicar.

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

O Continue usa um array de objetos de servidor em vez de um map.

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

Adicione em context_servers. Zed recarrega automaticamente ao salvar.

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

Uma linha só. Verifique com claude mcp list. Remova com claude mcp remove.

Casos de uso

Usos do mundo real: yahoo-finance-mcp

Get a quick snapshot on a stock

👤 Curious investors, finance students ⏱ ~3 min beginner

Quando usar: You want a 30-second summary before reading deeper.

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

Resultado: A one-screen briefing for any ticker.

Armadilhas
  • 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
Combine com: notion

Compare fundamentals across several peers

👤 DIY investors doing homework ⏱ ~10 min intermediate

Quando usar: You want a side-by-side before picking between similar names.

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

Resultado: A peer comparison you can save for later.

Explore an options chain

👤 Options learners ⏱ ~10 min intermediate

Quando usar: You want to see what contracts exist before paper-trading.

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

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

Check dividend and split history

👤 Income-focused investors ⏱ ~5 min beginner

Quando usar: Evaluating dividend consistency or adjusted-basis calculations.

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

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

Combinações

Combine com outros MCPs para 10× de alavancagem

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.✓ Copiado
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.✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
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

Custo e limites

O que custa rodar

Cota de API
Yahoo's public endpoints are best-effort; no official published limit — don't hammer
Tokens por chamada
200-2000 per response depending on depth
Monetário
Free
Dica
Cache statement queries — they update quarterly, not hourly. Avoid polling.

Segurança

Permissões, segredos, alcance

Armazenamento de credenciais: None
Saída de dados: Queries to finance.yahoo.com (via yfinance library)

Solução de problemas

Erros comuns e correções

Empty data for ticker

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

Verificar: 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.

Verificar: uvx --from ... yahoo-finance-mcp --help

Alternativas

yahoo-finance-mcp vs. outros

AlternativaQuando usarTroca
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

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills