Yahoo Finance - Secure MCP Server by ALMC Security 2025

Yahoo Finance

View on GitHub

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 .

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 in Web Scraping - Secure MCP Servers

ServerSummaryActions
MCP Query Table基于playwright实现的财经网页表格爬虫,支持Model Context Protocol (MCP) 。目前可查询来源为View
Bilibili Comments一个基于 Model Context Protocol (MCP) 的 B 站视频评论获取工具.View
WebSearchView
WeiboThis is a server based on the Model Context Protocol for scraping Weibo user information, feeds, and...View
YouTube Translate MCPView
DeepwikiThis is an unofficial Deepwiki MCP ServerView