Skip to main content
Glama
Futureweb Intervals MCP

Futureweb Intervals MCP

Futureweb Intervals MCP

Advanced Intervals.icu MCP server for ChatGPT, Claude and every MCP client: Garmin-enriched metrics, every custom field and stream, recovery insights and endurance performance analysis.

CI License: GPL-3.0 Python 3.12+ Status: public beta Garmin Intervals Bridge intervals-summits Listed on mcpservers.org Glama MCP server score

A Model Context Protocol server that lets AI assistants read and analyse your Intervals.icu training data the way a coach would: activities with every custom field and stream, intervals, wellness against personal baselines, thresholds and zones, planned-versus-executed workouts, climbs, dual power meters, best efforts, efficiency and fatigue resistance, nutrition and weight, training summaries and the calendar. It runs where you run it, talks only to the Intervals.icu API and exposes nothing that writes unless you enable it.

Continuation of mvilanova/intervals-mcp-server. The original project is no longer actively developed (last commit on 2 August 2026, 29 pull requests left open). This community-maintained fork carries it on: the useful open pull requests were reviewed and merged with their authors credited, the bugs fixed, and the server rebuilt around coaching analysis, Garmin data and safe remote access. Not affiliated with Intervals.icu or Garmin.

Companion project: the Garmin Intervals Bridge puts back the metrics Garmin strips from the files it sends to Intervals.icu (stamina, training effect, recovery time, VO₂max, running dynamics, sleep and HRV details …). This MCP is built to read all of it, but works just as well without the bridge.

For the mountains: intervals-summits writes the summits, huts and passes of your activities into custom fields (Summits, SummitCount). This MCP reads them like any other field, so your assistant knows which summits a tour reached: ask which ones you climbed this year, or how often.

Contents

Related MCP server: Strava MCP

Highlights

  • Every custom item, resolved dynamically. Custom activity fields, interval fields, streams and wellness fields are read from your own definitions and reported with name, code, value and units. Nothing device-specific is hard-coded; null, NaN, zero and absent stay distinct, fields that do not belong to the sport are kept apart, and device loads are never mixed with the Intervals.icu load.

  • Streams at full resolution. Any stream as summary, CSV or JSON, sliced by index or time, downsampled and paged, plus per-interval statistics of any stream (for example the stamina drop of each interval).

  • Coaching analysis instead of raw dumps. One-call activity report, planned versus executed per step (also for deleted events and rides extended beyond the plan), climbs and descents, second power meter check, best efforts, similar intervals, repeated workouts over time, power-to-heart-rate efficiency, fatigue resistance, training load (acute:chronic ratio, monotony, strain), three-zone intensity distribution with polarization index, aerobic durability, load projection over the plan, recovery snapshot with 42-day baselines, wellness trends and correlations, nutrition and weight trends, weekly and monthly summaries. Statistics with their sample sizes; the interpretation stays with the coach.

  • Token-efficient. detail_level (compact, standard, full) and output_format="json" on the heavy tools, a compact tool catalogue (about 23k tokens for read and write, an optional core set of about 10k), 13 ready-made coaching prompts and method guides as MCP resources and through get_guide.

  • Safe remote access. Built-in OAuth 2.1 server with "Continue with Intervals.icu" sign-in, a consent page with per-connection permissions, client metadata documents with private_key_jwt (ChatGPT), PKCE and RFC 9207. Streamable HTTP (/mcp) and SSE from one process.

  • Safe, verifiable writes. Workouts are validated before they are written, dry_run shows the exact request, a second identical event on the same day is refused, and every write reads back what Intervals.icu stored and parsed.

  • Route-aware outdoor workouts. Steps that end on the lap button (until_lap_press) let you start the next interval where the road suits it, e.g. at the foot of a climb, while the work steps stay timed. Confirmed on a Garmin Edge 1040 on the bike (see below).

  • Read-only by default. Tools are grouped into permission classes (read, write, destructive, admin) enforced on the server; only read is active unless you enable more.

  • Tested. More than 1,100 tests on synthetic data, ruff, mypy, CodeQL, pinned GitHub Actions, build and Docker smoke tests on every pull request.

Works with the Garmin Intervals Bridge

Garmin device ──► Garmin Connect ──► official sync ──► Intervals.icu activity (filtered FIT)
                        │                                     ▲
                        └── Garmin Intervals Bridge ──────────┘  restores custom fields, streams, wellness
                                                              │
                                              Futureweb Intervals MCP (this project)
                                                              │
                                                 ChatGPT / Claude / any MCP client

The Garmin Intervals Bridge writes the metrics Garmin filters out into the custom activity fields, custom streams and wellness fields you defined in Intervals.icu. The MCP reads those definitions at run time, so every restored value shows up in the tools automatically:

Restored by the bridge

Where the MCP shows it

Training effect, EPOC, Garmin training load, recovery time, VO₂max, performance condition, stamina start/end, sweat loss, temperatures

get_activity_details, get_activity_report, get_training_summary, get_training_load (device loads apart from the Intervals.icu load), get_fueling_analysis (sweat loss per hour), get_activity_data_audit (which fields still hold a zero placeholder or no value)

Stamina and potential stamina, second power meter, grade-adjusted speed, gear selection, running dynamics streams

get_activity_streams, get_activity_intervals, analyze_workout_execution, analyze_climbs, compare_power_streams

Night SpO₂, respiration, sleeping HR, HRV details, Body Battery, sleep stages and stress, readiness, nutrition

get_wellness_data, get_recovery_snapshot, get_wellness_trends, get_nutrition_summary

The MCP never contacts Garmin; the bridge is optional and other devices or sync tools that fill custom items get the same treatment. Worked examples and notes on reading the device metrics correctly: docs/GARMIN_BRIDGE.md.

Tools

67 tools; 52 of them only read. Write tools are marked ✎ (write), ✖ (destructive) or ⚙ (admin) and are hidden unless their class is enabled. Most tools accept output_format="json" and detail_level (compact first). Tools never take an API key: credentials come only from the server environment.

The catalogue is kept small for the AI client: short descriptions that say when to use a tool, a description and (where the values are fixed) an enum for every parameter, and text results without a duplicate structured copy. Method details and the workout format live in MCP resources (intervals://methods/<topic>, intervals://workout-syntax) and in get_guide(topic) for clients that only call tools. tools/list is about 22.7k tokens at MCP_PERMISSIONS=read,write (was 42.0k; cl100k); see Tool sets for a smaller set.

Activity analysis

Tool

What it does

get_activity_report

Complete analysis in one call: overview with fueling (carbs used/ingested per hour, sweat loss, energy), weather (temperature, feels-like, wind, head/tailwind share) and W′ balance (max depletion, time below 75/50/25 % of W′), plan vs execution or intervals, second power meter check, climbs, data-quality notes (source, upload and analysis times, recording stops, zero placeholders); include_route_history compares earlier activities on the same Intervals.icu route (time, power, W/kg, HR, weather, stamina); detail_level compact (core numbers, one context line and key findings, about 2-2.5k characters), standard or full

get_activity_data_audit

Provenance and data quality of one activity: source and file (Garmin sync, Garmin export or bridge upload, Strava stub), upload and analysis times, filtered duplicates, recording stops and gaps, FIT laps vs intervals and manual edits, device and sensor identity, streams usual for the sport but missing, per-stream coverage, custom fields with value / zero placeholder / none and what the Garmin Intervals Bridge could fill; without an activity, the per-sport data coverage of a period

analyze_workout_execution

Planned vs executed per step (duration, target adherence, time in range, HR response, fade, Pw:HR drift with the Intervals.icu decoupling sign, stamina). A step may span any number of laps; with device auto-laps step boundaries inside laps are placed at the intensity change (lap presses are kept), steps without a lap of their own are found between their neighbours, and a caveat with alignment_confidence says how far per-step results can be trusted. Open-ended targets (top zone) are lower bounds, distance steps are compared on distance. Steps are capped at their planned duration, longer intervals are split for the analysis, and riding beyond the plan is reported separately with its load and extra efforts. Tolerances for start shift, pauses and step length; planned_workout_doc for deleted events; matching events suggested read-only

analyze_climbs

Climbs, descents and pauses with power, NP, HR, VAM and custom streams per segment; grade smoothed over a distance window (raw grade optional), grade confidence high/medium/low per segment (no grade below the minimum horizontal distance, raw included), real pauses vs slow movement, sport profiles for riding, running and hiking, data-quality flags

compare_power_streams

Sample-aligned comparison of two power meters: offset, power bands, stable windows, drift, lag; without activity_id (date range or activity_ids) every ride with a second power stream is compared on its own and summarised per bike, indoor/outdoor, primary meter and second power source with n, median, between-ride SD and range (overall, per power band, stable windows), drift, lag, outliers and rides far from the median; never a correction factor

get_best_efforts

Best efforts of one activity for durations or distances, with their elapsed-time windows (end index exclusive); windows across a recording pause are flagged

get_activity_histogram

Time distribution of power, heart rate, pace or GAP

Activities and streams

Tool

What it does

get_activities

List with sport, gear and power meter filters, sorting, paging, compact or JSON output; without start_date the 30 days before end_date (or today)

get_activity_details

Summary, thresholds used (FTP, eFTP, LTHR, zones), device and power meter, running dynamics, every custom field with units, fueling, weather, W′ balance and source/freshness

get_activity_intervals

Intervals and groups, custom interval fields, per-interval statistics of any stream, optionally the planned step type next to the Intervals.icu type

list_activity_streams, get_activity_streams

Discover and fetch any stream: summary, CSV or JSON, slicing, downsampling, paging (2000 samples per page by default)

get_activity_messages, add_activity_message ✎, update_activity ✎

Notes and comments, RPE, feel, name, description (dry_run shows the exact request)

Performance over time

Tool

What it does

compare_best_efforts

Best efforts across activities (ids, date range, sport, gear) side by side; ids are de-duplicated and capped to the limit before any request

find_similar_intervals

Activities with comparable intervals, from a reference activity or a given length and intensity; same sport family by default, ranked by comparability, with gear and power meter context; with a reference the 365 days before it by default (window shown, start_date for any range)

compare_workouts

Repeated workouts over time, comparing only comparable work intervals (reference activity, sport family, length, intensity, reps, FTP range); the reference activity is always fetched and always the pattern, with a name search the 365 days before it are listed; surges kept apart, time-weighted means, power, HR, cadence and whole-activity RPE trends, gear and power meter flags

get_power_hr_efficiency

Watts per heartbeat per power band and bike over time, with minimum sample sizes and filters for gear, indoor/outdoor and interval position

get_fatigue_resistance

Best power fresh vs after the athlete's kJ thresholds; without configured thresholds it explains the setting and suggests values instead of showing pseudo results

get_long_ride_fatigue_profile

HR, W/bpm, cadence and Garmin stamina at matched power in steady segments before vs after work thresholds (default 750 / 1,500 kJ, or kJ/kg), for given rides or the long rides of a period; prior work at every threshold and climb (kJ, kJ/kg, kJ and time above FTP, efforts above FTP), climbs after N hours with stamina at start and end, median and range across rides, method stated, small samples flagged

get_submax_test_trends

Submaximal fatigue tests detected by Intervals.icu (#SFT) with a validity filter (target tolerance, CV, ignored, detected inside a regular workout, hard riding before, optional HR recovery) and reasons for every excluded test; HR at the end, efficiency factor, HRRc and HR course trended per sport family and test type (power and pace never pooled) and ISO week over the valid tests only

get_training_load

Acute and chronic load, acute:chronic ratio, Foster monotony and strain (rest days as 0), deload-like weeks, per sport with the primary sport, ISO week table, CTL/ATL/form/ramp; device loads kept separate; reference ranges with sources, no verdict

get_intensity_distribution

Three-zone distribution from power, HR or pace zones (mapping by zone count; GAP zone times where Intervals.icu uses them), polarization index after Treff et al. 2019, class, hard sessions and days, drift between the halves, per sport and week, zone coverage, a caveat when totals mix power and HR zones

get_durability

Aerobic decoupling of steady long sessions after a quality filter (excluded sessions per reason), median and count above 5 %, recent vs window with a stability band, efficiency factor trend; qualifying share per sport, fewer than 8 sessions flagged, mixed indoor/outdoor, bikes or power meters pointed out; heat filter on the device sensor or the activity's weather / feels-like temperature (temperature_source), sessions list both temperatures

get_load_projection

CTL, ATL and form projected over the planned workouts (42/7-day model), missing planned loads reported, race days, Intervals.icu's own projection and a model check for comparison; says prominently when nothing is planned. What-if simulation (scenario): sessions or weekly templates that are not in the calendar (load given or estimated as hours x IF² x 100), added to or replacing the plan, compared with the calendar plan; form at a target day or the next RACE_A and a grid search for the load of the last days that reaches a given form range; per-week plan statistics (ramp, monotony, longest session, rest days) with commonly cited ranges and sources. Nothing is written

get_athlete_power_curves, get_hr_curves, get_pace_curves

Season and date-range curves

get_training_summary

Totals per week, month, sport or gear with the Intervals.icu load (power, else HR, else pace per activity) and the overlapping per-method sums, time in power zones (sweet spot apart) and HR zones, CTL/ATL at the end of each week or month; custom fields aggregated by units and meaning (sums only where they make sense, otherwise mean, median, range or change); an explicit detail_level also selects the JSON parts (without it the JSON is complete)

get_weekly_summary, get_plan_compliance

Weekly review and planned-vs-done overview

Wellness and recovery

Tool

What it does

get_recovery_snapshot

Today and the previous days, 42-day baselines, recent load and planned sessions in one call; names the usual wellness fields today's record does not have yet (not yet available, not normal); health markers: SICK/INJURED calendar entries on the day or ended in the 14 days before and a wellness injury score of 3-4, as recorded, with a hint to ask the athlete before planning intensity (no assessment, nothing skipped)

get_coach_context

Recommended first call for a weekly analysis: overview in about 2-2.5k characters with load, fitness, intensity distribution (per-sport split when zone bases mix), HRV / resting HR / sleep 7-day means against the 42 days before them (z against the week-to-week spread of the prior 90 days), durability, recorded SICK/INJURED entries (health markers, as in get_recovery_snapshot), top sessions, the plan of the next 7 days, today's not-yet-available wellness fields and a method line (windows, coupled ACWR, threshold_as, hard-session rule); an explicit detail_level also selects the JSON parts (without it the JSON is complete)

get_wellness_trends

Rolling means, baselines, outliers, week-over-week changes, correlations, eFTP per sport; requested period, lookback and baseline window stated separately, small samples flagged

get_nutrition_summary

Intake, device burn, energy balance on logged days, weight trend, training load per day

get_fueling_analysis

Fueling of one activity or the long sessions of a period: carbs used (Intervals.icu estimate) and ingested per moving hour, ingested share of used, energy, fluid intake, sodium and sweat loss from custom fields found by units and name (device-file zeros treated as placeholders); per sport family, and within it per duration and intensity, with sample sizes, logging coverage and Spearman correlations from 8 sessions; no targets

get_wellness_data, update_wellness ✎

Daily records (include_all_fields adds every custom wellness field; without start_date the 30 days before end_date or today), with a line naming the usual fields today's record does not have yet (night/morning values, daily metrics such as VO2max or endurance score, and day totals apart); subjective scores (dry_run shows the exact request)

Athlete, gear, calendar and workouts

Tool

What it does

get_athlete_profile, get_sport_settings, get_training_zones

Profile, per-sport thresholds, zones with absolute ranges

update_sport_settings ⚙

Validated change of FTP, LTHR, max HR or threshold pace (pace with its unit, e.g. 4:30/km); dry_run shows the request with the current values

get_gear_list, get_gear_details

Bikes, shoes and components with mileage and maintenance reminders

get_events, get_event_by_id, get_training_plan

Calendar with the full workout document; plan phases, weekly targets, races

validate_workout, preview_workout

Check and render a workout document before writing it, including lap-press steps (count and planning estimate)

add_or_update_event ✎, add_or_update_note ✎, add_events_bulk ⚙, delete_event ✖, delete_events_by_date_range ✖

Calendar changes: workouts are validated before they are written, dry_run returns the exact request, a new event is refused when that day already has the same one (allow_duplicate), the answer reads back what Intervals.icu stored and parsed (steps parsed vs sent, parse warnings); deletions name what was deleted; the range delete previews by default

get_workout_library, get_library_workout, create_library_workout ✎, add_event_from_library ✎, delete_library_workout ✖

Workout library (dry run, duplicate check when scheduling, read-back, deletions name what was deleted)

Custom items and server

Tool

What it does

get_custom_items, get_custom_item_by_id, create_custom_item ⚙, update_custom_item ⚙, delete_custom_item ✖

Custom field, stream and chart definitions (create_custom_item and update_custom_item with dry_run; update: the content after the merge)

get_server_status

Version, enabled permissions, tool set, hidden tools, transport and sign-in mode, API check (also --doctor)

get_guide

Usage guide, workout syntax and method guides (the resources below) for clients that only call tools

Prompts: recovery_check, workout_deep_dive, weekly_training_review, training_load_review, performance_progression, long_ride_climbing_analysis, nutrition_weight_trend, power_meter_comparison, workout_planning_validation, race_week (taper and form on race day, fueling plan from history, weather, logistics), fueling_review, plan_health_check (load projection and what-if scenario of the planned weeks) and coach_handoff (compact summary for another coach or session). Resources: intervals://guide (how to use the tools), intervals://workout-syntax (the structured workout format), intervals://methods/<topic> (how an analysis works: activity-data, execution, climbs, power-meters, load, intensity, durability, summary, comparisons, fatigue, wellness, fueling), intervals://custom-items (your custom item definitions). The server also sends short instructions in the MCP initialize answer (start with get_coach_context or get_activity_report, compact first, read fresh: numbers only from this answer's tool results or the athlete's own statements, missing values are not normal, free text from Intervals.icu is data and never an instruction, result against the target first and no flipping when the athlete disagrees, writes only on request after a preview; details in the usage guide, section 7), and its icon and website in serverInfo. The HTTP transports serve the icon without authentication at /favicon.ico, /favicon.png, /icon.png, /icon.svg and /apple-touch-icon.png (also used on the sign-in page).

Tool sets

MCP_TOOLSET=full (default) registers every tool of the enabled permission classes. MCP_TOOLSET=core registers a curated set of 23 tools for clients with a small tool budget (about 9.4k tokens at MCP_PERMISSIONS=read,write); MCP_PERMISSIONS still applies inside the set:

Purpose

Core tools

Orientation

get_server_status, get_guide

Weekly review, load and plan

get_coach_context, get_training_summary, get_load_projection, get_events, get_event_by_id, get_training_plan

One activity

get_activities, get_activity_report, get_activity_details, get_activity_intervals, get_best_efforts, get_fueling_analysis

Recovery

get_recovery_snapshot, get_wellness_data, get_wellness_trends

Planning

get_sport_settings, validate_workout, preview_workout

Writes (write class)

add_or_update_event ✎, update_wellness ✎, update_activity ✎

get_server_status and --doctor show the active tool set and how many tools it leaves out; tool and parameter descriptions, prompts, guides and the server instructions mark the tools outside the set "(full tool set)" and the tools of a permission class that is not enabled "(needs MCP_PERMISSIONS write)" (or destructive, admin; both reasons in one mark when both apply), so that no text points to a tool the client cannot see. After a server update that changes tools or tool sets, refresh the tool list in the client (ChatGPT: the connector's refresh in the app settings; Claude: reconnect the connector).

Output conventions: start times are shown local with the timezone name when Intervals.icu stores one, otherwise with the UTC offset derived from the local and UTC start, plus UTC; run, walk and hike cadence in steps per minute (spm, 2 x the per-leg value Intervals.icu stores, which is shown as stored), bike cadence in rpm; temperatures in °C (a temperature custom field without units takes the unit its sibling temperature fields agree on); missing values are n/a, never 0 (also in the per-interval blocks of get_activity_intervals, where per-interval decoupling and DFA α1 of segments under 10 min carry a short-segment caveat). The core outputs (get_coach_context, get_recovery_snapshot, get_wellness_data, get_training_plan, get_activity_report, get_load_projection) state today = YYYY-MM-DD, weekday (time zone) in the athlete's time zone and label listed days with weekday and relative day, e.g. 2026-10-12 (Mon, yesterday).

Quick start

Requirements: an Intervals.icu API key (Settings → Developer Settings) and your athlete ID (i123456); for the Python package uv (or Python 3.12+ and pip), for the container image Docker. Every installation runs your own server with your own credentials; there is no hosted service.

Tagged releases are published as the PyPI package futureweb-intervals-mcp, the container images ghcr.io/futureweb/intervals-mcp-server and futurewebat/futureweb-intervals-mcp (Docker Hub), a Claude Desktop bundle (.mcpb) on the GitHub release and an entry in the official MCP Registry.

Beta: 1.0.0b2 is a pre-release. Name the version (uvx futureweb-intervals-mcp@1.0.0b2, pip install futureweb-intervals-mcp==1.0.0b2) or allow pre-releases (uvx --prerelease allow futureweb-intervals-mcp, pip install --pre futureweb-intervals-mcp). uv and pip choose a pre-release on their own only while no final version exists; from 1.0.0 on plain uvx futureweb-intervals-mcp gets the latest final release.

From PyPI (uvx or pip)

export API_KEY=your-api-key ATHLETE_ID=i123456        # or put both into a .env file
uvx futureweb-intervals-mcp@1.0.0b2 --doctor          # checks configuration and API access
uvx futureweb-intervals-mcp@1.0.0b2                   # starts the server on stdio

With pip, in a virtual environment:

pip install futureweb-intervals-mcp==1.0.0b2
futureweb-intervals-mcp --doctor

From source

git clone https://github.com/futureweb/intervals-mcp-server.git
cd intervals-mcp-server
uv sync --locked
cp .env.example .env                       # set API_KEY and ATHLETE_ID
uv run futureweb-intervals-mcp --doctor    # checks configuration and API access
uv run futureweb-intervals-mcp             # starts the server on stdio

Without cloning:

uvx --from git+https://github.com/futureweb/intervals-mcp-server futureweb-intervals-mcp --version

Docker

Tagged releases publish the same multi-arch image (amd64, arm64) to the GitHub Container Registry and to Docker Hub (latest only for final versions, beta tags such as 1.0.0b2 explicitly):

docker run --rm -i -e API_KEY=... -e ATHLETE_ID=i123456 ghcr.io/futureweb/intervals-mcp-server:1.0.0b2
docker run --rm -i -e API_KEY=... -e ATHLETE_ID=i123456 futurewebat/futureweb-intervals-mcp:1.0.0b2

With MCP_AUTH=oauth mount a volume on /data (the image keeps OAUTH_STATE_FILE there), e.g. -v intervals-mcp:/data; otherwise every re-created container disconnects all clients.

Claude Desktop bundle (.mcpb)

Every GitHub release carries futureweb-intervals-mcp-<version>.mcpb. Open it with Claude Desktop (double-click, or Settings → Extensions → Install Extension…) and enter the API key (stored as a secret), the athlete ID and, optionally, the permissions (read by default) and the tool set. The bundle contains the sources and the lock file; Claude Desktop starts it with uv (uv run --frozen), which installs the locked dependencies on the first start. It needs a Claude Desktop version that supports MCPB manifest 0.4 (uv server type).

MCP Registry

Releases are listed in the official MCP Registry as io.github.futureweb/intervals-mcp-server, with the PyPI package and the GHCR image and the environment variables they need. Clients that read the registry can install the server from there. The entry lists packages only: every user runs an own instance with their own Intervals.icu credentials.

Route-aware outdoor workouts (lap-press steps)

Timed intervals outdoors often start on a descent or at a junction. A step with until_lap_press: true ends on the lap button instead, so you ride easy until the road suits the next effort and then press lap; the work steps stay timed:

{"steps": [
  {"text": "Warm-up", "duration": 1020, "warmup": true, "power": {"start": 50, "end": 65, "units": "%ftp"}},
  {"reps": 3, "steps": [
    {"text": "Easy to the climb", "until_lap_press": true, "duration": 300, "power": {"start": 45, "end": 55, "units": "%ftp"}},
    {"text": "Threshold", "duration": 600, "power": {"start": 240, "end": 250, "units": "w"}}
  ]},
  {"text": "Cool-down", "duration": 600, "cooldown": true, "power": {"start": 45, "end": 55, "units": "%ftp"}}
]}
  • The duration (or distance) of a lap-press step is only the planning estimate for the planned time and load; Intervals.icu drops a lap-press step without one.

  • Verified end to end: Intervals.icu stores the step with until_lap_press, its Garmin FIT export writes an OPEN step without a time limit, Garmin Connect pushes it to the device, and a Garmin Edge 1040 lists it as "until lap button" with its power and cadence targets, waits for the lap button on the bike and starts the following timed step immediately (a ride with a 17-minute planning estimate ended the open warm-up by lap after 16:01, then ran the 3-minute steps to the second). Other devices are not verified.

  • With a Garmin course, add course points at the start of each climb and press lap there. Garmin's Auto Pause also pauses timed steps when you stop; lap-press steps are not affected.

  • validate_workout/preview_workout show the lap-press steps and their estimate; after a write the read-back warns if Intervals.icu stored a lap-press step as a timed step.

Connect an AI client

Claude Desktop and Claude Code (local, stdio)

Besides the bundle above, Claude Desktop can start the server from PyPI with uvx (add to claude_desktop_config.json; Claude Desktop needs the full path to uvx if it is not on its PATH, e.g. /Users/you/.local/bin/uvx):

{
  "mcpServers": {
    "intervals-icu": {
      "command": "uvx",
      "args": ["futureweb-intervals-mcp@1.0.0b2"],
      "env": { "API_KEY": "your-api-key", "ATHLETE_ID": "i123456", "MCP_PERMISSIONS": "read" }
    }
  }
}

With Docker instead (the values come from env, -e NAME passes them into the container):

{
  "mcpServers": {
    "intervals-icu": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "-e", "API_KEY", "-e", "ATHLETE_ID", "-e", "MCP_PERMISSIONS",
               "ghcr.io/futureweb/intervals-mcp-server:1.0.0b2"],
      "env": { "API_KEY": "your-api-key", "ATHLETE_ID": "i123456", "MCP_PERMISSIONS": "read" }
    }
  }
}

From a source checkout:

{
  "mcpServers": {
    "intervals-icu": {
      "command": "uv",
      "args": ["--directory", "/path/to/intervals-mcp-server", "run", "futureweb-intervals-mcp"],
      "env": { "API_KEY": "your-api-key", "ATHLETE_ID": "i123456", "MCP_PERMISSIONS": "read" }
    }
  }
}

Claude Code: claude mcp add intervals-icu -e API_KEY=your-api-key -e ATHLETE_ID=i123456 -- uvx futureweb-intervals-mcp@1.0.0b2, or from a checkout claude mcp add intervals-icu -- uv --directory /path/to/intervals-mcp-server run futureweb-intervals-mcp.

ChatGPT, Claude.ai and other remote clients (OAuth)

Remote clients need an HTTPS endpoint. Run the server behind a TLS reverse proxy with OAuth:

MCP_TRANSPORT=http+sse FASTMCP_HOST=127.0.0.1 FASTMCP_PORT=8001 \
MCP_AUTH=oauth MCP_PUBLIC_URL=https://mcp.example.com \
INTERVALS_OAUTH_CLIENT_ID=... INTERVALS_OAUTH_CLIENT_SECRET=... \
MCP_PERMISSIONS=read,write \
uv run futureweb-intervals-mcp
  1. Choose the sign-in: without further settings you sign in with your Intervals.icu API key (optionally plus an authenticator code, OAUTH_TOTP_SECRET). For Continue with Intervals.icu create an OAuth app at https://intervals.icu/oauth/apply with the redirect URL https://mcp.example.com/oauth/intervals/callback; a server password is the third option.

  2. In ChatGPT (developer mode) add a connection with the URL https://mcp.example.com/mcp and authentication OAuth; leave client id and secret empty. Claude.ai: Add custom connector with the same URL.

  3. On the consent page choose the permissions for this connection and sign in. With Intervals.icu only the athletes in OAUTH_ALLOWED_ATHLETES (default ATHLETE_ID) can sign in.

  4. After server updates use Refresh on the ChatGPT connection to reload the tools.

Everything about the OAuth server, the reverse proxy (Apache and nginx examples) and the security model: docs/REMOTE_ACCESS.md. Clients without OAuth can use a secret endpoint path instead (FASTMCP_SSE_PATH=/mcp-<random>/sse).

Sharing the server with friends

By default the server is single-user (MCP_TENANCY=single): every tool call uses the server's API_KEY and ATHLETE_ID. Whoever is allowed to connect sees your data, so in this mode the server refuses to start when OAUTH_ALLOWED_ATHLETES names anyone but you (your own other Intervals.icu accounts can be listed in OAUTH_OWNER_ACCOUNTS).

To let a few friends use the same deployment with their own Intervals.icu data, switch to the optional multi-user mode:

MCP_TENANCY=single (default)

MCP_TENANCY=multi

Data access

the server's API_KEY for every connection

each connection with its own credential

Friends sign in with

– (they would see your data)

"Continue with Intervals.icu" (the only way for non-owners)

Their Intervals.icu token

used for the identity check, never stored

stored encrypted (AES-256-GCM) per connection

Your own connections

API key

API key, only after you signed in (Intervals.icu as ATHLETE_ID, or password / API key plus authenticator code)

athlete_id arguments

any athlete the key can read

only the connection's own athlete (0 = own); anything else is refused before a request

Caches, request budgets

one

per connection / per athlete, fair share of the app limit

Setup (details in docs/REMOTE_ACCESS.md):

# 1. While still in single-user mode: confirm once that your existing connections are yours
futureweb-intervals-mcp grants list
futureweb-intervals-mcp grants adopt-legacy --owner
# 2. A key for the stored tokens (mode 0600, owned by the service user; back it up separately)
futureweb-intervals-mcp token-key --file /etc/intervals-mcp/token.key
# 3. Settings, then restart and check
MCP_TENANCY=multi
OAUTH_TOKEN_KEY_FILE=/etc/intervals-mcp/token.key
OAUTH_LOGIN=intervals                     # you sign in with Intervals.icu as ATHLETE_ID (or add OAUTH_TOTP_SECRET for a password)
OAUTH_ALLOWED_ATHLETES=i123456,i234567,i345678   # you plus your friends
futureweb-intervals-mcp --doctor

Run the grants and token-key commands as the service user with the server's environment (OAUTH_STATE_FILE, ATHLETE_ID), e.g. docker exec -u <uid> in the container. As root they refuse to change a state directory that belongs to another user (--allow-root overrides; they never follow links there). Connections from the single-user mode that were not adopted are refused in the multi-user mode, never treated as yours. If you roll back to an older release after this one, it drops the recorded athletes again: connections created or refreshed meanwhile need grants adopt-legacy --owner once more before the next switch (until then they are refused).

Your friends add the same connector URL in ChatGPT or Claude, choose the permissions on the consent page and approve the Intervals.icu app. The Intervals.icu permissions requested match the classes they choose (read asks for ACTIVITY, WELLNESS, CALENDAR, LIBRARY and SETTINGS read access; write and higher add the write scopes the tools need). Activity comments need Intervals.icu's CHATS permission, which also covers private chats: it is never requested unless you set INTERVALS_OAUTH_OFFER_CHATS=true and the athlete ticks "Activity comments" on the consent page; otherwise the two comment tools say that the permission is missing.

What is stored. Per connection the state file keeps the athlete id, the MCP client, creation and last-use dates, the granted Intervals.icu scopes and the athlete's Intervals.icu access token, encrypted with the key from OAUTH_TOKEN_KEY / OAUTH_TOKEN_KEY_FILE (without the key the token cannot be read; keep the key apart from backups of the state file). At most OAUTH_MAX_GRANTS_PER_ATHLETE connections (default 5) are kept per athlete; your own are never evicted. Data is not cached on disk; in-memory caches expire within minutes and are separated per connection.

Privacy. Wellness data such as HRV, sleep, resting heart rate or weight is health data (in the EU a special category under Art. 9 GDPR), and as the operator you are responsible for it. Invite only people who explicitly agree, tell them in a short note what is stored (above), who can see it (you: the state file and the server logs with athlete ids, tool names, request paths and errors, never tokens or data bodies), how long logs are kept (e.g. journalctl --vacuum-time=14d) and how to leave. Keep the deployment patched. If the key or the state file may have leaked, put a new key first in OAUTH_TOKEN_KEY, and ask your friends to revoke the app at Intervals.icu.

Deletion. A connection's stored token is deleted when the MCP client revokes the connection on disconnect (/revoke; not every client does), after OAUTH_REFRESH_TOKEN_TTL without use (default 30 days; OAUTH_TOKEN_RETENTION_DAYS makes it shorter), or with the grants command. To remove a friend completely:

  1. futureweb-intervals-mcp grants remove <athlete id> (a running server drops the connections at its next request);

  2. remove the athlete from OAUTH_ALLOWED_ATHLETES and restart;

  3. the friend revokes the app in their Intervals.icu settings (the server cannot revoke one token without disconnecting all of the athlete's connections; until then the deleted token would still be valid at Intervals.icu);

  4. optionally purge old log lines (journalctl --vacuum-time=...).

Limits. All athletes share the request limits of the one Intervals.icu OAuth app: every athlete has a daily soft budget (MCP_ATHLETE_DAILY_REQUESTS, default 1000), all together a 15-minute budget (MCP_APP_REQUESTS_PER_15MIN, default 2000) of which one athlete may use at most MCP_ATHLETE_SHARE_PERCENT (default 25; 0 still allows one request per window, 100 means no per-athlete limit) and the others leave MCP_OWNER_RESERVED_PERCENT (default 20; 100 blocks every athlete but you) to you; retries count. The per-call limit applies on top. get_server_status shows the mode and the calling connection's own athlete, scopes and budget, never other users. Switching back to single drops the other athletes' connections and tokens at the next write; your own connections keep working in both modes.

Configuration

Environment variables; a .env file in the working directory is loaded automatically (.env.example).

Variable

Default

Meaning

API_KEY

–

Intervals.icu API key (required)

ATHLETE_ID

–

Athlete ID, i123456 or 123456 (required)

MCP_PERMISSIONS

read

Enabled tool classes, e.g. read,write or all

MCP_TOOLSET

full

full (every tool of the enabled classes) or core (curated set, see Tool sets)

CUSTOM_UNITS_OVERRIDES

–

Display units per custom item code, e.g. Stamina=%,RecoveryTime=h

CUSTOM_AGGREGATE_OVERRIDES

–

Aggregation per custom field code in summaries (sum, device_load_sum, trend, mean, none), e.g. TrainingLoad=device_load_sum

MCP_TRANSPORT

stdio

stdio, sse, http or http+sse (/mcp and /sse in one process)

FASTMCP_HOST / FASTMCP_PORT

127.0.0.1 / 8000

Bind address of the HTTP transports

FASTMCP_SSE_PATH / FASTMCP_MESSAGE_PATH

/sse / /messages/

SSE endpoint paths

FASTMCP_ALLOWED_HOSTS / FASTMCP_ALLOWED_ORIGINS

host of MCP_PUBLIC_URL

Public Host headers accepted behind a reverse proxy (DNS rebinding protection); required for a public endpoint without OAuth

MCP_AUTH

none

oauth enables the built-in OAuth 2.1 server

MCP_PUBLIC_URL

–

Public base URL, required with MCP_AUTH=oauth

INTERVALS_OAUTH_CLIENT_ID / INTERVALS_OAUTH_CLIENT_SECRET

–

Intervals.icu OAuth app for "Continue with Intervals.icu"

OAUTH_LOGIN

intervals with an app, else password if set, else apikey

Sign-in method(s): intervals, password, apikey

OAUTH_TOTP_SECRET

–

Authenticator code as second factor for password and API-key sign-in (python -m intervals_mcp_server.auth totp-secret)

OAUTH_ALLOWED_ATHLETES

ATHLETE_ID

Athletes allowed to sign in (* only with MCP_TENANCY=multi and OAUTH_ALLOW_ANY_ATHLETE=true)

MCP_TENANCY

single

multi: every connection uses its own Intervals.icu credential (Sharing the server with friends)

OAUTH_TOKEN_KEY / OAUTH_TOKEN_KEY_FILE

–

Multi-user mode (required): key(s) that encrypt the stored Intervals.icu tokens (futureweb-intervals-mcp token-key)

MCP_ATHLETE_DAILY_REQUESTS / MCP_APP_REQUESTS_PER_15MIN

1000 / 2000

Multi-user mode: request budget per athlete and day, and of all athletes together per 15 minutes (0 = off)

MCP_ATHLETE_SHARE_PERCENT / MCP_OWNER_RESERVED_PERCENT

25 / 20

Multi-user mode: share of the 15-minute budget one athlete may use (0 = one request per window, not off) and the share kept for the owner (100 blocks every other athlete)

INTERVALS_OAUTH_OFFER_CHATS

false

Multi-user mode: offer "Activity comments" (Intervals.icu CHATS, which also covers private chats) on the consent page

OAUTH_MAX_GRANTS_PER_ATHLETE

5

Multi-user mode: connections kept per athlete (the least recently used are revoked; the owner's are exempt)

OAUTH_OWNER_ACCOUNTS

–

Your own other Intervals.icu accounts; the only other athletes the single-user mode accepts on the allowlist

OAUTH_PASSWORD_HASH / OAUTH_USERNAME

– / athlete

Password sign-in (hash: python -m intervals_mcp_server.auth hash-password)

OAUTH_STATE_FILE

./oauth_state.json

Registered clients and refresh token digests

INTERVALS_API_BASE_URL

https://intervals.icu/api/v1

API base URL

ATHLETE_TIMEZONE

athlete profile

Time zone for "today" and default date ranges, e.g. Europe/Vienna; server uses the server clock. Unset: the timezone of the Intervals.icu athlete profile (looked up once a day)

MCP_TOOL_MAX_REQUESTS / MCP_TOOL_TIMEOUT_S

300 / 120

Limits of one tool call (Intervals.icu requests, seconds); a tool that hits them stops and says its result is incomplete

MCP_MAX_OUTPUT_CHARS

100000

Largest tool result; longer text is cut with a note on how to get the rest, in JSON the largest lists are cut (truncated says what was kept)

Further OAuth options (client and redirect host allowlists, token lifetimes, rate limit) are listed in docs/REMOTE_ACCESS.md.

Permissions and security

Class

Tools

Enable with

read

everything that only reads

default

write

add_or_update_event, add_or_update_note, add_activity_message, update_activity, update_wellness, create_library_workout, add_event_from_library

MCP_PERMISSIONS=read,write

destructive

delete_event, delete_events_by_date_range, delete_custom_item, delete_library_workout

MCP_PERMISSIONS=read,write,destructive

admin

create_custom_item, update_custom_item, add_events_bulk, update_sport_settings

MCP_PERMISSIONS=all

Tools of a disabled class are not registered at all. With OAuth, each connection additionally gets only the classes granted on the consent page (intervals:read, intervals:write, …); other tools are hidden from it and refused if called.

Write tools that can replace existing values (add_or_update_event, add_or_update_note, update_activity, update_wellness) carry the MCP hint destructiveHint: true, so clients ask before running them; their class stays write. Nothing is created, paired, renamed or deleted automatically: delete_events_by_date_range first only lists what matches; it deletes only with dry_run=false and the confirmed ids from that list (confirm_ids), touches only the named categories (default planned workouts), at most 31 days, never workouts already paired with an activity unless asked. Empty values from a client never wipe existing text or workouts.

Every write is predictable and verifiable (details: write safety in intervals://guide):

  • dry_run=true on every create/update tool (including create_custom_item) returns the exact request (method, path, body after all defaults and merges, as compact JSON) and the validation result; no write request is sent (the server refuses every non-GET request during a dry run).

  • Creating an event (single, bulk or from the library) first reads the events of its date (one request over the date range) and refuses a duplicate (same category and sport with the same name, or the same non-trivial workout or text) unless allow_duplicate=true; a brick day or an AM/PM pair with different names is not a duplicate. The bulk tool decides per entry, lists the refused ones and creates planned double sessions (same name, different content).

  • After every event or library workout write the answer reads back what Intervals.icu stored and parsed: date, name, category, sport, duration, load, steps parsed vs sent and parse warnings (notes: date, name, category, text length).

  • delete_event, delete_library_workout and delete_custom_item read the object first and name what was deleted; a missing id deletes nothing.

  • Credentials never appear in logs or tool output; in the single-user mode the Intervals.icu sign-in token is used for the identity check only and never stored (in the multi-user mode it is stored encrypted, see above).

  • Never expose the HTTP transports without OAuth or a secret path, and always behind TLS.

  • In the single-user mode one deployment serves one athlete's API key and the sign-in allowlist decides who may connect; share a deployment only in the multi-user mode.

Details and how to report a vulnerability: SECURITY.md.

Project status and roadmap

1.0.0b2 is the current public beta of this fork (first beta: 1.0.0b2). Development happens in reviewed pull requests; main is protected and every change runs the full CI.

Done

  • Custom fields, custom streams and interval statistics for any device data (also offered upstream as mvilanova/intervals-mcp-server#153)

  • Coaching tools, permission classes, upstream fixes and merged community pull requests

  • Performance analytics, execution analysis for deleted and extended workouts, detail levels, one-call activity report, prompts and resources

  • OAuth with "Continue with Intervals.icu", per-connection permissions, client metadata documents, streamable HTTP and SSE in one process

  • Analytics quality, training load and intensity distribution, aerobic durability, load projection and a weekly coach context

  • Phase 6: what-if plan simulation with form on race day, long-ride fatigue profile (kJ, kJ/kg), submax test trends, multi-ride power meter comparison, data provenance audit, fueling analysis, W′ balance, weather and same-route history, today's incomplete wellness record flagged

  • Multi-persona code review (security, operations, API, writes, analytics) with all findings fixed and independently re-checked

  • Compact tool catalogue, guides, server instructions, optional core tool set

  • Safe writes: dry run, duplicate check, read-back with parse warnings, deletions that name what they delete

  • Optional multi-user mode (MCP_TENANCY=multi): friends sign in with Intervals.icu and only ever reach their own data

  • Lap-press steps for route-aware outdoor workouts

  • First public beta 1.0.0b1 on PyPI, GHCR, Docker Hub, the MCP Registry and as a Claude Desktop bundle

Next

  • Route-aware workouts with a Garmin course: course points at the climbs, lap to start the work step (no API link between a course and a planned workout exists yet)

  • Migration to MCP SDK v2 once it is stable for the transports used here

Documentation

Document

Content

docs/REMOTE_ACCESS.md

OAuth server, Intervals.icu sign-in, ChatGPT and Claude setup, reverse proxy, operations

docs/GARMIN_BRIDGE.md

Working with the Garmin Intervals Bridge, worked examples, reading device metrics

docs/FEATURE_COMPARISON.md

Comparison with other Intervals.icu MCP servers

docs/UPSTREAM_AUDIT.md

Every open upstream pull request and what happened to it

docs/RELEASE_CHECKLIST.md

Release process and gates

RELEASING.md

Publishing a release (PyPI, GHCR, Docker Hub, MCP Registry, Claude Desktop bundle) and what to do when a step fails

CHANGELOG.md

Changes per version

SECURITY.md

Security policy and vulnerability reporting

Development

uv sync --all-extras --locked
uv run --locked pytest                 # synthetic fixtures, no credentials needed
uv run --locked ruff check .
uv run --locked mypy src tests
uv run --locked --with pylint pylint --disable=C0301 $(git ls-files '*.py')   # advisory

CI runs ruff, mypy and pytest on Python 3.12 and 3.13, builds and imports the wheel and sdist, builds and smoke-tests the Docker image and the Claude Desktop bundle, validates server.json against the MCP Registry schema, lints the workflows, and CodeQL scans the code. All GitHub Actions are pinned to commit SHAs; Dependabot keeps them and the dependencies current. Releases are built from tags (docs/RELEASE_CHECKLIST.md, RELEASING.md); beta tags become GitHub pre-releases.

Contributions are welcome: see CONTRIBUTING.md. Never put real athlete data, API keys or hostnames into issues, fixtures or logs.

Credits and license

Original project by Marc Vilanova and contributors: mvilanova/intervals-mcp-server. This fork integrates community pull requests by arnold-maderthaner (#140, #142 to #147), biochaos (#131) and kokostitiahah (#149), and fixes reported and the training load and intensity metrics proposed by morritter (#150); thank you. Maintained by Futureweb, together with the Garmin Intervals Bridge.

Licensed under the GNU General Public License v3.0, see LICENSE. Intervals.icu and Garmin are trademarks of their respective owners and are used only to describe compatibility.

Available Tools

59 tools
add_activity_messageA

Use only when the athlete asks to post a note or comment on an activity.

Adds one message to its thread on Intervals.icu (nothing is replaced; blank text is refused) and returns the message id (dry_run shows the request). Read the thread with get_activity_messages.

Inputs: content (required), activity_id (required), dry_run.

add_event_from_libraryA

Use only when the athlete asks to schedule a workout from the library on a day. Writes a new WORKOUT event to Intervals.icu.

Copies the library workout's name, steps, type, duration, distance, tags and planned load; a duplicate of that day is refused (allow_duplicate). A workout imported from a file (.zwo, .mrc, .erg, .fit) without workout steps in its text is created without steps; the answer says so. dry_run shows the request; the answer reads back what was stored.

Inputs: date (required), workout_id (required), dry_run, athlete_id, +1 more.

add_or_update_eventA
Destructive

Use only when the athlete asks to put a planned workout, race or other event on the calendar or to change one. Writes to Intervals.icu.

Without event_id a new event is created (name required, date default today, category WORKOUT; a duplicate of that day is refused: allow_duplicate); with event_id only the passed fields change, a new date keeps the time of day. workout_doc REPLACES the planned workout and is validated like validate_workout: with errors nothing is written. Text-only sessions (strength, yoga) go into description; text never silently replaces a structured workout (replace_workout). dry_run shows the exact request; the answer reads back what Intervals.icu stored and parsed. Read intervals://workout-syntax (get_guide) before writing steps.

Inputs: name, indoor, dry_run, category, +10 more.

add_or_update_noteA
Destructive

Use only when the athlete asks to add or edit a plain text note (category NOTE) on the Intervals.icu calendar. Writes to Intervals.icu.

Updates are partial: only the passed fields change (renaming keeps text, colour and date); an empty description never wipes the text, clear_description=true does. Only notes can be updated: anything else (a workout, a race) is refused, never turned into a note. A duplicate of that day is refused (allow_duplicate); dry_run shows the request; the answer reads back what was stored.

Inputs: name, color, dry_run, event_id, +5 more.

analyze_climbsA
Read-only

Use for activities without useful intervals (tours, mountain hikes, trail runs) to split the recording into climbs, descents, sections in between and pauses.

Per segment: time and sample indices, moving time, distance, gain/loss, average and steepest grade, VAM, speed, power, NP, HR, cadence and start/end/min/max/mean/delta of every custom stream. Defaults follow the sport (foot vs bike); implausible grades are flagged and each segment gets a grade confidence. Slow scrambling counts as moving, real pauses as pause. Climb gains are not the activity's total elevation gain. Text lists up to max_segments segments. Read-only, 2 API calls (activity, all streams). Method: intervals://methods/climbs (get_guide).

Inputs: activity_id (required), max_segments, min_grade_pct, output_format, +8 more.

analyze_workout_executionA
Read-only

Use to check how a planned workout was executed, or without a plan to evaluate each detected interval of one activity.

The plan comes from planned_workout_doc, event_id or the event paired with the activity. Planned steps (repeats expanded) are aligned with the intervals by order, duration or distance and target intensity, never by names; laps that split one effort are merged. Per step: planned vs actual moving time, target (W, bpm or pace) vs actual, time in target, HR response, cadence, fade, Pw:HR drift (work steps of 10 min or more) and custom stream changes, with deviation notes and an alignment confidence. Time past a step's plan and training after the plan are reported apart. Unpaired: up to three candidate events, nothing is paired. Read-only. Method: intervals://methods/execution (get_guide).

Inputs: activity_id (required), event_id, detail_level, output_format, +5 more.

compare_best_effortsA
Read-only

Use to compare peak efforts (e.g. 1 / 5 / 20 min power) of several activities side by side: development over a block, races, or whether a new bike or power meter reads differently.

Returns a matrix of activities (date, sport, gear, FTP at the time) by duration with the best average of the stream, and the best activity per duration. Activities come from activity_ids or a date range (default the last 90 days), filtered by sport and gear; newest first, limit 10 (max 25), at most 10 durations. Power meters of different bikes are not calibrated against each other; no verdict. Read-only; one API call per activity and duration (up to 250) plus the list and gear calls. One activity in detail: get_best_efforts. Method: intervals://methods/comparisons (get_guide).

Inputs: limit, stream, gear_id, end_date, +6 more.

compare_power_streamsA
Read-only

Use to compare two power meters recorded on the same ride (watts vs secondary_power by default), on one ride or across several rides.

One ride (activity_id): offset in W and % (secondary - primary), per power band, in stable 30/60 s windows, drift over the ride quarters, lag, best efforts of each stream and the samples excluded as coasting, missing or outliers. Several rides (no activity_id, or activity_ids): the rides that carry the second stream (default 180 days to end_date, newest first, limit 10, max 20), each compared on its own and summarised per bike and power meter with median, between-ride SD and range. No calibration and no correction factor; sensors are named only from the file's device data. Read-only. Method: intervals://methods/power-meters (get_guide).

Inputs: limit, primary, end_date, end_index, +8 more.

compare_workoutsA
Read-only

Use to compare repeated executions of the same workout over time (e.g. every 3 x 10 min threshold session) on truly comparable work intervals.

Activities by name search (query), activity_ids or a date range (default the last 90 days); limit 8 (max 12). WORK intervals are split into main set (similar length and intensity), surges, other and excluded; the main set gets time-weighted power, NP, HR, max HR, cadence, W/bpm. Only activities matching the reference pattern (reference_activity_id, else the newest; length ±25 %, intensity ±8 points of FTP) are compared; trends first -> last with n (< 3 not reliable). RPE is whole-activity only; gear and power meter differences are flagged; no verdict. Read-only; one API call per activity plus 1-3 (one more per id with activity_ids). Method: intervals://methods/comparisons (get_guide).

Inputs: limit, query, gear_id, end_date, +15 more.

create_library_workoutA

Use only when the athlete asks to save a workout template in the workout library. Writes to Intervals.icu.

The workout_doc is validated like add_or_update_event (with errors nothing is created) and rendered into the workout text; an empty workout_doc is ignored and description is used. Format: intervals://workout-syntax (get_guide). dry_run shows the request; the answer reads back what Intervals.icu stored and parsed. Schedule it with add_event_from_library.

Inputs: name (required), sport_type (required), folder, dry_run, +5 more.

find_similar_intervalsA
Read-only

Use to find earlier activities with intervals of a given length and intensity (% of FTP), or like the main set of a reference activity, ranked by comparability.

Pass min/max_secs and min/max_intensity, or reference_activity_id (window from its main set: length ±25 %, intensity ±8 points of FTP; explicit values win; only the 365 days before it unless start_date is given). Returns per activity date, sport, interval summary, load, FTP at the time, gear, power meter, compliance and a comparability score 0-100 with reasons. Sport defaults to one family (other families are counted, "all" keeps every sport); watts of different power meters are not comparable, use % of FTP. Read-only; one API call (+2 with a reference, +1 gear catalog). Details: get_activity_intervals; same workout over time: compare_workouts. Method: intervals://methods/comparisons (get_guide).

Inputs: limit, target, gear_id, sort_by, +14 more.

get_activitiesA
Read-only

Use to find activities and their ids in a date range (default the last 30 days up to today, 10 per page), e.g. all rides on one bike over a season.

Returns one summary block per activity (Intervals.icu load, power, HR, feel/RPE, gear), one line each with detail_level=compact, or JSON records with units and local/UTC start. Filters: sport types, gear, power meter name. Any filter, sort, offset, compact or json gives a paged listing with the total and the next offset. Unnamed activities are hidden unless include_unnamed; nothing outside the date range is listed. Read-only. One activity in depth: get_activity_report. Method: intervals://methods/activity-data (get_guide).

Inputs: limit, offset, gear_id, sort_by, +8 more.

get_activity_data_auditA
Read-only

Use to check where an activity's data came from and what is missing, or without activity_id how complete the data of a period is.

One activity: source (sync, upload, Strava stub), upload and analysis times, filtered duplicates, recording stops, FIT laps vs intervals and edits, sensors, streams vs those usual for the sport with coverage, custom fields with value / zero placeholder / none, fields the Garmin Intervals Bridge could fill. Period (default 28 days to end_date): per sport how many activities have power, HR, GPS, weather, custom streams and fields. Facts and counts, no verdict; read-only, 1-3 API requests. Method: intervals://methods/activity-data (get_guide).

Inputs: end_date, athlete_id, start_date, activity_id, +3 more.

get_activity_detailsA
Read-only

Use when one activity's full summary, thresholds or device custom fields are needed beyond get_activity_report.

Returns the summary (time, distance, Intervals.icu load, power, HR, cadence, feel/RPE, FTP and thresholds used, device and power meter), fueling, weather, W′ balance and source, plus every custom activity field with a value (device metrics such as training effect, recovery time, stamina, sweat loss), read from the athlete's own definitions with name, code, value and units; 'no value' = null/NaN on Intervals.icu. full adds time in zones, running dynamics and other raw fields. Read-only. Method: intervals://methods/activity-data (get_guide).

Inputs: activity_id (required), detail_level, output_format, include_all_fields, +1 more.

get_activity_histogramA
Read-only

Use for the time distribution of one activity independent of zone definitions: how polarised a ride was, time above FTP, the pace spread of a run.

Returns the seconds and % of recorded time in each power (W), heart rate (bpm), pace or grade-adjusted pace bucket, as computed by Intervals.icu; pace and GAP buckets are speeds in m/s shown with the pace range. bucket_size applies to power and hr only. Read-only, one API call. Method: intervals://methods/comparisons (get_guide).

Inputs: activity_id (required), metric, bucket_size, output_format.

get_activity_intervalsA
Read-only

Use for per-interval numbers of one activity (laps or detected efforts): power, HR, cadence, speed, intensity, custom interval fields and groups.

Cadence follows the sport: steps per minute on foot (2 x the stored per-leg value), rpm otherwise. stream_types adds start/end/min/max/mean/delta of any stream per interval from the recorded samples, e.g. stamina drop or a second power meter (list_activity_streams shows what exists). include_planned_types shows the planned step matched to each interval and the time beyond the plan; the Intervals.icu type is kept. Without intervals use analyze_climbs. Read-only; 2 API calls, +1 for streams, +1 for a paired event. Methods: intervals://methods/activity-data, intervals://methods/execution (get_guide).

Inputs: activity_id (required), detail_level, stream_types, output_format, +3 more.

get_activity_messagesA
Read-only

Use to read the notes and comments on one activity: author, time, type and text of each message (read-only).

Inputs: activity_id (required).

get_activity_reportA
Read-only

Use first for any question about one activity: overview, plan vs execution, power meter check, climbs and data quality in one call (read-only, 3-4 API requests).

The overview has thresholds, device, sport-assigned custom fields, fueling, weather and W′ balance. With a paired event or planned_workout_doc the plan-vs-execution analysis follows (as analyze_workout_execution), otherwise the intervals; a second-power-meter check only with enough valid paired samples; climbs without intervals or above 500 m gain; then data-quality notes. compact = core numbers and up to 5 key findings. Full detail: get_activity_details, analyze_workout_execution, compare_power_streams, analyze_climbs, get_activity_data_audit. Methods: intervals://methods/activity-data, intervals://methods/execution (get_guide).

Inputs: activity_id (required), detail_level, output_format, include_climbs, +5 more.

get_activity_streamsA
Read-only

Use for the raw time-series samples of one activity (power, HR, cadence, altitude or any custom stream such as Stamina) when summaries are not enough.

Default output is a per-stream summary (units, statistics, first/last values); full gives a CSV table, json one object with arrays (empty/null = no value). Default streams: time, watts, heartrate, cadence, altitude, distance, velocity_smooth; "all" = every stream. full/json return at most max_points samples (default 2000) and say where to continue; slice by index or time, downsample keeps every n-th sample. time = seconds since start, pauses appear as jumps. Read-only. Discover streams with list_activity_streams. Method: intervals://methods/activity-data (get_guide).

Inputs: activity_id (required), end_time, end_index, downsample, +5 more.

get_athlete_power_curvesA
Read-only

Use for an athlete's best power per duration over whole periods: season bests, progress between seasons or date ranges.

Returns watts and W/kg per duration for this season, last season and/or a custom range, each with the activity that set it. Defaults: Ride, 5 s to 60 min, both seasons; durations that are not curve points are left out. Read-only, one API call. One activity: get_best_efforts; HR and pace: get_hr_curves, get_pace_curves. Method: intervals://methods/comparisons (get_guide).

Inputs: end_date, durations, athlete_id, start_date, +5 more.

get_athlete_profileA
Read-only

Use for who the athlete is: name, sex, date of birth, location, time zone, units, weight, height, resting HR, bikes and shoes, training plan and coach (read-only).

Also one line per sport setting (FTP, indoor FTP, LTHR, max HR, threshold pace). Only coaching-relevant fields: account internals such as e-mail, API keys or OAuth scopes are never returned. The profile's time zone defines "today" for all tools. Details: get_sport_settings, get_training_zones, get_gear_list.

Inputs: refresh, athlete_id, output_format.

get_best_effortsA
Read-only

Use for the peak efforts of one activity: best average power, HR or speed over durations (s) or distances (m), e.g. peak 5 s to 20 min power or the fastest km of a run (velocity_smooth with distances).

Returns per effort the average (W, bpm or m/s with pace) and its position as elapsed h:mm:ss and sample indices (usable as start_index / end_index); windows spanning a recording pause are flagged. Default durations 5 s to 60 min; longer than the activity = not available. Read-only; one API call per duration or distance plus 1-2. Several activities: compare_best_efforts; period bests: get_athlete_power_curves. Method: intervals://methods/comparisons (get_guide).

Inputs: activity_id (required), count, stream, distances, +5 more.

get_coach_contextA
Read-only

Use first for a weekly or general training review: load, intensity, recovery, durability and plan for one end date in one compact call (read-only, about 2-3k characters).

Combines 7/28-day Intervals.icu load with acute:chronic ratio, monotony, strain and CTL/ATL/form; the three-zone intensity of 7 and 28 days; recovery markers (HRV, resting HR, sleep) against personal baselines with a z-score; durability; recorded SICK/INJURED entries; top sessions; and, when the end date is today, planned workouts of the next 7 days and the next race. For today it names wellness fields not yet recorded (not yet available, not normal). A method line states windows and rules; small samples are flagged; missing values are never 0; no verdict. Details: get_training_load, get_intensity_distribution, get_durability, get_recovery_snapshot, get_load_projection. Method: intervals://methods/load (get_guide).

Inputs: end_date, athlete_id, detail_level, threshold_as, +1 more.

get_custom_item_by_idA
Read-only

Use for the full definition of one custom item: name, type, description, visibility, index and its content configuration as JSON (code, value type, units, options, aggregate ...; read-only).

Ids: get_custom_items.

Inputs: item_id (required), athlete_id.

get_custom_itemsA
Read-only

Use to list the athlete's custom items (charts, custom activity, interval and wellness fields, streams, zones ...) with id, name, type and description (read-only).

Also refreshes the cached definitions the other tools use to label custom fields. Full definition of one item: get_custom_item_by_id.

Inputs: athlete_id.

get_durabilityA
Read-only

Use for aerobic durability: Intervals.icu's aerobic decoupling (power:HR, or pace:HR for runs without power; drift between the halves in %) of steady long cycling and running sessions and the efficiency factor trend (read-only, default the last 6 weeks).

Sessions pass a quality filter (min_minutes moving, few stops, HR, rides with power, variability index up to max_vi, temperature up to max_temp_c, optionally indoor or outdoor only); excluded ones are counted per reason. Per sport family: median, range, quartiles, sessions above drift_threshold_pct (5 % commonly cited) and the last recent_days against the window. Fewer than 8 qualifying sessions are flagged as a small sample; mixed indoor/outdoor, bikes/shoes or power meters are noted. Statistics only, no verdict. Per interval and bike: get_power_hr_efficiency. Method: intervals://methods/durability (get_guide).

Inputs: max_vi, end_date, athlete_id, max_temp_c, +9 more.

get_event_by_idA
Read-only

Use to read one calendar event completely, e.g. to read back a workout right after writing it.

Returns category and sport, planned time and load, the paired activity and the full workout document (steps, planned time in zones).

Inputs: event_id (required), athlete_id, output_format, resolve_targets.

get_eventsA
Read-only

Use to see the athlete's calendar: planned workouts, races, notes and other events of a date range (default today to 30 days ahead).

Each event shows its category (Workout, Race A/B/C, Note ...), sport (Ride, Run ...), planned time and load, and the paired activity once it has been done. Full workout steps: get_event_by_id. Plan phases and weekly targets: get_training_plan.

Inputs: end_date, athlete_id, categories, start_date, +1 more.

get_fatigue_resistanceA
Read-only

Use for fatigue resistance: best power fresh vs after the athlete's work thresholds kJ0 / kJ1 (Intervals.icu fatigued power curves).

Reads the sport settings first. When they hold no kJ thresholds no fatigued values are shown: the tool explains the setting and (suggest_thresholds) proposes thresholds from body mass and recent rides, never saved. Otherwise returns watts per duration fresh and after kJ0 / kJ1 with the change in %, for one activity or for athlete curves (default 42d); a fatigued curve without data is reported as missing, one equal to fresh as identical, without a change. Read-only, 2-5 API calls. Within one long ride: get_long_ride_fatigue_profile. Method: intervals://methods/comparisons (get_guide).

Inputs: curves, durations, athlete_id, activity_id, +3 more.

get_fueling_analysisA
Read-only

Use for carbohydrate, fluid and sodium intake of one activity (activity_id) or of the long sessions of a period (default the last 90 days, sessions of at least min_minutes; read-only).

Carbs used (Intervals.icu estimate) and ingested (logged total) in g and g/h, the ingested share of used, kcal and kJ, and fluid intake, sodium and sweat loss per hour where custom fields exist (found by units and name). One activity also gets the intake per hour from a custom intake stream, if there is one. Period: statistics per sport family, by duration and by intensity, Spearman correlations from 8 sessions, with sample sizes. Not logged is never 0; used minus ingested is no 1:1 energy deficit; no targets. Method: intervals://methods/fueling (get_guide).

Inputs: end_date, athlete_id, start_date, activity_id, +4 more.

get_gear_detailsA
Read-only

Use for the details of one gear item (bike, shoes, component; read-only).

Distance, time and activity count, purchase and retirement dates, notes, the bike a component belongs to, the activity type filters that assign activities automatically, maintenance reminders with their usage, and for a bike its components (frame, power meter, chain, tyres ...) with their own mileage. Which power meter recorded an activity is not derived from gear: get_activity_details shows the power meter and serial from the device file. Activities on this gear: get_activities(gear_id=...).

Inputs: gear_id (required), refresh, athlete_id.

get_gear_listA
Read-only

Use to find gear ids and get an overview of the athlete's bikes, shoes and components (read-only).

One row per item: id, type, name, default-for, activity count, distance in km and retired flag. Details of one item (components, reminders, filters): get_gear_details; activities on a gear: get_activities(gear_id=...).

Inputs: refresh, athlete_id.

get_guideA
Read-only

Use when the short tool descriptions are not enough: read the workout syntax before writing a workout, or how an analysis works (method, windows, filters, caveats).

Returns the same Markdown as the resources intervals://guide, intervals://workout-syntax and intervals://methods/. Static text, no athlete data.

Inputs: topic.

get_hr_curvesA
Read-only

Use for the highest average heart rate an athlete sustained per duration over one or more periods (e.g. comparing periods; with get_pace_curves the same pace at a lower HR).

Returns bpm per duration for each curve (default the last 90 days) with the activity that set it; durations without data are listed as not available. Read-only, one API call. Power: get_athlete_power_curves. Method: intervals://methods/comparisons (get_guide).

Inputs: curves, end_date, durations, athlete_id, +2 more.

get_intensity_distributionA
Read-only

Use for the training intensity distribution of a period (default the last 4 weeks, read-only): Intervals.icu's time in zones of each activity mapped to the three-zone model (Z1 below the first threshold, Z2 between, Z3 above the second).

Returns Z1/Z2/Z3 shares and hours, the polarization index (Treff et al. 2019), the class (Base, Polarized, Pyramidal, Threshold, HIT) and hard sessions and days for the period, per sport family and per ISO week, and the drift between the two halves. The mapping depends on the zone basis and the zone count of the athlete's model. Activities without zone data are never counted as easy; the coverage is reported. Statistics only, no verdict. Overview: get_coach_context. Method: intervals://methods/intensity (get_guide).

Inputs: end_date, athlete_id, start_date, zone_basis, +4 more.

get_library_workoutA
Read-only

Use to read one library workout (steps, planned time, load, targets), e.g. to reuse it with add_or_update_event or validate_workout. Ids: get_workout_library.

Inputs: workout_id (required), athlete_id, output_format.

get_load_projectionA
Read-only

Use for future fitness: CTL, ATL and form projected over the planned workouts in the calendar, or a what-if scenario (sessions or weekly templates not in the calendar) against the calendar plan (read-only, nothing is written).

Starts from Intervals.icu's CTL/ATL at the end of yesterday plus today's completed load; planned workouts without a load are reported, not guessed. Returns end values, lowest form, highest ramp, ISO weeks with plan statistics, race days, Intervals.icu's own projection, a model check and weeks outside commonly cited ranges (ramp 5-8 CTL/week, monotony > 2.0, no rest day). With target_date, target_form or a scenario: the target day (default the next RACE_A) at the start of the day; target_form adds a search for the load of the last taper_days that reaches it. Arithmetic, not a forecast; no verdict. Method and scenario format: intervals://methods/load (get_guide).

Inputs: atl_days, ctl_days, end_date, scenario, +6 more.

get_long_ride_fatigue_profileA
Read-only

Use to see how long rides change at matched power as work accumulates: HR, W/bpm, cadence and Garmin stamina in steady segments of a power band (default 75-85 % FTP) before vs after work thresholds.

Phases by work (default 750 / 1,500 kJ, or kJ/kg) are compared with the phase before the first threshold. Threshold crossings and climbs carry the prior work (kJ, kJ/kg, kJ and time above FTP, efforts above FTP). Rides from activity_ids or the long rides of a period (default 180 days, reaching the highest threshold; limit 6, max 12). Across rides: median and range of the changes with n, small samples flagged. Statistics only, no verdict. Read-only; one stream call per ride plus 1-4 (one more per id with activity_ids). Fresh vs fatigued power curves: get_fatigue_resistance. Method: intervals://methods/fatigue (get_guide).

Inputs: limit, end_date, athlete_id, start_date, +10 more.

get_nutrition_summaryA
Read-only

Use for food intake, calorie balance and weight trend over a period (default the 28 days ending today; read-only).

Per day: logged kcal, carbohydrates, protein and fat, the device's total and active burn and balance (custom wellness fields, codes configurable) and weight. Per window (default 7/14/28 days): intake totals and means over logged days only, days without logged intake, burn mean, balance total and mean on logged days, weight change and slope in kg per week. A day without logged intake is never 0 kcal; the device burn is an estimate; a calorie balance does not measure fat change. Optionally the Intervals.icu training load per day. Method: intervals://methods/wellness (get_guide).

Inputs: windows, end_date, athlete_id, burn_field, +5 more.

get_pace_curvesA
Read-only

Use for an athlete's best times per distance over one or more periods: PBs, comparing periods, progress in running or swimming.

Returns the best time and pace (min/km; min/100 m for Swim and OpenWaterSwim) per distance for each curve (default the last 90 days) with the activity that set it; optionally gradient-adjusted pace. Distances not on the curve are listed as not available. Read-only, one API call. HR side: get_hr_curves. Method: intervals://methods/comparisons (get_guide).

Inputs: gap, curves, end_date, distances, +3 more.

get_plan_complianceA
Read-only

Use to compare planned workouts with the activities done in a date range (read-only, two API calls).

Planned workouts (calendar WORKOUT events) are linked to activities by the event's paired_activity_id or the activity's paired_event_id; each pair shows planned vs actual duration and load with the deviation in %. An activity counts for one event only. Unlinked past workouts are missed, those of today or later upcoming (athlete's local date). Activities without a planned workout are unplanned; those linked to a workout outside the range are listed apart. Completion = completed / (completed + missed). NOTE events with training availability, allowed sports or a maximum training time are listed too. Method: intervals://methods/summary (get_guide).

Inputs: end_date (required), start_date (required), athlete_id.

get_power_hr_efficiencyA
Read-only

Use to track power-to-heart-rate efficiency (W per bpm at the same power) over weeks.

Puts every WORK interval of at least min_interval_secs with power and HR into the power band of its average power; returns per activity and band the count and time-weighted W, HR and W/bpm, and per band the oldest vs the newest group of activities (each counts once; at least 3 per group, else not reliable) compared with the day-to-day SD. Default the last 90 days of rides, limit 30 (max 60); trends per gear when several power meters are involved; filters for gear, indoor/outdoor and interval start time. Heat, fatigue, cadence and sensors move the ratio: statistics only, no fitness verdict. Read-only; one API call per activity plus 2. Method: intervals://methods/comparisons (get_guide).

Inputs: limit, gear_id, end_date, athlete_id, +9 more.

get_recovery_snapshotA
Read-only

Use for the recovery and readiness context of one day in one call (default today; read-only, numbers only, no readiness verdict).

For the day and days_back days before: native wellness values, CTL/ATL/form/ramp rate, subjective scores, custom wellness fields with a value (e.g. Body Battery from a sync bridge), missing values and the record's update time; recorded SICK/INJURED entries; personal baselines of baseline_metrics (7-day and 42-day mean, median, SD, latest value vs baseline with z-score; small samples flagged); the activities of those days with loads and device fields; the planned events of the day. Today is flagged preliminary and a line (JSON today_completeness) names the usual fields not yet in today's record, grouped by when they usually arrive: not yet available, not normal. Trends: get_wellness_trends. Method: intervals://methods/wellness (get_guide).

Inputs: date_str, days_back, athlete_id, detail_level, +2 more.

get_server_statusA
Read-only

Use to check the connection when tools are missing or fail: server version, enabled permission classes and tool set, registered and hidden tools, whether Intervals.icu answers, and the athlete's custom field and stream counts. The API key is never shown.

Inputs: output_format.

get_sport_settingsA
Read-only

Use for the current thresholds and settings per sport (a group of activity types such as Ride, GravelRide/MountainBikeRide or Run/TrailRun; read-only).

Per sport setting: FTP and indoor FTP, W', Pmax, the latest Intervals.icu eFTP estimate, LTHR and max HR, threshold pace with pace units, load models, default outdoor/indoor gear, warm-up/cool-down times and the power, HR and pace zones with absolute ranges. The thresholds in force for a past activity are in get_activity_details (snapshot stored with the activity). Zones only: get_training_zones; change thresholds: update_sport_settings.

Inputs: refresh, athlete_id, sport_type, output_format.

get_training_loadA
Read-only

Use for acute and chronic training load in detail: acute (default 7 d) and chronic (28 d) Intervals.icu load, acute:chronic ratio (coupled daily means), Foster monotony and strain, deload-like weeks, per sport family with the primary sport, ISO weeks, and CTL/ATL/form/ramp at the end date (read-only).

Rest days count as 0; sessions without a load are counted, not added. Device loads (custom fields such as a Garmin training load) are listed apart on their own scale, never added. With the default end date and nothing recorded today yet, the windows end yesterday. Reference ranges (ACWR 0.8-1.3, monotony > 2.0) are shown with sources as context; small samples are flagged; no verdict. Overview: get_coach_context; planned load: get_load_projection. Method: intervals://methods/load (get_guide).

Inputs: weeks, end_date, acute_days, athlete_id, +3 more.

get_training_planA
Read-only

Use for the season view: the assigned training plan, plan phases, weekly targets, races with priority and events that set the fitness model (read-only).

Reads the training plan assigned to the athlete and the calendar entries of the annual plan: PLAN (phases/blocks), TARGET (weekly load, time or distance targets), RACE_A/B/C, SEASON_START, and set eFTP / set fitness and fatigue / fitness days. Default range: 30 days back to 180 days ahead. Single workouts: get_events.

Inputs: end_date, athlete_id, start_date, output_format.

get_training_summaryA
Read-only

Use for training totals of a period grouped by ISO week, month, sport (activity type), gear or in total, including custom activity fields (read-only).

Per group and in total: sessions, moving/elapsed time, distance, elevation, Intervals.icu load with the power/HR/pace load sums, time-weighted intensity, CTL/ATL/form/ramp at the end of the group's week or month, time in power (sweet spot apart) and HR zones, sport and gear splits, feel and RPE, sessions of 3 h or more, the longest session, trainer sessions. Numeric custom fields are aggregated by units and meaning: additive values summed, device loads summed apart from the Intervals.icu load, estimates as latest value and change, per-activity values as mean/median/range. Missing values are skipped, never counted as 0. Per-week view in one call: get_weekly_summary. Method: intervals://methods/summary (get_guide).

Inputs: start_date (required), end_date, group_by, athlete_id, +4 more.

get_training_zonesA
Read-only

Use for the power, heart rate and pace zones of each sport setting (read-only).

Power zones in % of FTP with watts from the current FTP and the sweet spot range, HR zones in bpm, pace zones in % of threshold speed with the pace from the threshold pace; each zone has its name, bounds and absolute range. Current settings only. Thresholds and other settings: get_sport_settings.

Inputs: refresh, zone_type, athlete_id, sport_type, +1 more.

get_weekly_summaryA
Read-only

Use for a quick per-week overview from Intervals.icu's athlete summary (read-only, one API call).

Per ISO week (from Monday): sessions, moving time, distance and training load, a split per sport category, time in HR zones (non-zero zones only) and CTL/ATL/form/ramp at the end of the week (the latest day with data for the current week). Sessions without HR (e.g. strength) are counted. Rows of other (followed or coached) athletes are ignored. Grouping by month, sport or gear, separate power/HR/pace loads and custom fields: get_training_summary. Method: intervals://methods/summary (get_guide).

Inputs: end_date (required), start_date (required), athlete_id.

get_wellness_dataA
Read-only

Use for the raw daily wellness records of a date range (default the last 30 days; read-only).

Per day as stored: CTL/ATL and eFTP per sport, vitals (weight, resting HR, HRV, SpO2 ...), sleep, subjective scores, nutrition, steps and comments; include_all_fields adds every other field, custom wellness fields labelled with name and units. When the range includes today, a line names the usual fields not yet in today's record, grouped by when they usually arrive: not yet available, not normal. Long ranges are paged by day: a note gives the start_date to continue with. Baselines and trends: get_recovery_snapshot, get_wellness_trends, get_nutrition_summary. Method: intervals://methods/wellness (get_guide).

Inputs: end_date, athlete_id, start_date, include_all_fields.

get_workout_libraryA
Read-only

Use to list the athlete's workout library: folders and plans with their workouts and ids (read-only). One workout in detail: get_library_workout.

Inputs: folder, athlete_id.

list_activity_streamsA
Read-only

Use before get_activity_streams or get_activity_intervals(stream_types=...) to see which data streams one activity has.

Lists the standard streams and the athlete's custom streams present on the activity (e.g. stamina, potential stamina, performance condition, grade adjusted speed, gear selection, battery) with type code, display name, units and description, plus the power fields of the file. include_stats downloads the streams and adds per-stream sample counts and start/end/min/max/mean. Read-only. Method: intervals://methods/activity-data (get_guide).

Inputs: activity_id (required), include_stats.

preview_workoutA
Read-only

Use to show the athlete how a drafted workout will look before writing it: renders the workout document as Intervals.icu workout text with its totals (no API call, nothing written).

Expands repeats, sums planned duration and distance, counts steps with targets and open-ended steps, and shows the text add_or_update_event would send. Full check list: validate_workout.

Inputs: workout_doc (required), moving_time, workout_type, output_format.

update_activityA
Destructive

Use only when the athlete asks to rate, rename or describe an activity: writes RPE, feel, name or description of one activity to Intervals.icu.

Only the given fields are sent (PUT /activity/{id}); every other value stays. name and description REPLACE the current text, so read it first with get_activity_details to extend it; an empty description is ignored, clear_description empties it. At least one field is required; dry_run shows the request. Activities imported from Strava cannot be updated (the API returns an error). Returns the stored values and the activity summary. Notes go to add_activity_message.

Inputs: activity_id (required), rpe, feel, name, +3 more.

update_wellnessA
Destructive

Use only when the athlete asks to record or change subjective wellness scores or the comment of one day.

Writes the wellness record of that day in Intervals.icu (created if missing): only the fields passed are changed; device values (weight, HRV, sleep, resting HR ...) stay untouched. At least one field is required. Scales are integers 1-4 as in the Intervals.icu wellness dialog (labels per parameter). A scale value once set cannot be cleared through the API (null is ignored, 0 rejected): use the web app, so double-check before writing (dry_run shows the request). comments replaces the existing comment: to append, read it with get_wellness_data and send the combined text. Returns the updated record.

Inputs: date (required), mood, injury, stress, +7 more.

validate_workoutA
Read-only

Use before every workout write (add_or_update_event, add_events_bulk, create_library_workout) to check a drafted workout document; read-only, nothing is written.

Checks durations or distances per step, repeat blocks, target units per sport and plausible values, ramps and ranges, warm-up and cool-down, the step sum against moving_time and the sport; with start_date it lists the events already on that day and flags a same-name event as a possible duplicate. Format: intervals://workout-syntax (get_guide). Show the result to the athlete before writing.

Inputs: workout_doc (required), workout_type (required), name, athlete_id, +4 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 59 tools

    Disambiguation3/5

    Several analytics tools overlap in scope (e.g., get_activity_report vs get_activity_details, get_training_summary vs get_weekly_summary, get_durability vs get_power_hr_efficiency), so choosing correctly requires reading the detailed cross-references. The descriptions do help, but the set is not cleanly separated.

    Naming Consistency5/5

    Nearly all tools follow a predictable snake_case verb_noun or verb_topic pattern (get_*, add_*, update_*, compare_*, analyze_*). Minor compound forms like add_or_update_event are still clear and consistent with the overall convention.

    Tool Count1/5

    With 59 tools, the server is far beyond the typical 3-15 scoped set and falls into the extreme-mismatch range of 50+ tools. Even for a broad training platform, many read/analysis variants could be consolidated without losing coverage.

    Completeness4/5

    Core lifecycle coverage is strong across activities, wellness, calendar events, notes, messages, workout library writes, and extensive analysis. However, gaps remain, including the referenced but absent update_sport_settings, no update/delete for library workouts, and read-only-only gear/custom-item administration.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      F
      maintenance
      Read/write MCP server for Intervals.icu — 51 tools spanning activities, streams, wellness, calendar, gear, and sport zones, plus structured workout generation with a built-in syntax reference for cycling, running, and swimming.
      70
      127
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      MCP server for Intervals.icu that enables AI assistants to manage athletic training data, including activities, calendar events, wellness metrics, and workout libraries.
      19
      Apache 2.0
    • A
      license
      B
      quality
      C
      maintenance
      MCP server for local fitness-data extraction and analysis from Garmin Connect, Intervals.icu, and Strava. Provides read-only analytical tools over DuckDB and targeted Strava enrichment.
      35
      164 npm
      1
      AGPL 3.0