Yahoo Finance MCP Server

Financial market data and stock information through Yahoo Finance API for investment analysis and tracking.

Financial Data FinanceStocksMarket

Configuration

MCP Settings Configuration

{
  "yfinance": {
    "stdio": {
      "command": "python3",
      "args": [
        "-m", "mcpuniverse.mcp.servers.yahoo_finance"
      ]
    }
  }
}

Available Tools & Methods

get_historical_stock_prices(ticker, start_date, end_date, interval)
Get historical stock prices for a given ticker symbol from Yahoo Finance
Parameters: ticker (string), start_date (string, yyyy-mm-dd), end_date (string, yyyy-mm-dd), interval (string, optional, default: "1d")
Valid intervals: 1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo
Note: Intraday data cannot extend last 60 days
get_stock_info(ticker)
Get comprehensive stock information including price, trading info, company information, financial metrics, earnings, margins, dividends, balance sheet, ownership, analyst coverage, and risk metrics
Parameters: ticker (string) - The ticker symbol (e.g., "AAPL")
get_yahoo_finance_news(ticker)
Get news for a given ticker symbol from Yahoo Finance
Parameters: ticker (string) - The ticker symbol (e.g., "AAPL")
get_stock_actions(ticker)
Get stock dividends and stock splits for a given ticker symbol
Parameters: ticker (string) - The ticker symbol (e.g., "AAPL")
get_financial_statement(ticker, financial_type)
Get financial statement for a given ticker symbol
Parameters: ticker (string), financial_type (string)
Financial types: income_stmt, quarterly_income_stmt, balance_sheet, quarterly_balance_sheet, cashflow, quarterly_cashflow
get_holder_info(ticker, holder_type)
Get holder information for a given ticker symbol
Parameters: ticker (string), holder_type (string)
Holder types: major_holders, institutional_holders, mutualfund_holders, insider_transactions, insider_purchases, insider_roster_holders
get_option_expiration_dates(ticker)
Fetch the available options expiration dates for a given ticker symbol
Parameters: ticker (string) - The ticker symbol (e.g., "AAPL")
get_option_chain(ticker, expiration_date, option_type)
Fetch the option chain for a given ticker symbol, expiration date, and option type
Parameters: ticker (string), expiration_date (string, YYYY-MM-DD), option_type (string)
Option types: calls, puts
get_recommendations(ticker, recommendation_type, months_back)
Get recommendations or upgrades/downgrades for a given ticker symbol
Parameters: ticker (string), recommendation_type (string), months_back (number, optional, default: 12)
Recommendation types: recommendations, upgrades_downgrades