whoop-sleep-mcp
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-sleep-mcp How did I sleep last night, and what's my recovery score today?"
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-sleep-mcp
This is a small read-only MCP server for the official WHOOP Developer API v2. It lets a chat client (Grok Bot, Cursor, Claude Desktop, and others) read your sleep, recovery, strain, workouts and profile — plus a whoop_sleep_hr_metrics tool that compares last night with a rolling baseline.
Two ways to run it:
Hosted (the easy path for most people): the owner registers one WHOOP developer app and deploys this server once. Everyone else adds the server URL as a remote MCP connector and signs in with their own WHOOP account in the browser. No API keys, no terminal, no per-user developer app.
Local (single user): you create a WHOOP developer app yourself, run
whoop-sleep-mcp auth, and talk to the server over stdio on your machine.
Not affiliated with WHOOP. You need an active WHOOP membership.
For people using a hosted server
You do not need a WHOOP developer account.
Get the server URL from whoever deployed it. It looks like
https://something.onrender.com/mcp.In your MCP client, add a remote / custom connector (in Grok Bot: ask it to add a custom connector; in Cursor: a custom MCP connector). Paste that URL. You do not paste any keys.
When the client opens a browser window, sign in to WHOOP and approve access.
Ask something like: Use whoop_last_night and tell me my restorative minutes.
The server stores your WHOOP tokens on the host, encrypted, isolated from other users. You can disconnect later from WHOOP's own account settings.
If your client cannot do OAuth for remote MCP, ask the host about the single-user HTTP fallback (a shared bearer token). That mode cannot separate users and is only for a private deploy of one person.
Related MCP server: whoop-tracker-mcp-server
For the person hosting this
Pick Render. It has a Deploy button, a persistent disk for tokens, and a Node runtime. Fly.io, Railway or a VPS with a volume also work (see Dockerfile); Render is the path documented below because it is one-click for a non-ops owner.
You will need: a Render account, a WHOOP account, and a paid Render web service (Starter or above) so the disk survives restarts. Free Render instances have an ephemeral filesystem, which would drop everyone's WHOOP refresh tokens on each deploy.
1. Create a WHOOP developer app
Open https://developer-dashboard.whoop.com and sign in with your WHOOP account. Create a Team if it asks.
Apps → Create (https://developer-dashboard.whoop.com/apps/create).
Scopes: tick
read:sleep,read:recovery,read:cycles,read:workout,read:profileandread:body_measurement. During sign-in the server also requestsoffline, which WHOOP needs to issue a refresh token.Redirect URI: you will set this to
https://<your-host>/callbackafter the first deploy (step 3). For now you can save the app and edit the URI once you have the Render URL.Copy the Client ID and Client Secret. Treat the secret like a password. These stay on the host as environment variables; users never see them.
Unreviewed WHOOP apps may be limited in how many members can connect. Check the current limit and how to request a higher tier in WHOOP's own docs: App Approval.
2. Deploy on Render
Click Deploy to Render. Sign in to Render if needed.
When it asks for environment variables, paste:
WHOOP_CLIENT_ID— from the WHOOP dashboardWHOOP_CLIENT_SECRET— from the WHOOP dashboard
Leave
TOKEN_ENCRYPTION_KEYto be generated.MCP_MODE=hostedand a 1 GB disk at/var/datacome fromrender.yaml.Create the service. When it is live, copy the public URL, e.g.
https://whoop-sleep-mcp.onrender.com.
3. Point WHOOP at this host
Back in the WHOOP developer dashboard, edit the app's Redirect URI so it is exactly:
https://<your-service>.onrender.com/callbackNo trailing slash. It must match what the server prints at boot (WHOOP redirect URI must be exactly: …) and what GET /health reports as redirect_uri.
4. Hand the URL to users
Give people:
https://<your-service>.onrender.com/mcpThey add that as a remote MCP connector and sign in with WHOOP. Open https://<your-service>.onrender.com/ in a browser for a short reminder page.
Environment the host sets
Var | Who sets it | Purpose |
| You | The one WHOOP developer app |
| Render generates, or | Encrypts each user's WHOOP tokens at rest |
|
| Multi-user OAuth over Streamable HTTP |
|
| Persistent disk for the encrypted store |
| optional | Canonical public origin. On Render, |
| optional | Override if the callback is not |
Do not set MCP_AUTH_TOKEN in hosted mode. That switches the process back to a single shared bearer.
What the official API does not have
The WHOOP v2 public API (docs) has no heart-rate time series, no hypnogram, no Journal, no stress data and no writes. So this server cannot compute sleep-onset HR, lowest HR or when it happened, average sleeping HR, or pre-bed HR. whoop_sleep_hr_metrics returns those as not_available instead of guessing. The sleep-window heart data the API does give is per-night resting HR and HRV (from the recovery) plus respiratory rate (from the sleep). If you need the HR curve or Journal answers, see unofficial/. It explains that option and its risks.
Tools
Tool | What it returns |
| Name and email, height, weight, WHOOP max HR |
| Per sleep: start/end, in-bed, light, SWS, REM, restorative (SWS+REM), awake, disturbances, cycles, respiratory rate, efficiency, consistency, performance, sleep need. Naps are flagged |
| Recovery %, resting HR, HRV (RMSSD, ms), SpO2 %, skin temp °C |
| Day strain, kJ, average and max HR for the whole cycle |
| Sport, times, strain, avg/max HR, kJ, distance, HR-zone minutes |
| Latest scored main sleep, its recovery, and the current cycle |
| One night's RHR, HRV, respiratory rate, SpO2, skin temp and restorative minutes, each compared with a rolling baseline of earlier nights (7 by default). It lists which HR metrics the API does not expose |
Local single-user mode
Requires Node 20 or newer. Create a WHOOP app as in hosting step 1, but set Redirect URI to http://localhost:8787/callback.
npm install -g <this-package> # or: git clone … && npm install
export WHOOP_CLIENT_ID=… WHOOP_CLIENT_SECRET=…
whoop-sleep-mcp auth # opens a local callback on :8787, then saves tokens
# no browser on this machine? use: whoop-sleep-mcp auth --manual
whoop-sleep-mcp status
whoop-sleep-mcp serve # stdio MCPTokens are saved to ~/.whoop-mcp/tokens.json with mode 600 (WHOOP_TOKEN_FILE to change). WHOOP rotates the refresh token on every refresh; the server saves the new one.
Single-user HTTP (one person, a shared secret — not OAuth, not multi-user):
MCP_TRANSPORT=http MCP_AUTH_TOKEN=$(openssl rand -hex 32) PORT=3000 whoop-sleep-mcp servePOST /mcp with Authorization: Bearer <MCP_AUTH_TOKEN>. GET /health is open. Use this only when you cannot run hosted OAuth; every client that has the token is the same user.
How hosted auth works
Remote MCP over Streamable HTTP follows the MCP authorization spec: protected-resource metadata, an OAuth authorization server, PKCE, and dynamic client registration. This process is that authorization server. It does not send people to a generic login page of our own; /authorize redirects to WHOOP, /callback stores that person's WHOOP tokens (encrypted, keyed by WHOOP user id), and then issues an MCP access token to the client. The TypeScript SDK's mcpAuthRouter + OAuthServerProvider implement the wire format.
A per-user connector URL token was considered and rejected as the default: it is easier to type, but every user would need a unique secret URL, there is no browser sign-in, and clients that already know MCP OAuth would not use it. The shared MCP_AUTH_TOKEN HTTP mode remains only for a private single-user deploy.
Notes
WHOOP collections return at most 25 records per page. Tools page through them up to
limit(max 100). If WHOOP returns 429, wait a minute and retry.Sleeps and recoveries that WHOOP hasn't scored yet are skipped by the night-level tools.
Run the tests with
npm test.
MIT licensed. See LICENSE.
Available Tools
7 toolswhoop_cyclesB
Physiological cycles (roughly wake-to-wake days): day strain, kJ, average and max HR for the whole cycle, step count when returned.
Inputs: end, limit, start.
whoop_last_nightA
Last night in one call: the latest scored main sleep (not a nap), its recovery, and today's cycle strain so far.
Inputs: no named parameters.
whoop_profileA
Basic WHOOP profile (name, email) plus body measurements (height, weight, WHOOP max HR).
Inputs: no named parameters.
whoop_recoveriesB
Recovery records: recovery %, resting HR, HRV (RMSSD, ms), SpO2 %, skin temp (C). One per sleep.
Inputs: end, limit, start.
whoop_sleep_hr_metricsA
Heart metrics around the sleep window for one night (default: most recent): resting HR, HRV RMSSD, respiratory rate, SpO2, skin temp, restorative minutes, each vs a rolling baseline of prior nights. States plainly which HR metrics the public API does not expose (sleep-onset HR, lowest HR and time, HR time series).
Inputs: wake_date, baseline_nights.
whoop_sleepsB
Sleep records (naps included, flagged). Stage minutes, restorative (SWS+REM) minutes, respiratory rate, efficiency, consistency, sleep need. Times are UTC plus WHOOP's timezone_offset.
Inputs: end, limit, start.
whoop_workoutsC
Workouts: sport, start/end, strain, average/max HR, kJ, distance, HR-zone durations.
Inputs: end, limit, start.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
The core resource tools (profile, recoveries, sleeps, cycles, workouts) are clearly distinct. whoop_last_night intentionally aggregates several resources, and whoop_sleep_hr_metrics overlaps with recovery metrics, but the descriptions clarify the convenience-summary versus baseline-comparison roles.
All tools use a consistent whoop_ snake_case prefix with resource-oriented names. Minor deviations are the convenience tool whoop_last_night and the compound whoop_sleep_hr_metrics, but the naming remains predictable overall.
Seven tools is well-scoped for a WHOOP data reader, with each tool covering a distinct data type or useful summary view. There are no obvious filler tools.
The surface covers the main read-only domain: profile, sleep, recovery, cycles, workouts, and a last-night summary. Minor gaps may exist around individual record lookup by ID/date range or broader journal data, but the stated sleep and recovery purpose is well covered.
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
Read WHOOP recovery, sleep, cycles, workouts and body measurements.
WHOOP MCP server for ChatGPT, Claude and any AI agent: get day summary, list recoveries, list sleeps, list workouts, list cycles and get membership in your own WHOOP account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to WHOOP yourself; Cotlet does not store your password and you need no WHOOP API key. About the official WHOOP API: WHOOP has an official developer API (v2, OAuth 2.0, read-only) but no official MCP server (checked 27 Oct 2026). The API returns recovery, sleep, cycles and workouts to an app you register in the WHOOP Developer Dashboard, and an app WHOOP has not approved serves 10 members. Setup and FAQ: https://cotlet.dev/integrations/whoop-api-mcp-server
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables querying WHOOP fitness data including recovery, sleep, workouts, physiological cycles, and profile via the WHOOP API v2.11MIT
- AlicenseBqualityDmaintenanceIntegrates with Whoop API v2 to access user profile, sleep, recovery, cycles, and workout data via natural language, with OAuth2 authentication and automatic token refresh.1422 npmMIT
- AlicenseAqualityCmaintenanceEnables Claude to query personal WHOOP health data including recovery, sleep, strain, workouts, and profile via WHOOP's OAuth 2.0 REST API.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables read-only access to WHOOP health data through MCP clients, including recovery, HRV, sleep, strain, workouts, cycles, trends, and period comparisons, with resilient handling of outages, token refresh, and natural-language dates.MIT