intervals.icu-mcp
MCP server for Intervals.icu that enables AI assistants to manage athletic training data, including activities, calendar events, wellness metrics, and workout libraries.
README
Intervals.icu MCP Server
Model Context Protocol (MCP) server for Intervals.icu, providing athletic training analysis, activity management, calendar event planning, wellness tracking, and workout library integration to AI assistants like Claude Desktop, Cursor, and IBM ContextForge.
🏆 Tool Definition Quality Score (TDQS)
This server is audited against the Tool Definition Quality Score (TDQS) framework to guarantee optimal function calling, type safety, and runtime safety for LLMs:
- Score:
4.60 / 5.00(Tier A+) - Behavioral Annotations (
ToolAnnotations): 100% of tools specifyreadOnlyHint,destructiveHint, andidempotentHintmetadata. - Parameter Descriptions: 100% of tool parameters use explicit Pydantic
Annotated[T, Field(description=...)]metadata. - Operational Guidelines: Standardized docstrings detailing explicit "Use when..." context across all 19 tools.
Features
- Athlete Profile: Fetch FTP, LTHR, max HR, weight, and training zone settings.
- Activities: Search, view detailed metrics, update activity names/types, delete activities, and comment on activities.
- Calendar & Events: Manage planned workouts, races, and note events on your training calendar.
- Wellness Tracking: Log and retrieve daily wellness metrics (HRV, resting HR, weight, sleep, readiness, fatigue, mood).
- Workout Library: Browse workout folders and structured training library workouts.
- Semantic Tool Routing: Optional embedding-based tool discovery using
fastembedfor minimal context overhead. - ContextForge Gateway Support: Built-in support for IBM ContextForge Gateway SSE transport.
Installation
Local Editable Install
Clone the repository and install in editable mode:
git clone https://github.com/jelmervdm/intervals.icu-mcp.git
cd intervals.icu-mcp
pip install -e ".[dev,router]"
Container Deployment (Podman / Docker)
Pull pre-built image or build locally:
podman pull ghcr.io/jelmervdm/intervals.icu-mcp:latest
Configuration
Set the following environment variables:
| Variable | Description | Default |
|---|---|---|
INTERVALS_API_KEY |
Your Intervals.icu API key (Required) | - |
INTERVALS_ATHLETE_ID |
Athlete ID | 0 (authenticated user) |
INTERVALS_BASE_URL |
Intervals.icu API base URL | https://intervals.icu/api/v1 |
TOOL_ROUTING |
Enable fastembed semantic tool discovery | false |
ENABLE_CONTEXTFORGE_GATEWAY |
Enable IBM ContextForge SSE gateway on port 8000 | false |
Obtaining your API Key
- Log into your account at Intervals.icu.
- Go to Settings -> API Access.
- Copy your API Key.
Usage with VS Code, Antigravity IDE & Claude Desktop
Add to your .vscode/mcp.json or MCP configuration file ("servers" for VS Code / Antigravity IDE, or "mcpServers" for Claude Desktop):
Option 1: Docker / Podman
Podman is fully supported on Fedora/RHEL as a rootless drop-in replacement for Docker:
{
"servers": {
"intervals": {
"command": "podman",
"args": [
"run", "-i", "--rm",
"-e", "INTERVALS_API_KEY",
"-e", "INTERVALS_ATHLETE_ID",
"ghcr.io/jelmervdm/intervals.icu-mcp:latest"
],
"env": {
"INTERVALS_API_KEY": "your_api_key_here",
"INTERVALS_ATHLETE_ID": "0"
}
}
}
}
Tip for Docker vs Podman: Replace
"command": "podman"with"command": "docker"if using standard Docker orpodman-docker. Always use-i(interactive stdin) and never-t(TTY) to avoid formatting corruption over stdio.
Option 2: Local Python Execution (without PyPI)
Via uv (local workspace directory):
{
"servers": {
"intervals": {
"command": "uv",
"args": ["--directory", "/path/to/intervals.icu-mcp", "run", "intervals-icu-mcp-server"],
"env": {
"INTERVALS_API_KEY": "your_api_key_here",
"INTERVALS_ATHLETE_ID": "0"
}
}
}
}
Via python (editable install pip install -e .):
{
"mcpServers": {
"intervals": {
"command": "python",
"args": ["-m", "intervals_mcp.server"],
"env": {
"INTERVALS_API_KEY": "your_api_key_here",
"INTERVALS_ATHLETE_ID": "0"
}
}
}
}
Via uvx directly from GitHub repository:
{
"mcpServers": {
"intervals": {
"command": "uvx",
"args": ["--from", "git+https://github.com/jelmervdm/intervals.icu-mcp.git", "intervals-icu-mcp-server"],
"env": {
"INTERVALS_API_KEY": "your_api_key_here",
"INTERVALS_ATHLETE_ID": "0"
}
}
}
}
Available Tools
Athlete Tools
get_athlete_profile(athlete_id="0"): Retrieve athlete profile, FTP, zones, and settings.
Activity Tools
list_activities(oldest, newest, athlete_id="0"): List activities in a date range (YYYY-MM-DD).get_activity(activity_id): Retrieve detailed metrics for a specific activity.update_activity(activity_id, name, description, type, gear): Update activity details.delete_activity(activity_id): Delete an activity.list_activity_messages(activity_id): Retrieve activity comments/messages.add_activity_message(activity_id, text): Post a comment/note to an activity.
Calendar & Event Tools
list_events(oldest, newest, athlete_id="0"): List calendar events and planned workouts.get_event(event_id, athlete_id="0"): Fetch details of a planned workout or event.create_event(start_date_local, name, description, type, category, athlete_id="0"): Plan a workout or event.update_event(event_id, start_date_local, name, description, athlete_id="0"): Update a planned event.delete_event(event_id, athlete_id="0"): Delete a calendar event.
Wellness Tools
list_wellness(oldest, newest, athlete_id="0"): List daily wellness entries.get_wellness(date, athlete_id="0"): Fetch wellness record for a date (YYYY-MM-DD).update_wellness(date, weight, resting_hr, hrv, sleep_secs, readiness, fatigue, mood, comments, athlete_id="0"): Update wellness metrics.
Workout Library Tools
list_workout_folders(athlete_id="0"): List folders in the workout library.list_workouts(folder_id, athlete_id="0"): List structured library workouts.
AI Coaching Skills
For AI agents acting as endurance coaches, this MCP server pairs directly with the Athletic Performance Coaching Skills repository.
While intervals.icu-mcp provides data access (activity streams, daily wellness, calendar planning, and workout library management), jelmervdm/skills provides physiological rules, workout analysis workflows, and evidence-based training prescription guardrails for AI assistants.
Available Skills in jelmervdm/skills
- Cycling: Coggan power/HR zones, aerobic decoupling ($P\text{:}HR$), interval compliance scoring, periodization, and race pacing.
- Running: Jack Daniels VDOT pacing formulas, cadence dynamics, Grade-Adjusted Pace (GAP), rTSS, and race strategies.
- Swimming: Critical Swim Speed (CSS), SWOLF stroke efficiency, send-off clocks, and open-water drafting.
- Triathlon: Multi-sport stress balancing ($\text{TSS} + \text{rTSS} + \text{sTSS}$), brick workout design, and T1/T2 transition execution.
- Ironman: Long-course 70.3/140.6 pacing budgets, high-carb gut training ($80\text{--}120\text{g/hr}$), special needs strategy, and 21-day tapers.
- Cross-Country Skiing: Skate & Classic subtechnique kinematics (V1/V2, Diagonal, Double Poling), dryland roller skiing, and marathon ski pacing.
- Weight Training: RIR/RPE autoregulation, strength/hypertrophy mesocycles, and concurrent endurance training integration.
Development
git clone https://github.com/jelmervdm/intervals.icu-mcp.git
cd intervals.icu-mcp
pip install -e ".[dev,router]"
pytest tests/ -v
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。