Whoop Mcp

io.github.souravpn由 GitHub 账号 souravpn 发布v1.0.2更新于 Oct 25, 2026

MCP server for WHOOP — gives Claude access to your recovery, sleep, strain, and workout data

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

概览

AI 生成的概览

一个本地 MCP 服务器,让助手通过 WHOOP API 读取你的恢复、睡眠、负荷、锻炼和个人资料数据。

可以做什么
读取恢复指标,如恢复分数、HRV、静息心率和血氧,以及多日(默认 7 天)恢复趋势。获取睡眠时长、各阶段、效率和呼吸频率,以及多日睡眠趋势。获取当日负荷分数、平均与最大心率和卡路里。查询最近一次锻炼的运动类型、时长、负荷和心率区间,或近期锻炼历史。获取个人资料和身体测量数据。
适用场景
适合佩戴 WHOOP 并希望向助手询问每日恢复、睡眠质量、负荷、HRV 趋势或锻炼历史的人,也适合将 WHOOP 数据与其他可穿戴设备服务器交叉对比。
运行要求
通过 npm(Node.js)在本地运行,配置面向 Claude Desktop。需要一个 WHOOP 开发者应用,提供 Client ID 和 Client Secret,分别以 WHOOP_CLIENT_ID 和 WHOOP_CLIENT_SECRET 设置,并需一次性在浏览器完成 OAuth 授权,令牌保存到本地文件。需要访问 WHOOP API 的网络连接。
安装前请注意
需要 WHOOP 开发者应用密钥(WHOOP_CLIENT_SECRET),并将 OAuth 令牌保存在本地文件中,两者都需妥善保护。README 要求选择所有只读权限以及 offline 权限。数据为只读,README 称数据留在本机,但仍需从 WHOOP API 获取。README 的配对示例使用了未在声明配置中出现的 WHOOP_ACCESS_TOKEN 变量。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

whoop-mcp

A Model Context Protocol (MCP) server that gives Claude access to your WHOOP biometric data — recovery, sleep, strain, and workouts.

Ask Claude things like:

  • "How's my recovery today?"
  • "How did I sleep last night?"
  • "How has my HRV trended this week?"
  • "What was my strain from yesterday's workout?"

Privacy

This app accesses your WHOOP data locally on your device. No data is sent to any third-party server.


Tools

ToolWhat it returns
get_recoveryRecovery score, HRV, resting HR, SpO2
get_sleepSleep duration, stages (light/deep/REM), efficiency, respiratory rate
get_strainDay strain score, avg/max HR, calories
get_latest_workoutMost recent workout — sport, duration, strain, HR zones
get_recovery_trendRecovery scores over N days (default 7)
get_sleep_trendSleep data over N days (default 7)
get_workout_historyRecent workout history (default 5)
get_profileProfile + body measurements

Setup

1. Create a WHOOP developer app

  1. Go to developer-dashboard.whoop.com
  2. Sign in with your WHOOP account
  3. Create a new App:
    • Name: whoop-mcp (or anything)
    • Redirect URI: http://localhost:8080/callback
    • Scopes: select all read scopes + offline
  4. Copy your Client ID and Client Secret

2. Install

bash
npm install -g @souravpn/whoop-mcp

3. Run one-time auth setup

This opens your browser, you log into WHOOP, and your tokens are saved to ~/.whoop-mcp-tokens.json:

bash
WHOOP_CLIENT_ID=your_id WHOOP_CLIENT_SECRET=your_secret whoop-mcp-auth-setup

You only need to do this once. The server will auto-refresh tokens after that.

4. Add to Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

json
{  "mcpServers": {    "whoop": {      "command": "@souravpn/whoop-mcp",      "env": {        "WHOOP_CLIENT_ID": "your_client_id",        "WHOOP_CLIENT_SECRET": "your_client_secret"      }    }  }}

Restart Claude Desktop. You should see a green "running" badge in Settings → Developer.

5. Test it

Open a new chat and ask:

How's my recovery today?

Example queries

Daily check-in:

What's my recovery, sleep, and strain for today?

Trend analysis:

How has my HRV trended over the past 7 days?

Workout correlation:

Look at my workouts this week and my recovery scoresthe day after each one. Is there a pattern?

Full briefing:

Give me a complete health briefing — recovery, lastnight's sleep breakdown, and any workouts from yesterday

Pairing with Oura

If you also use Oura Ring, you can run both MCP servers together and ask Claude to cross-reference:

json
{  "mcpServers": {    "whoop": {      "command": "/path/to/whoop-mcp",      "env": { "WHOOP_ACCESS_TOKEN": "your_whoop_token" }    },    "oura": {      "command": "/path/to/oura-mcp",      "env": { "OURA_ACCESS_TOKEN": "your_oura_token" }    }  }}

Then ask:

Compare my WHOOP and Oura HRV readings for this week.Do they agree? Which is trending higher?

Development

bash
git clone https://github.com/yourusername/whoop-mcpcd whoop-mcpnpm installnpm run build
# Test locallyWHOOP_ACCESS_TOKEN=your_token node dist/index.js

Project structure

whoop-mcp/├── src/│   ├── index.ts   # MCP server + tool definitions│   └── whoop.ts   # WHOOP API client + formatters├── package.json├── tsconfig.json└── README.md

Contributing

PRs welcome. Some ideas for extension:

  • Heart rate time series data
  • Sleep stage timeline (light/deep/REM per hour)
  • Strain goal recommendations
  • Weekly summary tool

License

MIT


Acknowledgements

Built with the MCP TypeScript SDK and the WHOOP Developer API.

来源:README.md,提交 993d71e

工具

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

版本历史

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

评分

已满足适用检查项的 40%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

    请在仓库或注册中心条目中声明许可证。