yfinance
MCP server from pycodebr/yfinance-mcp-server
How to use
The yfinance MCP server from pycodebr/yfinance-mcp-server is designed to facilitate seamless access to financial data, particularly from Yahoo Finance. Developers can use this server to retrieve stock prices, historical market data, and other financial metrics, enabling them to build finance-related applications or conduct data analysis efficiently.
Once connected to the yfinance MCP server, you can interact with it using specific queries to fetch the desired financial data. For instance, you can request stock prices or historical data using commands tailored for financial analysis. The server is optimized for handling financial queries, which means you should focus on stock tickers, date ranges, and other relevant parameters to get the most out of your requests.
How to install
Prerequisites
Before installing the yfinance MCP server, ensure you have the following prerequisites:
- Python 3.6 or higher
- pip package manager
Option A: Quick Start with npx
Although there is no NPM package specified, you can run the server directly from the repository if you have cloned it.
Option B: Global Install Alternative
To install the server, you can clone the repository using the following command:
git clone https://github.com/pycodebr/yfinance-mcp-server.git
cd yfinance-mcp-server
Then, install the required Python packages:
pip install -r requirements.txt
Additional notes
For optimal performance, consider configuring environment variables for API keys or other settings as specified in the repository's README. A common pitfall is forgetting to activate your Python environment, which can lead to module not found errors during execution. Make sure to check the repository documentation for any additional configuration details.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP