whoopmcp
whoopmcp is a read-only MCP server for WHOOP data, providing authentication, profile/body measurements, record retrieval, and statistical analysis.
Authentication:
whoop_auth_status,whoop_login,whoop_complete_login,whoop_logoutProfile & Body:
get_profile(user ID, email, name),get_body_measurement(height, weight, max HR)Records:
list_recoveries(recovery score, HRV, RHR),list_sleeps(performance, stages),list_cycles(strain, HR, kJ),list_workouts(sport, strain, zones); get by ID:get_sleep,get_workoutAnalysis:
summarize_period(statistics over a range),metric_trend(trend/slope),correlate_metrics(Pearson/Spearman with lags),compare_periods(compare two periods)
Click on "Install 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., "@whoopmcpHow did my recovery trend over the last month?"
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.
whoopmcp
A read-only MCP server for the WHOOP API v2. It lets an MCP client — Claude Desktop, Claude Code, Cursor, or anything else that speaks the protocol — read and analyse your own WHOOP data: recovery, sleep, strain, cycles and workouts.
Runs locally by default, and your WHOOP credentials never leave your machine
in that mode. Run with WHOOPMCP_TRANSPORT=streamable-http (#27) instead and
that stops being true: the operator of that server now holds other members'
tokens and health data server-side, which makes them a data controller, not
a bystander. See PRIVACY.md's local-mode/hosted-mode split
before hosting this for anyone but yourself.

Install and usage patterns live in the wiki; docs/SETUP.md is the from-scratch walkthrough.
Status. Local mode works today against the real WHOOP v2 API, read-only. The hosted surface (streamable HTTP, OAuth resource server, per-tenant isolation, encrypted token storage, webhooks, metrics) is implemented and has been through the roadmap's security audits (#69, #37); the findings they raised are fixed and closed. Running it hosted for others still needs WHOOP's app approval, not yet granted, which caps a shared deployment at 10 members in the meantime (#33). See Roadmap.
Not affiliated with WHOOP, Inc. "WHOOP" is their trademark. This is an independent client of their public developer API.
What it does
Area | Tools |
Auth |
|
Profile |
|
Records |
|
Local store |
|
Analysis |
|
Alongside the 21 tools it registers 3 prompts (morning_readiness_briefing,
weekly_training_review, sleep_debt_investigation) and one resource
template, whoop://user/{item}, serving profile, latest-recovery,
latest-sleep and latest-cycle.
Every tool that only reads is annotated readOnlyHint; the one exception is
whoop_sync, annotated as a non-destructive, idempotent write because it
upserts fetched records into the local store — it never writes to your
WHOOP account. No MCP tool can mutate your
WHOOP account — the one mutating endpoint WHOOP exposes
(DELETE /v2/user/access) is never registered as an MCP tool, so no model
can revoke your grant. It is reachable only from a terminal on the machine
running the server, as the operator-run whoopmcp delete-member --whoop-user-id N (see Privacy); whoop_logout itself only
deletes the token stored on your own disk.
Questions it is meant to answer:
"How did my recovery trend over the last month?"
"Is my HRV correlated with how long I sleep?"
"Compare my strain in July against June."
What it is not
It reports numbers and the sample size behind them. It is not a medical device, it does not diagnose, and a correlation across a few weeks of your own data is not a causal finding. Talk to a clinician about health decisions.
Related MCP server: whoop-mcp
Install
Requires Python 3.13 or 3.14 — the two newest stable releases, which are the two CI tests.
git clone https://github.com/kurok/whoopmcp
cd whoopmcp
uv venv --python 3.14
source .venv/bin/activate
uv pip install -e .Setup
You need your own WHOOP developer app — this server ships no shared credentials, by design. Full walkthrough in docs/SETUP.md. The short version:
Create an app at developer.whoop.com and note the client ID and secret.
Register a redirect URL. WHOOP does not accept
http://, includinghttp://localhost— usehttps://or a custom scheme such aswhoopmcp://callback.Point the server at them via environment variables.
Claude Desktop / Claude Code
{
"mcpServers": {
"whoop": {
"command": "uvx",
"args": ["whoopmcp"],
"env": {
"WHOOP_CLIENT_ID": "your-client-id",
"WHOOP_CLIENT_SECRET": "your-client-secret",
"WHOOP_REDIRECT_URI": "whoopmcp://callback"
}
}
}
}Then ask your client to run whoop_login, open the URL it returns, approve
the consent screen, and pass the code and state from the redirect back
via whoop_complete_login.
Configuration
Variable | Required | Default | Meaning |
| yes | — | OAuth client ID from the WHOOP dashboard |
| yes | — | OAuth client secret |
| yes | — | Must match a registered redirect URL exactly |
| no | all read scopes + | Space-separated scope list |
| no |
|
|
| no |
| Token and cache location |
| no |
|
|
| no |
| Cache responses on disk |
| no | — | ISO 8601 lower bound for |
| no |
| Per-request timeout, seconds |
| no | — | Bearer token required on |
| no | — | HMAC key for |
The offline scope is requested by default. Without it WHOOP issues no
refresh token and you would re-authorise through a browser every hour.
For a token in your OS keychain rather than a file on disk:
pip install 'whoopmcp[keyring]'
export WHOOPMCP_TOKEN_BACKEND=keyringRecommended on Windows, where the default file backend cannot protect the
token: Windows uses ACLs rather than POSIX modes, so the 0600 the file
backend requests is ignored and the token lands world-readable. The server
warns when it first writes one.
Privacy
Read PRIVACY.md before connecting real data — it is split into local-mode and hosted-mode sections, since they are not the same document. The essential points:
This server sends nothing to its maintainers. No telemetry, no analytics, no phone-home. Traffic goes to
api.prod.whoop.comand nowhere else.Your MCP client does send your data onward. Anything a tool returns is passed to whatever model your client is configured to use — Anthropic, OpenAI, a local model — under that provider's terms, not this project's. This is inherent to how MCP works, and it is health data. Know where it is going.
Tokens are stored locally at mode
0600, or in your OS keychain. On Windows file modes are not enforced — use the keychain backend there.Local mode: delete everything with
whoop_logout, then removeWHOOPMCP_STATE_DIR, then revoke the app in the WHOOP app under Settings.Hosted mode: an operator holds other members' health data server-side (#13) and is a data controller for it (GDPR Article 9). Per-member export and erasure are operator-run CLI commands, deliberately not MCP tools —
whoopmcp export-member --whoop-user-id N,whoopmcp delete-member --whoop-user-id N(revokes the member's WHOOP grant upstream and forgets their local token and principal link — nothing more), andwhoopmcp erase-member --whoop-user-id N(also revokes the grant, then additionally erases the member's stored health data, webhook events, and audit rows) — andwhoopmcp enforce-retention --max-age-days Ndeletes data past a configured age when an operator schedules it. This project takes no backups of its own in either mode.
Rate limits
WHOOP's documented defaults are 100 requests/minute and 10,000/day,
with X-RateLimit-* headers and a 429 on breach. Collections page at 25
records maximum. Ask for explicit date ranges; an unbounded walk over years
of history will exhaust the quota and the model's context window alike.
Confirmed with WHOOP: the limit is per application (your client_id),
shared across every member who has authorised it — not a separate budget
per member. Running this locally for one person, that distinction is
invisible. Hosting it for several, it is the whole budget: one member's
two-year backfill is roughly 110 requests, about a minute of the entire
app's per-minute quota (#9).
Development
git clone https://github.com/kurok/whoopmcp
cd whoopmcp
uv venv && uv pip install -e '.[dev,lint]'
pytest # tests
ruff check . && ruff format --check .
mypy # strict on src/Built on the official Python SDK's MCPServer — the class FastMCP became
when the SDK went to 2.0. The layering is deliberate:
config.py environment -> Config, validated once at startup
auth.py OAuth 2.0 flow + token storage (file, encrypted file, keychain)
client.py one method per documented WHOOP endpoint, nothing more
store.py persistent store: schema, tenancy enforcement, erasure
analysis.py pure functions over already-fetched records
server.py MCP tool definitionsOnly server.py, webhooks.py and mcpauth.py import mcp — enforced by
tests/test_module_map.py; CONTRIBUTING.md carries the full 18-module map.
analysis.py holds no network code and client.py holds no statistics, so
each can be tested without the other.
Roadmap
Issue | Work |
#33 | [human] Submit the WHOOP app for approval; lifts the 10-member cap on hosted deployments |
Everything else the roadmap tracked — including both security audits (#69,
#37), the whoopmcp login terminal flow (#76) and the PyPI/MCP-registry
release plumbing (#34) — is implemented and closed. The package is not yet
on PyPI: publication waits on the name-clash resolution recorded in #34, so
install from a clone (see Install above) until then.
Contributing
See CONTRIBUTING.md. Bug reports and PRs welcome; by participating you agree to the Code of Conduct. To report a security issue, follow SECURITY.md rather than opening a public issue.
Prior art
Several other WHOOP MCP servers exist — among them AshwanthramKL/whoop-mcp, shashankswe2020-ux/whoop-mcp and JedPattersonn/whoop-mcp. If one of them already does what you need, use it.
License
MIT.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA local MCP server providing read-only access to WHOOP fitness data via direct OAuth, with a local SQLite cache for offline queries.MIT
- AlicenseAqualityDmaintenanceMCP server providing read access to WHOOP biometric data including recovery, sleep, strain, and workouts.161MIT
- FlicenseBqualityCmaintenanceLocal MCP server for the WHOOP API v2 that provides tools to access recovery, sleep, strain, and workout data, with local history and JSON export.9
Related MCP Connectors
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Wger MCP — wraps wger Workout Manager REST API (free, no auth for read)
MCP server wrapping the Tesla Fleet API and TeslaMate API
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kurok/whoopmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server