Skip to main content
Glama
peidaqi

Yahoo Finance MCP Server

by peidaqi

MCP Server for Interacting with Yahoo Finance


The Model Context Protocol (MCP) is an open standard developed by Anthropic to enable seamless integration between Large Language Models (LLMs) and external tools, services, and data sources.

This project provides a simple implementation that allows LLM to interact with Yahoo Finance through the yfinance Python library.

The server uses fastmcp and runs within a Docker container to ensure portability.

Installation

  • Using python & pip:

pip install .
  • Alternative - using Docker:

docker build -t yfinance-mcp-server .

Related MCP server: SerpApi MCP Server

Configuration

  • If installed using python & pip, add this item in MCP settings:

"mcpServers": {
    "YahooFinanceServer": {
      "command": "python",
      "args": ["-m", "yfinance_mcp_server"]
    }
  }
  • If installed using Docker, add this item in MCP settings:

"mcpServers": {
    "YahooFinanceServer": {
      "command": "docker",
      "args": ["run", "-i", "yfinance-mcp-server"]
    }
  }

Example

In your LLM interface, e.g. Cline, you can ask something like:

What is MSFT's stock price on Jan 1, 2025?

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables AI assistants to run real-time searches across Google, Bing, Yahoo, DuckDuckGo, YouTube, eBay and other engines, returning results such as answer boxes, news, images, shopping, weather and stock data. Responses are automatically detected and formatted as structured JSON or token-saving Markdown, with optional interactive UI tools for tabular and dashboard views.
    -
  • F
    license
    Not graded
    quality
    A
    maintenance
    Enables querying Google, Bing, Yahoo, DuckDuckGo, YouTube, eBay, and other search engines for real-time search results, weather, stock data, and more. Supports flexible JSON or Markdown responses with optional interactive table and dashboard views.
    -
  • F
    license
    Not graded
    quality
    A
    maintenance
    Enables querying Google, Bing, Yahoo, DuckDuckGo, YouTube, eBay, and other search engines to retrieve real-time results such as answer boxes, news, images, shopping, weather, and stock data. Responses can be returned as complete or compact JSON, or as Markdown to cut token usage, with optional interactive UI tools for tables and dashboards.
    -
  • F
    license
    Not graded
    quality
    A
    maintenance
    Enables AI assistants to run queries across Google, Bing, Yahoo, DuckDuckGo, YouTube, eBay and many other search engines, returning structured JSON or Markdown results. Supports location and engine-specific parameters, real-time weather and stock data, and automatic formatting of answer boxes, organic results, news, images, and shopping listings.
    -