Skip to main content
Glama
intervals-icu-mcp

intervals-icu-mcp

by hadidwirsty

Intervals.icu MCP 서버 및 AI 러닝 코치

License: MIT Node.js Version TypeScript Model Context Protocol Tests

Intervals.icu를 위한 공식급 Model Context Protocol (MCP) 서버 및 AI 러닝 코치 인텔리전스 시스템입니다.

AI 어시스턴트(Claude Desktop, Antigravity, Cursor, VS Code Cline / Roo-Code)에 실시간 원격 측정 데이터 읽기, 급성 및 만성 훈련 부하(CTL/ATL/TSB/ACWR) 평가, Jack Daniels VDOT 및 페이스 존 계산, 심박수 드리프트 및 유산소 디커플링 계산, 레이스 시간 예측, 테이퍼링 일정 수립, Intervals.icu 캘린더에 구조화된 워크아웃 게시 기능을 제공합니다.


📑 목차


Related MCP server: intervals.icu-mcp

✨ 주요 기능

  • 🏃 실시간 원격 측정 및 스트림 수집: 완료된 세션에서 와트, 심박수, 케이던스, 속도, 인터벌 스플릿 추출.

  • ⚡ 유산소 디커플링 및 심장 드리프트 엔진: 효율 계수(EF) $H_1$ vs $H_2$를 계산하여 심혈관 드리프트(>5%) 또는 탈수 감지.

  • 🩹 통합 회복 및 준비 상태 점수: TSB, ACWR, 수면 점수, HRV, RHR 스파이크를 결합한 0–100% 복합 점수로 Green/Yellow/Red 실행 신호 제공.

  • 🏆 레이스 시간 예측 및 테이퍼링 플래너: Jack Daniels VDOT 공식 + CTL 피트니스 및 TSB 컨디션 조정 + 2–3주 볼륨 감소 생성기.

  • ⚖️ ACWR 및 주간 부하 예산 관리: 42일 롤링 기준선 기반 안전한 볼륨 증가 상한(롱런 30–35%, 퀄리티 15–20%, 이지 45–55%).

  • 📅 구조화된 워크아웃 빌더: 네이티브 Intervals Text DSL(Warmup, Main Set Nx, Cooldown)을 사용하여 Intervals.icu 캘린더에 워크아웃 게시.


🚀 3분 퀵스타트

1. 사전 요구 사항

  • Node.js: >= 18.0.0

  • 패키지 매니저: pnpm (권장), npm 또는 yarn

  • Intervals.icu 계정 및 API 키

2. 클론 및 빌드

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

⚙️ 설정

Intervals.icu 설정에서 자격 증명을 확인하세요:

  1. 개발자(Developer) 섹션으로 스크롤합니다.

  2. API 키를 복사합니다 (예: your_api_key_here).

  3. **운동선수 ID(Athlete ID)**를 확인합니다 (설정 또는 프로필 URL에서 확인 가능, 예: i12345 또는 self 사용).

환경 변수

변수

필수

설명

INTERVALS_API_KEY

예

개인 Intervals.icu API 키.

INTERVALS_ATHLETE_ID

선택

기본 운동선수 ID (기본값: self). 호출 시 재정의 가능.


🔌 MCP 클라이언트 설정 가이드

1. Claude Desktop

claude_desktop_config.json에 다음을 추가하세요:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %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

Antigravity MCP 설정 또는 .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

Cursor 설정 > 기능 > MCP 서버 또는 .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)

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 워크플로우 및 슬래시 커맨드 디렉토리

이 저장소에는 .agents/workflows/에 11개의 프로덕션 준비 완료 AI 워크플로우가 사전 탑재되어 있으며, 슬래시 커맨드로 실행할 수 있습니다:

슬래시 커맨드

파일

설명 및 사용법

/run-report

run-report.md

와츠/심박수 준수율, 인터벌 분석, 심혈관 드리프트를 분석하는 운동 후 코칭 리포트.

/readiness-check

readiness-check.md

TSB, ACWR, 수면, RHR 기반 일일 회복 및 준비 상태 점수 평가 (0–100% Green/Yellow/Red).

/cardiac-drift

cardiac-drift.md

원격 측정 스트림 분석(심박수 vs 파워/속도)으로 $H_1$ vs $H_2$ 효율 계수(EF) 및 유산소 디커플링 % 계산.

/predict-race

predict-race.md

VDOT 기반 5K, 10K, HM, FM 완주 시간 및 페이스 예측 + CTL/TSB 조정 + 2–3주 테이퍼링 볼륨 일정.

/fitness-status

fitness-status.md

종합 훈련 부하 분석 (CTL 피트니스, ATL 피로도, TSB 컨디션, 램프 레이트 위험, 디로드 감지).

/weekly-budget

weekly-budget.md

42일 롤링 부하/거리 기반 주간 안전 훈련 예산 계산 (롱런 30–35%, 퀄리티 15–20%, 이지 45–55%).

/mesocycle-block

mesocycle-block.md

4주 3:1 메소사이클 계획 (빌드 W1-3 (+5%) 및 계획된 디로드 W4 (-25%)).

/backcast-plan

backcast-plan.md

목표 레이스 데이 A에서 역산하는 백워드 플래닝 매크로사이클 (하프마라톤 13주, 풀마라톤 18주).

/calc-vdot

calc-vdot.md

오프라인 Jack Daniels VDOT 및 5개 페이스 훈련 존 계산기 (이지, 마라톤, 역치, 인터벌, 레페티션).

/check-workout

check-workout.md

Intervals.icu 캘린더에서 예정된 워크아웃 확인.

/create-workout

create-workout.md

Intervals Text DSL을 사용하여 구조화된 러닝/사이클링 워크아웃을 캘린더에 게시.


👤 운동선수 프로필 사용자 지정

AI 어시스턴트에게 정확한 코칭 컨텍스트를 제공하려면 .agents/skills/running-coach-analysis/SKILL.md에서 프로필을 구성하세요:

  1. 섹션 2 (운동선수 프로필): 이름, 나이, 기본 체중, 목표 레이스 목표를 입력합니다.

  2. 섹션 3 (생리학적 기준치): 기본 CP/FTP, LTHR, 최대 심박수, 안정 시 심박수를 제공합니다 (참고: 활성 값은 MCP를 통해 동적으로 자동 동기화됨).

  3. 섹션 4 (주간 구조 및 블루프린트): 주간 훈련 빈도, 선호 워크아웃 세션(예: 역치 이하, VO2Max, 롱런), 특정 파워/페이스 목표를 정의합니다.


💬 예시 채팅 프롬프트

AI 러닝 코치와 대화할 수 있는 예시입니다:

1. 일일 러닝 후 평가

"오늘 아침 운동 기록입니다. 최신 활동에 대해 /run-report를 실행해 주세요. RPE는 6/10이었고, 3번째 인터벌에서 다리가 탄력 있었습니다."

2. 운동 전 준비 상태 확인

"/readiness-check — 오늘 역치 이하 인터벌 세션을 하기에 회복이 충분한가요, 아니면 강도를 존 2로 제한해야 하나요?"

3. 주간 볼륨 배분

"/weekly-budget distance — 이번 주 권장 총 주행 거리와 롱런 상한선은 얼마인가요?"

4. 레이스 데이 예측 및 테이퍼링

"/predict-race — 현재 VDOT은 50이고 목표 하프마라톤 레이스는 2026-10-15입니다. 완주 시간 예측과 2주 테이퍼링 일정을 알려주세요."

5. 캘린더에 워크아웃 일정 등록

"/create-workout — 내일 50분 역치 이하 세션(워밍업 12분, 6x3분 @ CP의 95-98% + 1분 휴식, 쿨다운 6분)을 일정에 등록해 주세요."


🛠️ 전체 MCP 도구 참조

서버는 카테고리별로 20개 이상의 도구를 제공합니다:

🏃 1. 활동 및 스트림

  • get_activities: 날짜 범위 내 활동 조회 (oldest, newest, type).

  • get_activity_details: 활동 ID에 대한 전체 원격 측정, 지표, 운동선수 생리학적 값 조회.

  • get_activity_intervals: 랩 및 작업/휴식 인터벌 분석 추출.

  • get_activity_streams: 원시 시계열 스트림 데이터 접근 (watts, heartrate, cadence, velocity_smooth, altitude).

  • get_activity_messages: 활동 댓글 및 메모 읽기.

  • add_activity_message: 활동에 코칭 피드백 게시.

👤 2. 운동선수 생체 데이터 및 존

  • get_athlete_profile: 운동선수 프로필 조회 (FTP, LTHR, 최대 심박수, 체중, 안정 시 심박수).

  • get_training_zones: 파워, 심박수, 페이스 훈련 존 경계값 접근.

🧮 3. 생리학 및 지구력 인텔리전스 (오프라인)

  • calculate_vdot: 레이스/템포 타임 트라이얼에서 Jack Daniels VDOT 및 VO₂max 계산.

  • calculate_pace_zones: MM:SS/km 단위의 5개 페이스 훈련 존 계산 (이지, 마라톤, 역치, 인터벌, 레페티션).

  • predict_race_time: VDOT 기반 레이스 완주 시간 및 페이스 예측 (5K, 10K, HM, FM 또는 사용자 지정 km) + CTL 피트니스 및 TSB 컨디션 조정.

  • calculate_taper_plan: 레이스 데이 최고 TSB 컨디션을 위한 주간 볼륨 감소 일정 생성 (75% → 50% → 30%).

  • analyze_cardiac_drift: 원시 원격 측정 스트림(heartrateStream, powerOrSpeedStream)에서 효율 계수(EF) 및 유산소 디커플링 % 계산.

  • calculate_readiness_score: TSB, ACWR, 수면, HRV, RHR을 결합한 통합 회복 점수 계산 (0–100%, Green/Yellow/Red).

⚖️ 4. 훈련 부하 및 주기화 (오프라인)

  • analyze_training_load: ACWR(ATL/CTL) 계산, TSB 준비 상태 존 분류, 램프 레이트 부상 위험 평가.

  • calculate_weekly_budget: 42일 롤링 평균 기반 주간 안전 훈련 예산 계산 (총 볼륨, 롱런 30–35%, 퀄리티 15–20%, 이지 45–55%).

📅 5. 캘린더 및 워크아웃 빌더

  • get_events: 날짜 범위 내 캘린더 항목 조회 (계획된 워크아웃, 메모, 레이스).

  • get_event_by_id: ID로 상세 이벤트 데이터 조회.

  • create_running_workout: 구조화된 워크아웃 빌더 — Text DSL을 사용하여 구조화된 워크아웃을 검증하고 Intervals.icu 캘린더에 게시.

  • add_or_update_planned_workout: 계획된 워크아웃 이벤트 생성 또는 업데이트.

  • add_or_update_note: 캘린더 날짜에 텍스트 메모 추가.

  • delete_event: ID로 캘린더 이벤트 삭제.

  • get_workout_library: 워크아웃 템플릿 라이브러리 검색.

  • get_workout_by_id: 워크아웃 템플릿 상세 정보 조회.

🚴 6. 장비 및 파워 커브

  • get_gear_list: 등록된 자전거, 신발, 장비 및 주행 거리 목록 (30분 캐시).

  • get_athlete_power_curves: 파워 지속 시간 커브 조회 (60분 캐시).

💚 7. 웰니스 및 피트니스 시계열

  • get_wellness_data: 일일 웰니스 항목 조회(수면 점수, HRV, 안정 시 심박수, 피로, 근육통, 체중).

  • get_fitness_chart: 시계열 피트니스 데이터 조회(ctl, atl, tsb, rampRate, eftp).


🧪 개발 및 테스트

전체 단위 테스트 스위트 실행:

# Run Vitest unit tests
pnpm test

# Build TypeScript
pnpm run build

# Watch mode during development
pnpm exec vitest

59개 이상의 단위 테스트 포함: HTTP 429 시 API 클라이언트 자동 재시도, LRU TTL 캐싱, Jack Daniels VDOT 수학, 레이스 예측, 심박수 드리프트 분석, 회복 점수, ACWR 분석, 운동 DSL 검증.


📄 라이선스

이 프로젝트는 MIT License © Muhammad Hadid Wiransetyo에 따라 라이선스가 부여됩니다.

Available Tools

19 tools
add_activity_messageAdd Activity MessageA

Tambahkan catatan/komentar baru ke sebuah aktivitas.

Inputs: content (required), activityId (required), apiKey.

add_or_update_noteAdd or Update NoteA

Buat atau update catatan teks biasa (kategori NOTE) di kalender Intervals.icu.

Inputs: name (required), description (required), color, apiKey, +3 more.

add_or_update_planned_workoutAdd or Update Planned WorkoutA

Buat atau update planned workout (event kalender kategori WORKOUT) di Intervals.icu. Kirim event_id untuk update, kosongkan untuk membuat baru. workoutDoc opsional untuk mendefinisikan struktur steps (warmup/interval/cooldown, target power/hr/pace, dll — ikuti format workout builder Intervals.icu).

Inputs: name (required), workoutType (required), apiKey, eventId, +5 more.

create_custom_itemCreate Custom ItemA

Buat custom item baru (chart/field/zones) untuk seorang athlete. Catatan enum penting: field 'type' di dalam content untuk INPUT_FIELD/ACTIVITY_FIELD harus 'numeric' | 'text' | 'select' (bukan 'number'); field 'aggregate' harus MIN|SUM|MAX|AVERAGE (bukan AVG).

Inputs: name (required), itemType (required), apiKey, content, +3 more.

delete_custom_itemDelete Custom ItemB

Hapus satu custom item berdasarkan ID.

Inputs: itemId (required), apiKey, athleteId.

delete_eventDelete EventB

Hapus satu event kalender berdasarkan event ID.

Inputs: eventId (required), apiKey, athleteId.

get_activitiesGet ActivitiesB

Ambil daftar aktivitas latihan seorang athlete dari Intervals.icu dalam rentang tanggal tertentu.

Inputs: limit, apiKey, endDate, athleteId, +1 more.

get_activity_detailsGet Activity DetailsB

Ambil detail lengkap satu aktivitas berdasarkan activity ID.

Inputs: activityId (required), apiKey.

get_activity_intervalsGet Activity IntervalsA

Ambil data interval/lap (power, HR, pace per segmen) dari satu aktivitas.

Inputs: activityId (required), apiKey.

get_activity_messagesGet Activity MessagesB

Ambil catatan/komentar (messages) pada satu aktivitas.

Inputs: activityId (required), apiKey.

get_activity_streamsGet Activity StreamsA

Ambil data time-series (streams) dari satu aktivitas, misalnya power, heart rate, cadence, altitude, distance, velocity.

Inputs: activityId (required), apiKey, streamTypes.

get_athlete_power_curvesGet Athlete Power CurvesA

Ambil power curve (best power per durasi, dalam watt) seorang athlete untuk musim ini/lalu, dan/atau rentang tanggal custom.

Inputs: apiKey, endDate, athleteId, durations, +5 more.

get_custom_item_by_idGet Custom Item By IDA

Ambil detail satu custom item berdasarkan ID.

Inputs: itemId (required), apiKey, athleteId.

get_custom_itemsGet Custom ItemsA

Ambil daftar custom item (custom chart, field, zones, dll) milik seorang athlete.

Inputs: apiKey, athleteId.

get_event_by_idGet Event By IDB

Ambil detail satu event kalender berdasarkan event ID.

Inputs: eventId (required), apiKey, athleteId.

get_eventsGet EventsA

Ambil daftar event kalender (planned workout, race, note) dalam rentang tanggal.

Inputs: apiKey, endDate, athleteId, startDate.

get_gear_listGet Gear ListB

Ambil katalog gear (sepeda, sepatu, dll) beserta statistik dasarnya untuk seorang athlete.

Inputs: apiKey, athleteId.

get_wellness_dataGet Wellness DataA

Ambil data wellness harian athlete (training metrics, HRV, resting HR, sleep, subjective scores, dll) dalam rentang tanggal tertentu.

Inputs: apiKey, endDate, athleteId, startDate.

update_custom_itemUpdate Custom ItemA

Update custom item yang sudah ada. Hanya field yang diisi yang akan dikirim.

Inputs: itemId (required), name, apiKey, content, +4 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 19 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action. Activity-related tools are separated by data granularity (list, details, intervals, streams, messages), and event/custom item tools follow clear CRUD patterns. No two tools appear to serve the same purpose.

    Naming Consistency5/5

    All tools use a consistent verb_noun pattern in snake_case. Retrieval uses get_, creation uses add_/create_, updates use update_/add_or_update_, and deletion uses delete_. Minor variation like add_or_update_ is predictable.

    Tool Count4/5

    At 19 tools, this is above the ideal 3-15 range but appropriate for the broad scope covering activities, events, wellness, gear, power curves, and custom items. The tools are grouped by domain and each is justified; still, a few could be consolidated, so not a perfect 5.

    Completeness4/5

    Core workflows are well covered: activities have read and message addition, events have full CRUD, and custom items have full CRUD. Gaps include no activity update/delete, no gear management, and no wellness update, but these may be outside the API's intended scope or rare needs.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    • Adaptive running coach MCP server: training data, plans, and recovery for AI assistants.

      https://api.coachicarus.com/mcp
    • Intervals.icu MCP server for ChatGPT, Claude and any AI agent: list activities, get activity with intervals, list wellness, list calendar events, create planned workout, update planned workout, delete calendar event and log daily wellness in your own Intervals.icu account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Intervals.icu yourself; Cotlet does not store your password and you need no Intervals.icu API key. About the official Intervals.icu API: Yes, Intervals.icu has a public REST API (checked 6 Nov 2026). You generate a personal API key under Developer Settings for your own data, and apps for many users use OAuth. Setup and FAQ: https://cotlet.dev/integrations/intervals-icu-api-mcp-server

    • Connect Intervals.icu to Claude and ChatGPT: read training, plan workouts. Training never stored.

      https://thresholdlink.app/mcp
    • tri-train is a training platform for triathletes that syncs activities from Strava and Garmin and exposes them to Claude through a remote MCP server. Ask Claude how your last block went, why your run pace dropped, or whether you are fresh enough for Sunday's race, and it answers from your real data: activities with laps and grade-adjusted pace, weekly load and the performance management chart (CTL/ATL/TSB), sleep, HRV and resting heart rate, and your race calendar with predictions. Claude can also act: create and adjust planned workouts with structured intervals, push them to your Garmin watch, add races and write notes. Every change is journaled and can be undone. Read and write access are separate OAuth scopes, and the server enforces them on every call. Built and hosted in Switzerland by a triathlete; data stays on our own servers (Swiss revDSG / GDPR).

      https://tri-train.com/api/mcp

    Related MCP Servers