Sponsored by Deepsite.site

Yahoo Fianace MCP

Created By
a050311138 months ago
Provides a Model Context Protocol (MCP) server that exposes various functions from the yfinance library as individual tools. This allows an MCP client to query Yahoo Finance data. Uses uv for environment management and FastMCP for the server implementation.
Overview

Overview

What is Yahoo Finance MCP?

Yahoo Finance MCP is a Python-based Model Context Protocol (MCP) server built using FastMCP. It exposes a comprehensive set of tools derived from the yfinance library, allowing AI clients (like Claude Desktop) to easily access and query various types of financial data directly from Yahoo Finance.

How to use Yahoo Finance MCP?

To use Yahoo Finance MCP, clone the repository, set up a Python virtual environment using uv, and install the required dependencies (requirements.txt). Run the server by executing python main.py. Configure your MCP client (e.g., Claude Desktop) to connect to the server process using the specified command and args in the server configuration (pointing to the project's virtual environment Python and main.py). The client can then invoke specific financial data tools like get_news(symbol='AAPL') or get_income_statement(symbol='TSLA', freq='quarterly').

Key features of Yahoo Finance MCP?

  • Direct MCP access to a wide range of Yahoo Finance data via the yfinance library.
  • Granular tools for specific data retrieval (e.g., price, history, financials, news, holders, options, ESG).
  • Standard MCP server implementation using FastMCP and stdio transport.
  • Easy setup using uv for environment and dependency management.
  • Returns structured financial data, often as JSON strings, suitable for AI processing.

Use cases of Yahoo Finance MCP?

  1. Retrieving real-time or historical stock prices for specific tickers.
  2. Fetching fundamental financial data like income statements, balance sheets, and cash flow reports (annually or quarterly).
  3. Accessing company news, dividend history, analyst recommendations, and upcoming earnings dates.
  4. Querying holder information (major, institutional, mutual fund) and sustainability (ESG) scores.
  5. Getting options data like expiration dates and option chains.

FAQ from Yahoo Finance MCP?

  • Is Yahoo Finance MCP free to use?

    Yes, the project itself is open-source. It relies on the yfinance library which accesses publicly available data from Yahoo Finance.

  • Where does the financial data come from?

    All data is sourced directly from Yahoo Finance via the yfinance library. Data accuracy and availability depend on Yahoo Finance itself.

  • What do I need to run this server?

    You need Python and uv installed. Clone the repository and follow the setup instructions in the README to install dependencies within a virtual environment.

  • Can I request data for any stock symbol?

    You can request data for any symbol available on Yahoo Finance. Availability of specific data points (like options or certain historical intervals) may vary by symbol and market.

Server Config

{
  "mcpServers": {
    "yahoo_finance_engine": {
      "command": "/path/to/your/yahoo-finance/.venv/bin/python",
      "args": [
        "/path/to/your/yahoo-finance/main.py"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Tavily Mcp
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Playwright McpPlaywright MCP server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
ChatWiseThe second fastest AI chatbot™
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
Amap Maps高德地图官方 MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
DeepChatYour AI Partner on Desktop
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
WindsurfThe new purpose-built IDE to harness magic