Loading repository data…
Loading repository data…
baazilakhlaque / repository
Multi-agent AI system for automated stock market analysis, visualization with Python, and cloud storage
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
An intelligent multi-agent system that automates stock market analysis, visualization and cloud storage using natural language queries. Built with CrewAI & AWS and integrated via Model Context Protocol (MCP) for seamless AI assistant integration.
Traditional stock market analysis requires:
Users want to ask simple questions like "Show me Tesla's stock performance over the last 6 months" and get actionable insights without writing code or understanding financial APIs.
This project automates the entire stock analysis workflow using a multi-agent AI system:
Result: Users get professional-grade stock analysis and visualizations in seconds, just by asking.
crewai>=1.8.0 - Multi-agent frameworkcrewai-tools>=1.8.0 - Agent tools (CodeInterpreter, etc.)fastmcp>=2.12.5 - MCP server frameworkpydantic>=2.11.10 - Data validationpython-dotenv>=1.1.1 - Environment managementboto3>=1.34.0 - AWS SDK for S3 uploadspip and venvgit clone <repository-url>
cd MCP-Financial-Analyst
# macOS
brew install uv
# Or via pip
pip install uv
# Or standalone installer
curl -LsSf https://astral.sh/uv/install.sh | sh
# Using uv (recommended)
uv sync
Or using traditional pip
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt # If you have one, or install manually
Create a .env file in the project root:
# Required
OPENAI_API_KEY=your_openai_api_key_here
AWS_ACCESS_KEY_ID=your_aws_access_key_id
AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key
AWS_REGION=us-east-1
AWS_S3_BUCKET_NAME=your-bucket-name
Add to your ~/.cursor/mcp.json:
{
"mcpServers": {
"financial-analyst": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/MCP-Financial-Analyst",
"run",
"server.py"
]
}
}
}
After updating mcp.json, restart Cursor for changes to take effect.
financial-analyst-plots)AmazonS3FullAccess (or a custom policy for least privilege)AWS_ACCESS_KEY_ID=AKIA... AWS_SECRET_ACCESS_KEY=your_secret_key AWS_REGION=us-east-1 AWS_S3_BUCKET_NAME=financial-analyst-plots
The AI assistant will use the MCP tools (analyze_stock, save_code, execute_code) automatically.
Using uv (recommended)
uv run python financial_analyst_agent.py
Or with activated venv
source .venv/bin/activate
python financial_analyst_agent.py
# Using uv
uv run fastmcp dev server.py
# Or direct execution
uv run python server.py
This project is licensed under the MIT License - see the LICENSE file for details.