Stock Market Real-Time Analyzer
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Stock Market Real-Time AnalyzerCompare the real-time price of NVDA across all available sources"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š Stock Market Real-Time Analyzer with News Sentiment Analysis
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.
⨠Features
Multi-Source Data Fetching: Get stock data from Yahoo Finance, Alpha Vantage, and Finnhub
News Sentiment Analysis: Analyze news articles and their impact on stock prices
News-Price Correlation: Understand if news sentiment aligns with price movements
Real-Time Analysis: Compare prices and news across different sources
Multiple Interfaces:
Command-line tool for stocks and news
Web dashboard (Flask)
Standalone HTML dashboard
Streamlit dashboard
MCP server for AI assistants (Claude, Kiro)
Comprehensive Data: Price, change, volume, market cap, day high/low, news sentiment, and more
Easy Integration: Works with Claude Desktop and other MCP-compatible clients
Related MCP server: Stock Analyzer MCP
š Quick Start
Installation
# Clone the repository
git clone https://github.com/YOUR_USERNAME/stock-market-analyzer.git
cd stock-market-analyzer
# Install dependencies
pip install -r requirements.txtBasic Usage
Stock Prices (Command Line):
python main.py AAPL GOOGL MSFTNews 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 summaryStandalone Dashboard:
open standalone_dashboard.htmlWeb Dashboard:
python web_dashboard.py
# Open http://127.0.0.1:8080š API Keys (Optional)
Yahoo Finance works without API keys. For additional sources:
Copy
.env.exampleto.envAdd your API keys:
Alpha Vantage - Free tier: 25 requests/day
Finnhub - Free tier available
cp .env.example .env
# Edit .env and add your keysš¤ MCP Server Integration
Use this tool with AI assistants like Claude Desktop or Kiro.
Setup for Claude Desktop
Run the setup script:
./setup_claude_desktop.shRestart 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.
Setup for Kiro
The MCP server is pre-configured in .kiro/settings/mcp.json. Just restart Kiro and ask:
"Get the stock price for AAPL"
"Compare TSLA across all sources"
"What's the news sentiment for NVDA?"
"Why did GOOGL stock drop today?"
š Available Tools
Command Line - Stock Prices
# Single stock
python main.py AAPL
# Multiple stocks
python main.py AAPL GOOGL MSFT TSLA
# Interactive mode
python main.pyCommand Line - News Analysis
# 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 summaryMCP Server Tools
When integrated with AI assistants, you get access to:
Stock Data:
get_stock_quote - Get quote from specific sources
compare_stock_sources - Compare data across all sources
get_best_quote - Get most reliable quote
get_multiple_quotes - Get quotes for multiple symbols
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
šļø Project Structure
.
āāā 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š Documentation
MCP Setup Guide - Detailed MCP server configuration
Claude Desktop Setup - Claude Desktop integration
Workflow Diagram - Complete data flow explanation
Quick Start Guide - Getting started quickly
š§ Requirements
Python 3.9+
Internet connection for API access
Optional: API keys for Alpha Vantage and Finnhub
š¦ Dependencies
requests- HTTP requestspandas- Data manipulationyfinance- Yahoo Finance APIpython-dotenv- Environment variablesflask- Web dashboard (optional)streamlit- Streamlit dashboard (optional)mcp- Model Context Protocol server
šÆ Use Cases
Real-time stock monitoring - Track multiple stocks simultaneously
Price comparison - Verify prices across different data sources
News sentiment analysis - Understand market sentiment from news
News-price correlation - See if news explains price movements
AI assistant integration - Ask AI for stock data and news analysis in natural language
Data analysis - Export data for further analysis
Portfolio tracking - Monitor your investments with news context
š¤ Contributing
Contributions are welcome! Feel free to:
Report bugs
Suggest new features
Submit pull requests
Improve documentation
š License
MIT License - feel free to use this project for personal or commercial purposes.
š Acknowledgments
Yahoo Finance - Primary data source
Alpha Vantage - Financial data API
Finnhub - Stock market data
Model Context Protocol - AI integration standard
š§ Contact
For questions or support, please open an issue on GitHub.
ā ļø Disclaimer
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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceAn MCP server that provides comprehensive access to real-time stock quotes, financial statements, analyst estimates, and technical indicators via the Financial Modeling Prep API. It enables users to conduct in-depth financial analysis and track market performance through specialized tools, resources, and prompt templates.26171MIT
- Flicense-qualityDmaintenanceProduction-grade MCP server that enables AI assistants to access real-time financial market data with intelligent fallback mechanisms, supporting stock prices, comparisons, fundamentals, and market summaries via Yahoo Finance and CSV.
- Flicense-qualityDmaintenanceA comprehensive MCP server that provides access to Alpha Vantage's financial data APIs, including stocks, forex, crypto, commodities, and economic indicators, enabling users to retrieve real-time quotes, historical data, technical indicators, and market intelligence through natural language.
- Alicense-qualityDmaintenanceA Model Context Protocol (MCP) server that provides access to Alpha Vantage financial data APIs. This server enables AI assistants to fetch real-time and historical financial market data including stock prices, forex rates, cryptocurrency data, and various technical indicators.16MIT
Related MCP Connectors
Alpha Vantage MCP ā Stock market data, fundamentals, and earnings
MCP server exposing the Backtest360 engine API as tools for AI agents.
Twelve Data MCP: real-time & historical market data (stocks, crypto, forex, etc).
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/anshika1109/stock-market-analyzer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server