WHOOP MCP
A local MCP server that connects Claude to the WHOOP Developer API, allowing natural language queries about recovery, sleep, strain, workouts, and body measurements. All data stays on your machine with read-only access.
README
WHOOP MCP
Talk to Claude about your WHOOP data.
"How did I sleep this week?" "Is today a good day for a hard run?" "Show me my HRV trend and tell me if I'm overreaching."
This is a small, local MCP server that connects Claude (or any MCP client) to the official WHOOP Developer API v2 — recovery, sleep, strain, workouts, and body measurements.
It runs entirely on your own computer. Your data goes from WHOOP to your machine to Claude, and nowhere else. No server, no account, no telemetry.
Install (5 minutes, no coding)
Step 1 — Create your free WHOOP developer app
WHOOP requires everyone to use their own app credentials. It's free and takes about two minutes.
-
Go to https://developer-dashboard.whoop.com and sign in with your normal WHOOP account.
-
Click Create app. Name it anything (e.g.
My Claude). -
In Redirect URIs, enter exactly:
http://localhost:8765/callbackThis is the single most common thing people get wrong. It must match character for character — no trailing slash, no
https. -
Tick these scopes:
read:recovery·read:cycles·read:sleep·read:workout·read:profile·read:body_measurement·offline -
Save, then copy the Client ID and Client Secret. Keep the tab open.
Step 2 — Download this project
Click the green Code button at the top of this page → Download ZIP, then unzip it somewhere you'll remember (e.g. your Documents folder).
Step 3 — Run the installer
Windows — open the unzipped folder and double-click install-windows.bat
macOS / Linux — open Terminal, then:
cd path/to/whoop-mcp
bash install.sh
The installer will:
- find (or offer to install) Python 3.10+
- install the two dependencies
- ask you to paste your Client ID and Client Secret
- open your browser so you can approve WHOOP access
- write the Claude Desktop config for you — no JSON editing
Step 4 — Restart Claude
Fully quit Claude Desktop (not just close the window) and reopen it. Ask:
"What's my WHOOP recovery today?"
That's it.
What Claude can see
| Tool | What it returns |
|---|---|
whoop_readiness |
Today's snapshot: recovery, HRV, RHR and sleep vs. your rolling baseline, recent strain load, plus personalised Karvonen HR training zones. Start here. |
whoop_recovery |
Daily recovery %, HRV (RMSSD), resting HR, SpO2, skin temperature |
whoop_sleep |
Sleep duration, performance %, efficiency %, consistency %, REM / deep / light / awake, disturbances, respiratory rate, sleep debt |
whoop_cycles |
Daily Strain (0–21), average and max HR, calories |
whoop_workouts |
Per-workout sport, duration, Strain, HR, distance, time in each of the 6 HR zones |
whoop_body_measurements |
Height, weight, WHOOP-measured max HR |
whoop_profile |
Name, email, user id — handy to confirm you're connected to the right account |
All tools are read-only. Nothing can modify or delete your WHOOP data.
The HR zones in whoop_readiness are derived from your numbers — resting HR
from your rolling recovery baseline, max HR from WHOOP's own measurement. You can
override either (see Advanced below).
Things to try
Summarise my last 7 days of sleep and tell me what's hurting my recovery.
Compare my HRV this week against my 30-day baseline.
Based on my WHOOP readiness, what should today's run look like?
Which workouts last month had the highest strain per minute?
Plot my resting heart rate trend and flag anything unusual.
Am I showing signs of overreaching? Look at HRV, RHR and strain together.
Privacy & security
- Everything is local. The server runs on your machine as a subprocess of
Claude. The only network calls it makes are to
api.prod.whoop.com. - Credentials never touch the Claude config. Your client ID, secret and
OAuth tokens are stored in
~/.whoop-mcp/with owner-only file permissions (0600on macOS/Linux). The Claude config just points at the script. - Read-only scopes. The server only ever issues
GETrequests. - No telemetry, no analytics, no third-party services. Read
whoop_mcp_server.py— it's one file, ~600 lines, no obfuscation. - Access tokens are refreshed automatically. To cut access off entirely, delete
~/.whoop-mcp/and revoke the app in your WHOOP developer dashboard.
Found a security issue? Please open an issue (or email the maintainer for anything sensitive) rather than filing a public PR.
Troubleshooting
"Token exchange failed" during setup
Your redirect URI doesn't match. It must be exactly http://localhost:8765/callback
in the WHOOP developer dashboard.
Claude doesn't show any WHOOP tools Fully quit Claude (Windows: right-click the tray icon → Quit; macOS: ⌘Q) and reopen. Then run the built-in check:
python whoop_mcp_server.py doctor
It prints exactly which piece is missing.
"Port 8765 is already in use" Set a different port, and add the matching redirect URI in the WHOOP dashboard:
WHOOP_REDIRECT_PORT=8799 python whoop_mcp_server.py auth
Windows: "python is not recognized" / wrong Python version Install Python 3.10+ from python.org and tick "Add python.exe to PATH", then run the installer again. Anaconda's Python is often too old and shadows the real one — the installer tries to work around this automatically.
Recovery or readiness comes back empty
WHOOP needs a few days of wear to calibrate, and recovery only appears after a
scored sleep. Check whoop_recovery for "calibrating": true.
Everything broke after a while
Re-authorize: python whoop_mcp_server.py auth
Advanced
Manual Claude Desktop config
The installer does this for you, but if you'd rather do it by hand, add this to
claude_desktop_config.json:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"whoop": {
"command": "python",
"args": ["/full/path/to/whoop_mcp_server.py"]
}
}
}
Use the full absolute path to your Python executable if python isn't on PATH.
Use with Claude Code
claude mcp add whoop -- python /full/path/to/whoop_mcp_server.py
Environment variable overrides
| Variable | Purpose |
|---|---|
WHOOP_CLIENT_ID / WHOOP_CLIENT_SECRET |
Supply credentials instead of using ~/.whoop-mcp/config.json |
WHOOP_MCP_HOME |
Where config and tokens live (default ~/.whoop-mcp) |
WHOOP_REDIRECT_PORT |
OAuth callback port (default 8765) |
WHOOP_RHR |
Force a resting-HR value for zone maths |
WHOOP_MAX_HR |
Force a max-HR value for zone maths |
Commands
python whoop_mcp_server.py setup # full guided setup
python whoop_mcp_server.py auth # re-run OAuth only
python whoop_mcp_server.py doctor # diagnose the install
python whoop_mcp_server.py # run the MCP server (Claude does this)
Requirements
- Python 3.10+
- An active WHOOP membership
- Claude Desktop, Claude Code, or any MCP-compatible client
Contributing
Issues and pull requests welcome. Please don't include real WHOOP data, screenshots with personal metrics, or credentials in any issue.
License
MIT — see LICENSE.
Not affiliated with, endorsed by, or sponsored by WHOOP. "WHOOP" is a trademark of WHOOP, Inc. This project uses the publicly documented WHOOP Developer API. Nothing here is medical advice.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。