Financial Data MCP Server
Provides real-time financial market data from Yahoo Finance.
Financial Data MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with real-time financial market data through Yahoo Finance.
Features
- Stock Data: Current prices, historical data, market metrics
- Options: Options chains with strikes, prices, and volume
- Technical Analysis: Moving averages, RSI, Sharpe ratio
- Comparisons: Compare multiple stocks across metrics
Installation
pip install "mcp[cli]" yfinance pandas numpy
Configuration
Add to Claude Desktop config:
{
"mcpServers": {
"financial-data": {
"command": "python",
"args": ["path/to/server.py"],
"env": {
"PYTHONUNBUFFERED": "1"
}
}
}
}
Available Tools
get_stock_price
- Current price and metricsget_historical_data
- Historical price dataget_options_chain
- Options data for calls/putscalculate_moving_average
- SMA/EMA calculationscalculate_rsi
- Relative Strength Indexcalculate_sharpe_ratio
- Risk-adjusted returnscompare_stocks
- Multi-stock comparisonclear_cache
- Clear cached data
Usage Examples
"What's the current price of AAPL?"
"Show me TSLA's 50-day moving average"
"Compare AAPL, MSFT, and GOOGL performance"
"Get SPY options expiring this Friday"
Troubleshooting
- Missing modules: Run
pip install yfinance pandas numpy "mcp[cli]"
- No data: Verify ticker symbol and internet connection
- Server issues: Check Python path in config, restart Claude Desktop
Notes
- Data from Yahoo Finance (15-20 minute delay)
- Automatic caching and rate limiting
- For informational purposes only
License
MIT License
Related Servers
WebScraping.AI
Interact with WebScraping.AI for web data extraction and scraping.
Scrapezy
Extract structured data from websites using the Scrapezy API.
MCP YouTube Extract
Extracts information from YouTube videos and channels using the YouTube Data API.
Bright Data
Discover, extract, and interact with the web - one interface powering automated access across the public internet.
GeekNews MCP Server
Fetches and caches daily articles from GeekNews using web scraping.
Wayback Machine
Access the Internet Archive's Wayback Machine to retrieve archived web pages and check for available snapshots of URLs.
Chrome Debug
Automate Chrome via its debugging port with session persistence. Requires Chrome to be started with remote debugging enabled.
Yanyue MCP
Fetches cigarette data and information from Yanyue.cn.
Jina Reader
Fetch the content of a remote URL as Markdown with Jina Reader.
Cloudflare Playwright
Control a browser for web automation tasks using Playwright on Cloudflare Workers.