Intervals.icu MCP 服务器
模型上下文协议 (MCP) 服务器,用于将 Claude 与 Intervals.icu API 连接起来。它提供了用于身份验证和检索活动、事件和健康数据的工具。
要求
- Python 3.10 或更高版本
- 模型上下文协议 (MCP) Python SDK
- httpx
- python-dotenv
设置
1.安装uv(推荐)
2. 克隆此存储库
3.创建并激活虚拟环境
4.安装依赖项
5.设置环境变量
通过运行以下命令复制.env.example
并将其命名为.env
:
然后编辑.env
文件并设置您的 Intervals.icu 运动员 ID 和 API 密钥:
获取您的 Intervals.icu API 密钥
- 登录您的 Intervals.icu 帐户
- 转到“设置”>“API”
- 生成新的 API 密钥
查找您的运动员 ID
当您登录 Intervals.icu 时,您的运动员 ID 通常会显示在 URL 中。它看起来像:
https://intervals.icu/athlete/i12345/...
其中i12345
是您的运动员 ID
用法
1.配置Claude桌面
要将此服务器与 Claude Desktop 一起使用,您需要将其添加到您的 Claude Desktop 配置中。
- 从
intervals_mcp_server
目录运行以下命令来配置 Claude Desktop:
- 如果您打开 Claude 桌面应用程序配置文件
claude_desktop_config.json
,它应该如下所示:
其中/path/to/
是系统中intervals-mcp-server
代码文件夹的路径。
如果您在打开 Claude Desktop 时看到以下错误消息,请在claude_desktop_config.json
配置文件的命令键中包含uv
的完整路径。您可以在终端中运行which uv
来获取完整路径。
- 重新启动 Claude Desktop。
2. 使用 Claude 的 MCP 服务器
一旦服务器运行并且 Claude Desktop 配置完成,您可以使用以下工具询问有关您过去和未来的活动、事件和健康数据的问题。
get_activities
:检索活动列表get_activity_details
:获取特定活动的详细信息get_activity_intervals
:获取特定活动的详细间隔数据get_wellness_data
:获取健康数据get_events
:检索即将发生的事件(锻炼、比赛等)get_event_by_id
:获取特定事件的详细信息
执照
GNU 通用公共许可证 v3.0
精选
Glama.ai
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
将 Claude 与 Intervals.icu API 连接起来以检索健身数据,包括活动、锻炼、健康指标和训练事件。
Related MCP Servers
- -securityAlicense-qualityConnects to Garmin Connect and exposes your fitness and health data (activities, sleep, heart rate, steps, body composition) to Claude and other MCP-compatible clients.Last updated -1PythonMIT License
- -securityAlicense-qualityProvides access to Urban Institute's Education Data API through Claude, enabling users to query and analyze detailed educational data from schools, districts, and universities.Last updated -JavaScriptMIT License
- -securityAlicense-qualityEnables Claude to interact with Webflow's APIs, allowing access to site information, collections, and other Webflow resources.Last updated -TypeScriptMIT License
- AsecurityAlicenseAqualityAn implementation that enables Claude to connect to ServiceNow instances, retrieve data, and perform actions through the ServiceNow API.Last updated -6270PythonMIT License