Skip to main content
Glama
intervals-mcp
by VictorForV

Intervals MCP

ロシア語版

セルフホスト型の読み取り専用MCPサーバーで、AIアシスタントにアスリートのIntervals.icuトレーニングデータへのアクセスを提供します。

スポーツウォッチ、サイクルコンピューター、トレーナー、Strava、その他の対応ソースをIntervals.icuに接続してください。Intervals MCPは、正規化されたトレーニングデータをChatGPT、Claude、Claude Code、Cursor、VS Code、その他のMCPクライアントに公開します。現在の連携についてはIntervals.icuを参照してください。連携リストは時間とともに変わります。

このサーバーはGETリクエストのみを行います。アスリートのIntervals.icuアカウント内の何も作成、編集、削除することはできません。

アシスタントが読み取れる内容

  • アスリートプロフィール、タイムゾーン、スポーツ設定、ゾーン、FTP、LTHR、最大心拍数。

  • アクティビティ、詳細、ラップ、インターバル、ダウンサンプリングされたストリーム。

  • ウェルネス、フィットネス、疲労、HRV、睡眠、気分、体重(利用可能な場合)。

  • 予定イベント、ベストエフォート曲線、ギア、ワークアウトライブラリ。

  • 読み取り専用のrawツールによる、追加の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 bash

リモートスクリプトを特権シェルにパイプしたくない場合は、実行前にinstall.shを確認してください。前提条件をインストールした後、リポジトリをクローンして./manage.shを実行する手動インストールも引き続き利用できます。

初期セットアップを選択してください。マネージャーは、パブリックホスト名、短いアスリート名、Intervals.icuのアスリートIDとAPIキーを尋ねます。IDとキーは、Intervals.icuの設定 → 開発者設定で確認できます。APIキーの入力は非表示になります。

マネージャーは、オーナーのみがアクセスできる設定を作成し、強力なランダムURLトークンを生成し、サービスを起動して、コネクタURLを出力します。後で./manage.shを実行すると、アスリートの追加、一覧表示、編集、削除、URLのローテーション、再ビルド、再起動、サービスの検査ができます。

AIクライアントの接続

各アスリートには2つのシークレット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>/mcp

ChatGPT

サーバーをカスタムアプリ/コネクタとして追加し、現在の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モード

1人のアスリートと、ローカルプロセスを起動するクライアントの場合、.env.exampleを.envにコピーし、Intervals.icuの認証情報を設定して、実行します:

uv run intervals-mcp

セキュリティモデル

  • Intervals.icuへのリクエストは読み取り専用(GET)です。

  • 各アスリートには、個別のAPIクライアントと独立したランダムパストークンが割り当てられます。

  • .envとusers.tomlはgitignoreされ、モード0600で書き込まれます。

  • APIキーとパストークンは、アプリケーションおよびプロキシのアクセスログから除外されます。

  • 公開サービスはCaddyを通じてHTTPSを使用します。

  • users.tomlはコンテナに読み取り専用でマウントされます。

パストークンはベアラー認証です。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 tools
get_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

    A4/5.0

    Scored across 15 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    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
      Not graded
      quality
      B
      maintenance
      Enables 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