Skip to content
MCP server

yfinance-ai: Yahoo Finance

Local MCP server with 68 read-only Yahoo Finance tools for stocks, funds and crypto

Runs locally

yfinance-ai: Yahoo Finance is an open-source MCP server for finance and payments. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
What it can do
Read-only
Version
5.0.5
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add yfinance-ai -- uvx yfinance-ai

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "yfinance-ai": {
      "command": "uvx",
      "args": [
        "yfinance-ai"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About yfinance-ai: Yahoo Finance

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.

Tools this server provides (32)

Taken from the project documentation; the running server may differ.

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_priceName suggests: reads
Current price and key metrics for a ticker.
get_stock_quoteName suggests: reads
Detailed quote with bid/ask and day range.
get_fast_infoName suggests: reads
Lightweight fast-access ticker information.
get_historical_dataName suggests: reads
Historical price data for a stock.
get_historical_price_on_dateName suggests: reads
Historical price for a specific date.
download_multiple_tickersName suggests: reads
Historical data for several tickers at once.
get_company_infoName suggests: reads
Company information and business description.
get_company_overviewName suggests: reads
Company overview with context for each metric.
get_company_officersName suggests: reads
Company officers and key management.
get_isinName suggests: reads
ISIN for a ticker.
get_income_statementName suggests: reads
Income statement data.
get_balance_sheetName suggests: reads
Balance sheet data.
get_cash_flowName suggests: reads
Cash flow statement data.
get_ttm_financialsName suggests: reads
Trailing-twelve-month income and cash flow.
get_key_ratiosName suggests: reads
Key financial ratios and valuation metrics.
get_valuation_historyName suggests: reads
Valuation measures now and for recent quarters.
get_financial_summaryName suggests: reads
One-page financial summary of a stock.
get_shares_historyName suggests: reads
Shares outstanding over time.
get_earnings_datesName suggests: reads
Upcoming and past earnings dates with estimates.
get_earnings_historyName suggests: reads
Historical earnings data.
get_earnings_calendarName suggests: reads
Earnings calendar including next earnings and dividend dates.
get_analyst_estimatesName suggests: reads
Analyst estimates for earnings, revenue and EPS.
get_growth_estimatesName suggests: reads
Analyst growth estimates.
get_eps_trendName suggests: reads
EPS trend showing how estimates changed.
get_eps_revisionsName suggests: reads
EPS revision data.
get_analyst_recommendationsName suggests: reads
Analyst recommendations and ratings.
get_analyst_price_targetsName suggests: reads
Detailed analyst price targets.
get_upgrades_downgradesName suggests: reads
Analyst upgrades and downgrades history.
get_institutional_holdersName suggests: reads
Major institutional holders.
get_major_holdersName suggests: reads
Major holders summary.
get_mutualfund_holdersName suggests: reads
Mutual fund holders.
get_insider_transactionsName suggests: reads
Recent insider trading activity.

What it does

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

Pricing

Open source

Free; no API key

yfinance-ai: Yahoo Finance 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.

How AIPoweredBot checks servers