// may the 4th be with you⚔️
finance

Yahoo Finance

by narumiruna

Access real-time financial data and market trends with Yahoo Finance tools for in-depth investment research and analysis

Provides real-time financial data from Yahoo Finance through specialized tools for retrieving stock information, market trends, and news for investment research and analysis.

github stars

110

0 commentsdiscussion

Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.

No API key neededReal-time financial dataGenerates professional charts

best for

  • / Investment research and analysis
  • / Financial data collection for trading strategies
  • / Market monitoring and screening stocks

capabilities

  • / Retrieve detailed stock information and financial metrics
  • / Fetch recent news articles for specific stocks
  • / Search Yahoo Finance for quotes and market data
  • / Get top performers in specific sectors
  • / Download historical price data with charts

what it does

Fetches real-time and historical stock data, financial news, and market information directly from Yahoo Finance. Provides comprehensive investment research capabilities without requiring API keys.

about

Yahoo Finance is a community-built MCP server published by narumiruna that provides AI assistants with tools and capabilities via the Model Context Protocol. Access real-time financial data and market trends with Yahoo Finance tools for in-depth investment research and analysis It is categorized under finance. This server exposes 5 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install Yahoo Finance in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport. This server supports remote connections over HTTP, so no local installation is required.

license

MIT

Yahoo Finance is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

Yahoo Finance MCP Server

A simple MCP server for Yahoo Finance using yfinance. This server provides a set of tools to fetch stock data, news, and other financial information.

<a href="https://glama.ai/mcp/servers/@narumiruna/yfinance-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@narumiruna/yfinance-mcp/badge" /> </a>

Tools

  • yfinance_get_ticker_info

    • Retrieve stock data including company info, financials, trading metrics and governance data.
    • Inputs:
      • symbol (string): The stock symbol.
  • yfinance_get_ticker_news

    • Fetches recent news articles related to a specific stock symbol with title, content, and source details.
    • Inputs:
      • symbol (string): The stock symbol.
  • yfinance_search

    • Fetches and organizes search results from Yahoo Finance, including stock quotes and news articles.
    • Inputs:
      • query (string): The search query (ticker symbol or company name).
      • search_type (string): Type of search results to retrieve (options: "all", "quotes", "news").
  • yfinance_get_top

    • Get top entities (ETFs, mutual funds, companies, growth companies, or performing companies) in a sector.
    • Inputs:
      • sector (string): The sector to get.
      • top_type (string): Type of top companies to retrieve (options: "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).
  • yfinance_get_price_history

    • Fetch historical price data for a given stock symbol over a specified period and interval. Can return data as a markdown table or generate professional financial charts using mplfinance, including candlestick charts with volume bars, VWAP overlays, and volume profile analysis.
    • Inputs:
      • 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'.
      • chart_type (string, optional): Type of chart to generate. If not specified, returns price data as markdown table. Options:
        • "price_volume": Candlestick chart with volume bars
        • "vwap": Volume Weighted Average Price chart with VWAP overlay
        • "volume_profile": Candlestick chart with volume profile showing volume distribution by price level (displayed as a histogram on the right side)
    • Output:
      • If chart_type is not specified: Returns historical price data as a markdown table
      • If chart_type is specified: Returns a base64-encoded WebP image for efficient token usage

Usage

You can use this MCP server via uv (Python package installer), Docker, or local development.

Via uv

  1. Install uv
  2. Add the following configuration to your MCP server configuration file:
{
  "mcpServers": {
    "yfmcp": {
      "command": "uvx",
      "args": ["yfmcp@latest"]
    }
  }
}

Via Docker

Add the following configuration to your MCP server configuration file:

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

Local Development

For local development, add the following configuration to your MCP server configuration file:

{
  "mcpServers": {
    "yfmcp": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/yfinance-mcp",
        "yfmcp"
      ]
    }
  }
}

Replace /path/to/yfinance-mcp with the actual path to your local repository.

Demo Chatbot

This repository includes a demo chatbot built with Chainlit that provides a conversational interface to the Yahoo Finance MCP server.

Features

  • Interactive chat interface for querying stock information
  • Automatic display of financial charts and data visualizations
  • Support for both OpenAI and LiteLLM backends
  • Tool calling integration with the MCP server

Setup

  1. Install demo dependencies:
uv sync --extra dev
  1. Configure environment variables:
# Recommended: start from the template
cp .env.example .env

# For OpenAI
OPENAI_API_KEY=your_openai_api_key
DEFAULT_MODEL=gpt-4.1

# For LiteLLM (alternative)
LITELLM_API_KEY=your_litellm_api_key
LITELLM_BASE_URL=your_litellm_base_url
DEFAULT_MODEL=gpt-4.1
  1. Run the demo:
uv run chainlit run demo.py

The chatbot will be available at http://localhost:8000.

Example Queries

  • "Get AAPL stock information"
  • "Show me recent TSLA news"
  • "Display NVDA price history for the past month"
  • "Show me a candlestick chart for MSFT over the last 3 months"

FAQ

What is the Yahoo Finance MCP server?
Yahoo Finance is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Yahoo Finance?
This profile displays 50 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
MCP server reviews

Ratings

4.550 reviews
  • Kabir Rao· Dec 8, 2024

    Yahoo Finance is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Dhruvi Jain· Dec 4, 2024

    Useful MCP listing: Yahoo Finance is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Harper Martin· Dec 4, 2024

    Yahoo Finance reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Zaid Harris· Dec 4, 2024

    I recommend Yahoo Finance for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Kabir Patel· Nov 27, 2024

    Yahoo Finance is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Oshnikdeep· Nov 23, 2024

    According to our notes, Yahoo Finance benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Noor Nasser· Nov 23, 2024

    We wired Yahoo Finance into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Advait Kim· Nov 23, 2024

    Strong directory entry: Yahoo Finance surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Olivia Perez· Nov 23, 2024

    Yahoo Finance has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Kabir Brown· Oct 18, 2024

    Yahoo Finance has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

showing 1-10 of 50

1 / 5