What It Does
#A comprehensive technical analysis platform that combines FastAPI endpoints, Model Context Protocol (MCP) integration, and a Flask frontend:
- Three endpoint types:
/- Flask-based web interface/api/*- FastAPI endpoints for direct programmatic access/mcp- Model Context Protocol endpoint for AI/LLM integration
- Enhanced with MCP capabilities using the
fastapi-mcppackage - Detailed API documentation with Pydantic models
- Both synchronous and asynchronous processing
- Generates professional PDF and HTML reports
How to Use
#Endpoints
Base URL: https://ta.tigzig.com/
MCP Endpoint: https://ta.tigzig.com/mcp
API Endpoint: https://ta.tigzig.com/api
Feel free to try out these endpoints, subject to rate limits and server load. If you deploy your own instance, the base URL will change according to your deployment configuration.
Access Methods
- Web Interface: visit
/for the Flask frontend - Direct API: make HTTP requests to
/api/technical-analysis - MCP/LLM: connect to
/mcpusing any MCP-compatible client
Refer to the GitHub repository README for detailed information about request formats, response structures, and example usage.
How It Works
#Data Collection
- Historical price data fetched from Yahoo Finance API
- Supports both daily and weekly timeframes
- Uses the custom Yahoo Finance FastAPI MCP server (yfin-h.tigzig.com)
Technical Analysis
- Computes EMAs, MACD, RSI, Bollinger Bands
- Custom chart generation for both timeframes
- Pattern recognition algorithms
AI Integration
- Data and charts processed by Google's Gemini Vision API
- Comprehensive market interpretation in plain English
- MCP exposed to any AI/LLM client
How to Replicate
#- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Configure environment variables:
GEMINI_API_KEY=your_gemini_api_key GEMINI_MODEL_NAME=gemini-2.5-flash - Run the server:
uvicorn main:app --host 0.0.0.0 --port 8000 --timeout-keep-alive 900
Key Dependencies
- MCP Server: Yahoo Finance (companion service)
- FastAPI Server: ReportLab (for PDF generation)
Resources
Consolidated source code for FastAPI, MCP Server and Flask UI
Companion Yahoo Finance data-pull MCP server
Markdown-to-PDF and HTML report generator
Interactive Swagger UI for the Technical Analysis endpoints
Interactive Swagger UI for the Yahoo Finance Data Pull endpoints
Interactive Swagger UI for the Markdown-to-PDF endpoints
Tadata's package to convert any FastAPI into an MCP server
High-level diagram of backend API call flows