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.
TigZig API & MCP Hub

Security Performance Report API (SPR) - Portfolio Analytics

REST / HTTP APIMCP Server (AI agents)Analytics APIOpen - no auth

Open, no-auth HTTP API and MCP server for multi-symbol portfolio performance reporting - a dual methodology combining custom Total Return / CAGR / Sharpe / Sortino calculations (validated against QuantStats) with the FFN library for drawdowns, monthly returns and statistics, delivered as professional HTML reports with CSV exports. Built for AI agents first, humans second: every page here has a Copy-as-Markdown button so you can hand it straight to your agent.

Multi-symbolportfolio
Custom + FFNdual method
97%+QuantStats match
6 CSVexports
No authfully open

Overview

AI agents: open (no auth), listed in the machine-readable catalog at api.tigzig.com/.well-known/api-catalog (RFC 9727); OpenAPI at /openapi.json. Connect the MCP server below to generate a report as a tool call.

SPR (Security Performance Report) is a multi-symbol portfolio reporting tool. Pass a set of Yahoo Finance symbols and a date range, and it returns a professional HTML report with matplotlib charts plus six CSV files (price data, returns, correlations, statistics). Two access shapes over one backend:

  • REST - POST /analyze (and /api/analyze) with symbols, start_date, end_date, optional risk_free_rate.
  • MCP - the same report as an agent tool call (see below).

Related: for single-symbol profiling see QRep Portfolio Profiling; for a 6-security metric comparison see QREP - Compare Securities.

MCP Server (for AI agents)

Connect an AI agent and let it generate a portfolio report directly. No auth. Three transports:

  • https://ffn.tigzig.com/v1/mcp/http - Streamable HTTP (recommended; MCP spec 2025-03-26).
  • https://ffn.tigzig.com/v1/mcp/sse - SSE (legacy fallback).
  • https://ffn.tigzig.com/mcp - original SSE endpoint, kept for back-compat.

Example prompt: "Generate an SPR report for AAPL, MSFT and GOOG from 2020-01-01 to 2024-12-31."

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.

Methodology & validation

Dual calculation methodology. Core performance metrics (Total Return, CAGR, Sharpe, Sortino) use custom implementations based on QuantStats methodology; additional analytics (drawdowns, monthly returns, statistics) are powered by the open-source FFN library. Price data is from Yahoo Finance with preprocessing (zero/NaN removal, date alignment).

Validation. Selective validation against QuantStats shows perfect matches for Total Return (100%) and CAGR (100%), and 97%+ for Sharpe and Sortino. The small variance comes from data-quality filters and precision differences. For multi-security analysis, date mismatches from differing exchange calendars are forward-filled up to five days (an industry-accepted practice with minimal impact). Full details: SPR vs QuantStats methodology comparison.

Informational only, not investment advice. Always validate outputs.

Build your own (open source)

Clone the repo and run your own instance:

  1. Clone github.com/amararun/shared-fastapi-mcp-ffn
  2. Create a virtual environment and install dependencies.
  3. Configure environment variables, then run the FastAPI server with uvicorn.

Key dependencies: custom calculation engine, FFN, FastAPI, yfinance, fastapi-mcp.

Self-hosting a public MCP server is your responsibility for security. A public endpoint needs edge rate limiting, abuse detection and secret hygiene. Full checklist: tigzig.com/security.

API Endpoints (REST / HTTP)

Base URLhttps://ffn.tigzig.comPrepend this to every path listed below (e.g. /series becomes https://ffn.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.

POST /analyze

Analyze

Generates a comprehensive SPR (Security Performance Review) portfolio analysis report using custom calculations and FFN metrics.

curl -X POST "https://ffn.tigzig.com/analyze"
POST /api/analyze

Analyze Api

API endpoint for JavaScript form submission - returns JSON response for SPR analysis using custom calculations and FFN metrics.

curl -X POST "https://ffn.tigzig.com/api/analyze"