Skip to main content
Glama
Intervals.icu MCP Server

Intervals.icu MCP Server

by jiaweitao001

Intervals.icu MCP Server

License: MIT Node.js Version

An MCP (Model Context Protocol) server that allows AI assistants to access and analyze your Intervals.icu training data.

让 AI 直接访问您的 Intervals.icu 运动数据进行分析的 MCP 服务器。

Features / 功能特性

📊 Activity Data / 活动数据

  • get_activities - List training activities within a date range

  • get_activities_with_details - List activities within a date range (includes richer fields; better for Strava-synced activities)

  • get_recent_activities_with_details - Get the most recent N activities (sorted by start_date_local desc; avoids ordering ambiguity)

  • get_activity_detail - Get detailed information for a single activity

  • get_activity_intervals - Get interval data for an activity

  • get_activity_power_curve - Get power curve for an activity

  • get_activity_streams - Get detailed data streams (HR, power, pace, etc.)

  • search_activities - Search activities by name or tag

💪 Performance Analysis / 体能分析

  • get_power_curves - Get power curves (MMP) showing best power for various durations

  • get_pace_curves - Get pace curves showing best pace for various distances

  • get_hr_curves - Get heart rate curves

  • get_power_hr_curve - Get power vs HR curve for aerobic efficiency analysis

🏃 Health & Training / 健康与训练

  • get_athlete_profile - Get athlete basic information

  • get_wellness - Get wellness data (weight, HRV, sleep, fatigue, etc.)

  • get_wellness_for_date - Get wellness data for a specific date

  • get_athlete_summary - Get training summary (CTL/ATL/Form)

  • get_events - Get planned workouts and events

  • get_gear - Get equipment information

Related MCP server: intervals.mcp

Installation / 安装

1. Clone and Build / 克隆并构建

git clone https://github.com/jiaweitao001/intervals-icu-mcp.git
cd intervals-icu-mcp
npm install
npm run build

2. Get Intervals.icu API Credentials / 获取 API 凭证

  1. Log in to Intervals.icu

  2. Go to Settings

  3. Find your API Key in the API section

  4. Your Athlete ID can be found in your profile URL (e.g., i12345)

Usage / 使用方式

With Claude Desktop / 与 Claude Desktop 集成

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "intervals-icu": {
      "command": "node",
      "args": ["/path/to/intervals-icu-mcp/dist/index.js"],
      "env": {
        "INTERVALS_API_KEY": "your_api_key_here",
        "INTERVALS_ATHLETE_ID": "i12345"
      }
    }
  }
}

With VS Code / 与 VS Code 集成

Create .vscode/mcp.json in your workspace:

{
  "servers": {
    "intervals-icu": {
      "command": "node",
      "args": ["${workspaceFolder}/dist/index.js"],
      "env": {
        "INTERVALS_API_KEY": "your_api_key_here",
        "INTERVALS_ATHLETE_ID": "your_athlete_id_here"
      }
    }
  }
}

Example Prompts / 使用示例

After configuration, you can ask AI to:

Training Analysis / 训练分析

  • "Analyze my training volume over the past 30 days"

  • "Show my cycling activities from last week"

  • "Fetch my most recent 5 rides (with details)"

  • "What's my current training load?"

Tip: For "recent N" queries, prefer get_recent_activities_with_details. It intentionally fetches a wider time window and then sorts by start_date_local before taking the top N, so the result is deterministic even if the upstream API response order changes.

Performance Assessment / 体能评估

  • "Show my power curve changes over the past year"

  • "What's my current FTP?"

  • "Analyze my aerobic efficiency trend"

Health Monitoring / 健康监测

  • "Show my recent HRV data"

  • "What's my weight trend?"

  • "Display my fatigue index"

Development / 开发

# Development mode
npm run dev

# Build
npm run build

# Watch mode
npm run watch

API Documentation / API 文档

This project is built on the Intervals.icu API.

License / 许可证

MIT License - see LICENSE for details.

Contributing / 贡献

Issues and Pull Requests are welcome!

Available Tools

20 tools
check_activity_sourceB

检查活动的数据来源,判断是否来自 Strava(受 API 限制)

Inputs: activity_id (required).

get_activitiesB

获取指定日期范围内的所有活动(训练记录)列表。返回活动的基本信息如类型、距离、时间、心率、功率等

Inputs: oldest (required), newest.

get_activities_with_detailsA

获取活动列表(包含完整数据)。此方法可以绕过 Strava 数据限制,获取活动的名称、距离、时间、训练负荷等详细信息。推荐使用此方法代替 get_activities。

Inputs: oldest (required), type, limit, newest.

get_activity_detailB

获取单个活动的详细信息,包括完整的统计数据

Inputs: activity_id (required).

get_activity_intervalsB

获取活动的区间数据,包括每个间歇段的详细统计

Inputs: activity_id (required).

get_activity_power_curveC

获取活动的功率曲线数据,显示不同时间段的最大功率输出

Inputs: activity_id (required).

get_activity_streamsB

获取活动的详细数据流,如心率、功率、速度、海拔等随时间变化的数据

Inputs: activity_id (required), types.

get_athlete_profileB

获取运动员的基本信息,包括姓名、体重、时区等

Inputs: no named parameters.

get_athlete_summaryB

获取运动员训练摘要,包括总训练量、体能(CTL)、疲劳(ATL)、状态(Form)等

Inputs: end, start.

get_eventsB

获取日程事件,包括计划的训练、比赛、休息日等

Inputs: newest, oldest.

get_gearB

获取运动员的装备信息,如自行车、跑鞋等

Inputs: no named parameters.

get_hr_curvesC

获取运动员的心率曲线,显示不同时间段的最高心率表现

Inputs: type, curves.

get_max_activity_dataC

获取单个活动的最大可用数据。对于 Strava 同步的活动,会尝试多种方法获取尽可能多的信息,并提供解决方案说明。

Inputs: activity_id (required).

get_pace_curvesB

获取运动员的配速曲线,显示不同距离的最佳配速表现(适用于跑步/游泳)

Inputs: type, curves.

get_power_curvesC

获取运动员的功率曲线(MMP曲线),显示不同时间段的最佳功率表现

Inputs: type, curves.

get_power_hr_curveB

获取功率与心率关系曲线,用于分析有氧效率

Inputs: end (required), start (required).

get_recent_activities_with_detailsA

获取最近 N 次活动列表(包含基本详情,按 start_date_local 倒序排序)。内部会用 lookback_days 扩大窗口后再截取,避免“最近N次取错”。

Inputs: n, type, newest, lookback_days.

get_wellnessC

获取健康数据记录,包括体重、静息心率、HRV、睡眠、疲劳度、压力等

Inputs: newest, oldest.

get_wellness_for_dateC

获取特定日期的健康数据

Inputs: date (required).

search_activitiesC

根据名称或标签搜索活动

Inputs: query (required), limit.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 20 tools

    Disambiguation2/5

    The activity-retrieval cluster (get_activities, get_activities_with_details, get_recent_activities_with_details, get_activity_detail, get_max_activity_data) has heavily overlapping surfaces, and the descriptions themselves admit it — one says it is 'recommended instead of get_activities' and another 'tries multiple methods' to work around Strava limits. The curve tools (get_power_curves vs get_activity_power_curve, get_pace_curves vs get_hr_curves) are distinguishable once you read carefully, but choosing among the five activity tools requires guesswork.

    Naming Consistency4/5

    Nearly every tool follows a snake_case get_<resource> convention, with only search_activities and check_activity_source deviating in verb (still snake_case and readable). Names are verbose but predictable; the only real inconsistency is the suffix style like '_with_details' / '_for_date' / '_curves' rather than a unified qualifier scheme.

    Tool Count3/5

    20 tools is at the heavy end for what is essentially a read-only analytics surface, and the count is inflated by the redundant activity-fetching variants that could collapse into one parameterized tool. The remaining curve, wellness, event and gear tools each earn their place.

    Completeness3/5

    Read coverage of the Intervals.icu domain is broad (activities, streams, intervals, curves, wellness, events, gear, athlete profile), but the surface is entirely read-only: no creating/updating calendar events or planned workouts, no writing wellness entries, no uploading or deleting activities. An agent can analyze but cannot act, which leaves notable lifecycle gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with Intervals.icu fitness tracking and wellness data, allowing users to fetch, filter, and group activities or health metrics. It provides structured summaries of workouts and physical well-being through natural language queries.
      4
      -
    • F
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to access and analyze intervals.icu training data including activities, fitness metrics (CTL/ATL/TSB), wellness stats, and calendar events. Supports natural language querying of athletic performance for training insights and workout planning.
      6
      -
    • A
      license
      A
      quality
      D
      maintenance
      Provides AI assistants with read-only access to an athlete's Intervals.icu training data, including activities, wellness metrics, zones, and planned events, for use with MCP clients like ChatGPT and Claude.
      15
      MIT