yahoo-fianace-mcp
0
The Yahoo Finance MCP Server allows users to access Yahoo Finance data using various functions from the `yfinance` library. It is set up to work with MCP clients and offers a range of tools for querying financial information efficiently.
Yahoo Finance MCP Server
This project provides a Model Context Protocol (MCP) server utilizing the yfinance
library to allow clients like Claude Desktop to query Yahoo Finance data.
Prerequisites
- Python: Python 3.8+ recommended.
- uv: Required for environment and package management.
Setup
- Clone the repository.
- Create and activate a virtual environment using
uv
. - Install dependencies with
uv
.
Running the Server
To start the server, execute the main.py
script in your environment. The server communicates via JSON-RPC through standard input/output.
Available Tools
The server provides several tools for accessing financial data, such as:
get_current_stock_price
get_stock_price_by_date
get_historical_stock_prices
get_income_statement
get_earning_dates
Documentation for each tool is available within the project's code files.