yfinance-mcp-server logo

yfinance-mcp-server

by onori

An unofficial Message Control Protocol (MCP) server for accessing Yahoo Finance data through yfinance. It provides a simple interface to retrieve stock market data.

View on GitHub

Last updated: N/A

What is yfinance-mcp-server?

This is an MCP server that allows you to retrieve stock market data from Yahoo Finance using the yfinance library. It acts as a bridge between an MCP client and the yfinance data source.

How to use yfinance-mcp-server?

Configure your MCP client to use this server by specifying the command and arguments as shown in the example configuration. Use the getStockHistory function with parameters like symbol, period, and interval to retrieve historical stock data.

Key features of yfinance-mcp-server

  • Get historical stock data with customizable periods and intervals

  • Easy to use with any MCP client

  • Built with TypeScript for type safety and better developer experience

  • Supports fetching data for various stock symbols

Use cases of yfinance-mcp-server

  • Automated stock data retrieval

  • Integration with financial analysis tools

  • Building custom stock dashboards

  • Backtesting trading strategies

FAQ from yfinance-mcp-server

What is the purpose of this server?

This server provides an easy way to access Yahoo Finance data through the Message Control Protocol (MCP).

Is this an official Yahoo Finance server?

No, this is an unofficial server.

What data can I retrieve?

You can retrieve historical stock data, including open, high, low, close, and volume.

What parameters are required for the getStockHistory function?

The symbol and period parameters are required. The interval parameter is optional.

How do I contribute to this project?

You can submit a Pull Request with your contributions.