loading…
Search for a command to run...
loading…
An MCP server that provides real-time stock market data and price comparisons from Yahoo Finance, Alpha Vantage, and Finnhub. It enables AI assistants to fetch
An MCP server that provides real-time stock market data and price comparisons from Yahoo Finance, Alpha Vantage, and Finnhub. It enables AI assistants to fetch individual quotes, compare data across multiple sources, and retrieve market metrics for various tickers.
A comprehensive Python tool for fetching and analyzing real-time stock market data from multiple public APIs, with integrated news sentiment analysis to understand how news impacts stock prices. Features include a command-line interface, web dashboards, and an MCP (Model Context Protocol) server for AI assistant integration.
# Clone the repository
git clone https://github.com/YOUR_USERNAME/stock-market-analyzer.git
cd stock-market-analyzer
# Install dependencies
pip install -r requirements.txt
Stock Prices (Command Line):
python main.py AAPL GOOGL MSFT
News Analysis (Command Line):
# Get recent news
python news_cli.py AAPL
# Analyze sentiment
python news_cli.py AAPL sentiment
# Correlate news with price movement
python news_cli.py AAPL correlate
# Get news summary
python news_cli.py AAPL summary
Standalone Dashboard:
open standalone_dashboard.html
Web Dashboard:
python web_dashboard.py
# Open http://127.0.0.1:8080
Yahoo Finance works without API keys. For additional sources:
.env.example to .envcp .env.example .env
# Edit .env and add your keys
Use this tool with AI assistants like Claude Desktop or Kiro.
./setup_claude_desktop.sh
Restart Claude Desktop
Ask Claude: "Get the stock price for AAPL"
Ask Claude: "Analyze news sentiment for TSLA"
Ask Claude: "Why did AAPL stock go up today?"
See CLAUDE_DESKTOP_SETUP.md for detailed instructions.
The MCP server is pre-configured in .kiro/settings/mcp.json. Just restart Kiro and ask:
# Single stock
python main.py AAPL
# Multiple stocks
python main.py AAPL GOOGL MSFT TSLA
# Interactive mode
python main.py
# Get recent news articles
python news_cli.py AAPL news
# Analyze overall sentiment
python news_cli.py AAPL sentiment
# Correlate news with price movement
python news_cli.py AAPL correlate
# Get formatted summary
python news_cli.py AAPL summary
When integrated with AI assistants, you get access to:
Stock Data:
News Analysis: 5. get_stock_news - Get recent news articles 6. analyze_news_sentiment - Analyze overall sentiment 7. correlate_news_with_price - Correlate news with price movement 8. get_news_summary - Get formatted news summary
.
├── analyzer.py # Core stock analysis logic
├── news_analyzer.py # News sentiment analysis
├── data_sources.py # Stock API integrations
├── news_sources.py # News API integrations
├── config.py # Configuration management
├── main.py # CLI interface for stocks
├── news_cli.py # CLI interface for news
├── mcp_server.py # MCP server for AI integration
├── web_dashboard.py # Flask web server
├── dashboard.py # Streamlit dashboard
├── standalone_dashboard.html # Browser-only version
├── templates/
│ └── index.html # Web dashboard UI
├── .kiro/settings/
│ └── mcp.json # Kiro MCP configuration
└── requirements.txt # Python dependencies
requests - HTTP requestspandas - Data manipulationyfinance - Yahoo Finance APIpython-dotenv - Environment variablesflask - Web dashboard (optional)streamlit - Streamlit dashboard (optional)mcp - Model Context Protocol serverContributions are welcome! Feel free to:
MIT License - feel free to use this project for personal or commercial purposes.
For questions or support, please open an issue on GitHub.
This tool is for informational purposes only. Stock market data may be delayed. Always verify information before making investment decisions. Not financial advice.
Made with ❤️ for stock market enthusiasts and AI developers
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"stock-market-real-time-analyzer": {
"command": "npx",
"args": []
}
}
}