MCP.so
Sign In
Servers

yfinance MCP Server

@9nate-drake

MCP Server for fething yfinance financial data into Claude Desktop

Overview

What is yfinance MCP Server?

A Model Context Protocol server that provides financial data to Claude Desktop using yfinance (the Yahoo Finance API). It is intended for users who want to query stock prices, historical data, ownership details, and analyst targets through natural language inside Claude Desktop.

How to use yfinance MCP Server?

Install Python 3.10 or higher and Claude Desktop, clone the repository, install the required packages (mcp and yfinance), then add the server configuration to your Claude Desktop config file (claude_desktop_config.json). After restarting Claude Desktop, the yfinance server appears in the plugin menu and can be queried with commands like “Get me the current stock price for MSFT” or “Analyse the last 3 months of Apple stock performance.”

Key features of yfinance MCP Server

  • Live stock price retrieval via natural language queries
  • Historical price and performance analysis
  • Institutional ownership information for any ticker
  • Median analyst price targets
  • Built entirely with code generated by Claude

Use cases of yfinance MCP Server

  • Checking the current price of a stock during a conversation
  • Analysing a company’s stock performance over a specific date range
  • Understanding who holds a stock (institutional ownership)
  • Getting consensus analyst price targets for a symbol

FAQ from yfinance MCP Server

What does this server do?

It connects Claude Desktop to Yahoo Finance data, allowing you to ask for stock prices, historical data, ownership, and analyst targets in plain English.

How do I install yfinance MCP Server?

Clone the repo, run pip install mcp yfinance, then add the server entry to your Claude Desktop config file as shown in the README.

How do I configure it?

Add a yfinance block under mcpServers in claude_desktop_config.json with the command "python" and args pointing to the full path of server.py.

How can I start using it?

Restart Claude Desktop, click the plugin icon (🔌), and type financial queries such as “Get the current stock price for MSFT.”

Can I modify the server?

Yes, edit server.py directly and restart Claude Desktop to see changes.

Tags

More from Other