intervals-icu-mcp
This server provides an MCP interface to the Intervals.icu API, enabling AI assistants to read and manage endurance training data, analyze performance metrics, compute training loads, and create structured workouts.
Activity & Workout Management: Fetch activity history, detailed telemetry, intervals, raw streams (watts, HR, cadence, etc.), and messages. Add comments or coaching notes.
Athlete Profile & Zones: Retrieve biometrics (FTP, LTHR, Max HR, weight, resting HR) and training zones for power, heart rate, and pace.
Physiology Calculators & Analytics: Compute Jack Daniels VDOT and VOโmax estimates, generate running pace zones, analyze training load (ACWR, TSB Readiness, Ramp Rate Risk), and calculate safe weekly training budgets.
Calendar & Workout Planning: List, create, update, and delete calendar events (planned workouts, races, notes). Build structured workouts with steps (warmup, intervals, cooldown) and manage notes.
Workout Library: Search and retrieve workout templates.
Gear & Performance: List registered gear (bikes, shoes) with mileage, and fetch power duration curves.
Wellness & Fitness Tracking: Retrieve daily wellness metrics (HRV, sleep, fatigue, soreness, weight) and time-series fitness data (CTL, ATL, TSB, ramp rate, eFTP).
Custom Items: Create, read, update, and delete custom items such as charts, fields, zones, and panels.
Flexibility: All tools support per-call API key and athlete ID overrides, and many support date ranges and filters.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@intervals-icu-mcpWhat's my training load and sleep score for the last 7 days?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Intervals.icu MCP Server & AI Running Coach
An official-grade Model Context Protocol (MCP) Server and AI Running Coach Intelligence System for Intervals.icu.
Empower your AI assistants (Claude Desktop, Antigravity, Cursor, VS Code Cline / Roo-Code) to read real-time telemetry, evaluate acute & chronic training load (CTL/ATL/TSB/ACWR), compute Jack Daniels VDOT & pace zones, calculate cardiac drift & aerobic decoupling, predict race times, schedule tapering, and publish structured workouts directly to your Intervals.icu calendar.
๐ Table of Contents
Related MCP server: Intervals.icu MCP Server
โจ Key Capabilities
๐ Real-time Telemetry & Stream Ingestion: Extract watts, heart rate, cadence, velocity, and interval splits from completed sessions.
โก Aerobic Decoupling & Cardiac Drift Engine: Compute Efficiency Factor (EF) $H_1$ vs $H_2$ to detect cardiovascular drift (>5%) or dehydration.
๐ฉน Unified Recovery & Readiness Scoring: 0โ100% composite score combining TSB, ACWR, Sleep Score, HRV, and RHR Spike into Green/Yellow/Red action signals.
๐ Race Time Predictor & Tapering Planner: Jack Daniels VDOT formula + CTL fitness and TSB freshness adjustments + 2โ3 week volume reduction generator.
โ๏ธ ACWR & Weekly Load Budgeting: Safe volume progression caps (Long Run 30โ35%, Quality 15โ20%, Easy 45โ55%) based on 42-day rolling baseline.
๐ Structured Workout Builder: Publish workouts to the Intervals.icu calendar using native Intervals Text DSL (
Warmup,Main Set Nx,Cooldown).
๐ 3-Minute Quickstart
1. Prerequisites
Node.js:
>= 18.0.0Package Manager:
pnpm(recommended),npm, oryarnIntervals.icu Account & API Key
2. Clone & Build
git clone https://github.com/hadidwirsty/intervals-icu-mcp.git
cd intervals-icu-mcp
pnpm install
pnpm run buildโ๏ธ Configuration
Retrieve your credentials from Intervals.icu Settings:
Scroll down to the Developer section.
Copy your API Key (e.g.
your_api_key_here).Note your Athlete ID (found in settings or profile URL, e.g.
i12345or useself).
Environment Variables
Variable | Required | Description |
| Yes | Your personal Intervals.icu API Key. |
| Optional | Default Athlete ID (default: |
๐ MCP Client Setup Guides
1. Claude Desktop
Add the following to your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"intervals-icu": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/intervals-icu-mcp/dist/index.js"],
"env": {
"INTERVALS_API_KEY": "YOUR_API_KEY_HERE",
"INTERVALS_ATHLETE_ID": "self"
}
}
}
}2. Antigravity
In your Antigravity MCP settings or .gemini/config/mcp.json:
{
"mcpServers": {
"intervals-icu": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/intervals-icu-mcp/dist/index.js"],
"env": {
"INTERVALS_API_KEY": "YOUR_API_KEY_HERE",
"INTERVALS_ATHLETE_ID": "self"
}
}
}
}3. Cursor
In Cursor Settings > Features > MCP Servers or .cursor/mcp.json:
{
"mcpServers": {
"intervals-icu": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/intervals-icu-mcp/dist/index.js"],
"env": {
"INTERVALS_API_KEY": "YOUR_API_KEY_HERE",
"INTERVALS_ATHLETE_ID": "self"
}
}
}
}4. VS Code (Cline / Roo-Code)
In cline_mcp_settings.json:
{
"mcpServers": {
"intervals-icu": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/intervals-icu-mcp/dist/index.js"],
"env": {
"INTERVALS_API_KEY": "YOUR_API_KEY_HERE",
"INTERVALS_ATHLETE_ID": "self"
},
"disabled": false,
"autoApprove": []
}
}
}๐ค AI Workflows & Slash Commands Directory
This repository comes pre-loaded with 11 Production-Ready AI Workflows in .agents/workflows/ that you can trigger using slash commands:
Slash Command | File | Description & Usage |
| Post-workout coaching report analyzing watts/HR adherence, interval breakdown, and cardiovascular drift. | |
| Daily recovery & readiness score evaluation (0โ100% Green/Yellow/Red) based on TSB, ACWR, Sleep, and RHR. | |
| Telemetry stream analysis (HR vs Power/Speed) computing $H_1$ vs $H_2$ Efficiency Factor (EF) and Aerobic Decoupling %. | |
| Estimate 5K, 10K, HM, FM finish times & pace via VDOT with CTL/TSB adjustments + 2โ3 week tapering volume schedule. | |
| Complete training load analysis (CTL Fitness, ATL Fatigue, TSB Form, Ramp Rate Risk, and Deload detection). | |
| Compute weekly safe training budget (Long Run 30โ35%, Quality 15โ20%, Easy 45โ55%) based on 42d rolling load/km. | |
| 4-Week 3:1 Mesocycle planning (Build W1-3 (+5%) and Planned Deload W4 (-25%)). | |
| Backward planning macrocycle from Target Race Day A (13 Weeks HM, 18 Weeks FM). | |
| Offline Jack Daniels VDOT and 5 pace training zones calculator (Easy, Marathon, Threshold, Interval, Repetition). | |
| View upcoming scheduled workouts from your Intervals.icu calendar. | |
| Publish structured running/cycling workouts to your calendar using Intervals Text DSL. |
๐ค Customizing Your Athlete Profile
To give your AI Assistant accurate coaching context, configure your profile in .agents/skills/running-coach-analysis/SKILL.md:
Section 2 (Athlete Profile): Fill in your name, age, fallback weight, and target race goals.
Section 3 (Physiological Baseline): Provide fallback CP/FTP, LTHR, Max HR, and Resting HR (note: active values are automatically synced dynamically via MCP).
Section 4 (Weekly Structure & Blueprints): Define your weekly training frequency, preferred workout sessions (e.g. Subthreshold, VO2Max, Long Run), and specific power/pace targets.
๐ฌ Example Chat Prompts
Here are examples of how you can chat with your AI Running Coach:
1. Daily Post-Run Evaluation
"Here is my workout from this morning. Please run
/run-reporton my latest activity. RPE was 6/10, legs felt springy during the 3rd interval."
2. Pre-Workout Readiness Check
"
/readiness-checkโ Am I well-recovered for today's Subthreshold interval session, or should I cap intensity to Zone 2?"
3. Weekly Volume Allocation
"
/weekly-budget distanceโ What is my recommended total mileage and Long Run ceiling for this week?"
4. Race Day Prediction & Tapering
"
/predict-raceโ My active VDOT is 50 and my target Half Marathon race is on 2026-10-15. Give me finish time prediction and 2-week tapering schedule."
5. Schedule a Workout to Calendar
"
/create-workoutโ Schedule a 50-minute Subthreshold session (Warmup 12m, 6x3m @ 95-98% CP with 1m rest, Cooldown 6m) for tomorrow."
๐ ๏ธ Full MCP Tools Reference
The server exposes 20+ tools grouped by category:
๐ 1. Activities & Streams
get_activities: Fetch activities within a date range (oldest,newest,type).get_activity_details: Retrieve full telemetry, metrics, and athlete physiological values for an activity ID.get_activity_intervals: Extract lap and work/rest interval breakdowns.get_activity_streams: Access raw time-series stream data (watts,heartrate,cadence,velocity_smooth,altitude).get_activity_messages: Read activity comments and notes.add_activity_message: Post coaching feedback to an activity.
๐ค 2. Athlete Biometrics & Zones
get_athlete_profile: Retrieve athlete profile (FTP, LTHR, Max HR, weight, resting HR).get_training_zones: Access power, heart rate, and pace training zone boundaries.
๐งฎ 3. Physiology & Endurance Intelligence (Offline)
calculate_vdot: Compute Jack Daniels VDOT & VOโmax from race/tempo time trial.calculate_pace_zones: Compute 5 pace training zones (Easy, Marathon, Threshold, Interval, Repetition) inMM:SS/km.predict_race_time: Predict race finish time and pace (5K, 10K, HM, FM, or custom km) from VDOT with CTL fitness and TSB freshness adjustments.calculate_taper_plan: Generate weekly volume reduction schedule (75% โ 50% โ 30%) for peak TSB freshness on race day.analyze_cardiac_drift: Compute Efficiency Factor (EF) and Aerobic Decoupling % from raw telemetry streams (heartrateStream,powerOrSpeedStream).calculate_readiness_score: Compute unified recovery score (0โ100%, Green/Yellow/Red) combining TSB, ACWR, Sleep, HRV, and RHR.
โ๏ธ 4. Training Load & Periodization (Offline)
analyze_training_load: Compute ACWR (ATL/CTL), classify TSB readiness zones, and evaluate ramp rate injury risk.calculate_weekly_budget: Calculate safe weekly training budget (Total Volume, Long Run 30โ35%, Quality 15โ20%, Easy 45โ55%) based on 42d rolling average.
๐ 5. Calendar & Workout Builder
get_events: Retrieve calendar items (planned workouts, notes, races) in date range.get_event_by_id: Get detailed event data by ID.create_running_workout: Structured Workout Builder โ Validate and publish structured workouts to Intervals.icu calendar using Text DSL.add_or_update_planned_workout: Create or update planned workout events.add_or_update_note: Add text notes to calendar dates.delete_event: Remove calendar events by ID.get_workout_library: Search workout template library.get_workout_by_id: Get workout template details.
๐ด 6. Gear & Power Curves
get_gear_list: List registered bikes, shoes, and equipment with mileage (cached 30m).get_athlete_power_curves: Fetch power duration curves (cached 60m).
๐ 7. Wellness & Fitness Time-Series
get_wellness_data: Retrieve daily wellness entries (sleep score, HRV, resting HR, fatigue, soreness, weight).get_fitness_chart: Retrieve time-series fitness data (ctl,atl,tsb,rampRate,eftp).
๐งช Development & Testing
Run the full unit test suite:
# Run Vitest unit tests
pnpm test
# Build TypeScript
pnpm run build
# Watch mode during development
pnpm exec vitestIncludes 59+ unit tests covering API client auto-retry on HTTP 429, LRU TTL caching, Jack Daniels VDOT math, race prediction, cardiac drift analysis, recovery scoring, ACWR analytics, and workout DSL validation.
๐ License
This project is licensed under the MIT License ยฉ Muhammad Hadid Wiransetyo.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceA Model Context Protocol (MCP) server for Intervals.icu integration. Access your training data, wellness metrics, and performance analysis through Claude and other LLMs.4835MIT
- AlicenseNot gradedqualityDmaintenanceIntegrates Intervals.icu training data, wellness records, workouts, and calendar events with AI assistants through MCP tools.181MIT
- AlicenseAqualityAmaintenanceMCP server for Intervals.icu that enables AI assistants to manage athletic training data, including activities, calendar events, wellness metrics, and workout libraries.19Apache 2.0
- AlicenseNot gradedqualityBmaintenanceMCP server that connects Claude and ChatGPT to the Intervals.icu API, enabling retrieval and management of activities, events, wellness data, power curves, and custom items.GPL 3.0
Related MCP Connectors
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors โ no code.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hadidwirsty/intervals-icu-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server