Overview
A technical-analysis report generator over Yahoo Finance price data. Give it a symbol and it fetches daily and weekly history, computes EMAs, MACD, RSI and Bollinger Bands, charts them, has Google Gemini Vision interpret the charts in plain English, and returns a professional PDF and HTML report. Three ways in:
- REST -
POST /api/technical-analysisfor any HTTP client. - MCP - the same report as an agent tool call (see below).
- Hosted UIs - a chat agent, a web form, and an Excel (xlwings Lite) front-end.
Price data comes from the companion Yahoo Finance API. PDF rendering is handled by the Markdown to PDF service.
MCP Server (for AI agents)
Connect an AI agent and let it generate a technical-analysis report directly. No auth. Three transports:
https://ta.tigzig.com/v1/mcp/http- Streamable HTTP (recommended; MCP spec 2025-03-26).https://ta.tigzig.com/v1/mcp/sse- SSE (legacy fallback).https://ta.tigzig.com/mcp- original SSE endpoint, kept for back-compat.
Example prompt: "Analyze MSFT with RSI, MACD and Bollinger Bands for the past 6 months and give me a PDF report."
Add to Claude.ai: Settings -> Connectors -> Add custom connector -> paste the Streamable HTTP URL (fall back to SSE if needed) -> approve. The same URLs work for Cursor, n8n, and any MCP client.
How it works
- Data - daily and weekly price history from the Yahoo Finance FastAPI service (
yfin-h.tigzig.com). - Indicators - EMAs, MACD, RSI, Bollinger Bands; custom chart generation per timeframe.
- Interpretation - charts processed by Google Gemini Vision for plain-English market commentary.
- Output - Markdown converted to PDF and HTML via the ReportLab service.
- FastAPI backend +
fastapi-mcp, Flask web UI, deployed on Coolify (Hetzner) behind Cloudflare.
Build your own (open source)
Clone the repo and run your own instance:
- Clone github.com/amararun/shared-fastapi-mcp-technical-analysis
pip install -r requirements.txt- Set
GEMINI_API_KEYandGEMINI_MODEL_NAME=gemini-2.5-flash. uvicorn main:app --host 0.0.0.0 --port 8000 --timeout-keep-alive 900
Companion services: the Yahoo Finance API (price data) and the ReportLab Markdown to PDF server (report rendering).
API Endpoints (REST / HTTP)
https://ta.tigzig.comPrepend this to every path listed below (e.g. /series becomes https://ta.tigzig.com/series). The curl example on each card shows the full URL.Generated from the live OpenAPI spec - always in sync with the API. Try them interactively in Swagger.
/api/technical-analysis
Create Technical Analysis
Generates comprehensive technical analysis reports for a specified stock ticker.
curl -X POST "https://ta.tigzig.com/api/technical-analysis"