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
Stepstone
Fetches job listings from Stepstone.de based on keywords and location parameters.
Playwright MCP
Control a browser for automation and web scraping tasks using Playwright.
MCP Browser Console Capture Service
A browser automation service for capturing console output, useful for tasks like public sentiment analysis.
Website Snapshot
A MCP server that provides comprehensive website snapshot capabilities using Playwright. This server enables LLMs to capture and analyze web pages through structured accessibility snapshots, network monitoring, and console message collection.
YouTube Transcript
A zero-setup server to extract transcripts from YouTube videos on any platform.
Sitemap MCP Server
A server for fetching, parsing, analyzing, and visualizing website sitemaps.
Web Search
Performs web searches and extracts full page content from search results.
Google Maps Reviews MCP Server
Summarizes reviews for a specific location from Google Maps.
Yanyue MCP
Fetches cigarette data and information from Yanyue.cn.
MCP Web Research Server
A server for web research that brings real-time information into AI models and researches any topic.