Whoop Mcp Server

io.github.Zayden16由 GitHub 账号 Zayden16 发布v1.1.0更新于 Oct 24, 2026

MCP server for the official Whoop API v2: cycles, recovery, sleep, workouts, and profile data

已验证STDIO仅桌面位置与生活数据与分析

概览

AI 生成的概览

本地 MCP 服务器,连接 Whoop 官方 API v2,让助手读取你的周期、恢复、睡眠、训练和个人资料数据。

可以做什么
  • 读取个人资料与身体测量数据(姓名、邮箱、身高、体重、最大心率)
  • 获取每日周期记录,含 strain、千焦和心率,并可取最新周期
  • 获取恢复记录,含恢复分数、静息心率、HRV、血氧和皮肤温度
  • 获取睡眠记录,含各阶段时长、呼吸频率和睡眠表现
  • 获取训练记录,含运动类型、strain、心率、距离和各心率区间时长
  • 计算指定天数的平均 strain,并检查授权状态
适用场景
适合让助手回答关于自己 Whoop 数据的问题,例如今天的恢复分数、过去一周的睡眠或近期平均 strain,无需手动导出数据。
运行要求
以本地可执行文件运行(Homebrew、预编译版本、go install 或源码构建)。需要一个 Whoop 开发者应用,配置所列只读权限和本地回调地址,并设置 WHOOP_CLIENT_ID 与 WHOOP_CLIENT_SECRET 环境变量。首次需在浏览器完成 OAuth 授权,令牌保存在本地并自动刷新。需要访问 Whoop API 的网络连接。
安装前请注意
需要 Whoop 客户端 ID 和客户端密钥,并以环境变量形式写入 MCP 客户端配置。令牌文件保存在磁盘上并自动刷新。服务器读取个人健康数据(邮箱、身体测量、睡眠、恢复、训练)并发送给模型;所有工具均为只读。OAuth 流程会打开浏览器并监听本地回调端口。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Whoop Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

whoop-mcp-server

[CI] [Release] [Go Version] [License: MIT]

MCP server for the official Whoop API v2, written in Go. Exposes cycles, recovery, sleep, workouts, and profile data as MCP tools.

Tools

All tools return JSON. Record shapes are the unmodified Whoop API v2 objects, so every field the API exposes is available to the model.

ToolInputsReturns
get_profile—Single object: user_id, email, first_name, last_name
get_body_measurement—Single object: height_meter, weight_kilogram, max_heart_rate
get_cyclesstart_date, end_date, limit (all optional)Array of cycle records — one per physiological day: start/end, score_state, and score with day strain, kilojoule, average_heart_rate, max_heart_rate
get_latest_cycle—Single cycle record (the current/most recent day)
get_recoveriesstart_date, end_date, limit (all optional)Array of recovery records — one per sleep: cycle_id, sleep_id, and score with recovery_score (0–100), resting_heart_rate, hrv_rmssd_milli, spo2_percentage, skin_temp_celsius
get_recovery_for_cyclecycle_id (required)Single recovery record for that cycle
get_sleepstart_date, end_date, limit (all optional)Array of sleep records: start/end, nap flag, and score with per-stage durations (light/SWS/REM/awake, in ms), respiratory_rate, sleep_performance_percentage, sleep_efficiency_percentage, sleep-need breakdown
get_workoutsstart_date, end_date, limit (all optional)Array of workout records: sport_name, start/end, and score with workout strain, heart rates, kilojoule, distance_meter, altitude_gain_meter, time-in-zone durations (zone_durations, ms per HR zone)
get_average_straindays (optional, default 7)Computed aggregate: {days, cycles_counted, average_strain}
check_auth_status—{authenticated: bool} plus the profile on success or an error string on failure

Notes:

  • Dates are YYYY-MM-DD; end_date is inclusive (internally mapped to the start of the next day, per the API's exclusive end semantics).
  • Collections are date-descending (most recent first) and paginated transparently — the server follows next_token until limit records (default 25, max 100) are collected.
  • Scores are point-in-time per record, not time-series: one strain value per cycle, one recovery per sleep. For trends, fetch a range and let the model aggregate (or use get_average_strain for the built-in strain average).
  • A record's score_state can be SCORED, PENDING_SCORE, or UNSCORABLE — score is only present when SCORED.

Setup

1. Create a Whoop developer app

At developer.whoop.com, create an app with:

  • Redirect URI: http://localhost:8719/callback
  • Scopes: read:cycles, read:recovery, read:sleep, read:workout, read:profile, read:body_measurement, offline

Note the client ID and client secret.

2. Install

Homebrew:

sh
brew install zayden16/tap/whoop-mcp-server

Or download a prebuilt binary from Releases, or:

sh
go install github.com/Zayden16/whoop-mcp-server@latest

Or build from source:

sh
go build -o whoop-mcp-server .

3. Authorize (one time)

sh
export WHOOP_CLIENT_ID=...export WHOOP_CLIENT_SECRET=..../whoop-mcp-server auth

Opens a browser for the OAuth flow; the token is saved to ~/Library/Application Support/whoop-mcp/token.json (macOS) and refreshed automatically thereafter (rotating refresh tokens).

4. Register with Claude Code

sh
claude mcp add whoop --scope user \  -e WHOOP_CLIENT_ID=... \  -e WHOOP_CLIENT_SECRET=... \  -- /path/to/whoop-mcp-server

Or for Claude Desktop, in claude_desktop_config.json:

json
{  "mcpServers": {    "whoop": {      "command": "/path/to/whoop-mcp-server",      "env": {        "WHOOP_CLIENT_ID": "...",        "WHOOP_CLIENT_SECRET": "..."      }    }  }}

Example queries

  • "What's my recovery score today?"
  • "Show my sleep for the past week"
  • "What's my average strain over the last 7 days?"

来源:README.md,提交 a25ce1a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分