WHOOP MCP Server
This server lets Claude (or any MCP client) query your personal WHOOP health data — recovery, sleep, strain, workouts, profile, and readiness/training guidance — using your own OAuth credentials.
Recovery: get recovery score, HRV, resting heart rate, SpO2, and skin temp for recent days or a historical range, with averages.
Sleep: get sleep performance, efficiency, time in bed/asleep, and light/deep/REM stage breakdown, with averages.
Strain: get daily cardiovascular strain, average/max heart rate, and calories burned, with averages/totals.
Workouts: get logged workouts with sport, duration, strain, heart rate, and calories.
Profile: get your name, email, height, weight, and max heart rate.
Readiness/training guidance: get today's recovery context plus recent sleep/strain signals, or a coaching recommendation (green/yellow/red) on how hard to train.
Range-based tools accept either a rolling
dayswindow or explicitstart/enddates for historical queries like "average strain in March 2026".
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 How was my recovery this week?"
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
An MCP (Model Context Protocol) server that lets Claude query your personal WHOOP health data — recovery, sleep, strain, workouts, and profile — via WHOOP's official OAuth 2.0 REST API (v2).
Each person who uses this runs their own copy against their own WHOOP account: you register your own free developer app with WHOOP, and your tokens/credentials stay in local files on your machine (gitignored, and written with restrictive permissions) — they're never sent anywhere except directly between your machine and WHOOP's API.
That said, the health data these tools return is a different story: once a tool call happens, its result is returned to whatever MCP client/model you're using (e.g. Claude), so it's subject to that service's own privacy and data-handling policies from that point on. Only the credentials and tokens are guaranteed to stay local — the recovery scores, sleep data, etc. you ask about necessarily become visible to the model answering your question.
git clone https://github.com/vaibhavgoel63-arch/Whoop-MCP.git
cd Whoop-MCP1. Get WHOOP API credentials
Go to the WHOOP Developer Dashboard and sign in.
Create (or open) an app.
Under the app's API settings, set the Redirect URI to exactly:
http://localhost:8080/callbackCopy the Client ID and Client Secret — you'll paste these into
.envin step 3 below.
Related MCP server: whoop-mcp
2. Prerequisites
Node.js 18+ (needed for the built-in
fetchAPI). Check withnode --version.
3. Install and configure
npm install
cp .env.example .envOpen .env and paste in your Client ID and Client Secret from step 1:
WHOOP_CLIENT_ID=your-client-id-here
WHOOP_CLIENT_SECRET=your-client-secret-here
WHOOP_REDIRECT_URI=http://localhost:8080/callback⚠️ You must manually fill in
WHOOP_CLIENT_IDandWHOOP_CLIENT_SECRET— the server will refuse to start any OAuth flow until these are set.
4. Build and log in (one-time)
npm run build
npm run loginThis will:
Start a temporary local server on
http://localhost:8080.Open your browser to WHOOP's consent screen (requesting recovery, sleep, cycle, workout, profile, body-measurement, and offline/refresh scopes).
After you approve, WHOOP redirects back to
localhost:8080/callbackwith an authorization code.The script exchanges that code for an access + refresh token and saves them to
token.json(gitignored) in the project root.
You only need to do this once. The MCP server automatically refreshes the access token using the
refresh token when it expires (WHOOP access tokens last about 1 hour). If your refresh token is
ever revoked or expires, just re-run npm run login.
5. Connect to Claude Desktop
Open your Claude Desktop config file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Note: if you installed Claude Desktop from the Microsoft Store, the file above may just be a stub — the app actually reads
%LOCALAPPDATA%\Packages\<Claude package folder>\LocalCache\Roaming\Claude\claude_desktop_config.json. If tools don't show up after following the steps below, check there.
Add a whoop entry under mcpServers. Replace the path below with the absolute path to this
project's dist/server.js on your machine (find it with pwd on macOS/Linux or cd on Windows
from inside the project folder):
{
"mcpServers": {
"whoop": {
"command": "node",
"args": ["/absolute/path/to/whoop-mcp/dist/server.js"]
}
}
}⚠️ You must manually fill in this absolute path to wherever you cloned this repo. Use forward slashes even on Windows (e.g.
C:/Users/you/whoop-mcp/dist/server.js) — they work fine inside this JSON file.
Then fully restart Claude Desktop (quit from the system tray, not just close the window).
6. Test it
In Claude Desktop, click the tools/hammer icon in the chat box and confirm you see
whoopwith 6 tools listed:get_recovery,get_sleep,get_strain,get_workouts,get_profile,get_readiness_context.Try these prompts:
"How was my recovery this week?"
"Should I train hard today?"
"How did I sleep the last 3 nights?"
"Show me my workouts from the last 7 days."
"What's my current strain and how does it compare to yesterday?"
"What was my average strain in March 2026?" (historical range, not just "last N days")
Spot-check one result (e.g. today's recovery score) against the WHOOP app to confirm the numbers match.
Tools reference
Tool | Description |
| Recovery score, HRV, resting heart rate, SpO2, skin temp, |
| Sleep performance %, efficiency %, stage breakdown (light/deep/REM), |
| Daily strain, average/max heart rate, calories per day, |
| Logged workouts with sport, duration, strain, heart rate, calories, |
| Name, email, height, weight, max heart rate |
| Today's recovery, last 3 nights of sleep, last 3 days of strain — raw signals only, no verdict. Deliberately doesn't try to tell you whether to train; it can't see context like soreness, illness, or injury, so that synthesis is left to whoever's using this data |
The four range-based tools accept either days (rolling window, e.g. days=7 for the last week) or
an explicit start/end date pair (YYYY-MM-DD, end exclusive) for querying a specific historical
period, e.g. start="2026-03-01", end="2026-04-01" for all of March 2026. Each returns a summary
object (averages/totals) alongside the individual daily/nightly records.
Troubleshooting
"No WHOOP tokens found" — run
npm run login.401 / token errors after working before — the server auto-refreshes access tokens; if you see a refresh failure, your refresh token was likely revoked (e.g. you removed app access in WHOOP settings). Re-run
npm run login.403 Forbidden — your token is missing a scope. Scopes are fixed at login time, so re-run
npm run loginto get a fresh token with the full scope set.429 Too Many Requests — you've hit WHOOP's rate limit (100 requests/minute, 10,000/day). Wait and try again.
Tools don't show up in Claude Desktop — double-check the absolute path in
claude_desktop_config.json, that you rannpm run build(the config points atdist/server.js, notsrc/server.ts), and that you fully restarted Claude Desktop.
Project structure
src/
auth.ts # OAuth constants, token load/save, refresh logic
login.ts # One-time login script (npm run login)
whoopClient.ts # Authenticated WHOOP API client + response normalizers
server.ts # MCP server exposing the 6 tools
.env.example # Template for WHOOP_CLIENT_ID / WHOOP_CLIENT_SECRET / WHOOP_REDIRECT_URI.env (credentials) and token.json (access/refresh tokens) are both gitignored — never commit
either file.
Available Tools
6 toolsget_profileA
Get the WHOOP user's basic profile: name, email, height (cm), weight (kg), and max heart rate. Use this for identity or body-metric questions.
Inputs: no named parameters.
get_recoveryA
Get WHOOP recovery data: recovery score (0-100), HRV (ms), resting heart rate, SpO2, and skin temperature, per day. Accepts either the last N days or an explicit historical start/end range (e.g. a specific past month). Returns a summary with averages plus the daily records. Use this to answer questions about how recovered/rested the user is, now or in the past.
Inputs: end, days, start.
get_sleepA
Get WHOOP sleep data: sleep performance %, efficiency %, time in bed, time asleep, and a breakdown of light/deep/REM sleep stages, per night (excludes naps). Accepts either the last N days or an explicit historical start/end range (e.g. a specific past month). Returns a summary with averages plus the nightly records. Use this to answer questions about sleep quality or duration, now or in the past.
Inputs: end, days, start.
get_strainA
Get WHOOP daily strain data: cardiovascular strain score (0-21), average/max heart rate, and calories burned, per day (cycle). Accepts either the last N days or an explicit historical start/end range (e.g. a specific past month). Returns a summary with averages/totals plus the daily records. Use this to answer questions about daily exertion or workload, now or in the past — including things like 'what was my average strain in March'.
Inputs: end, days, start.
get_training_recommendationA
Get a coaching recommendation for today based on today's WHOOP recovery score and the last 3 days of sleep performance. Returns a recovery band (green/yellow/red) with guidance on training load, plus a warning if sleep debt has been building. Use this to answer 'should I train today' or 'how hard should I push today' style questions.
Inputs: no named parameters.
get_workoutsA
Get a list of logged WHOOP workouts, each with sport type, duration, strain, average/max heart rate, and calories burned. Accepts either the last N days or an explicit historical start/end range (e.g. a specific past month). Returns a summary plus the individual workout records. Use this to answer questions about specific exercise sessions, now or in the past.
Inputs: end, days, start.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool addresses a distinct WHOOP domain (recovery, sleep, strain, workouts, profile, training recommendation) with no overlap. The descriptions clearly differentiate the data each returns, making it easy for an agent to select the correct tool for a given question.
All tool names follow a consistent 'get_' prefix with a noun representing the data type (recovery, sleep, strain, etc.). This is predictable and clear. The only minor deviation is the slightly longer 'get_training_recommendation' compared to the others, but it still fits the pattern.
With 6 tools, the set is well-scoped for a WHOOP fitness tracker integration. Each tool represents a core data category a user would query, and there are no extraneous or missing tools that would make the surface too large or too small for the domain.
The tools cover the most common queries about WHOOP data: recovery, sleep, strain, workouts, profile, and training recommendations. A minor gap is the lack of tools to query cycle/physiological data, meal logging, or team features, but the core personal health metrics are well represented.
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
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Read WHOOP recovery, sleep, cycles, workouts and body measurements.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude to read your Whoop recovery, sleep, cycle, and workout data through natural language queries.-
- FlicenseAqualityCmaintenanceProvides Claude Desktop with access to WHOOP fitness data including recovery, sleep, strain, and workouts.41-
- FlicenseAqualityDmaintenanceEnables Claude to read your WHOOP health data including recovery, sleep, strain, and workouts through the official WHOOP API, so you can ask natural language questions about your fitness metrics.7-
- FlicenseNot gradedqualityDmaintenanceProvides read-only access to Whoop recovery, sleep, strain, workouts, and profile data, allowing users to query their Whoop metrics through natural language in Claude.-