# yfinance-ai: Yahoo Finance

> yfinance-ai: Yahoo Finance is an open-source MCP server for finance and payments. Local MCP server with 68 read-only Yahoo Finance tools for stocks, funds and crypto. 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/lkcair/yfinance-ai-mcp
- **MCP Registry name:** io.github.lkcair/yfinance-ai
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments), [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-23

## About

Built on Yahoo Finance data and written as a single Python file, this server needs no API key and runs over stdio with `uvx yfinance-ai@latest`. All tools are read-only. The README says it has 68 tools covering quotes and history, company details, financial statements, earnings and estimates, analysts, holders and insiders, funds and ETFs, options, market movers, sectors and industries, and earnings, IPO, economic and split calendars. Crypto, forex and commodities are also in scope.

Sample questions include comparing price-to-earnings ratios across companies, summarizing analyst price targets, listing who reports earnings this week, and checking Bitcoin, EUR/USD and gold prices. Setup is shown for Claude, Cursor, VS Code, Windsurf, LangChain, Google ADK and Strands Agents. The same code ships as an OpenClaw skill, an OpenWebUI tool and a Python package.

## Features

- **Quotes and history:** Current prices, detailed quotes and historical data for one or several tickers.
- **Financial statements:** Income statement, balance sheet, cash flow, TTM figures and key ratios.
- **Analyst coverage:** Estimates, price targets, recommendations and upgrades and downgrades.
- **Holders and insiders:** Institutional, fund and major holders plus insider transactions.
- **Calendars:** Earnings, IPO, economic and split calendars.
- **No API key:** Runs locally through uvx with no credentials.

## Good for

- Compare valuation ratios across companies
- Summarize analyst price targets after earnings
- Find who reports earnings this week
- Check crypto, forex and commodity prices in chat
- Review insider purchases for a ticker

## Install

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

```sh
claude mcp add yfinance-ai -- uvx yfinance-ai
```

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": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "yfinance-ai": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

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 yfinance-ai -- uvx yfinance-ai
```

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

```toml
[mcp_servers.yfinance-ai]
command = "uvx"
args = ["yfinance-ai"]
```

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

```json
{
  "mcpServers": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user yfinance-ai uvx -- yfinance-ai

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

```json
{
  "mcpServers": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

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": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

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": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

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": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, all 32 tools only read data. From the server's own tool labels and tool names; not verified by us.

- `get_stock_price` (name suggests: reads): Current price and key metrics for a ticker.
- `get_stock_quote` (name suggests: reads): Detailed quote with bid/ask and day range.
- `get_fast_info` (name suggests: reads): Lightweight fast-access ticker information.
- `get_historical_data` (name suggests: reads): Historical price data for a stock.
- `get_historical_price_on_date` (name suggests: reads): Historical price for a specific date.
- `download_multiple_tickers` (name suggests: reads): Historical data for several tickers at once.
- `get_company_info` (name suggests: reads): Company information and business description.
- `get_company_overview` (name suggests: reads): Company overview with context for each metric.
- `get_company_officers` (name suggests: reads): Company officers and key management.
- `get_isin` (name suggests: reads): ISIN for a ticker.
- `get_income_statement` (name suggests: reads): Income statement data.
- `get_balance_sheet` (name suggests: reads): Balance sheet data.
- `get_cash_flow` (name suggests: reads): Cash flow statement data.
- `get_ttm_financials` (name suggests: reads): Trailing-twelve-month income and cash flow.
- `get_key_ratios` (name suggests: reads): Key financial ratios and valuation metrics.
- `get_valuation_history` (name suggests: reads): Valuation measures now and for recent quarters.
- `get_financial_summary` (name suggests: reads): One-page financial summary of a stock.
- `get_shares_history` (name suggests: reads): Shares outstanding over time.
- `get_earnings_dates` (name suggests: reads): Upcoming and past earnings dates with estimates.
- `get_earnings_history` (name suggests: reads): Historical earnings data.
- `get_earnings_calendar` (name suggests: reads): Earnings calendar including next earnings and dividend dates.
- `get_analyst_estimates` (name suggests: reads): Analyst estimates for earnings, revenue and EPS.
- `get_growth_estimates` (name suggests: reads): Analyst growth estimates.
- `get_eps_trend` (name suggests: reads): EPS trend showing how estimates changed.
- `get_eps_revisions` (name suggests: reads): EPS revision data.
- `get_analyst_recommendations` (name suggests: reads): Analyst recommendations and ratings.
- `get_analyst_price_targets` (name suggests: reads): Detailed analyst price targets.
- `get_upgrades_downgrades` (name suggests: reads): Analyst upgrades and downgrades history.
- `get_institutional_holders` (name suggests: reads): Major institutional holders.
- `get_major_holders` (name suggests: reads): Major holders summary.
- `get_mutualfund_holders` (name suggests: reads): Mutual fund holders.
- `get_insider_transactions` (name suggests: reads): Recent insider trading activity.

## FAQ

### Do I need an API key?

No. It needs only uv to run.

### Can yfinance-ai: Yahoo Finance place trades?

No. The README says every tool is read-only.

### How many tools does yfinance-ai: Yahoo Finance have?

The README describes 68.

### Which frameworks are shown?

LangChain, Google ADK and Strands Agents, as well as Claude, Cursor and VS Code.

### Is yfinance-ai: Yahoo Finance free?

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

### How do I add yfinance-ai: Yahoo Finance to Claude Code?

Run this command in your terminal: claude mcp add yfinance-ai -- uvx yfinance-ai

### What are the best alternatives to yfinance-ai: Yahoo Finance?

The closest alternatives to yfinance-ai: Yahoo Finance are Agent-Native Analytics, Solana MCP by Vybe, dashboard-icons, Google Ads + Meta Ads + SEO/GEO MCP and Tapetide - Indian Stock Market MCP.

## Where this comes from

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

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [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.
- [dashboard-icons](https://ai-powered.com/mcp/dashboard-icons): dashboard-icons is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [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.
- [Pitot](https://ai-powered.com/mcp/pitot): Pitot is an open-source MCP server for cloud and infrastructure.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [NostrPulse](https://ai-powered.com/mcp/nostrpulse): NostrPulse is an open-source MCP server for finance and payments.

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