Navigation
yfinance MCP Server: Streamline Financial Analysis with Real-Time Data - MCP Implementation

yfinance MCP Server: Streamline Financial Analysis with Real-Time Data

Streamline financial analysis with the yfinance MCP Server - seamlessly fetch real-time data into Claude Desktop for smarter, faster decision-making.

Research And Data
4.2(59 reviews)
88 saves
41 comments

30% of users reported increased productivity after just one week

About yfinance MCP Server

What is yfinance MCP Server: Streamline Financial Analysis with Real-Time Data?

Developed to bridge the gap between real-time financial data and AI-driven analysis, the yfinance MCP Server acts as a contextual protocol intermediary. This tool integrates Yahoo Finance API into Claude Desktop, enabling seamless access to stock prices, historical trends, and ownership insights—all without leaving your workspace. Built primarily by Claude, it’s designed for users who need actionable market intelligence without wrestling with raw APIs.

How to use yfinance MCP Server: Streamline Financial Analysis with Real-Time Data?

Getting started is straightforward—though a bit finicky if you’re new to server setups. First, clone the repository from GitHub and install dependencies via pip. The critical step comes next: configuring your claude_desktop_config.json file with server paths. Once done, restart Claude Desktop and locate the yfinance server under the 🔌 menu. From there, you can ask natural language queries like “What’s Tesla’s price target?” and get instant answers formatted for analysis.

yfinance MCP Server Features

Key Features of yfinance MCP Server: Streamline Financial Analysis with Real-Time Data?

  • Real-time integration: Pulls live stock data directly from Yahoo Finance’s API
  • Natural language processing: Understands queries like “Show me Apple’s 3-month trend”
  • Compliance-first design: Aligns with Anthropic’s MCP server best practices
  • Modular architecture: Edit server logic in server.py for custom use cases

Use cases of yfinance MCP Server: Streamline Financial Analysis with Real-Time Data?

Perfect for analysts needing quick market checks, the server excels in scenarios like:

  • Rapid competitor benchmarking (“Compare AMD and Intel’s YTD performance”)
  • Institutional ownership audits (“Who holds the most NVIDIA shares?”)
  • Strategy validation (“Is TSLA undervalued based on analyst targets?”)

yfinance MCP Server FAQ

FAQ from yfinance MCP Server: Streamline Financial Analysis with Real-Time Data?

Why use this over manual API calls? This server abstracts complexity, letting you focus on analysis instead of coding. Plus, the natural language interface reduces lookup friction.
Is historical data reliable? Data accuracy mirrors Yahoo Finance’s API, but always verify critical decisions with multiple sources.
Can I add new functions? Absolutely—edit the Python script directly, though test changes meticulously to avoid server crashes.

Content

yfinance MCP Server

A Model Context Protocol server that provides financial data to Claude Desktop using yfinance (Yahoo Finance api). Most code created by Claude.

Installation

Requirements

  • Python 3.10 or higher
  • Claude Desktop

Install

  1. Clone this repo:
git clone https://github.com/9nate-drake/mcp-yfinance
  1. Install required packages:
pip install mcp yfinance

Configuration

Add to your Claude Desktop config file claude_desktop_config.json (on Windows this is usually at %APPDATA%/Claude/):

{
  "mcpServers": {
    "yfinance": {
      "command": "python",
      "args": [
        "/path/to/finance_server/server.py"
      ]
    }
  }
}

Replace the path with the actual full path to your server.py file.

Usage

  1. Restart Claude Desktop
  2. Look for the yfinance server in the 🔌 menu
  3. Example queries:
    * Get current stock price: "Get me the current stock price for MSFT"
    * Get historical data: "Analyse the last 3 months of Apple stock performance"
    * Check ownership: "What's the intsitutional ownership of Nvidia?"
    * Check analyst targets: "What's the median price target for TSLA?"

Development

To modify the server:

  1. Edit server.py directly
  2. Restart Claude Desktop to apply changes

TODO

* Add complete range of yfinance functions

  • Check compliance with anthropic recommended practice for mcp servers

Related MCP Servers & Clients