Skip to main content
Glama

Intervals.icu MCP Server

by mvilanova

Intervals.icu MCP 服务器

模型上下文协议 (MCP) 服务器,用于将 Claude 与 Intervals.icu API 连接起来。它提供了用于身份验证和检索活动、事件和健康数据的工具。

要求

设置

1.安装uv(推荐)

curl -LsSf https://astral.sh/uv/install.sh | sh

2. 克隆此存储库

git clone https://github.com/mvilanova/intervals-mcp-server.git cd intervals-mcp-server

3.创建并激活虚拟环境

# Create virtual environment uv venv # Activate virtual environment # On macOS/Linux: source .venv/bin/activate # On Windows: .venv\Scripts\activate

4.安装依赖项

uv pip install -e .

5.设置环境变量

通过运行以下命令复制.env.example并将其命名为.env

cp .env.example .env

然后编辑.env文件并设置您的 Intervals.icu 运动员 ID 和 API 密钥:

API_KEY=your_intervals_api_key_here ATHLETE_ID=your_athlete_id_here
获取您的 Intervals.icu API 密钥
  1. 登录您的 Intervals.icu 帐户
  2. 转到“设置”>“API”
  3. 生成新的 API 密钥
查找您的运动员 ID

当您登录 Intervals.icu 时,您的运动员 ID 通常会显示在 URL 中。它看起来像:

  • https://intervals.icu/athlete/i12345/...其中i12345是您的运动员 ID

用法

1.配置Claude桌面

要将此服务器与 Claude Desktop 一起使用,您需要将其添加到您的 Claude Desktop 配置中。

  1. intervals_mcp_server目录运行以下命令来配置 Claude Desktop:
mcp install src/intervals_mcp_server/server.py --name "Intervals.icu MCP Server"
  1. 如果您打开 Claude 桌面应用程序配置文件claude_desktop_config.json ,它应该如下所示:
{ "mcpServers": { "Intervals.icu": { "command": "uv", "args": [ "run", "--with", "mcp[cli]", "mcp", "run", "/path/to/intervals-mcp-server/src/intervals_mcp_server/server.py" ] } } }

其中/path/to/是系统中intervals-mcp-server代码文件夹的路径。

如果您在打开 Claude Desktop 时看到以下错误消息,请在claude_desktop_config.json配置文件的命令键中包含uv的完整路径。您可以在终端中运行which uv来获取完整路径。

2025-04-28T10:21:11.462Z [info] [Intervals.icu MCP Server] Initializing server... 2025-04-28T10:21:11.477Z [error] [Intervals.icu MCP Server] spawn uv ENOENT 2025-04-28T10:21:11.477Z [error] [Intervals.icu MCP Server] spawn uv ENOENT 2025-04-28T10:21:11.481Z [info] [Intervals.icu MCP Server] Server transport closed 2025-04-28T10:21:11.481Z [info] [Intervals.icu MCP Server] Client transport closed
  1. 重新启动 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.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

将 Claude 与 Intervals.icu API 连接起来以检索健身数据,包括活动、锻炼、健康指标和训练事件。

  1. 要求
    1. 设置
      1. 1.安装uv(推荐)
      2. 克隆此存储库
      3. 3.创建并激活虚拟环境
      4. 4.安装依赖项
      5. 5.设置环境变量
    2. 用法
      1. 1.配置Claude桌面
      2. 使用 Claude 的 MCP 服务器
    3. 执照
      1. 精选
        1. Glama.ai

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        Connects 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 -
        1
        Python
        MIT License
        • Apple
      • -
        security
        A
        license
        -
        quality
        Provides 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 -
        JavaScript
        MIT License
        • Apple
      • -
        security
        A
        license
        -
        quality
        Enables Claude to interact with Webflow's APIs, allowing access to site information, collections, and other Webflow resources.
        Last updated -
        TypeScript
        MIT License
        • Apple
      • A
        security
        A
        license
        A
        quality
        An implementation that enables Claude to connect to ServiceNow instances, retrieve data, and perform actions through the ServiceNow API.
        Last updated -
        62
        70
        Python
        MIT License
        • Apple

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/mvilanova/intervals-mcp-server'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server