intervals-icu-mcp
This MCP server exposes Intervals.icu training data and account management to LLM clients, with read/write tools for activities, analysis, calendar, wellness, workouts, gear, sport settings, and custom items.
Browse/search recent or historical activities, fetch details, streams, window stats, intervals, best efforts, and power/HR/pace/GAP histograms; download original/FIT/GPX files; update activity metadata or streams; bulk-create manual activities.
Read, post, edit, and delete activity notes/comments.
View athlete profiles, notes, accessible athletes, fitness/fatigue/form summary, and PMC time-series; update athlete notes.
Read and update wellness records by date or range, including HRV, sleep, recovery, body metrics, and custom fields.
Manage calendar events, races, notes, ATP periodization, and seasons; bulk-create, duplicate, hide/lock, or delete events; apply training plans.
Analyze power, HR, and pace/GAP performance curves across periods or seasons.
Manage workout-library folders/plans and workouts, including bulk creation and deletion.
Manage gear items and maintenance reminders.
Read/update sport thresholds and zones, and create sport settings.
List, inspect, create, and update custom charts, fields, zones, panels, and streams.
Supports coach access to multiple athletes and a configurable delete-safety mode.
Intervals.icu MCP Server
⚠️ This project is retired. v5.10.0 is the final release, and the repository is archived.
Intervals.icu now runs an official hosted MCP connector: intervals.icu/connector. It needs an Intervals.icu Supporter subscription.
This server keeps working with a free account and an API key. It gets no further updates, bug fixes or security patches. That includes the Docker image:
:latestis no longer rebuilt, so it stops receiving base-image security fixes.The code stays MIT-licensed, and forks are welcome.

A Model Context Protocol (MCP) server for Intervals.icu integration. Access your training data, wellness metrics, and performance analysis through Claude, ChatGPT, and other LLMs.
Originally based on eddmann/intervals-icu-mcp (MIT licensed). This project is an independent continuation with significant bug fixes and new features — see the release notes for details.
Overview
73 tools spanning activities, activity analysis, activity messages, athlete profile, wellness, events/calendar, performance curves, workout library, gear, sport settings, and custom items — plus 4 MCP Resources (athlete profile, workout syntax, event categories, custom item schemas) and 9 MCP Prompts (training analysis, recovery check, weekly planning, and more). See Available Tools for the per-category breakdown.
Related MCP server: Intervals.icu MCP Server
Quick Start
Or for Claude Desktop, in 30 seconds:
Get your API key and athlete ID
Add this to your Claude Desktop config:
{
"mcpServers": {
"intervals-icu": {
"command": "uvx",
"args": ["intervals-icu-mcp"],
"env": {
"INTERVALS_ICU_API_KEY": "your-api-key-here",
"INTERVALS_ICU_ATHLETE_ID": "i123456"
}
}
}
}Restart Claude and ask "Show me my activities from the last 7 days."
Prefer Claude Code, Cursor, or ChatGPT? See Client Configuration. Want to run from source or with Docker? See Installation & Setup.
Prerequisites
Install uv — it handles Python, dependencies, and execution in one tool. curl -LsSf https://astral.sh/uv/install.sh | sh on macOS/Linux (or brew install uv; Homebrew no longer installs on Intel Macs), or powershell -c "irm https://astral.sh/uv/install.ps1 | iex" on Windows. From there, uvx fetches Python and the package automatically. If your MCP client can't find uvx, set command to the full path that which uvx prints. Docker is also supported as an alternative.
Intervals.icu API Key Setup
Before installation, obtain your Intervals.icu API key:
Go to https://intervals.icu/settings → Developer → Create API Key.
Copy the key, and note your Athlete ID from your profile URL (format:
i123456).
Installation & Setup
Nothing to install separately if you use the recommended setup. uvx (which ships with uv) automatically downloads and caches the intervals-icu-mcp package the first time your MCP client launches it — just paste the config snippet from Client Configuration into your client and you're done.
git clone https://github.com/hhopke/intervals-icu-mcp.git
cd intervals-icu-mcp
uv sync
uv run intervals-icu-mcp-auth # interactive credential setup; or create .env manually:
# INTERVALS_ICU_API_KEY=your_api_key_here
# INTERVALS_ICU_ATHLETE_ID=i123456Then point your MCP client at this checkout — see the From source snippet inside each client below.
docker build -t intervals-icu-mcp .
# Interactive credential setup (creates intervals-icu-mcp.env in the current directory):
touch intervals-icu-mcp.env # pre-create the file so Docker mounts it as a file, not a dir
docker run -it --rm \
-v "$(pwd)/intervals-icu-mcp.env:/app/.env" \
--entrypoint= intervals-icu-mcp:latest \
python -m intervals_icu_mcp.scripts.setup_authOr create intervals-icu-mcp.env manually (same format as the .env above).
Then point your MCP client at the Docker image — see the Docker snippet inside each client below.
Client Configuration
The server speaks MCP over stdio and works with any compliant client. Click a client to expand. If you followed Quick Start (uvx), use the first config block; if you used the source or Docker alternative above, use the matching variant inside the same collapsible.
Add to your configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"intervals-icu": {
"command": "uvx",
"args": ["intervals-icu-mcp"],
"env": {
"INTERVALS_ICU_API_KEY": "your-api-key-here",
"INTERVALS_ICU_ATHLETE_ID": "i123456"
}
}
}
}From source (requires git clone + uv sync + uv run intervals-icu-mcp-auth):
{
"mcpServers": {
"intervals-icu": {
"command": "uv",
"args": ["run", "--directory", "/ABSOLUTE/PATH/TO/intervals-icu-mcp", "intervals-icu-mcp"]
}
}
}Docker:
{
"mcpServers": {
"intervals-icu": {
"command": "docker",
"args": ["run", "-i", "--rm", "-v", "/ABSOLUTE/PATH/TO/intervals-icu-mcp.env:/app/.env", "intervals-icu-mcp:latest"]
}
}
}Register the server as a user-scoped MCP server:
claude mcp add intervals-icu --scope user \
--env INTERVALS_ICU_API_KEY=your-key \
--env INTERVALS_ICU_ATHLETE_ID=i123456 \
-- uvx intervals-icu-mcpThen in any Claude Code session, run /mcp to confirm intervals-icu is connected.
Add to ~/.cursor/mcp.json (or the project-local .cursor/mcp.json):
{
"mcpServers": {
"intervals-icu": {
"command": "uvx",
"args": ["intervals-icu-mcp"],
"env": {
"INTERVALS_ICU_API_KEY": "your-api-key-here",
"INTERVALS_ICU_ATHLETE_ID": "i123456"
}
}
}
}Restart Cursor and open Settings → MCP to verify the server is listed.
ChatGPT's custom MCP connector flow requires running the server over HTTP and exposing it via a tunnel, then registering the URL in ChatGPT's Developer Mode settings. See docs/chatgpt-connector.md for the full walkthrough, plan-tier requirements, and security notes.
Usage
Ask Claude to interact with your Intervals.icu data in natural language. A few starter prompts:
"Show me my activities from the last 30 days"
"Am I overtraining? Check my CTL, ATL, and TSB"
"How's my recovery this week? Show HRV and sleep trends"
"Create a sweet spot cycling workout for tomorrow"
"What's my 20-minute power and FTP?"For the full catalogue of example prompts by category, see docs/examples.md.
Available Tools
73 tools, 4 resources, and 9 prompt templates. One-line summary below — full reference in docs/tools.md.
Category | Tools | Summary |
13 | Query, search, update, delete, download activities | |
9 | Streams, window stats, intervals, best efforts, histograms | |
4 | Read, post, edit, and delete notes/comments/coach feedback on activities | |
5 | Accessible athletes, profile and athlete notes, CTL/ATL/TSB analysis, fitness chart time-series | |
3 | HRV, sleep, recovery metrics | |
13 | Planned workouts, races, notes, ATP periodization (bulk ops supported) | |
3 | Power, HR, and pace curves with zones | |
8 | Browse, create, and delete folders and training plans; create (incl. bulk), update, and delete library workouts | |
6 | Track equipment and maintenance reminders | |
4 | FTP, FTHR, pace thresholds, and zones | |
5 | User customizations: custom charts, fields, zones, dashboard panels |
Delete Safety Mode
Destructive tools are gated by the optional INTERVALS_ICU_DELETE_MODE env var (safe / full / none, default safe) — a server-side gate outside the model's reach, so unregistered tools can't be invoked. See docs/tools.md for the full mode table, response envelope, and TZ-buffer rationale.
Remote Deployment (HTTP / SSE)
The server runs over stdio by default — the right transport for local clients like Claude Desktop, Claude Code, and Cursor. HTTP and SSE transports are available for remote or hosted use.
⚠️ MCP has no built-in authentication — never expose an HTTP-mode server to an untrusted network without a tunnel (Tailscale, Cloudflare Tunnel) or an authenticating reverse proxy.
See docs/remote-deployment.md for transport flags and the full security model.
Documentation
Example prompts — full catalogue of natural-language prompts by category
Tool reference — complete tool, resource, and prompt inventory
Architecture overview — how the server, middleware, client, and tools fit together
Remote deployment (HTTP/SSE) — transports, flags, and the security model for hosted/remote setups
Testing guide — conventions for pytest + respx, fixtures, and running the suite
Releases — release notes (CHANGELOG.md covers releases up to 5.8.0)
Contributing
This project no longer accepts issues or pull requests. You are welcome to fork it under the MIT License.
License
MIT License - see the LICENSE file for details.
Disclaimer
This project is not affiliated with, endorsed by, or sponsored by Intervals.icu. All product names, logos, and brands are property of their respective owners.
Available Tools
70 toolsicu_add_activity_messageIcu Add Activity MessageA
POST a new note or comment on a specific activity (singular = WRITE).
Use when the user wants to leave a note on one of their activities: "add a note to this ride that I felt strong", "comment on yesterday's run", "leave a training note saying...". Attributed to the authenticated user. To READ existing notes use icu_get_activity_messages (plural).
Inputs: content (required), activity_id (required). Returns: result
icu_apply_training_planIcu Apply Training PlanADestructive
Schedule an entire training plan (workout-library folder) onto the athlete's calendar starting on a chosen date.
Use after icu_get_workout_library to find a plan's folder_id. Different from icu_create_event / icu_bulk_create_events (which build new events) and from icu_duplicate_events (which copies existing).
Inputs: folder_id (required), start_date_local (required), athlete_id, extra_workouts_json. Returns: result
icu_bulk_create_eventsIcu Bulk Create EventsA
Create MANY new calendar events in a single batch call (more efficient than looping create_event).
Accepts a JSON array of event objects, each shaped like an icu_create_event payload. For copying existing events forward use icu_duplicate_events instead — that reuses payloads rather than taking new fields. See intervals-icu://event-categories and intervals-icu://workout-syntax for the referenced enums and DSL.
Inputs: events (required), athlete_id. Returns: result
icu_bulk_create_manual_activitiesIcu Bulk Create Manual ActivitiesADestructive
Batch-create manual activities (no device upload) with UPSERT on external_id.
Existing activities with a matching external_id (set by the same OAuth app) are updated; activities without an external_id are always created new.
Inputs: activities_json (required), athlete_id. Returns: result
icu_bulk_create_workoutsIcu Bulk Create WorkoutsA
Save MANY new reusable workouts into LIBRARY folders or plans in one call — e.g. filling out a training plan.
Each item is shaped like an icu_create_workout call. Nothing lands on the calendar: for dated calendar workouts use icu_bulk_create_events, and to schedule a finished plan use icu_apply_training_plan.
Inputs: workouts (required), athlete_id. Returns: result
icu_bulk_delete_eventsIcu Bulk Delete EventsADestructiveIdempotent
Delete MANY calendar events in a single batch call. Destructive — cannot be undone.
In safe delete mode (default), the call partitions the input list
into deleted (future) and skipped (past or undated) and returns
both. INTERVALS_ICU_DELETE_MODE=full disables the partition. If you
don't already have the event IDs, call icu_get_calendar_events first
to find them, then call this tool.
Inputs: event_ids (required), athlete_id. Returns: result
icu_bulk_update_event_accessIcu Bulk Update Event AccessAIdempotent
Hide/reveal or lock/unlock MANY planned WORKOUT calendar events at once.
Sets the web UI's "Hide from athlete" and "Athlete cannot edit" checkboxes —
e.g. build a training block ahead of time, hide it, and reveal it week by
week, or lock key sessions. Only the flags you pass are changed. Only
WORKOUT events are touched: notes, races and targets are reported under
skipped. IDs are calendar event IDs (from icu_get_calendar_events /
icu_get_upcoming_workouts), not workout-library IDs. For one event use
icu_update_event.
Inputs: newest, oldest, event_ids, athlete_id, +2 more. Returns: result
icu_create_custom_itemIcu Create Custom ItemA
Create a custom addition to the user's Intervals.icu account.
Use when the user says things like: "add a custom field for RPE", "create
a custom power zone set", "add a chart for monthly distance". Match the
user's intent to the right item_type (see that param's description). For
the content schema per item_type, read intervals-icu://custom-item-schemas.
Inputs: name (required), item_type (required), content, athlete_id, +2 more. Returns: result
icu_create_eventIcu Create EventA
Create ONE new calendar event from scratch.
For two or more events in a single call, prefer icu_bulk_create_events over a loop. For copying existing events forward in time (repeating a workout for N weeks), use icu_duplicate_events — that tool reuses an existing event's payload instead of taking new fields.
For category guidance and the training_availability enum, read the
intervals-icu://event-categories resource. For structured WORKOUT events,
put workout-syntax text in description — see intervals-icu://workout-syntax.
Inputs: name (required), category (required), start_date (required), tags, +14 more. Returns: result
icu_create_gearIcu Create GearB
Create a new gear item for tracking equipment usage and maintenance (bikes, shoes, trainers, etc.).
Inputs: name (required), gear_type (required), active, athlete_id. Returns: result
icu_create_gear_reminderIcu Create Gear ReminderB
Create a maintenance reminder for a gear item, triggered by distance, time, or both.
Inputs: text (required), gear_id (required), athlete_id, time_alert, +1 more. Returns: result
icu_create_sport_settingsIcu Create Sport SettingsB
Create a per-sport threshold record with outdoor/indoor FTP, FTHR, pace, or swim settings.
Inputs: sport_type (required), ftp, fthr, athlete_id, +3 more. Returns: result
icu_create_workoutIcu Create WorkoutA
Save ONE new reusable workout into a LIBRARY folder or training plan — it does not go on the calendar.
To schedule a workout on a date use icu_create_event. For two or more library workouts use icu_bulk_create_workouts; to change a saved one use icu_update_workout. Make a new folder or plan with icu_create_workout_folder, and put a plan's workouts on the calendar with icu_apply_training_plan.
Inputs: name (required), folder_id (required), day, tags, +9 more. Returns: result
icu_create_workout_folderIcu Create Workout FolderA
Create a new LIBRARY folder or training PLAN to hold workouts — not a calendar item.
Pass the returned id as folder_id to icu_create_workout or icu_bulk_create_workouts. To browse existing folders use icu_get_workout_library.
Inputs: name (required), athlete_id, description, folder_type. Returns: result
icu_delete_activity_messageIcu Delete Activity MessageADestructiveIdempotent
DELETE one of your own notes from an activity.
Use when the user wants a note removed: "delete my comment on that run", "remove the note I left yesterday". Only the author's own notes can be deleted. Intervals.icu keeps a "(deleted)" placeholder in the thread. Returns the deleted text so it can be re-posted with icu_add_activity_message if needed (the original timestamp is lost).
Inputs: message_id (required), activity_id (required). Returns: result
icu_delete_eventIcu Delete EventADestructiveIdempotent
Permanently delete ONE calendar event by ID. Destructive — cannot be undone.
In safe delete mode (default), past events are refused and reported
in the skipped envelope with a hint about INTERVALS_ICU_DELETE_MODE=full.
Returns a deleted / skipped envelope either way. If you don't already
have event_id, call icu_get_calendar_events first to find it, then call
this tool.
Inputs: event_id (required), athlete_id. Returns: result
icu_delete_gearIcu Delete GearADestructiveIdempotent
Permanently delete a gear item and its maintenance reminders. Activities that used this gear are not affected.
Inputs: gear_id (required), athlete_id. Returns: result
icu_delete_workoutIcu Delete WorkoutADestructiveIdempotent
Permanently delete ONE workout from the LIBRARY. Destructive — cannot be undone.
Removes the library workout only; calendar events are separate records deleted with icu_delete_event. Confirm with the user before calling if unsure.
Inputs: workout_id (required), athlete_id. Returns: result
icu_delete_workout_folderIcu Delete Workout FolderADestructiveIdempotent
Permanently delete ONE library folder or training plan AND every workout in it.
Destructive — cannot be undone. Calendar events already applied from a plan
stay on the calendar (delete those with icu_delete_event); to remove a single
library workout use icu_delete_workout. In safe delete mode (default), a
folder that still holds workouts is refused and reported in the skipped
envelope. Confirm with the user before calling if unsure.
Inputs: folder_id (required), athlete_id. Returns: result
icu_download_activity_fileIcu Download Activity FileARead-onlyIdempotent
Download the original activity file.
Downloads the ORIGINAL uploaded file (FIT, TCX, or GPX — whatever the
device produced). Different from download_fit_file (forces FIT conversion)
and download_gpx_file (forces GPX conversion). If output_path is set
the file is saved there; otherwise the response embeds base64 content.
Inputs: activity_id (required), output_path. Returns: result
icu_download_fit_fileIcu Download Fit FileARead-onlyIdempotent
Download activity converted to FIT format (Garmin / most training platforms). Different from download_activity_file (original upload format) and download_gpx_file (GPX format).
Inputs: activity_id (required), output_path. Returns: result
icu_download_gpx_fileIcu Download Gpx FileARead-onlyIdempotent
Download activity converted to GPX format (GPS devices, mapping software). Different from download_activity_file (original upload format) and download_fit_file (FIT format).
Inputs: activity_id (required), output_path. Returns: result
icu_duplicate_eventsIcu Duplicate EventsA
COPY existing events forward in time by N weeks.
Use when the user says "repeat this workout for the next 4 weeks", "duplicate Monday's run on the next 3 Mondays". Reuses the existing events' payloads — different from icu_create_event / icu_bulk_create_events, which both build NEW events from scratch. If you don't already have the event IDs, call icu_get_calendar_events first to find them, then call this tool.
Inputs: event_ids (required), athlete_id, num_copies, weeks_between. Returns: result
icu_get_activities_aroundIcu Get Activities AroundARead-onlyIdempotent
Fetch the activities chronologically before and after a reference activity (N each side).
Use for "what did I do around this race?", training-context queries, progression comparisons.
Inputs: activity_id (required), count, athlete_id. Returns: result
icu_get_activities_by_dateIcu Get Activities By DateARead-onlyIdempotent
List activities within an EXPLICIT date window (oldest..newest) — LIGHT summary per item.
Unlike icu_get_recent_activities (anchored to today and capped at 100), this
targets an arbitrary historical window and is bounded only by limit. Use for
"all my runs from June to November 2025", reconstructing training history, or
finding the oldest activity in a period. Dates are YYYY-MM-DD. Results are
newest-first; if a window holds more than limit items, the oldest are
dropped first, so widen limit (or narrow the window) to reach the very
oldest.
Inputs: oldest (required), limit, newest, athlete_id. Returns: result
icu_get_activity_detailsIcu Get Activity DetailsARead-onlyIdempotent
Fetch the headline SUMMARY of one activity — name, sport, date, distance, duration, training load, weather, plus all top-level metrics in a single JSON blob.
Use for "how was my ride?", "tell me about activity X". For lap-by-lap or per-interval breakdown use icu_get_activity_intervals; for second-by-second time-series use icu_get_activity_streams.
Inputs: activity_id (required). Returns: result
icu_get_activity_intervalsIcu Get Activity IntervalsARead-onlyIdempotent
Fetch the per-LAP / per-interval breakdown of one activity — each segment with its target, actual power/HR/pace, and type (warm-up / work / rest / cool-down).
Use for workout-compliance analysis, lap-by-lap review, "did I hit my intervals?". For headline summary metrics use get_activity_details; for raw second-by-second data use get_activity_streams.
Inputs: activity_id (required). Returns: result
icu_get_activity_messagesIcu Get Activity MessagesARead-onlyIdempotent
Read the notes and comments attached to a specific activity (plural = READ).
Use when the user asks: "what did my coach say about that ride?",
"show me the comments on yesterday's run", "any feedback on this
workout?". Returns every message in chronological order with author,
content, timestamp, and seen-flag. Deleted notes stay in the thread as a
"(deleted)" placeholder with a deleted timestamp. To POST a new message use
icu_add_activity_message (singular = WRITE).
Inputs: activity_id (required). Returns: result
icu_get_activity_streamsIcu Get Activity StreamsARead-onlyIdempotent
Fetch RAW per-sample time-series of one activity — second-by-second arrays for power, HR, cadence, speed, altitude, GPS, temperature, grade, etc.
Heavy payload. Use only when you need the underlying signal for visualization or custom analysis. Most "how was my ride?" questions are better answered by get_activity_details (summary metrics) or get_activity_intervals (per-lap breakdown).
Stream-type filter accepts any of: watts, heartrate, cadence, velocity_smooth, altitude, distance, time, latlng, temp, moving, grade_smooth, raw_heartrate, fixed_heartrate.
latlng comes back as [lat, lng] pairs (null where the sample has no
GPS fix).
left_right_balance (dual-sided power meters) is the RIGHT pedal's share
of power in percent (FIT convention), not the left's: a stream averaging
48 means L 52% / R 48%. The response adds a stream_notes entry saying so whenever the
stream is returned.
heartrate is CORRECTED data: Intervals.icu replaces readings above the
athlete's configured max HR with an interpolated line at import, so it can
never exceed that setting. raw_heartrate is the uncorrected trace and is
the only way to see a genuine new max that was clipped away — the platform
never raises the setting on its own. Request it explicitly; it is not in
the default set.
For averages over time windows (HR/power drift etc.) use icu_get_activity_window_stats instead. Aliases: VE -> tidal_volume_min, VT -> tidal_volume (centiliters), BR -> respiration (Tyme Wear when present, else the recording device's HR-derived estimate).
Inputs: activity_id (required), end_s, start_s, streams, +2 more. Returns: result
icu_get_activity_window_statsIcu Get Activity Window StatsARead-onlyIdempotent
Compute exact SUMMARY statistics of one activity per time WINDOW (every N minutes, N equal parts, or explicit ranges) on the server, without returning raw streams.
Use for drift questions: "how did HR/power and ventilation/power develop over the ride?", "compare 15-min blocks, ignoring everything below 120 W". Prefer this over icu_get_activity_streams for any averaging; use icu_get_activity_intervals for the activity's own laps.
Each window has icu — computed by Intervals.icu on the whole window (avg/NP watts,
HR, decoupling, breath rate, ventilation, tidal volume, DFA a1, plus hr/ve/br per watt)
— and, when
streams or a power filter is given, filtered — mean/median/min/max computed here on
samples passing the filter, plus _per_watt. Filtered mean/median/min/max use 1
decimal for watts, heart rate and similar streams, and 3 decimals for small-range
streams (velocity_smooth, dfa_a1, vertical_ratio, and stream names ending in "ratio").
analysis adds Intervals.icu's whole-ride Pw:HR decoupling and each ratio's drift vs
the first window.
Breath rate comes from Tyme Wear (measured), else the HRV app (custom stream on FIT
field RespirationRate), else the recording device (head unit/watch, device names
it); the last two are HR-derived estimates —
breath_rate_source says which and whether it was measured.
Aliases: VE -> tidal_volume_min, VT -> tidal_volume, BR -> respiration (or the HRV
stream). Missing streams are reported with suggestions.
Inputs: activity_id (required), lag_s, parts, streams, +5 more. Returns: result
icu_get_annual_training_planIcu Get Annual Training PlanARead-onlyIdempotent
Read the Annual Training Plan (ATP) on the calendar — weekly load targets (TSS), Base/Build/Peak phases, and ATP week notes.
Use when the user asks: "what's my weekly TSS target?", "what training phase am I in?", "show my periodization plan", "when are my recovery weeks?", "what's the note on this training week?". Defaults to a 365-day forward window so the full ATP is returned; pass a smaller days_ahead/days_back when the user asks about a specific month or week. NOT individual planned workouts (icu_get_upcoming_workouts), NOT all calendar entries (icu_get_calendar_events), NOT workout-library plan folders (icu_get_workout_library / icu_apply_training_plan).
Inputs: days_back, athlete_id, days_ahead. Returns: result
icu_get_athlete_profileIcu Get Athlete ProfileARead-onlyIdempotent
Get an athlete's profile — sport settings (outdoor/indoor FTP, FTHR, pace) and current CTL/ATL/TSB.
Also returns the free-text athlete notes (Markdown) when set; change them with icu_update_athlete_notes. Defaults to the authenticated athlete; coaches can pass athlete_id to read one of their managed athletes instead.
Inputs: athlete_id. Returns: result
icu_get_best_effortsIcu Get Best EffortsARead-onlyIdempotent
Find the top-N peak efforts WITHIN a single activity for a given stream + target duration or distance.
Different from get_*_curves (which span many activities). Useful for "what was my best 20-min power on this ride?" or "show my top 5k splits in this run." Requires at least one of duration or distance.
Inputs: activity_id (required), count, stream, distance, +1 more. Returns: result
icu_get_calendar_eventsIcu Get Calendar EventsARead-onlyIdempotent
Fetch ALL calendar entries in a date window — workouts, notes, races, goals, life-event blocks.
Use for "what's on my calendar?", "show this week", broad calendar queries. For just the planned WORKOUT entries (filtered) use icu_get_upcoming_workouts. For one specific event by ID use get_event.
Inputs: days_back, athlete_id, days_ahead. Returns: result
icu_get_custom_itemIcu Get Custom ItemARead-onlyIdempotent
Fetch the full configuration of ONE custom addition by ID.
Use AFTER icu_get_custom_items has returned an ID when the user wants
to inspect a specific chart/field/zone/panel — the content field
here is the same as in the list, just focused on one item.
Inputs: item_id (required), athlete_id. Returns: result
icu_get_custom_itemsIcu Get Custom ItemsARead-onlyIdempotent
List the user's custom additions to their Intervals.icu account.
Use this when the user asks about THEIR OWN customizations: "show my custom charts", "list my custom fields", "what custom zones do I have", "what's on my dashboard", "do I have any custom activity panels".
Returns every custom item across all types in one call: custom charts
(FITNESS_CHART, TRACE_CHART, ACTIVITY_CHART, ACTIVITY_HISTOGRAM,
ACTIVITY_HEATMAP, ACTIVITY_MAP, ACTIVITY_PANEL, FITNESS_TABLE), custom
data fields (INPUT_FIELD on wellness, ACTIVITY_FIELD on activities,
INTERVAL_FIELD on intervals), custom ACTIVITY_STREAM definitions, and
custom ZONES configurations. Each item has a type field so you can
filter client-side if the user asked about a specific kind.
Do NOT use this for built-in zones, built-in fields, or athlete profile data — those have dedicated tools (icu_get_sport_settings, etc.).
Inputs: athlete_id. Returns: result
icu_get_eventIcu Get EventARead-onlyIdempotent
Fetch ONE specific calendar event by ID — full details including description, workout structure, and metrics.
Inputs: event_id (required), athlete_id. Returns: result
icu_get_fitness_chartIcu Get Fitness ChartARead-onlyIdempotent
Fetch the Performance Management Chart time-series — daily CTL, ATL, and TSB.
Returns past history plus future projections from planned calendar workouts. Use for: "show my fitness chart", "CTL trend last 90 days", "projected form at end of my block", "what will my TSB be in 3 weeks". NOT for: today's training recommendations (icu_get_fitness_summary), HRV/sleep/ recovery trends (icu_get_wellness_data), or one day's full wellness record (icu_get_wellness_for_date).
Inputs: days_back (required), days_ahead (required), athlete_id. Returns: result
icu_get_fitness_summaryIcu Get Fitness SummaryARead-onlyIdempotent
Get an athlete's current fitness / fatigue / form snapshot — CTL, ATL, TSB, ramp rate, with interpretation and training recommendations.
Use for "how's my form?", "am I overtrained?", training-status checks. Defaults to the authenticated athlete; coaches can pass athlete_id to read one of their managed athletes instead.
Inputs: athlete_id. Returns: result
icu_get_gap_histogramIcu Get Gap HistogramARead-onlyIdempotent
Time-in-zone DISTRIBUTION of grade-adjusted pace (GAP) within a single activity — elevation-normalized.
Use for trail running where raw pace is misleading. For raw (non- elevation-normalized) pace use icu_get_pace_histogram.
Inputs: activity_id (required). Returns: result
icu_get_gear_listIcu Get Gear ListARead-onlyIdempotent
List all gear items with usage stats (distance, time, activity count) and maintenance reminders.
Inputs: athlete_id. Returns: result
icu_get_hr_curvesIcu Get Hr CurvesARead-onlyIdempotent
Fetch the HR-vs-duration curve — best (highest) sustained HR across durations from 5s up to 1h, aggregated over the chosen window.
Use for cardiovascular-fitness trends. For the athlete's HR zones and max HR, call icu_get_sport_settings — this tool does not return zone bands, and its peak_hr_bpm is the top of this curve, which Intervals.icu has already clipped to the configured max HR at import. For time-in-zone distribution within a single activity, use get_hr_histogram instead.
Inputs: days_back, athlete_id, sport_type, time_period. Returns: result
icu_get_hr_histogramIcu Get Hr HistogramARead-onlyIdempotent
Time-in-zone DISTRIBUTION of heart rate within a single activity (histogram buckets, time per bucket).
Different from icu_get_hr_curves (best efforts across many activities). Use for cardiovascular load breakdown and HR-zone time-in-zone.
Inputs: activity_id (required). Returns: result
icu_get_pace_curvesIcu Get Pace CurvesARead-onlyIdempotent
Fetch the pace-vs-distance curve — best (fastest) time and pace over distances from ~50 m up to the athlete's longest effort, aggregated over the chosen window.
Peak efforts are reported at standard distances (400 m, 1 km, mile, 5 km,
10 km, half marathon, marathon) when the curve reaches them. The summary's best
pace is almost always set over the shortest distances (tens of metres), so
compare peak_efforts rather than that headline figure. Use for run/swim
fitness trends and race-time predictions. Pass use_gap=True to normalize
for hills via Grade-Adjusted Pace. For time-in-zone distribution within a
single activity, use get_pace_histogram (or get_gap_histogram) instead.
Inputs: use_gap, days_back, athlete_id, sport_type, +1 more. Returns: result
icu_get_pace_histogramIcu Get Pace HistogramARead-onlyIdempotent
Time-in-zone DISTRIBUTION of pace within a single running activity (histogram buckets, time per bucket).
Different from icu_get_pace_curves (best efforts across many activities). Use for pace-distribution / consistency analysis. For elevation- normalized pace use icu_get_gap_histogram.
Inputs: activity_id (required). Returns: result
icu_get_power_curvesIcu Get Power CurvesARead-onlyIdempotent
Fetch the power-vs-duration curve — best (highest) sustained watts and W/kg across durations from 5s up to 6h, aggregated over the chosen window.
Use for FTP estimation, peak-power tracking, durability, strengths/weaknesses across duration profiles. Includes fitted power models (CP, W', Pmax, FTP), the VO2max estimate and MAP when Intervals.icu provides them. Pick ONE window: days_back, time_period, start_date/end_date, season, or periods (to compare several, e.g. ['s0', 's1', 'all']). Default is the last 90 days. For time-in-zone distribution within a single activity, use icu_get_power_histogram instead.
Inputs: season, periods, end_date, days_back, +5 more. Returns: result
icu_get_power_histogramIcu Get Power HistogramARead-onlyIdempotent
Time-in-zone DISTRIBUTION of power within a single activity (histogram buckets, time per bucket).
Different from icu_get_power_curves (best efforts across many activities). Use for "how was my workout intensity distributed?", training-zone breakdown.
Inputs: activity_id (required). Returns: result
icu_get_recent_activitiesIcu Get Recent ActivitiesARead-onlyIdempotent
List the athlete's most recent activities (default last 30 days) — LIGHT summary per item (distance, duration, power, HR, training load).
Use for "what have I done recently?", "show last week's rides". For one specific activity by ID use icu_get_activity_details; to search by name/tag use icu_search_activities.
Inputs: limit, days_back, athlete_id. Returns: result
icu_get_seasonsIcu Get SeasonsARead-onlyIdempotent
List the athlete's training SEASONS defined in Intervals.icu (name, start, end, curve ID).
Use for "which seasons do I have?", or before comparing seasons: pass a season's curve_id ('s0' = current, 's1' = previous, ...) to icu_get_power_curves. A season runs until the day before the next one starts; the newest season is open-ended.
Inputs: athlete_id. Returns: result
icu_get_sport_settingsIcu Get Sport SettingsARead-onlyIdempotent
Get per-sport thresholds and the athlete's configured power/HR/pace zones.
Returns outdoor/indoor FTP, FTHR, max HR, running pace and swim threshold, plus the zone sets configured in Intervals.icu (HR zones in bpm, power zones as %FTP, pace zones as % of threshold pace) with their names.
This is the ONLY source of the athlete's real zones. Intervals.icu derives them from the threshold (unless set explicitly) and stamps them into every activity at import, so time-in-zone, HRSS and TSS are all computed from these — reasoning about zones from any other number puts the answer at odds with the athlete's own charts. Zones are not derived from curve data.
Inputs: athlete_id. Returns: result
icu_get_upcoming_workoutsIcu Get Upcoming WorkoutsARead-onlyIdempotent
Fetch the planned WORKOUT entries dated on the upcoming CALENDAR (filters out notes, races, goals) — these are calendar EVENTS, not workout-library templates.
Use for "what's my next workout?", "what training is planned". Each id is
a calendar event ID: pass it to icu_get_event / icu_update_event /
icu_delete_event, never to the icu_*_workout library tools. For every
calendar entry type use icu_get_calendar_events; for reusable templates
stored in the library use icu_get_workouts_in_folder. hide_from_athlete /
athlete_cannot_edit appear only when set (change them with
icu_bulk_update_event_access).
Inputs: limit, athlete_id. Returns: result
icu_get_wellness_dataIcu Get Wellness DataARead-onlyIdempotent
Fetch wellness records over a RANGE of recent days (default last 7).
Use for trends, weekly summaries, "how has my sleep been this week?", recovery curves. For PMC/fitness chart CTL/ATL/TSB series use icu_get_fitness_chart. For a single specific date use icu_get_wellness_for_date instead — this tool always returns a multi-day list.
Inputs: days_back, athlete_id. Returns: result
icu_get_wellness_for_dateIcu Get Wellness For DateARead-onlyIdempotent
Fetch the wellness record for ONE specific date.
Use when the user names a date — "show my HRV for Monday", "wellness on 2026-03-15", "how did I sleep last Thursday?". For ranges, weeks, or trends use icu_get_wellness_data.
Inputs: date (required), athlete_id. Returns: result
icu_get_workout_libraryIcu Get Workout LibraryARead-onlyIdempotent
List all workout-library folders + training plans the athlete has access to (personal, shared, and followed plans).
Each folder ID can be passed to icu_get_workouts_in_folder to see its contents, or to icu_apply_training_plan to schedule it onto the calendar.
Inputs: athlete_id. Returns: result
icu_get_workouts_in_folderIcu Get Workouts In FolderARead-onlyIdempotent
List the workouts stored in one specific library folder or training plan — name, type, structure, training load, intensity factor.
Inputs: folder_id (required), athlete_id. Returns: result
icu_list_athletesIcu List AthletesARead-onlyIdempotent
List the athletes this account can access — the caller plus anyone they follow or coach.
Call this FIRST whenever a request concerns someone other than the default athlete, to resolve a name to the athlete_id that other tools take. Returns each athlete's access level, so you know before calling whether a write will be permitted, plus any tags and a short preview of the athlete notes. Entries with notes_truncated=true have longer notes; icu_get_athlete_profile returns the full text.
Inputs: no named parameters. Returns: result
icu_search_activitiesIcu Search ActivitiesARead-onlyIdempotent
Search activities by name or tag, returning a LIGHT result list — id, name, type, date, distance, time only.
Use this first for "find my X" queries. Only escalate to search_activities_full when you specifically need power, HR, training load, or intensity-factor data on the matches (heavier payload).
Inputs: query (required), limit, athlete_id. Returns: result
icu_search_activities_fullIcu Search Activities FullARead-onlyIdempotent
Search activities by name or tag, returning FULL Activity objects with power, HR, training load, intensity factor, normalized power, weather — every metric per result.
Heavy payload. Use only when the lighter search_activities won't tell you what you need (e.g. "find my threshold rides with NP above 250W").
Inputs: query (required), limit, athlete_id. Returns: result
icu_search_intervalsIcu Search IntervalsARead-onlyIdempotent
Search intervals ACROSS ALL the athlete's activities (cross-activity).
Different from icu_get_activity_intervals (single-activity). Use to track
progress on a workout type ("all my threshold intervals over the last
year") or find comparable historical sessions. Returns the activities
containing matching intervals, each with an interval_summary like
"2x 8m 162w" (reps x duration at target).
Inputs: limit, athlete_id, max_duration, min_duration, +3 more. Returns: result
icu_update_activityIcu Update ActivityAIdempotent
Update an existing activity's metadata (name, type, distance, sub-type, RPE, etc.).
Only fields you pass are sent; everything else stays unchanged. Strava-imported
activities cannot be updated. Moving, elapsed and recording time cannot be
changed after an activity exists (neither here nor in the web UI); they can only
be set when a manual activity is created. Keys passed via fields are sent
as-is and are not echoed back in the response.
Inputs: activity_id (required), feel, name, race, +10 more. Returns: result
icu_update_activity_messageIcu Update Activity MessageADestructiveIdempotent
REPLACE the text of an existing note on an activity (edit, not add).
Use when the user wants to fix or rewrite a note they already left: "correct my note on that ride", "change the comment to say...". Only the author's own notes can be changed. Returns the old and the new text — the old text is not recoverable otherwise. To post an additional note use icu_add_activity_message.
Inputs: content (required), message_id (required), activity_id (required). Returns: result
icu_update_activity_streamsIcu Update Activity StreamsADestructive
Upload raw time-series streams (power, HR, cadence, etc.) onto an existing activity. Destructive — overwrites existing stream data.
Accepts JSON array or CSV. Different from get_activity_streams (READ).
Inputs: activity_id (required), payload_string (required), format. Returns: result
icu_update_athlete_notesIcu Update Athlete NotesAIdempotent
REPLACE the free-text notes kept on an athlete's own record — not an activity comment or a calendar note.
Use for standing context about the athlete: "note on my profile that I'm injured", "update my athlete notes". The whole text is overwritten, so to add to existing notes read them first with icu_get_athlete_profile and send the combined text. For a comment on one activity use icu_add_activity_message; for a dated calendar note use icu_create_event.
Inputs: notes (required), athlete_id. Returns: result
icu_update_custom_itemIcu Update Custom ItemAIdempotent
Modify an existing custom chart/field/zones/panel.
Use when the user wants to change one of their existing customizations:
"rename my custom field", "make this chart public". If you don't already
have item_id, call icu_get_custom_items first to look it up by name,
then call this tool. Only fields you pass are sent — others are left
unchanged. For content schema, see intervals-icu://custom-item-schemas.
Inputs: item_id (required), name, content, item_type, +3 more. Returns: result
icu_update_eventIcu Update EventAIdempotent
Update an existing calendar event.
Only fields you pass are sent — other fields remain unchanged. If you
don't already have event_id, call icu_get_calendar_events first to find
it, then call this tool. For category and training_availability semantics,
see intervals-icu://event-categories. For WORKOUT description syntax,
see intervals-icu://workout-syntax.
Inputs: event_id (required), name, tags, color, +14 more. Returns: result
icu_update_gearIcu Update GearBIdempotent
Update an existing gear item. Only fields you pass are sent.
Inputs: gear_id (required), name, active, gear_type, +1 more. Returns: result
icu_update_gear_reminderIcu Update Gear ReminderBIdempotent
Update an existing gear maintenance reminder. Only fields you pass are sent.
Inputs: gear_id (required), reminder_id (required), text, athlete_id, +2 more. Returns: result
icu_update_sport_settingsIcu Update Sport SettingsAIdempotent
Update sport settings: thresholds, explicit HR/power zones, custom field defaults.
Explicit zones replace the threshold-derived ones (e.g. to match a lab test). Changes apply from now on; past activities keep the zones they were analysed with. To re-zone past activities, tell the user to use Update zones in the Intervals.icu activity list view (not in the API).
Inputs: sport_id (required), ftp, fthr, max_hr, +12 more. Returns: result
icu_update_wellnessIcu Update WellnessAIdempotent
Upsert wellness data for ONE specific date — creates the record if missing, otherwise updates the fields you pass.
Only provided fields are sent. Subjective scales (fatigue, soreness,
stress, mood, motivation, injury) are 1-5. Pass locked=True to stop
device sync from overwriting manual entries. Pass custom_fields to set
user-defined wellness fields by INPUT_FIELD code; unknown codes are rejected
and null clears a value. Writes to the authenticated athlete unless
athlete_id names a managed athlete.
Inputs: date (required), hrv, mood, spo2, +29 more. Returns: result
icu_update_workoutIcu Update WorkoutAIdempotent
Change fields on an EXISTING library workout — only the fields you pass are sent.
To save a new workout use icu_create_workout. This edits the library workout only; calendar events are separate records changed with icu_update_event.
Inputs: workout_id (required), day, name, tags, +10 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 70 tools
Despite the large surface, descriptions explicitly cross-reference near-neighbours (curves vs histograms, calendar events vs library workouts, get vs add activity messages, light vs full activity search), so most tools are clearly separable. A few pairs still require careful reading — e.g. recent_activities vs activities_by_date vs activities_around, and the three download_* variants — but boundaries are generally well drawn.
Nearly all tools use a predictable icu_verb_noun snake_case pattern (get_, list_, create_, update_, delete_, search_, download_). Minor deviations like the bulk_ prefix family (icu_bulk_create_events) and longer compound nouns (icu_get_activity_window_stats) are still readable and systematic.
70 tools is far above the 25+ threshold and makes the surface heavy for an agent to navigate, even accounting for the breadth of the domain. Many operations could be consolidated (e.g. per-format download tools, per-sport histogram/curve families) without losing capability.
Coverage is extensive: full CRUD on calendar events, library workouts, gear, and messages, plus wellness, sport settings, custom items, curves, streams, and downloads. Minor gaps remain — no delete for custom items, sport settings, or individual gear reminders, and no activity delete — but agents can work around these.
Maintenance
Related MCP Connectors
Intervals.icu MCP server for ChatGPT, Claude and any AI agent: list activities, get activity with intervals, list wellness, list calendar events, create planned workout, update planned workout, delete calendar event and log daily wellness in your own Intervals.icu account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Intervals.icu yourself; Cotlet does not store your password and you need no Intervals.icu API key. About the official Intervals.icu API: Yes, Intervals.icu has a public REST API (checked 6 Nov 2026). You generate a personal API key under Developer Settings for your own data, and apps for many users use OAuth. Setup and FAQ: https://cotlet.dev/integrations/intervals-icu-api-mcp-server
List, fetch, create, edit (replace), delete and schedule structured workouts on Garmin Connect (runn
TrainingPeaks MCP server for ChatGPT, Claude and any AI agent: list calendar workouts, get workout details, add planned workout, move workout, add workout from library, comment on workout, log metric, get fitness and fatigue and form in your own TrainingPeaks account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to TrainingPeaks yourself; Cotlet does not store your password and you need no TrainingPeaks API key. About the official TrainingPeaks API: TrainingPeaks has an API, but only approved commercial partners get it, and it is not available for personal use (checked 5 Nov 2026). Partners read and write workouts, metrics and events through OAuth, and there is no official MCP server. Setup and FAQ: https://cotlet.dev/integrations/trainingpeaks-api-mcp-server
Adaptive running coach MCP server — training data, plans, and recovery for AI assistants.
Related MCP Servers
- AlicenseAqualityDmaintenanceConnects Claude with the Intervals.icu API to retrieve fitness data including activities, workouts, wellness metrics, and training events.10393GPL 3.0
- FlicenseAqualityDmaintenanceEnables AI assistants to interact with Intervals.icu fitness tracking and wellness data, allowing users to fetch, filter, and group activities or health metrics. It provides structured summaries of workouts and physical well-being through natural language queries.4-
- AlicenseBqualityCmaintenanceAn MCP server for interacting with the Wahoo Cloud API to manage workouts, routes, training plans, and power zones. It enables users to list, retrieve, and create fitness data through secure OAuth 2.0 authentication.97GPL 3.0
- AlicenseAqualityBmaintenanceAn MCP server that enables interaction with the Strava API v3 to manage fitness activities, athlete profiles, segments, and routes. It supports retrieving detailed performance metrics, exploring geographic data, and managing club information through natural language.33PolyForm Noncommercial 1.0.0