MCP工具 是 AI Skill Hub 本期精选MCP工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/briangaoo/whoop-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"mcp--": {
"command": "npx",
"args": ["-y", "whoop-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 MCP工具 执行以下任务... Claude: [自动调用 MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"mcp__": {
"command": "npx",
"args": ["-y", "whoop-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img src="assets/banner.svg" alt="whoop-mcp — 48 MCP tools, remote-ready" width="820"> </p>
<p align="center"> <i>Give Claude (or any MCP-compatible AI) <b>full read + write access to your Whoop fitness data</b> by wrapping Whoop's private iOS API.</i> </p>
<p align="center"> <a href="#remote-hosting"><img src="https://img.shields.io/badge/Claude_Code-a855f7?style=for-the-badge" alt="Claude Code"></a> <a href="#claude-desktop-config"><img src="https://img.shields.io/badge/Claude_Desktop-7c3aed?style=for-the-badge" alt="Claude Desktop"></a> <img src="https://img.shields.io/badge/ChatGPT_Desktop-10a37f?style=for-the-badge" alt="ChatGPT Desktop"> <img src="https://img.shields.io/badge/Codex-000000?style=for-the-badge" alt="Codex"> <img src="https://img.shields.io/badge/Gemini_CLI-4285f4?style=for-the-badge" alt="Gemini CLI"> <img src="https://img.shields.io/badge/Any_MCP_1.x_Client-262626?style=for-the-badge" alt="any MCP 1.x client"> </p>
<p align="center"> <img src="https://img.shields.io/badge/tools-48-9ca3af?style=flat-square" alt="tools"> <img src="https://img.shields.io/badge/TypeScript-6.0-3178c6?style=flat-square&logo=typescript&logoColor=white" alt="typescript"> <img src="https://img.shields.io/badge/Node-24%2B-339933?style=flat-square&logo=node.js&logoColor=white" alt="node"> <img src="https://img.shields.io/badge/MCP-1.x%2B-9ca3af?style=flat-square" alt="mcp"> <img src="https://img.shields.io/badge/deploy-Fly%20%7C%20Docker%20%7C%20Railway-9ca3af?style=flat-square" alt="deploy"> </p>
<p align="center"> <img src="assets/demo.png" alt="Claude Desktop using whoop-mcp to check today's recovery — 73% green with HRV, resting HR, and sleep performance breakdown" width="820"> </p>
48 tools, structured zod-validated outputs, bundled catalogs (372 exercises, 308 behaviors, 203 sports), write-safety harness, automatic Cognito token refresh, session-scoped catalog gate. TypeScript 6, Node 24, 173 tests.
Note: this works through Whoop's private iOS API rather than the public OAuth API. That isn't what Whoop's terms allow — see the FAQ if you want the full picture before installing.
---
docker build -t whoop-mcp .
| Variable | Required | Description |
|---|---|---|
WHOOP_EMAIL | yes | Your Whoop login email |
WHOOP_PASSWORD | yes (bootstrap only) | Your Whoop login password (used only during bootstrap) |
WHOOP_IOS_BEARER_TOKEN | yes | Cognito access token (24h, auto-refreshed) |
WHOOP_COGNITO_REFRESH_TOKEN | yes | Cognito refresh token (~30d) |
WHOOP_USER_ID | no | Your Whoop user ID — used by whoop_profile, whoop_leaderboard. Avoids one bootstrap call per session. |
WHOOP_TIMEZONE | no | IANA timezone (e.g., America/Los_Angeles). If unset, auto-detected from your Whoop profile and refreshed hourly. Set explicitly to override. |
{
"mcpServers": {
"whoop": {
"command": "/opt/homebrew/bin/node",
"args": ["/absolute/path/to/whoop-mcp/dist/server.js"]
}
}
}
The MCP loads .env from the repo root (relative to server.js). Use absolute paths — Claude Desktop doesn't inherit shell PATH.
---
| Capability | Tool |
|---|---|
| HRV / RHR / respiratory / VO2 / weight time-series (25 metrics × up to 4 windows) | whoop_trend |
| Hypnogram (per-minute sleep stage timeline) | whoop_sleep |
| Strength Trainer — every set, every workout, full 372-exercise catalog, PRs | whoop_lift_* (8 tools) |
| 308-behavior Journal + behavior impact analysis | whoop_journal* (5 tools) |
| Stress monitor (15-min buckets) | whoop_stress, whoop_live_stress |
| Whoop Coach AI chat | whoop_coach_ask |
| Smart Alarm (read + 4 write modes) | whoop_smart_alarm* |
| HR zones (read + configure max HR / 5 custom zones) | whoop_hr_zones* |
| Compare-windows, sleep coach, calendar grid, performance assessment | whoop_compare, whoop_sleep_need, whoop_calendar, whoop_performance_assessment |
| Live HR / activity state / live stress | whoop_live_* (3 tools) |
| Community leaderboards, hidden metrics, women's health (cycle / symptoms / MCI) | whoop_leaderboard, whoop_hidden_metric, whoop_cycle* |
| **14 write tools** — log workouts, journal entries, profile edits, smart-alarm config | various |
If recovery + sleep totals + workout list is enough for you, use the public OAuth API. If anything in the table is interesting, you need this. The iOS API was discovered via mitmproxy — full methodology in WHOOP.md.
---
| Approach | Pros | Cons |
|---|---|---|
| **This MCP** | Full iOS API surface (48 total: 32 reads + 14 writes + 2 escape hatches), writes supported, structured outputs, auto-refresh, write-safety, session-scoped catalog gate | Unsupported by Whoop (see [FAQ](#faq) for what that means); reverse-engineered (Whoop could break it at any time); local install required |
| Whoop's public OAuth API | Official, supported, 6 webhook events, scoped permissions | Only 13 endpoints; read-only; no journal/strength/stress/coach/smart-alarm/trends/hypnogram; numeric sport_id removed 2025-09-01; 429s exist |
| HealthKit-based scraper | Bypass Whoop entirely; uses Apple's data sync | Loses Whoop-specific data (recovery score, journal, coach); requires iOS device involvement |
| Direct mitmproxy capture | See everything | Manual, not programmable, doesn't scale |
| Whoop iOS app + screenshots → Claude | Works without code | Painful, slow, no writes |
This MCP is the only option for programmatic write access to your Whoop data right now.
---
"AUTH FAIL: Cognito InitiateAuth failed (400)" > Wrong email or password. Double-check .env.
"AUTH FAIL: Cognito MFA challenge missing Session token" > The InitiateAuth response was malformed (unusual). Re-run whoop-mcp auth — Cognito occasionally drops sessions.
"MFA verification did not return tokens" > You entered the wrong SMS code (or it timed out). Codes expire after ~3 minutes.
"WhoopAuthExpiredError" after every call > Your refresh token has expired (>30 days since last bootstrap). For a local install, re-run whoop-mcp auth. For a deployed install (Fly etc.), run whoop-mcp refresh from your Mac — it re-bootstraps locally AND pushes the new tokens to your deployed app's secrets in one step. Either way you'll get a fresh SMS code on your phone that you type in the terminal.
"WhoopServerError: 502" / "503" / "504" > Whoop's servers are having issues. Retry in 30 seconds.
Claude says it doesn't see any whoop tools > Check claude_desktop_config.json paths are absolute. Restart Claude Desktop fully (quit, then reopen). > Check the MCP server runs without errors: whoop-mcp dev — it should start silently and wait on stdin.
"WhoopApiError: 422 on /profile-service/v1/profile" > Your whoop_profile_update body is too partial. Send most fields (gender from {MALE,FEMALE,NON_BINARY} only, birthday as YYYY-MM-DD or ISO datetime, country ISO-2). If country=US, also send state — Whoop returns 400 "AdminDivision (state) must be set for US" otherwise.
"Whoop API error 409 on /weightlifting-service/v2/weightlifting-workout/activity" > Time window conflicts with an existing workout. Use a different range.
"WhoopProjectionError for whoop_X" > Whoop changed a response shape. Capture the new response (e.g. via whoop_raw), inspect, update the projection.
Tests fail after git pull > Pull may have updated captured fixtures. Run whoop-mcp test again to see what changed. If projections need updating, that's the work.
whoop-mcp build (or npx tsc) fails with "Top-level await is currently not supported with the 'cjs' output format" > You're using an old Node. Upgrade to Node 24+.
"Error: ENOENT: no such file or directory, open '.env'" > Create .env at the repo root (or wherever dist/server.js is being run from — the MCP loads .env relative to the entry).
"Cannot find module '@modelcontextprotocol/sdk/server/mcp.js'" > Run npm install.
"AbortError: This operation was aborted" > A request to Whoop's API took longer than 30s. Either Whoop is slow or your network is slow. Retry.
---
Q: Is this supported by Whoop? A: No. This MCP works through Whoop's private iOS API, which isn't a public surface they intend for third-party tools. Whoop's terms reserve the right to take action against accounts they catch using unsupported integrations — realistically that means suspending API access or terminating the membership. The author has used the MCP heavily for weeks without issue, and traffic patterns look similar to normal app usage, but there's no guarantee. If losing your Whoop account would be a problem for you, don't use this.
Q: Why not use Whoop's public OAuth API instead? A: It's 13 endpoints, all read-only, no journal, no strength, no stress, no coach, no smart alarm, no trends beyond a single recovery score per day. Whoop also pulled numeric sport_id past 2025-09-01 (now sport_name strings only). If you only need recovery score + sleep stage totals + workout list, the OAuth API is the right answer.
Q: Will this work with the Whoop 4.0 vs 5.0 strap? A: Yes — the API doesn't care which strap you have. It cares about your account.
Q: What about Whoop 6.0? A: When it launches and the iOS app updates, the api version may bump from 7 to 8. The MCP's constants.ts may need an update. Worst case, projections break and you fix them.
Q: Can I run this on a server / cloud / always-on? A: Sure. The MCP doesn't care where it runs. Just make sure your .env survives restarts.
Q: Can I share this MCP with my friends? A: Each user needs their own .env with their own Whoop credentials. Don't share tokens.
Q: Is there an HTTP transport instead of stdio? A: Not yet. The MCP SDK supports SSE but we haven't wired it. PR welcome.
Q: Does this support Claude's Computer Use API? A: It's MCP-compatible — anything that speaks MCP can talk to it.
Q: Why TypeScript instead of Python? A: The MCP SDK is most mature in TypeScript. Also Whoop's API responses are heavily nested — zod is genuinely the best validation library for that shape work.
Q: Why Node 24 specifically? A: Uses import.meta.dirname (added in 20.11), modern fetch, native ESM, AbortController. Node 18 might work; 16 won't.
Q: How long did this take? A: ~3 weeks of evening/weekend work for v1, plus another week to rewrite as v2 with proper projections and the write-safety harness.
Q: Will you maintain this? A: Best-effort. PRs welcome.
---
高质量的MCP工具,提供读写功能
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
经综合评估,MCP工具 在MCP工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | whoop-mcp |
| 原始描述 | 开源MCP工具:Model Context Protocol server giving Claude (or any MCP client) full read + writ。⭐5 · TypeScript |
| Topics | anthropicclaudefitnessmcpmodel-context-protocoltypescript |
| GitHub | https://github.com/briangaoo/whoop-mcp |
| License | NOASSERTION |
| 语言 | TypeScript |
收录时间:2026-05-29 · 更新时间:2026-05-30 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端