intervals-mcp
Intervals MCP
AI 어시스턴트가 운동선수의 Intervals.icu 훈련 데이터에 접근할 수 있게 해주는 자체 호스팅 방식의 읽기 전용 MCP 서버입니다.
스포츠 워치, 자전거 컴퓨터, 트레이너, Strava 또는 기타 지원되는 소스를 Intervals.icu에 연결하세요. 그러면 Intervals MCP가 정규화된 훈련 데이터를 ChatGPT, Claude, Claude Code, Cursor, VS Code 및 기타 MCP 클라이언트에 제공합니다. 현재 지원되는 통합 목록은 Intervals.icu를 참조하세요. 통합 목록은 계속 추가되고 있습니다.
이 서버는 GET 요청만 수행합니다. 운동선수의 Intervals.icu 계정에서 어떤 것도 생성, 수정 또는 삭제할 수 없습니다.
어시스턴트가 읽을 수 있는 항목
운동선수 프로필, 시간대, 운동 설정, 존(FTP, LTHR, 최대 심박수).
활동, 상세 기록, 랩, 인터벌, 다운샘플링된 스트림.
웰니스, 피트니스, 피로도, HRV, 수면, 기분, 체중(사용 가능한 경우).
계획된 이벤트, 최고 기록 곡선, 장비, 운동 라이브러리.
읽기 전용 원시 도구를 통한 추가 Intervals.icu v1
GET엔드포인트.
대용량 응답은 모델에 도달하기 전에 압축됩니다. 빈 필드는 생략되고, 스트림은 다운샘플링되며, 요약은 전체 데이터 시리즈를 사용합니다.
Related MCP server: intervals.mcp
빠른 시작
공개 호스트 이름을 가진 Ubuntu 또는 Debian VPS가 필요합니다. 호스트 이름의 DNS 레코드를 서버로 지정하고 인바운드 TCP 포트 80과 443을 허용하세요. 설치 프로그램이 Docker, Compose, Git, uv를 자동으로 추가합니다(없는 경우):
curl -fsSL https://raw.githubusercontent.com/VictorForV/intervals-mcp/master/install.sh | sudo bashinstall.sh를 실행하기 전에 검토하세요. 원격 셸 스크립트를 권한 있는 셸로 파이프하는 것이 불편하다면, 저장소를 클론하고 ./manage.sh를 실행하여 수동으로 설치할 수도 있습니다.
초기 설정을 선택하세요. 관리자가 공개 호스트 이름, 짧은 운동선수 이름, Intervals.icu 운동선수 ID와 API 키를 요청합니다. ID와 키는 Intervals.icu의 설정 → 개발자 설정에서 확인할 수 있습니다. API 키는 숨김 입력으로 처리됩니다.
관리자가 소유자 전용 설정을 만들고, 강력한 무작위 URL 토큰을 생성하고, 서비스를 시작한 후 커넥터 URL을 출력합니다. 나중에 ./manage.sh를 실행하여 운동선수를 추가, 편집 또는 제거하고, URL을 교체하고, 재빌드하고, 재시작하거나 서비스를 점검할 수 있습니다.
AI 클라이언트 연결
각 운동선수는 두 개의 비밀 URL을 받습니다:
https://mcp.example.com/<secret>/mcp # Streamable HTTP, preferred
https://mcp.example.com/<secret>/sse # legacy SSE compatibility전체 URL을 비밀번호처럼 취급하세요. 이 URL은 해당 운동선수의 훈련 및 웰니스 데이터에 대한 읽기 권한을 부여합니다.
Claude 및 Claude Desktop
설정 → 커넥터 → 사용자 지정 커넥터 추가를 열고 /mcp URL을 입력하세요. 가용성과 조직 권한은 Claude 요금제에 따라 다릅니다. 현재 Anthropic 안내서를 참조하세요.
Claude Code
관리자가 바로 실행 가능한 명령을 출력합니다:
claude mcp add --transport http intervals-alex https://mcp.example.com/<secret>/mcpChatGPT
서버를 사용자 지정 앱/커넥터로 추가하고 현재 ChatGPT 워크스페이스에서 허용되는 URL을 사용하세요. 가용성, UI 및 관리자 요구 사항은 요금제에 따라 다르며 변경될 수 있습니다. 현재 OpenAI 앱 문서를 참조하세요. 관리자는 호환성을 위해 두 URL 형식을 모두 표시합니다.
기타 클라이언트
원격 Streamable HTTP 클라이언트에는 /mcp을, 구형 SSE 클라이언트에는 /sse를 사용하세요. 클라이언트의 현재 문서를 따르고 비밀 URL을 공유 설정에 절대 커밋하지 마세요.
관리
대화형 패널이 권장 인터페이스입니다:
./manage.sh자동화를 위해 동일한 인터페이스에 하위 명령이 있습니다:
uv run intervals-mcp-admin add
uv run intervals-mcp-admin list
uv run intervals-mcp-admin show alex
uv run intervals-mcp-admin edit alex
uv run intervals-mcp-admin rotate alex
uv run intervals-mcp-admin remove alex대화형 셸에서 --api-key 사용은 피하세요. 명령 인수가 셸 기록이나 프로세스 목록에 저장될 수 있기 때문입니다. 숨김 입력을 위해 생략하세요.
로컬 stdio 모드
로컬 프로세스를 실행하는 클라이언트용 단일 운동선수 설정의 경우, .env.example을 .env로 복사하고 Intervals.icu 자격 증명을 구성한 후 다음을 실행하세요:
uv run intervals-mcp보안 모델
Intervals.icu 요청은 읽기 전용(
GET)입니다.각 운동선수는 별도의 API 클라이언트와 독립적인 무작위 경로 토큰을 받습니다.
.env와users.toml은 gitignore에 포함되며0600권한으로 작성됩니다.API 키와 경로 토큰은 애플리케이션 및 프록시 액세스 로그에서 제외됩니다.
공개 서비스는 HTTPS를 통해 Caddy를 사용합니다.
users.toml은 컨테이너에 읽기 전용으로 마운트됩니다.
경로 토큰은 Bearer 인증입니다. URL을 가진 사람은 누구나 해당 운동선수의 데이터를 읽을 수 있습니다. 노출된 경우 ./manage.sh에서 교체하세요. 취약점 보고는 SECURITY.md를 참조하세요.
개발
uv sync
uv run pytest테스트는 완전히 합성된 API 픽스처를 사용하며 네트워크 요청을 수행하지 않습니다. uv run python scripts/generate_fixtures.py로 픽스처를 다시 생성하세요.
기여 지침은 CONTRIBUTING.md를 참조하세요.
라이선스
MIT — LICENSE 참조.
Available Tools
15 toolsget_activityA
One activity by id, in the same shape as a list_activities entry.
Use it when you already have an id (from list_activities, an event,
or the athlete) and want that one activity without re-listing a whole
window. It does not currently surface fields list_activities omits.
Inputs: activity_id (required).
get_activity_intervalsA
Laps and detected intervals inside one activity.
Use it to see how a session was structured: per-lap distance, duration,
pace, heart rate, power and zone. This is where interval execution shows
up, such as whether reps faded.
Inputs: activity_id (required).
get_activity_streamsA
Time series inside one activity, downsampled.
types is a comma-separated list, for example heartrate, velocity_smooth,
altitude, cadence, watts, temp, latlng. Returns `points` evenly spaced
samples per series plus min/mean/max over the whole series. points must
be between 2 and 2000. The raw data can exceed ten thousand samples per
series, so pass full=true only when the shape of every second genuinely
matters -- not a small `points` value, which is rejected rather than
silently answered with the full series.
latlng sometimes comes back from intervals.icu as latitude only rather
than [lat, lon] pairs; when that happens the series carries a note
saying so instead of a silently wrong coordinate.
Inputs: activity_id (required), full, types, points.
get_athlete_profileA
The athlete's profile: name, location, timezone, sex.
Read this first when you need to interpret local times or address the
athlete by name.
Inputs: no named parameters.
get_best_effort_chartA
A PNG of the best-effort curve for a sport: HR, pace or power against duration or distance, log-scaled since a curve spans seconds to hours.
kind is hr, pace or power, same as get_best_efforts. Use this when the
shape of the curve -- a plateau, a cliff past some duration -- says
more than the ten named points get_best_efforts returns.
Inputs: kind (required), newest, oldest, sport_type.
get_best_effortsA
Best-effort curve for a sport: the athlete's peak sustained values.
kind is hr, pace or power. Returns the best value held for 5s, 15s, 30s,
1m, 5m, 10m, 20m, 30m, 1h and 1h30m over the window, which defaults to
the last 12 months. Use it to compare current form against past peaks.
Inputs: kind (required), newest, oldest, sport_type.
get_eventsA
Planned calendar entries: future workouts, races and goals.
Defaults to today through 28 days ahead. Pass an earlier oldest to see
what was planned in the past. An empty list means nothing is scheduled.
Inputs: newest, oldest.
get_gearA
Registered gear such as shoes and bikes, with accumulated distance.
Useful for mileage on a given pair of shoes. An empty list means the athlete tracks no gear.
Inputs: no named parameters.
get_sport_settingsA
Training zones and thresholds per sport: FTP, LTHR, max HR, power, heart-rate and pace zones, sweet spot range.
Read this before judging whether a session was easy or hard; zone
boundaries differ per sport.
Inputs: no named parameters.
get_training_load_chartA
A PNG chart of CTL (fitness), ATL (fatigue) and TSB (form) over time.
Defaults to the last 90 days, the usual window for seeing a build and a taper. Use this when a shape -- a spike, a plateau, a steady climb -- says more than the numbers would on their own.
Inputs: newest, oldest.
get_training_readinessA
Assess current form from CTL/ATL/ramp rate and recent HRV, coach-style.
Defaults to a six-week window so recent HRV has a real baseline to
compare against. Returns TSB (fitness minus fatigue) classified into a
band -- high_risk, overreaching, neutral, fresh, very_fresh -- each
with a plain-language note, plus a ramp-rate read (declining,
maintaining, building, aggressive) and, when HRV is logged, the last
7 days against the rest of the window with a flag if it has dropped
more than 10% below baseline.
Inputs: newest, oldest.
get_wellnessB
Daily wellness and training-load history.
Defaults to the last 30 days. Per day: CTL (fitness), ATL (fatigue),
ramp rate, plus whatever the athlete logs — weight, resting HR, HRV,
sleep, soreness, fatigue, stress, mood, motivation. This is the record
to read before judging whether load is sustainable.
Inputs: newest, oldest.
intervals_get_rawA
Escape hatch: GET any intervals.icu v1 path and return it unshaped.
Use only when a dedicated tool cannot answer the question, since raw
payloads are large. path is relative to https://intervals.icu/api/v1,
for example "athlete/{athlete}/activities"; "{athlete}" expands to the
configured athlete id. Pass query arguments in params, not in the path.
This is still read-only.
Field names are returned as-is, but values that look like credentials
or personal contact info -- email, API keys, tokens, invitation links
-- are replaced with "[redacted]" wherever they appear in the payload.
Inputs: path (required), params.
list_activitiesB
Completed activities in a date range, newest first.
Defaults to the last 30 days. Filter by activity_type such as Run,
TrailRun, Ride, Swim, Hike, Workout, WeightTraining, Yoga. Each entry
carries distance, duration, pace, heart rate, elevation, training load
and the CTL/ATL standing at the time. The response reports how many
activities matched versus how many were returned.
Inputs: limit, newest, oldest, activity_type.
list_workoutsA
The athlete's saved workout library and its folders.
These are workout templates, not completed sessions; use list_activities
for what was actually done.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Every tool targets a distinct resource: profile, wellness, settings, activities (list vs single), intervals, streams, readiness, charts, events, best efforts, gear, workouts, and a raw fallback. Even closely related tools like get_activity_intervals and get_activity_streams are clearly separated by their descriptions.
The naming is mostly consistent with a get_/list_ + noun pattern. The notable outlier is intervals_get_raw, which reverses the convention, and minor singular/plural inconsistency between get_best_efforts and get_best_effort_chart, but the pattern is otherwise predictable.
15 tools sits right at the upper bound of a well-scoped set, and each tool maps cleanly to a meaningful part of the intervals.icu API. No redundant or filler tools; even the raw escape hatch serves a clear fallback role.
The surface thoroughly covers the read-only athlete analytics domain: profile, training load, wellness, activities with multiple detail levels, best efforts, charts, events, gear, and workout templates. The raw escape hatch closes any remaining gaps, making dead ends unlikely.
Maintenance
Related MCP Connectors
Connect Intervals.icu to Claude and ChatGPT: read training, plan workouts. Training never stored.
Your own cycling data for your AI assistant: rides, power, climbs and routes. Read-only.
Connect ChatGPT, Claude or Gemini to your workouts via Intervals.icu: review, plan, log strength.
Your endurance training data in your AI assistant: activities, recovery, plan, workout edits.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables 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-
- FlicenseAqualityDmaintenanceEnables 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-
- AlicenseCqualityCmaintenanceEnables AI agents to read training data and, with explicit approval, replace planned workouts in a user's Intervals.icu account.7Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables a single owner to query their intervals.icu training data — athlete profile and recent activities — from ChatGPT through an OAuth-protected, read-only connection. It authenticates the owner via GitHub sign-in and exposes a read-only toolset with no write, delete, or coach capabilities.Apache 2.0