mcpField
Y
yfinance MCP Server

yfinance MCP Server

Local
github.com/9nate-drakeFinance20Updated 99w ago

About yfinance MCP Server

yfinance MCP Server is an MCP server that gives Claude Desktop access to financial data from yfinance, which uses the Yahoo Finance API. It suits users who want to ask Claude about stock prices, historical performance and ownership within a chat.

Key features

  1. 01Current stock price lookup
  2. 02Historical price data analysis
  3. 03Institutional ownership information
  4. 04Analyst price target lookup

Use cases

  1. 01Asking Claude Desktop for the current price of a stock
  2. 02Analysing a stock's performance over recent months
  3. 03Checking institutional ownership and analyst targets for a company

MCP support

This project is an MCP server that exposes financial data queries to Claude Desktop through server.py.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.