WHOOP MCP Server
The WHOOP MCP Server gives MCP-compatible AI assistants access to personal WHOOP health and fitness data for recovery-aware planning and workload management. Key capabilities include:
Wellbeing Snapshot: Fetch a daily summary of recovery score, sleep data, cycle strain, workouts, and a workload recommendation for any given date.
Sleep Summary: Get detailed sleep metrics including sleep stages, sleep performance, HRV, resting heart rate, recovery score, and personalized recommendations.
Training Load Trend: Compare short-window (3–14 days) vs. long-window (7–56 days) trends across sleep, recovery, HRV, resting heart rate, and day strain.
Baseline Profile: Compute personal baseline ranges over a historical window (14–90 days) for sleep, recovery, HRV, resting heart rate, and day strain.
Change Alerts: Identify meaningful changes versus yesterday and your historical baseline, such as sleep drops, recovery dips, HRV dips, and resting heart rate spikes.
Workload Guard: Evaluate a proposed workload against current recovery signals and receive a safer daily scope suggestion when signals are weak.
Authentication is handled securely via OAuth 2.0 with local token caching and automatic refresh.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WHOOP MCP Server show me my latest recovery score and sleep summary"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WHOOP MCP Server
WHOOP MCP Server is a TypeScript Model Context Protocol (MCP) server that gives MCP-compatible assistants access to personal WHOOP recovery, sleep, strain, and workout data.
The server runs locally over stdio. It authenticates with WHOOP through OAuth 2.0, stores reusable tokens on disk, refreshes tokens when needed, and exposes structured tools that assistants can use for workload planning and recovery-aware context.
Features
Daily WHOOP recovery, sleep, cycle strain, and workout snapshots
Sleep-stage and sleep-performance summaries
Recovery score, HRV, resting heart rate, SpO2, and skin temperature summaries
Short-window versus long-window trend analysis
Historical baseline profiles
Change alerts versus yesterday and personal baseline
Workload guardrails based on recovery signals
Local OAuth token cache with refresh-token support
Related MCP server: Whoop MCP Server
Requirements
Node.js 20 or newer
npm
A WHOOP account
A WHOOP Developer Dashboard app
Create the WHOOP app at:
https://developer-dashboard.whoop.comThe app must have a redirect URI registered. The default used by this project is:
whoop://mcp/callbackQuick Start
Install dependencies:
npm installRun the setup wizard:
npm run setupThe wizard asks for:
WHOOP Client ID
WHOOP Client Secret
Redirect URI
Token cache folder
OAuth scopes
It then opens the WHOOP authorization page in your browser, exchanges the authorization code for tokens, writes the token cache, and offers to create a local .env file.
Build the MCP server:
npm run buildAuthentication
WHOOP uses OAuth 2.0 Authorization Code flow for API access. This project does not collect or store your WHOOP username or password.
The setup wizard stores API tokens in:
.whoop-tokens/tokens.jsonBy default it also offers to write local MCP settings to:
.envBoth .env and .whoop-tokens/ are ignored by git.
The default OAuth scopes are:
read:profile read:body_measurement read:recovery read:cycles read:sleep read:workout offlineThe offline scope is required for refresh-token support. Without it, the server may require a new browser login when the access token expires.
Redirect URI Behavior
WHOOP supports redirect URLs such as https://... and custom schemes such as whoop://....
With the default whoop://mcp/callback redirect, the setup wizard asks you to paste the final redirected URL from the browser after approving access. If your WHOOP app is configured with a loopback redirect such as http://127.0.0.1:8787/callback, the wizard can capture the callback automatically with a temporary local HTTP server.
MCP Tools
Tool | Description |
| Returns recovery, sleep, cycle strain, workouts, and a workload recommendation for a date. |
| Returns sleep-stage, sleep-performance, recovery, HRV, and resting-heart-rate context. |
| Compares short-window and long-window trends for sleep, recovery, HRV, resting heart rate, and day strain. |
| Computes baseline ranges over a historical window. |
| Highlights meaningful changes versus yesterday and baseline. |
| Evaluates a proposed workload against current recovery signals. |
MCP Resource
Resource | Description |
| Today's WHOOP wellbeing snapshot as JSON. |
MCP Prompt
Prompt | Description |
| Guidance for using WHOOP data during workload planning without treating it as medical advice. |
Configuration
The setup wizard can create .env automatically. You can also create it manually:
Copy-Item .env.example .envSupported environment variables:
Variable | Required | Description |
| Yes | OAuth Client ID from the WHOOP Developer Dashboard. |
| Yes | OAuth Client Secret from the WHOOP Developer Dashboard. |
| Yes | Registered OAuth redirect URI. Defaults to |
| Yes | Directory used to read and write WHOOP OAuth tokens. Defaults to |
| No | Space- or comma-separated OAuth scopes. Defaults to the scopes listed above. |
Use an absolute WHOOP_TOKEN_DIR when configuring an MCP client. MCP clients often start servers from a different working directory, and an absolute path avoids token-cache lookup problems.
Running Locally
Validate the project:
npm run typecheck
npm run buildStart the MCP server:
npm run startThe server communicates over stdio, so it will appear idle in a normal terminal until an MCP client connects.
Codex Configuration
Example Codex MCP configuration:
[mcp_servers.whoop]
command = "node"
args = ["C:\\path\\to\\whoop-mcp-server\\dist\\index.js"]
[mcp_servers.whoop.env]
WHOOP_CLIENT_ID = "your-client-id"
WHOOP_CLIENT_SECRET = "your-client-secret"
WHOOP_REDIRECT_URI = "whoop://mcp/callback"
WHOOP_TOKEN_DIR = "C:\\path\\to\\whoop-mcp-server\\.whoop-tokens"Restart Codex after updating the configuration.
Claude Desktop Configuration
Example Claude Desktop MCP configuration:
{
"mcpServers": {
"whoop": {
"command": "node",
"args": ["C:\\path\\to\\whoop-mcp-server\\dist\\index.js"],
"env": {
"WHOOP_CLIENT_ID": "your-client-id",
"WHOOP_CLIENT_SECRET": "your-client-secret",
"WHOOP_REDIRECT_URI": "whoop://mcp/callback",
"WHOOP_TOKEN_DIR": "C:\\path\\to\\whoop-mcp-server\\.whoop-tokens"
}
}
}
}Restart Claude Desktop after updating the configuration.
Troubleshooting
If setup fails:
Confirm the Client ID and Client Secret are copied from the WHOOP Developer Dashboard.
Confirm the redirect URI entered in the terminal exactly matches a redirect URI registered on the WHOOP app.
Confirm the app has access to the requested scopes.
Delete
.whoop-tokens/and runnpm run setupagain if tokens are stale.
If the MCP client cannot fetch WHOOP data:
Confirm
npm run buildcompleted successfully.Confirm
dist/index.jsexists.Use an absolute
WHOOP_TOKEN_DIRin the MCP client configuration.Include
WHOOP_CLIENT_IDandWHOOP_CLIENT_SECRETin the MCP client environment so token refresh can work.Restart the MCP client after changing configuration.
If token refresh fails:
Confirm
WHOOP_SCOPESincludesoffline.Run
npm run setupagain to create a fresh token cache.Avoid running multiple server instances against the same token cache at the same time. WHOOP refresh tokens can rotate, and concurrent refreshes may invalidate one instance's cached token.
Security
Do not commit
.envor.whoop-tokens/.Treat WHOOP data as private health-related information.
Keep the WHOOP Client Secret local to trusted machines.
Revoke the WHOOP app or delete the token cache if a machine is lost or no longer trusted.
Development
npm run dev
npm run setup
npm run typecheck
npm run buildAvailable Tools
6 toolswhoop_baseline_profileWHOOP baseline profileB
Compute personal baseline ranges over a historical window for sleep, recovery, HRV, resting heart rate, and day strain.
Inputs: date, windowDays.
whoop_change_alertsWHOOP change alertsB
Highlight meaningful changes versus yesterday and baseline, such as sleep drops, recovery dips, HRV dips, and resting heart rate spikes.
Inputs: date, baselineWindowDays.
whoop_sleep_summaryWHOOP sleep summaryC
Fetch WHOOP sleep performance, sleep stages, recovery score, HRV, resting heart rate, and recommendation.
Inputs: date.
whoop_training_load_trendWHOOP training load trendB
Return short and long window trends for sleep, sleep performance, recovery, HRV, resting heart rate, and day strain.
Inputs: date, shortWindowDays, longWindowDays.
whoop_wellbeing_snapshotWHOOP wellbeing snapshotA
Fetch a concise WHOOP snapshot for a date: recovery, sleep, cycle strain, workouts, and a workload recommendation.
Inputs: date, includeRaw.
whoop_workload_guardWHOOP workload guardA
Check WHOOP recovery metrics before committing to a workload and suggest a safer daily scope when signals are weak.
Inputs: workload (required), ticketCount, date.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have distinct purposes (baseline, alerts, sleep, trends, snapshot, guard), but 'wellbeing_snapshot' overlaps with 'sleep_summary' and 'training_load_trend' as it includes similar metrics, causing potential ambiguity.
All tools follow a consistent 'whoop_<domain>_<aspect>' snake_case pattern with no mixing of conventions, making them predictable and easy to interpret.
With 6 tools covering key areas of WHOOP health metrics, the count is well-scoped for an API wrapper—neither too sparse nor overwhelming.
The tool set covers essential read operations (sleep, recovery, HRV, strain, trends, alerts), but lacks explicit tools for detailed workout breakdown or historical data export, though snapshot partially fills gaps.
Maintenance
Related MCP Connectors
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Your WHOOP data in the assistant, read-only: recovery, sleep, strain, workouts, cycles and body meas
Multi-tenant hosted MCP server for Oura Ring — 21 read-only tools, OAuth per user.
Hosted Apple Health MCP: workouts, sleep and HRV in ChatGPT, Claude, Gemini, Grok. Free, no export.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegrates WHOOP biometric data into Claude and other MCP-compatible applications, providing access to sleep analysis, recovery metrics, strain tracking, and biological age data through natural language queries.17 npm13MIT
- AlicenseNot gradedqualityDmaintenanceConnects Whoop health data to Claude via an MCP server, enabling retrieval of recovery, sleep, strain, and workout metrics through natural language tools.57 npmMIT
- AlicenseAqualityDmaintenanceMCP server that enables AI assistants to access Whoop health data including recovery, sleep, workouts, and daily strain for personalized health recommendations.757 npmMIT
- AlicenseAqualityDmaintenanceEnables querying WHOOP biometric data (recovery, strain, sleep, workouts, heart rate) from any MCP-compatible AI client, supporting remote and direct modes.1657 npmMIT