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 分