whoop-sleep-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP port for single-user HTTP mode, e.g. `3000`. | |
| DATA_DIR | No | Persistent disk directory for the encrypted token store. On Render this is `/var/data`. | |
| MCP_MODE | No | Set to `hosted` for multi-user OAuth over Streamable HTTP. In hosted deployments this is typically set in render.yaml. | |
| PUBLIC_URL | No | Optional canonical public origin. On Render, `RENDER_EXTERNAL_URL` is used if this is unset. | |
| MCP_TRANSPORT | No | Set to `http` for single-user HTTP mode. Otherwise the server uses stdio. | |
| MCP_AUTH_TOKEN | No | Shared bearer token for single-user HTTP mode. Do not set this in hosted mode. | |
| WHOOP_CLIENT_ID | Yes | WHOOP developer app Client ID. | |
| WHOOP_TOKEN_FILE | No | Path where local single-user WHOOP tokens are saved. Defaults to `~/.whoop-mcp/tokens.json`. | ~/.whoop-mcp/tokens.json |
| WHOOP_REDIRECT_URI | No | Optional override if the callback is not `$PUBLIC_URL/callback`. | |
| WHOOP_CLIENT_SECRET | Yes | WHOOP developer app Client Secret. Treat like a password. | |
| TOKEN_ENCRYPTION_KEY | No | Key used to encrypt each user's WHOOP tokens at rest in hosted mode. Render can generate it, or use `openssl rand -hex 32`. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| whoop_profileA | Basic WHOOP profile (name, email) plus body measurements (height, weight, WHOOP max HR). |
| 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. |
| whoop_recoveriesB | Recovery records: recovery %, resting HR, HRV (RMSSD, ms), SpO2 %, skin temp (C). One per sleep. |
| whoop_cyclesB | Physiological cycles (roughly wake-to-wake days): day strain, kJ, average and max HR for the whole cycle, step count when returned. |
| whoop_workoutsC | Workouts: sport, start/end, strain, average/max HR, kJ, distance, HR-zone durations. |
| 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. |
| 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). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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.