Skip to content

MCP Integration Overview

FitRepo exposes a Model Context Protocol (MCP) server that lets AI assistants query your training data directly. Once configured, you can ask questions like:

“What was my CTL when I started my marathon block?” “Show me my best 20-minute power over the last 6 months.” “How does my HRV trend around hard training weeks?”

Claude Desktop ──stdio──► fitrepo-mcp (npm package)
│ HTTPS + Bearer token
FitRepo API (mydatafor.life)
Your Supabase database

The MCP server is a small Node.js binary (@fitrepo/mcp-server) that runs locally on your machine. It communicates with Claude Desktop over stdio (the standard MCP transport) and forwards requests to the FitRepo API using your personal API key.

Your data never passes through Anthropic’s servers — Claude only receives the query results that you’ve explicitly fetched from your own account.

The server exposes 7 tools:

ToolDescription
list_activitiesPaginated activity list with sport/date filters
get_activityFull detail for a single activity
get_fitness_timelineCTL/ATL/TSB for a date range
get_best_effortsAll-time and per-activity mean-maximal power
get_wellnessHRV, RHR, sleep, and readiness logs
get_thresholdsFTP and LTHR history
get_profileAthlete profile (age, weight, sex)

See the Tools Reference for full parameter documentation.

  • A FitRepo account with at least one synced activity
  • Node.js 18 or later installed locally
  • Claude Desktop (or another MCP-compatible client)

Follow the Setup guide to generate your API key and configure Claude Desktop.