Yahoo Finance

The Yahoo Finance MCP server acts as a digital bridge between AI models and the world of finance, allowing an assistant to look up real-time stock prices, read company news, and find information about various businesses just like a human would on the web. By connecting an LLM to this server, users can ask questions about the stock market and receive accurate, up-to-date answers based on live financial data. Beyond simple price checks, the server offers a robust suite of tools for deeper financial analysis. It can retrieve comprehensive company profiles, including detailed financial statements, trading metrics, and governance data. It also enables more complex queries, such as fetching historical price trends over custom intervals—ranging from minute-by-minute data to multi-year histories—and identifying top-performing assets like ETFs or mutual funds within specific market sectors. For developers building AI-driven financial advisors or research agents, this tool is particularly valuable because it structures complex market data into a format that LLMs can easily process. It supports seamless deployment via Python’s `uv` package manager or Docker, making it easy to plug into existing AI workflows. By providing a standardized interface for financial data, it enables AI models to perform sophisticated multi-step reasoning, such as comparing historical growth patterns against recent news sentiment, without the need for manual data entry or fragile web scraping.

Category: Finance, Crypto & Payments

Tags: finance, investing, market data, stocks, trading

Visit Yahoo Finance

How to install and configure Yahoo Finance

1. Installation You can install and run the Yahoo Finance MCP server using either uv (a Python package installer) or Docker. * Via uv: 1. Ensure uv is installed on your system. 2. Use the uvx command as specified in the configuration section. * Via Docker: 1. Ensure Docker is installed and running on your system. 2. The server uses the narumi/yfinance-mcp image. ---

2. Configuration Add one of the following configurations to your MCP settings file (e.g., claude_desktop_config.json for Claude Desktop):

Option A: Using uv (Recommended) json { "mcpServers": { "yfmcp": { "command": "uvx", "args": ["yfmcp@latest"] } } }

Option B: Using Docker json { "mcpServers": { "yfmcp": { "command": "docker", "args": ["run", "-i", "--rm", "narumi/yfinance-mcp"] } } } ---

3. Available Tools * get_ticker_info: Retrieve stock data including company info, financials, trading metrics, and governance data. * symbol (string): The stock symbol. * get_ticker_news: Fetches recent news articles related to a specific stock symbol with title, content, and source details. * symbol (string): The stock symbol. * search: Fetches and organizes search results from Yahoo Finance, including stock quotes and news articles. * query (string): The search query (ticker symbol or company name). * search_type (string): Type of search results to retrieve ("all", "quotes", "news"). * get_top: Get top entities (ETFs, mutual funds, companies, etc.) in a sector. * sector (string): The sector to get. * top_type (string): Type of top companies to retrieve ("top_etfs", "top_mutual_funds", "top_companies", "top_growth_companies", "top_performing_companies"). * top_n (number, optional): Number of top entities to retrieve (default 10). * get_price_history: Fetch historical price data for a given stock symbol over a specified period and interval. * symbol (string): The stock symbol. * period (string, optional): Time period to retrieve data for (e.g., '1d', '1mo', '1y'). Default is '1mo'. * interval (string, optional): Data interval frequency (e.g., '1d', '1h', '1m'). Default is '1d'. ---

4. Example Prompts No specific example prompts were provided in the content.

What you can do with Yahoo Finance

Use Case 1: Automated Investment Due Diligence Problem: Individual investors and analysts often spend hours manually navigating multiple websites to gather financial metrics (P

E ratios, revenue) and recent news headlines before making a "Buy" or "Sell" decision. Solution: This MCP allows an AI assistant to instantly aggregate a comprehensive "Snapshot" of a company. By combining get_ticker_info and get_ticker_news, the AI can present a balanced view of a stock's financial health alongside the current market sentiment. Example: A user asks, "Is NVDA a good buy right now?" The AI uses get_ticker_info to check its valuation metrics and get_ticker_news to see if there are any recent regulatory hurdles or product launches, then provides a summarized report.

Use Case 2: Identifying Market Leaders in Specific Sectors Problem: Traders looking to diversify their portfolio often struggle to identify which companies or ETFs are currently leading a specific sector (e.g., "Technology" or "Healthcare") without access to expensive terminal software. Solution: Using the get_top tool, users can quickly discover the highest-performing entities or top growth companies in any sector. This serves as a powerful discovery tool for finding new investment opportunities that aren't yet mainstream. Example: A user asks, "Show me the top 5 growth companies in the Healthcare sector." The AI calls get_top(sector="healthcare", top_type="top_growth_companies", top_n=5) and presents the list with brief descriptions of each company's focus.

Use Case 3: Historical Trend and Volatility Analysis Problem: Understanding how a stock reacted to past market cycles or identifying its long-term growth trajectory requires historical data that is often tedious to export and analyze manually in spreadsheets. Solution: The get_price_history tool allows the AI to fetch raw historical data over specific intervals (daily, hourly, etc.). The AI can then process this data to calculate percentage growth, identify "all-time highs," or spot periods of high volatility. Example: A user asks, "How did Tesla (TSLA) perform during the last quarter compared to its 1-year average?" The AI retrieves 3 months and 12 months of price history using get_price_history, calculates the performance metrics, and explains the trend.

Use Case 4: Real-Time News Impact Monitoring Problem: When a major news event breaks, investors need to quickly find related stocks that might be affected. Searching broad news sites often returns irrelevant results. Solution: The search and get_ticker_news tools allow for targeted discovery. By querying specific terms, the AI can find relevant tickers and then immediately pull the most recent,…

Key facts

  • Finance, Crypto & Payments, Web Search & Research
  • finance, investing, market data, stocks, trading

Part of MCP Servers

Related MCP servers

  • MCP NPX Fetch — Fetch and transform web content into various formats like HTML, JSON, Markdown, or Plain Text.
  • MCP Mempool — Access Bitcoin network data from mempool.space's API for AI agents and applications.
  • MCP Naver News — Search for news articles using the Naver News API. Requires Naver News API credentials.
  • MCP NIF.PT — Query and analyze Portuguese companies using the NIF.PT public API. Supports search by NIF, company name, and city.
  • MCP Options Order Flow Server — A high-performance MCP server for comprehensive options order flow analysis.
  • MCP Open Library — A Model Context Protocol (MCP) server for the Open Library API that enables AI assistants to search for book and…
  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories