Loading...

Yfinance MCP server provides tools to fetch stock data, news, and generate financial charts, enabling users to analyze market trends and company information.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
Yfinance MCP server provides tools to fetch stock data, news, and generate financial charts, enabling users to analyze market trends and company information.
This server is relatively safe for read-only operations and data retrieval. The risk is moderate due to reliance on external APIs and potential resource consumption during chart generation. It's crucial to monitor resource usage and handle API dependencies gracefully.
Performance depends on the Yahoo Finance API response times and the complexity of chart generation. Optimize queries and cache data to improve performance.
Cost is primarily related to API usage and resource consumption for chart generation. Monitor API usage to avoid exceeding rate limits or incurring excessive costs.
{
"mcpServers": {
"yfmcp": {
"command": "uvx",
"args": ["yfmcp@latest"]
}
}
}OPENAI_API_KEYyfinance_get_ticker_infoRetrieves comprehensive stock data, including company information and financial metrics.
Read-only operation; no modification of data.
yfinance_get_ticker_newsFetches recent news articles related to a specific stock symbol.
Read-only operation; no modification of data.
yfinance_searchSearches Yahoo Finance for stock quotes and news articles based on a query.
Read-only operation; no modification of data.
yfinance_get_topRetrieves top entities (ETFs, mutual funds, companies) in a specified sector.
Read-only operation; no modification of data.
yfinance_get_price_historyFetches historical price data and optionally generates financial charts.
Generates charts, which involves some processing, but doesn't modify external data.
None
This server is relatively safe for read-only operations and data retrieval. The risk is moderate due to reliance on external APIs and potential resource consumption during chart generation. It's crucial to monitor resource usage and handle API dependencies gracefully.
Autonomy is limited by the read-only nature of most tools. Chart generation is the only write operation, and it doesn't affect external systems.
Production Tip
Implement robust error handling and monitoring to address potential API issues and data inconsistencies.
This server primarily uses the Yahoo Finance API to fetch financial data.
The data is near real-time, but there may be delays depending on the Yahoo Finance API.
Implement retry logic with exponential backoff and cache data to reduce API calls.
Currently, candlestick charts with volume bars, VWAP overlays, and volume profile are supported.
Check the Yahoo Finance API terms of service for commercial usage restrictions.
This server does not require an API key for Yahoo Finance. If you are using LiteLLM, you can set the LITELLM_API_KEY and LITELLM_BASE_URL environment variables.
The default period is '1mo' (one month).