Provides a way to run the MCP Yahoo Finance server in a Docker container for more isolated deployment
References the original and current repositories, along with acknowledgments to the original creator and contributors
Includes configuration information for running on Linux systems with appropriate paths
Provides specific configuration paths for the Claude Desktop client on macOS systems
Used as part of the data processing infrastructure for financial calculations and visualizations
Leveraged for financial data manipulation and analysis, particularly for stock price time series
Used to generate interactive financial visualizations and technical analysis charts
MCP Yahoo Finance
A Model Context Protocol (MCP) server for Yahoo Finance interaction. This server provides tools to get pricing, company information, and generate financial visualizations.
This project is a fork and extension of maxscheijen/mcp-yahoo-finance, with added visualization capabilities.
Features
- Financial Data: Get current stock prices, historical prices, dividends, income statements, and more
- Visual Analytics: Generate beautiful visualizations for market sentiment, portfolio tracking, and technical analysis
- Easy Integration: Works with Claude Desktop, VS Code, Cursor, and other MCP clients
Setup Instructions
1. Clone the Repository
Clone this repository to your local machine:
2. Install Dependencies
Install the required dependencies using pip:
If the requirements.txt file is missing, you can install dependencies directly:
3. Configure MCP Client
Claude Desktop
Add this to your claude_desktop_config.json
(create it if it doesn't exist):
- macOS/Linux:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
You can also use docker:
VSCode
Add this to your .vscode/mcp.json
:
Cursor
Add this to your Cursor MCP configuration:
4. Restart your MCP client
After configuring, restart Claude Desktop or your preferred MCP client to load the server.
Available Tools
Basic Financial Data
- get_current_stock_price: Get the current stock price for a symbol
- get_stock_price_by_date: Get the stock price for a specific date
- get_stock_price_date_range: Get stock prices for a date range
- get_historical_stock_prices: Get historical stock data with customizable periods
- get_dividends: Get dividend information for a stock
- get_income_statement: Get income statement data
- get_cashflow: Get cashflow statement data
- get_earning_dates: Get earning dates information
- get_news: Get recent news for a stock
Visualization Tools
- generate_market_dashboard: Create a market sentiment dashboard with real-time index performance
- generate_portfolio_report: Generate a portfolio performance tracking report
- generate_stock_technical_analysis: Create a technical analysis report for a stock
Visualization Examples
Market Sentiment Dashboard
Portfolio Tracking
Stock Technical Analysis
Example Prompts
Here are some example prompts to try with Claude:
Basic Financial Data
- "What is the current stock price of Apple?"
- "What is the difference in stock price between Apple and Google?"
- "How much did the stock price of Apple change between 2025-01-01 and 2025-3-31?"
Visualization Requests
- "Generate a market sentiment dashboard showing the performance of major indices."
- "Create a portfolio tracking report for tech stocks AAPL, MSFT, GOOGL, AMZN, and NVDA."
- "Show me a technical analysis chart for Tesla stock with moving averages and support/resistance levels."
- "Generate a market sentiment dashboard with S&P 500, Dow Jones, and NASDAQ."
- "Can you create a portfolio report for my energy stocks: XOM, CVX, BP, COP, and SLB?"
- "I need a detailed technical analysis for NVDA stock showing RSI and volume patterns."
Testing
To test the visualization capabilities:
This will generate example visualization images in the examples
directory.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
- Original project by Max Scheijen
- Extended with visualization capabilities inspired by tooyipjee
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Provides tools to get financial data (stock prices, company information) and generate financial visualizations through the Model Context Protocol.
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that provides tools to search and retrieve economic data series from the Federal Reserve Economic Data (FRED) API.Last updated -23TypeScript
- -securityFlicense-qualityA Model Context Protocol server that enables Claude Desktop to access and analyze Chinese and global financial market data through the AKShare library.Last updated -3Python
- -securityAlicense-qualityA Model Context Protocol server that enables AI assistants like Claude to programmatically access financial data from Financial Modeling Prep API, including company profiles, financial statements, metrics, SEC filings, and market data.Last updated -5PythonMIT License
- -securityFlicense-qualityProvides real-time access to global stock market data including current prices, historical charts, and company financial information through a Model Context Protocol (MCP) server for AI assistants.Last updated -TypeScript