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?”
How it works
Section titled “How it works”FitRepo supports two MCP transports. Use the remote one unless you have a specific reason not to — it connects from your AI app’s own connector settings, with nothing to install:
Remote (HTTP) — recommended: claude.ai, Claude Desktop, ChatGPT, Claude Code, OpenAI Codex, Cursor, Windsurf
Section titled “Remote (HTTP) — recommended: claude.ai, Claude Desktop, ChatGPT, Claude Code, OpenAI Codex, Cursor, Windsurf”claude.ai ──HTTPS──► mydatafor.life/api/mcp-server │ │ Bearer token auth ▼ Your Supabase databaseNo local install required. Add the URL in the client’s connector settings (and, where it asks, your API key or a sign-in) — it connects over HTTPS to the FitRepo server. See Setup.
ChatGPT: the desktop app connects FitRepo on any plan (with an API key as a bearer token). chatgpt.com on the web limits custom MCP connectors to Business/Enterprise/Edu (full tools) or Pro (read-only) — not Free or Plus. See the ChatGPT setup steps.
Local (stdio) — advanced: a program on your computer
Section titled “Local (stdio) — advanced: a program on your computer”Your AI app ──stdio──► npx @fitrepo/mcp-server (runs locally) │ │ HTTPS + Bearer token ▼ mydatafor.life API │ ▼ Your Supabase databaseNeeds Node.js and a config-file edit or a terminal command. Choose it only if your app has no connector screen, or you want Claude to upload a file from a path on your computer — the Import files page in FitRepo does that without installing anything.
A small Node.js process runs on your machine and communicates with Claude over stdin/stdout. Requires Node.js 18+.
Your training data is stored in your FitRepo account and is only sent to your AI client as query results when you explicitly ask for it. When you use a hosted AI client (such as claude.ai), those query results are transmitted to that provider’s servers as part of your conversation — the same as any other text you share with an AI assistant. For local MCP clients (Claude Desktop, Claude Code), the data stays on your machine. Review your AI client’s privacy policy to understand how it handles conversation content.
How your coach gets loaded
Section titled “How your coach gets loaded”When an AI client connects, FitRepo sends it a short instruction to load your active coaching skill before answering anything about your training — including casual chat that needs no data. Because not every client honours that, the results of FitRepo’s data tools (activities, fitness, wellness, thresholds, profile, planned workouts, import status) start with a one-line _coach field reminding the AI to load the skill if it hasn’t; it ignores the note once it has. The token-heavy streams and laps tools, and the documents tools themselves, don’t carry it. The skill is a few thousand tokens, loaded once per session.
Available tools
Section titled “Available tools”The remote server and the local (stdio) package expose the same 20 tools. The local package adds one thing: start_file_import can take a path to a file on your computer and upload it for you. Each tool can be switched off in Settings.
Your training data
| Tool | Description |
|---|---|
get_activities | Paginated activity list with sport/date filters |
get_activity | Full detail for a single activity |
get_activity_streams | Per-second power, HR, cadence, altitude and more inside a ride |
get_activity_laps | Device laps and auto-detected climbs |
get_fitness_timeline | CTL/ATL/TSB for a date range |
get_best_efforts | All-time and per-activity mean-maximal power |
get_wellness | HRV, RHR, sleep, and readiness logs |
sync_wellness | Pull wellness from Intervals.icu or WHOOP into FitRepo for a date range |
get_thresholds | FTP and LTHR history |
get_athlete_profile | Athlete profile (DOB, sex, height) |
Imports
| Tool | Description |
|---|---|
get_backfill_status | Connected sources, latest activity, import progress |
start_backfill | Import new or missing workouts from Wahoo or Intervals.icu |
Your own files
| Tool | Description |
|---|---|
start_file_import | Import an uploaded archive of .fit / .gpx / .tcx files (e.g. a Garmin export) — dry run by default |
Intervals.icu calendar
| Tool | Description |
|---|---|
create_planned_workouts | Push planned workouts and race/note markers |
get_planned_workouts | Read planned events back, to reschedule or edit them |
Coaching documents
| Tool | Description |
|---|---|
get_active_documents | Which coaching skill and plan are active (names and versions only) |
get_document | Load a skill or plan |
upsert_document | Save a new version of a skill or plan |
set_active_document | Switch the active skill or plan |
list_documents | Browse skills, plans and their history |
On connect, the server sends a short instruction pointing Claude at the coaching documents tools; it never sends document content, so casual questions stay cheap. See the Tools Reference for full parameter documentation.
Some clients (including claude.ai) cache the tool list per connection. If a newly released tool doesn’t appear, disconnect and reconnect FitRepo, then start a new chat.
Prerequisites
Section titled “Prerequisites”- A FitRepo account with at least one synced activity
- An MCP API key (generated in Settings)
- For the local transport: Node.js 18 or later
Next step
Section titled “Next step”Follow the Setup guide to generate your API key and connect your client.