whoop-mcp-server
MCP server for the official Whoop API v2, written in Go. Exposes cycles, recovery, sleep, workouts, and profile data as MCP tools.
Tools
All tools return JSON. Record shapes are the unmodified Whoop API v2 objects, so every field the API exposes is available to the model.
Notes:
- Dates are
YYYY-MM-DD;end_dateis inclusive (internally mapped to the start of the next day, per the API's exclusiveendsemantics). - Collections are date-descending (most recent first) and paginated transparently — the server follows
next_tokenuntillimitrecords (default 25, max 100) are collected. - Scores are point-in-time per record, not time-series: one strain value per cycle, one recovery per sleep. For trends, fetch a range and let the model aggregate (or use
get_average_strainfor the built-in strain average). - A record's
score_statecan beSCORED,PENDING_SCORE, orUNSCORABLE—scoreis only present whenSCORED.
Setup
1. Create a Whoop developer app
At developer.whoop.com, create an app with:
- Redirect URI:
http://localhost:8719/callback - Scopes:
read:cycles,read:recovery,read:sleep,read:workout,read:profile,read:body_measurement,offline
Note the client ID and client secret.
2. Install
Homebrew:
brew install zayden16/tap/whoop-mcp-server
Or download a prebuilt binary from Releases, or:
go install github.com/Zayden16/whoop-mcp-server@latest
Or build from source:
go build -o whoop-mcp-server .
3. Authorize (one time)
export WHOOP_CLIENT_ID=...
export WHOOP_CLIENT_SECRET=...
./whoop-mcp-server auth
Opens a browser for the OAuth flow; the token is saved to
~/Library/Application Support/whoop-mcp/token.json (macOS) and refreshed
automatically thereafter (rotating refresh tokens).
4. Register with Claude Code
claude mcp add whoop --scope user \
-e WHOOP_CLIENT_ID=... \
-e WHOOP_CLIENT_SECRET=... \
-- /path/to/whoop-mcp-server
Or for Claude Desktop, in claude_desktop_config.json:
{
"mcpServers": {
"whoop": {
"command": "/path/to/whoop-mcp-server",
"env": {
"WHOOP_CLIENT_ID": "...",
"WHOOP_CLIENT_SECRET": "..."
}
}
}
}
Example queries
- "What's my recovery score today?"
- "Show my sleep for the past week"
- "What's my average strain over the last 7 days?"