yfinance-mcp-server

yfinance-mcp-server

3.2

If you are the rightful owner of yfinance-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Stock Price Server is a FastMCP-based server that provides real-time stock price data and historical information using the Yahoo Finance API.

The Stock Price Server is designed to deliver real-time and historical stock data efficiently using the FastMCP protocol. By leveraging the Yahoo Finance API, it offers users the ability to access current stock prices, retrieve historical data, and compare stock prices between different companies. The server is built with Python and requires Python 3.12 or higher, along with the 'uv' package for managing the environment and dependencies. The server can be started directly or configured through MCP settings, making it versatile for different deployment scenarios. With a focus on user-friendly error handling, the server ensures that users receive clear feedback in case of invalid symbols or network issues. The project is open-source and welcomes contributions from the community.

Features

  • Real-time stock price retrieval for any ticker symbol
  • Access to historical stock data in various time frames
  • Comparison of stock prices between two different stocks
  • User-friendly error handling and feedback
  • Open-source with community contribution support

Tools

  1. Get Stock Price

    Returns the current stock price for a given ticker symbol

  2. Get Stock History

    Provides historical stock data in CSV format for a specified period

  3. Compare Stocks

    Compares current prices of two stocks and returns a formatted message