whoop-mcp-server
Connects WHOOP fitness and recovery data to Claude Desktop, enabling users to query workouts, sleep, recovery, and trends through natural language.
README
WHOOP MCP Server
Connect WHOOP data to Claude Desktop through MCP. This server authenticates with WHOOP, fetches fitness/recovery datasets, and exposes them as MCP tools.
What It Can Do
- Return WHOOP profile and body measurements.
- Return workouts, recovery, sleep, and cycles with date filters and pagination.
- Return an analyzed dashboard snapshot for quick trend views.
- Return full raw history used by the dashboard.
- Return precomp analytics for trends, period comparisons, correlations + narrative insights.
- Export flattened CSV for spreadsheet & pandas workflows.
- Keep tokens encrypted locally and refresh them automatically.
MCP Tools
get_whoop_auth_status: token/auth health.get_whoop_profile: WHOOP profile.get_whoop_body_measurements: body measurement record.get_whoop_workouts(limit, start_date, end_date, next_token): workouts.get_whoop_recovery(limit, start_date, end_date, next_token): recovery records.get_whoop_sleep(limit, start_date, end_date, next_token): sleep records.get_whoop_cycles(limit, start_date, end_date, next_token): cycle records.get_whoop_dashboard_snapshot(refresh): aggregated dashboard payload.get_whoop_full_history(refresh): raw history payload.analyze_whoop_trends(metric, days): trend stats forrecovery|sleep|hrv|strain|rhr.compare_whoop_periods(start_date_1, end_date_1, start_date_2, end_date_2): side-by-side period comparison.get_whoop_correlations(days): pairwise metric correlations (sleep/recovery/strain/HRV relationships).get_whoop_insights(days): dashboard-style narrative insights for the selected trailing window.
Dates use YYYY-MM-DD.
Requirements
- Python 3.10+ (3.11 ideally)
- Active WHOOP account
- Claude Desktop
Install
git clone https://github.com/arpitarunkumaar/whoop-mcp-server.git
cd whoop-mcp-server
python3.11 -m venv .venv311
source .venv311/bin/activate
pip install -r requirements.txt
Authorize WHOOP
Use the direct local OAuth flow (no third-party auth broker):
python3.11 setup.py --client-id YOUR_CLIENT_ID
If WHOOP_CLIENT_SECRET is not set, setup prompts for it securely.
Claude Desktop Setup
Claude config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/claude/claude_desktop_config.json
Use absolute paths:
{
"mcpServers": {
"whoop": {
"command": "/absolute/path/to/python3",
"args": ["/absolute/path/to/whoop-mcp-server/src/whoop_mcp_server.py"],
"env": {
"PYTHONPATH": "/absolute/path/to/whoop-mcp-server/src"
}
}
}
}
Restart Claude Desktop after saving config.
Quick Verification
Ask Claude:
- "Run
get_whoop_auth_status." - "Show my last 7 days of recovery and sleep."
Local Dashboard
- Run
python3.11 src/whoop_dashboard_server.pyto start the local dashboard API server (loopback-only by default). - Run
npm run devto start the Next.js dashboard. - Open
http://localhost:3000in your browser to view the dashboard UI. - Click
Refreshin the dashboard UI to force a fresh WHOOP pull. - To bind to a non-loopback host, pass
--allow-remoteexplicitly.
Live Data Reset (Quick Steps)
If the dashboard is not showing current data, run these steps in order:
- Stop any existing dashboard process:
pkill -f 'src/whoop_dashboard_server.py'
- Clear local WHOOP cache:
rm -f ~/.whoop-mcp-server/cache.json
- Re-authorize WHOOP:
python3.11 setup.py --client-id YOUR_CLIENT_ID --redirect-uri http://127.0.0.1:8786/callback
- Start the dashboard API again:
python3.11 src/whoop_dashboard_server.py --host 127.0.0.1 --port 8765
- Open
http://localhost:3000and clickRefresh.
CSV Export
Generate JSON + CSV in one run:
python3.11 scripts/export_whoop_data.py --csv
Generate only JSON:
python3.11 scripts/export_whoop_data.py
CSV files are written into the selected export directory (for example storage/exports/whoop-export-YYYYMMDDTHHMMSSZ/):
recovery.csvsleep.csvworkouts.csvcycles.csvdaily_summary.csvcsv_manifest.json(row counts + metadata)
Essential Notes
- Token storage path:
~/.whoop-mcp-server/ - Logs: use
LOG_LEVELand optionalLOG_FILEenvironment variables. - Export utility (optional):
python scripts/export_whoop_data.py - Drop prior exports in
drop_exports/; incremental runs auto-select the newest dropped export. drop_exports/is scaffolded in Git, but files you drop there are gitignored.- Override drop folder if needed:
python scripts/export_whoop_data.py --drop-base /path/to/exports - If refresh fails after moving tokens between machines, set:
WHOOP_CLIENT_IDWHOOP_CLIENT_SECRET
- If your
~/.whoop-mcp-server/tokens.jsonwas created before client credentials were persisted, re-run setup once so refresh remains stable:python3.11 setup.py --client-id YOUR_CLIENT_ID
Troubleshooting
No valid access token available:- Run the Live Data Reset (Quick Steps) section above.
- OAuth error
invalid_client:- Re-run step 3 from Live Data Reset (Quick Steps) and complete the browser authorization flow.
- Claude does not show WHOOP tools:
- Confirm absolute paths in
claude_desktop_config.json - Ensure
PYTHONPATHpoints to<repo>/src - Restart Claude Desktop
- Confirm absolute paths in
License
MIT. See LICENSE.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。