Best used with an AI agent

40+ live apps, open data APIs, MCP servers, and 200+ guides - more than anyone wants to click through. Point your AI here and it reads the whole map and does the work: finds the tool, pulls the data, runs the analysis, and hands you the links.

Here for the open-source code? Your agent finds the right repo for you - and can even clone and deploy it.

Prefer to explore on your own? Go right ahead.

Paste this to Claude Code, Codex, or any AI agent:
Go to tigzig.com and read tigzig.com/llms.txt. It is a practitioner toolkit - 40+ analytics apps, open no-auth data APIs, MCP servers, open-source repos (github.com/amararun), and 200+ build guides. Help me [your task]. Surface the exact links; where there is an API or MCP, call it directly; and if I want to self-host, find the repo and help me deploy it.
Two versions available: You are viewing the QRep Portfolio Profiling MCP server, powered by QuantStats-Lumi (Lumiwealth fork). It is fully functional. A newer version, powered by the original QuantStats library by Ran Aroussi, focuses on multi-security comparison and is available at QREP - Compare Securities.

MCP Server: QRep Portfolio Profiling

Multi-purpose backend server combining FastAPI and MCP capabilities for comprehensive portfolio analysis. Powered by quantstats-lumi (Lumiwealth fork of QuantStats).

Talk to AI Agent Portfolio Suite Custom GPT Agent (React + Adv. Analysis) Agent (Flowise UI) Excel (xlwings Lite)

What It Does

#

A comprehensive portfolio analysis platform that combines FastAPI endpoints, Model Context Protocol (MCP) integration, and a streamlined web interface:

  • Fast portfolio performance analysis using QuantStats-Lumi (Lumiwealth fork of QuantStats with bug fixes)
  • Generates professional HTML reports with visualizations
  • Calculates key performance metrics:
    • Sharpe and Sortino ratios
    • Maximum Drawdown and Value at Risk
    • Rolling statistics and correlations
    • Return distribution analysis
  • Compares performance against benchmark

How to Use

#

Endpoints

Base URL: https://quantstats-h.tigzig.com/ MCP (Streamable HTTP, recommended): https://quantstats-h.tigzig.com/v1/mcp/http MCP (SSE): https://quantstats-h.tigzig.com/v1/mcp/sse MCP (legacy SSE, still works): https://quantstats-h.tigzig.com/mcp API Endpoint: https://quantstats-h.tigzig.com/analyze

Streamable HTTP (2025-03-26) is the recommended transport for modern clients (Claude.ai, Cursor, n8n). The legacy /mcp SSE endpoint is kept for backward compatibility.

Access Methods

  • Web Interface: visit / for the Flask frontend
  • Direct API: make HTTP GET requests to /analyze with required parameters:
    • symbols - Yahoo Finance symbol to analyze (stock, ETF, metals, crypto - e.g. AAPL, BTC-USD, GLD, XAGUSD)
    • benchmark - benchmark symbol (default: ^GSPC)
    • start_date - analysis start date (YYYY-MM-DD)
    • end_date - analysis end date (YYYY-MM-DD)
    • risk_free_rate - optional risk-free rate percentage (default: 5.0)
  • MCP/LLM: connect to /mcp using any MCP-compatible client

How It Works

#

Data Collection

  • Historical price data fetched from Yahoo Finance API
  • Downloads both stock and benchmark data
  • Processes and aligns stock returns for consistent analysis

Portfolio Analysis

  • Creates comprehensive visual reports with quantstats-lumi

Integration Layer

  • FastAPI backend with efficient data processing
  • HTML report generation using quantstats-lumi
  • Enhanced with MCP for AI/LLM interactions

Endpoints

  • Three endpoint types:
    • / - Flask-based web interface for interactive analysis
    • /api/* - FastAPI endpoints for direct programmatic access
    • /mcp - Model Context Protocol endpoint for AI/LLM integration
  • Enhanced with MCP capabilities using fastapi-mcp

How to Replicate

#
  1. Clone the repository
  2. Install dependencies: pip install -r requirements.txt
  3. Configure environment variables:
    IS_LOCAL_DEVELOPMENT=1  # Set to 0 for production
    BASE_URL_FOR_REPORTS=https://your-domain.com/
  4. Run the server: uvicorn main:app --host 0.0.0.0 --port 8000

Key Dependencies

  • MCP Server: Yahoo Finance (companion service)
  • FastAPI Server: ReportLab

Resources

Fine Print: This is for informational purposes only and should not be considered as investment advice. All metrics in this report are generated using the open-source QuantStats-Lumiwealth Version. While widely used for performance and risk analytics, some calculations may rely on assumptions (e.g., trading days, compounding methods) or be subject to version-specific behavior. Key metrics such as total return and CAGR have been manually reviewed for consistency, but users are encouraged to refer to the official documentation for full methodology. Results should be interpreted in light of the intended use case. Always validate outputs.
Bugs,issues,questions? Drop a note: [email protected]