Simple MCP server for Yahoo Finance built on yfinance. Exposes tools for ticker info, news, search, sector tops and price history.
https://github.com/narumiruna/yfinance-mcpStop juggling expensive financial data APIs or scraping Yahoo Finance yourself. This MCP server gives you instant access to comprehensive market data through a clean, standardized interface that plugs directly into your AI workflows.
You know the drill with financial data providers - premium tiers, rate limits, authentication tokens, and monthly bills that scale with usage. The yfinance-mcp server bypasses all that complexity by providing a reliable bridge to Yahoo Finance's public data through the battle-tested yfinance library.
No registration, no API keys, no usage quotas to track. Just add it to your MCP configuration and start pulling real-time quotes, historical data, and market news in seconds.
Comprehensive Stock Data: Pull everything from basic quotes to detailed financials, trading metrics, and governance information for any publicly traded company.
Historical Price Analysis: Fetch OHLCV data across flexible time periods (1d to max) and intervals (1m to 1mo) - perfect for backtesting strategies or building price charts.
Market Intelligence: Search across Yahoo Finance's database, get curated news feeds for specific tickers, and discover top performers by sector.
Sector Research: Identify leading ETFs, mutual funds, growth companies, and top performers across different market sectors without manually browsing financial websites.
Investment Research Workflows: Ask your AI assistant to compare Tesla's performance against top EV companies, pull recent news affecting semiconductor stocks, or analyze Apple's price movements over the past quarter.
Algorithm Development: Quickly grab historical data for backtesting trading strategies. The flexible period/interval parameters let you test everything from high-frequency patterns to long-term trends.
Market Monitoring: Set up automated analysis of sector leaders, track earnings-related news, or monitor specific tickers for unusual trading activity.
Financial Content Creation: Generate market summaries, create comparative analyses, or build data-driven investment content with current market data.
Two deployment paths, both friction-free:
Via uv (recommended):
{
"mcpServers": {
"yfmcp": {
"command": "uvx",
"args": ["yfmcp@latest"]
}
}
}
Via Docker:
{
"mcpServers": {
"yfmcp": {
"command": "docker",
"args": ["run", "-i", "--rm", "narumi/yfinance-mcp"]
}
}
}
No environment variables, no configuration files, no database setup. The server handles Yahoo Finance's quirks and rate limiting internally.
Building your own Yahoo Finance integration means handling their undocumented rate limits, parsing inconsistent response formats, and maintaining scraping logic as their site changes. This server abstracts away those headaches with a proven yfinance foundation that's actively maintained by the community.
The MCP interface standardizes how you request financial data, making it easy to switch between different AI tools or build reproducible workflows. Whether you're using Claude, building custom agents, or integrating with other MCP servers, the interface remains consistent.
Ready to stop wrestling with financial data APIs? This server transforms Yahoo Finance into a reliable, cost-free data source that integrates seamlessly with your existing AI development stack.