
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.
概览
让助手访问 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 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Intervals Icu Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Intervals.icu MCP Server
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
Or for Claude Desktop, in 30 seconds:
- Get your API key and athlete ID
- Add this to your Claude Desktop config:
- 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:
- Go to https://intervals.icu/settings → Developer → Create API Key.
- 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
Then point your MCP client at this checkout — see the From source snippet inside each client below.
Alternative: Docker
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
From source (requires git clone + uv sync + uv run intervals-icu-mcp-auth):
Docker:
Claude Code
Register the server as a user-scoped MCP server:
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):
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:
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.
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
- Example prompts — full catalogue of natural-language prompts by category
- Tool reference — complete tool, resource, and prompt inventory
- Architecture overview — how the server, middleware, client, and tools fit together
- Remote deployment (HTTP/SSE) — transports, flags, and the security model for hosted/remote setups
- Testing guide — conventions for pytest + respx, fixtures, and running the suite
- Releases — release notes (CHANGELOG.md covers releases up to 5.8.0)
- Adding a new tool — step-by-step workflow for contributors
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版本历史
11- v5.9.1最新Nov 7, 2026
- v5.8.0Oct 31, 2026
- v5.7.1Oct 18, 2026
- v5.7.0Oct 18, 2026
- v5.6.0Oct 9, 2026
- v5.5.0Oct 2, 2026
- v5.4.0Sep 27, 2026
- v5.3.0Sep 27, 2026
- v5.2.0Sep 23, 2026
- v5.1.0Sep 17, 2026
- v5.0.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分