Intervals Icu Mcp

io.github.hhopke由 GitHub 帳號 hhopke 發布v5.9.1更新於 Nov 7, 2026

Read/write Intervals.icu MCP server: activities, wellness, calendar, gear, and workouts.

已驗證STDIO僅桌面位置與生活資料與分析

概覽

AI 產生的概覽

讓助理存取 Intervals.icu 訓練資料:活動、健康指標、行事曆、訓練課、裝備與表現分析。

可以做什麼
  • 查詢、搜尋、更新、下載與刪除活動
  • 檢視活動資料流、區間統計、分段、最佳表現與直方圖;讀取與張貼活動備註和留言
  • 讀取運動員個人資料與備註、CTL/ATL/TSB 體能分析和體能圖表時間序列
  • 檢視 HRV、睡眠、恢復等健康指標
  • 管理行事曆事件、預定訓練、比賽與備註,支援批次操作
  • 瀏覽與編輯訓練課資料庫、裝備與保養提醒、運動設定和自訂項目
適用情境
適合想讓助理分析近期訓練、過度訓練與恢復趨勢、功率或配速曲線,或在 Intervals.icu 中規劃與調整訓練課和行事曆項目的運動員與教練。
執行需求
以 stdio 在本機執行,通常透過 uvx(需安裝 uv)或 Docker 啟動。需要 Intervals.icu API 金鑰(INTERVALS_ICU_API_KEY)與運動員 ID(INTERVALS_ICU_ATHLETE_ID)。需要連線至 Intervals.icu 的網路存取。
安裝前請注意
API 金鑰屬於機密,會寫入用戶端設定或 .env 檔案。許多工具會寫入、更新或刪除資料,包括活動、行事曆事件與訓練課資料庫;破壞性工具受選用變數 INTERVALS_ICU_DELETE_MODE 控管,預設為 safe。HTTP/SSE 模式沒有內建身分驗證,切勿將其暴露在不受信任的網路中。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Intervals Icu Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Intervals.icu MCP Server

[intervals-icu-mcp demo]

A Model Context Protocol (MCP) server for Intervals.icu integration. Access your training data, wellness metrics, and performance analysis through Claude, ChatGPT, and other LLMs.

Originally based on eddmann/intervals-icu-mcp (MIT licensed). This project is an independent continuation with significant bug fixes and new features — see the release notes for details.

[Tests] [intervals-icu-mcp MCP server] [License: MIT] [Docker] [Sponsor]

Overview

73 tools spanning activities, activity analysis, activity messages, athlete profile, wellness, events/calendar, performance curves, workout library, gear, sport settings, and custom items — plus 4 MCP Resources (athlete profile, workout syntax, event categories, custom item schemas) and 9 MCP Prompts (training analysis, recovery check, weekly planning, and more). See Available Tools for the per-category breakdown.

Quick Start

[Install in Cursor]

Or for Claude Desktop, in 30 seconds:

  1. Get your API key and athlete ID
  2. Add this to your Claude Desktop config:
json
{  "mcpServers": {    "intervals-icu": {      "command": "uvx",      "args": ["intervals-icu-mcp"],      "env": {        "INTERVALS_ICU_API_KEY": "your-api-key-here",        "INTERVALS_ICU_ATHLETE_ID": "i123456"      }    }  }}
  1. Restart Claude and ask "Show me my activities from the last 7 days."

Prefer Claude Code, Cursor, or ChatGPT? See Client Configuration. Want to run from source or with Docker? See Installation & Setup.

Prerequisites

Install uv — it handles Python, dependencies, and execution in one tool. curl -LsSf https://astral.sh/uv/install.sh | sh on macOS/Linux (or brew install uv; Homebrew no longer installs on Intel Macs), or powershell -c "irm https://astral.sh/uv/install.ps1 | iex" on Windows. From there, uvx fetches Python and the package automatically. If your MCP client can't find uvx, set command to the full path that which uvx prints. Docker is also supported as an alternative.

Intervals.icu API Key Setup

Before installation, obtain your Intervals.icu API key:

  1. Go to https://intervals.icu/settings → Developer → Create API Key.
  2. Copy the key, and note your Athlete ID from your profile URL (format: i123456).

Installation & Setup

Nothing to install separately if you use the recommended setup. uvx (which ships with uv) automatically downloads and caches the intervals-icu-mcp package the first time your MCP client launches it — just paste the config snippet from Client Configuration into your client and you're done.

Alternative: from source — for development or local modifications
bash
git clone https://github.com/hhopke/intervals-icu-mcp.gitcd intervals-icu-mcpuv syncuv run intervals-icu-mcp-auth  # interactive credential setup; or create .env manually:#   INTERVALS_ICU_API_KEY=your_api_key_here#   INTERVALS_ICU_ATHLETE_ID=i123456

Then point your MCP client at this checkout — see the From source snippet inside each client below.

Alternative: Docker
bash
docker build -t intervals-icu-mcp .
# Interactive credential setup (creates intervals-icu-mcp.env in the current directory):touch intervals-icu-mcp.env  # pre-create the file so Docker mounts it as a file, not a dirdocker run -it --rm \  -v "$(pwd)/intervals-icu-mcp.env:/app/.env" \  --entrypoint= intervals-icu-mcp:latest \  python -m intervals_icu_mcp.scripts.setup_auth

Or create intervals-icu-mcp.env manually (same format as the .env above).

Then point your MCP client at the Docker image — see the Docker snippet inside each client below.

Client Configuration

The server speaks MCP over stdio and works with any compliant client. Click a client to expand. If you followed Quick Start (uvx), use the first config block; if you used the source or Docker alternative above, use the matching variant inside the same collapsible.

Claude Desktop

Add to your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
json
{  "mcpServers": {    "intervals-icu": {      "command": "uvx",      "args": ["intervals-icu-mcp"],      "env": {        "INTERVALS_ICU_API_KEY": "your-api-key-here",        "INTERVALS_ICU_ATHLETE_ID": "i123456"      }    }  }}

From source (requires git clone + uv sync + uv run intervals-icu-mcp-auth):

json
{  "mcpServers": {    "intervals-icu": {      "command": "uv",      "args": ["run", "--directory", "/ABSOLUTE/PATH/TO/intervals-icu-mcp", "intervals-icu-mcp"]    }  }}

Docker:

json
{  "mcpServers": {    "intervals-icu": {      "command": "docker",      "args": ["run", "-i", "--rm", "-v", "/ABSOLUTE/PATH/TO/intervals-icu-mcp.env:/app/.env", "intervals-icu-mcp:latest"]    }  }}
Claude Code

Register the server as a user-scoped MCP server:

bash
claude mcp add intervals-icu --scope user \  --env INTERVALS_ICU_API_KEY=your-key \  --env INTERVALS_ICU_ATHLETE_ID=i123456 \  -- uvx intervals-icu-mcp

Then in any Claude Code session, run /mcp to confirm intervals-icu is connected.

Cursor

Add to ~/.cursor/mcp.json (or the project-local .cursor/mcp.json):

json
{  "mcpServers": {    "intervals-icu": {      "command": "uvx",      "args": ["intervals-icu-mcp"],      "env": {        "INTERVALS_ICU_API_KEY": "your-api-key-here",        "INTERVALS_ICU_ATHLETE_ID": "i123456"      }    }  }}

Restart Cursor and open Settings → MCP to verify the server is listed.

ChatGPT — requires a paid plan, Developer Mode, and a publicly reachable URL (walkthrough not yet verified end-to-end)

ChatGPT's custom MCP connector flow requires running the server over HTTP and exposing it via a tunnel, then registering the URL in ChatGPT's Developer Mode settings. See docs/chatgpt-connector.md for the full walkthrough, plan-tier requirements, and security notes.

Usage

Ask Claude to interact with your Intervals.icu data in natural language. A few starter prompts:

"Show me my activities from the last 30 days""Am I overtraining? Check my CTL, ATL, and TSB""How's my recovery this week? Show HRV and sleep trends""Create a sweet spot cycling workout for tomorrow""What's my 20-minute power and FTP?"

For the full catalogue of example prompts by category, see docs/examples.md.

Available Tools

73 tools, 4 resources, and 9 prompt templates. One-line summary below — full reference in docs/tools.md.

CategoryToolsSummary
Activities13Query, search, update, delete, download activities
Activity Analysis9Streams, window stats, intervals, best efforts, histograms
Activity Messages4Read, post, edit, and delete notes/comments/coach feedback on activities
Athlete5Accessible athletes, profile and athlete notes, CTL/ATL/TSB analysis, fitness chart time-series
Wellness3HRV, sleep, recovery metrics
Events / Calendar13Planned workouts, races, notes, ATP periodization (bulk ops supported)
Performance / Curves3Power, HR, and pace curves with zones
Workout Library8Browse, create, and delete folders and training plans; create (incl. bulk), update, and delete library workouts
Gear Management6Track equipment and maintenance reminders
Sport Settings4FTP, FTHR, pace thresholds, and zones
Custom Items5User customizations: custom charts, fields, zones, dashboard panels

Delete Safety Mode

Destructive tools are gated by the optional INTERVALS_ICU_DELETE_MODE env var (safe / full / none, default safe) — a server-side gate outside the model's reach, so unregistered tools can't be invoked. See docs/tools.md for the full mode table, response envelope, and TZ-buffer rationale.

Remote Deployment (HTTP / SSE)

The server runs over stdio by default — the right transport for local clients like Claude Desktop, Claude Code, and Cursor. HTTP and SSE transports are available for remote or hosted use.

⚠️ MCP has no built-in authentication — never expose an HTTP-mode server to an untrusted network without a tunnel (Tailscale, Cloudflare Tunnel) or an authenticating reverse proxy.

See docs/remote-deployment.md for transport flags and the full security model.

Documentation

Feedback

How are you using this? Which tools you lean on, what your prompts look like, where it gets in your way — that shapes the roadmap more than my own guesses do.

Show and tell · Q&A · Ideas · General — or open an issue for a reproducible bug.

Contributing

Contributions are very welcome, and none is too small — a typo, a clearer parameter description, an extra test, a whole new tool. No Python or MCP expertise assumed. See CONTRIBUTING.md; in short, run make can-release before opening a PR. Good first issues are a gentle place to start.

Sponsor

Free under the MIT License, maintained in my spare time. If it's useful to you, GitHub Sponsors supports continued development — entirely optional, and feedback or a PR helps just as much.

License

MIT License - see the LICENSE file for details.

Disclaimer

This project is not affiliated with, endorsed by, or sponsored by Intervals.icu. All product names, logos, and brands are property of their respective owners.

來源:README.md,提交 2c6e217

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

11
  1. v5.9.1最新Nov 7, 2026
  2. v5.8.0Oct 31, 2026
  3. v5.7.1Oct 18, 2026
  4. v5.7.0Oct 18, 2026
  5. v5.6.0Oct 9, 2026
  6. v5.5.0Oct 2, 2026
  7. v5.4.0Sep 27, 2026
  8. v5.3.0Sep 27, 2026
  9. v5.2.0Sep 23, 2026
  10. v5.1.0Sep 17, 2026
  11. v5.0.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分