Yahoo Finance
Interact with Yahoo Finance to get stock data, market news, and financial information using the yfinance Python library.
MCP Server for Interacting with Yahoo Finance
The Model Context Protocol (MCP) is an open standard developed by Anthropic to enable seamless integration between Large Language Models (LLMs) and external tools, services, and data sources.
This project provides a simple implementation that allows LLM to interact with Yahoo Finance through the yfinance Python library.
The server uses fastmcp and runs within a Docker container to ensure portability.
Installation
- Using python & pip:
pip install .
- Alternative - using Docker:
docker build -t yfinance-mcp-server .
Configuration
- If installed using python & pip, add this item in MCP settings:
"mcpServers": {
"YahooFinanceServer": {
"command": "python",
"args": ["-m", "yfinance_mcp_server"]
}
}
- If installed using Docker, add this item in MCP settings:
"mcpServers": {
"YahooFinanceServer": {
"command": "docker",
"args": ["run", "-i", "yfinance-mcp-server"]
}
}
Example
In your LLM interface, e.g. Cline, you can ask something like:
What is MSFT's stock price on Jan 1, 2025?
Related Servers
Bright Data
sponsorDiscover, extract, and interact with the web - one interface powering automated access across the public internet.
Outscraper
Access Outscraper's data extraction services for business intelligence, location data, reviews, and contact information from various online platforms.
MCP360
MCP360 is a unified gateway and marketplace that provides 100+ external tools and custom MCPs through a single integration for AI agents.
Chrome MCP Server
Exposes Chrome browser functionality to AI assistants for automation, content analysis, and semantic search via a Chrome extension.
BrowserLoop
Take screenshots and read console logs from web pages using Playwright.
BrowserCat
Automate remote browsers using the BrowserCat API.
Real Estate MCP Server
Property search and market analysis from Redfin with neighborhood insights
Sports MCP Server
Live sports scores and stats from NBA, NFL, and NHL
Horse Racing News
Fetches horse racing news from the thoroughbreddailynews.com RSS feed.
MCP YouTube Extract
Extracts information from YouTube videos and channels using the YouTube Data API.
Rapidproxy
Over 70M+ premium IPs via Rapidproxy - Enjoy easy data extraction, avoiding CAPTCHAs, IP blocks with 220+ locations targeting, non-expiring traffic.