yfinance MCP Server

yfinance MCP Server

By 9nate-drake GitHub

MCP Server for fething yfinance financial data into Claude Desktop

ai mcp
Overview

what is the yfinance MCP Server?

The yfinance MCP Server is a Model Context Protocol server designed to fetch financial data from Yahoo Finance and provide it to Claude Desktop for analysis and insights.

how to use the yfinance MCP Server?

To use the server, clone the repository, install the required packages, configure the Claude Desktop settings, and then restart Claude Desktop to access the yfinance server from the menu.

key features of the yfinance MCP Server?

  • Fetch real-time stock prices and historical data
  • Analyze stock performance over specified periods
  • Retrieve institutional ownership information
  • Check analyst price targets for stocks

use cases of the yfinance MCP Server?

  1. Querying current stock prices for investment decisions
  2. Analyzing historical stock performance for trend analysis
  3. Evaluating institutional ownership to assess stock stability
  4. Monitoring analyst targets for stock predictions

FAQ from yfinance MCP Server?

  • What are the system requirements?

You need Python 3.10 or higher and Claude Desktop to use this server.

  • How do I install the yfinance MCP Server?

Clone the repository and install the required packages listed in the instructions.

  • Can I customize the server?

Yes! You can modify the server.py file to customize the functionality according to your needs.

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
No tools information available.
School MCP
School MCP by 54yyyu

A Model Context Protocol (MCP) server for academic tools, integrating with Canvas and Gradescope platforms.

canvas mcp
View Details
repo-template
repo-template by loonghao

A Model Context Protocol (MCP) server for Python package intelligence, providing structured queries for PyPI packages and GitHub repositories. Features include dependency analysis, version tracking, and package metadata retrieval for LLM interactions.

-

google-calendar mcp
View Details
strava-mcp
strava-mcp by jeremysilva1098

MCP server for strava

strava mcp
View Details

Model Context Protocol (MCP) server implementation for Rhinoceros/Grasshopper integration, enabling AI models to interact with parametric design tools

grasshopper mcp
View Details

MCP configuration to connect AI agent to a Linux machine.

security mcp
View Details

AI assistant built with Streamlit, NVIDIA NIM (LLaMa 3.3:70B) / Ollama, and Model Control Protocol (MCP).

python mcp
View Details