Threshold

•
12
•

Connect Garmin Connect data directly to AI assistants to analyze readiness, HRV, training load, and workout FIT files.

Threshold is an open-source, self-hosted Model Context Protocol (MCP) server that connects Garmin Connect to AI assistants like Claude, ChatGPT, and Cursor. Deployed for free on Cloudflare Workers, it queries the official Garmin Personal API and performs rigorous mathematical calculations in code—computing metrics like CTL/ATL/TSB, acute:chronic workload ratios, HRV baselines, race predictions, and rep-by-rep interval session breakdowns directly from decoded FIT files. With a background-synced SQLite D1 archive, privacy-preserving defaults that strip out GPS coordinates, and built-in OAuth support, Threshold turns raw fitness tracking into actionable, contextual coaching insights within your favorite AI environments.

Key Features

0110 GitHub stars
02Stores health and activity history in a local SQLite (Cloudflare D1) database with read-only SQL querying support
03Generates race predictions, training pace zones, and forward-looking load and taper forecasts based on historical best efforts
04Computes training load (CTL, ATL, TSB, ACWR), HRV baselines, and readiness scores in code rather than guessing via LLM prompts
05Decodes FIT files directly to extract rep-by-rep interval breakdowns, aerobic decoupling, cardiac drift, and hidden VO2 max values
06Self-hosts for free on Cloudflare Workers with automated background sync, OAuth 2.1 support, and privacy-first sanitization

Use Cases

01Evaluating daily recovery, HRV trends, and readiness before high-intensity workouts
02Analyzing detailed workout pacing, interval execution, and cardiac drift directly from FIT files
03Projecting fitness, fatigue, and taper form leading up to an upcoming race date