whoop-mcp
This server connects your WHOOP data to AI assistants (Claude, ChatGPT, etc.) so you can ask health questions in plain English and get computed, data-driven answers.
Profile & Account
Retrieve your profile (name, email, biometrics)
Check connection status, re-authorize, and diagnose issues from within chat
Daily & Weekly Summaries
One-call snapshot of recovery, sleep, strain, and workouts for any day (supports natural language like "yesterday")
Monday-to-Sunday weekly report with averages and workout totals
Raw Record Retrieval
List and fetch individual recoveries, sleeps, workouts, and physiological cycles with full detail
Filter workouts by sport, include/exclude naps, and optionally return raw API records
Trends & Analytics
Recovery trends: recovery %, HRV, resting heart rate direction over 7–180 days
Sleep trends: duration, efficiency, consistency, and sleep debt
Strain & training load: daily strain stats and acute:chronic load ratio to avoid overtraining
Behavior correlations: how strain, sleep, and HRV affect next-morning recovery (with Pearson r)
Period comparison: side-by-side comparison of any two date ranges
Personal records & streaks: best/worst metrics and longest green-recovery streaks
Health overview: all-in-one view of today's status, trends, training load, records, and correlations
Sensor Data & Export
Minute-level heart rate and skin temperature streams for individual sleeps
Export your full WHOOP history to local JSON and CSV files (stored only on your machine)
Search & Fetch (Natural Language)
Search across your data with queries like "runs this month" or "sleep last week"
Fetch full records for any result by ID
The server runs locally, is read-only against WHOOP's API, stores tokens locally with strict permissions, and has no telemetry. Metrics like trends and ratios are computed server-side before AI interpretation for accuracy.
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 how did I sleep last 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
Your WHOOP shows you charts. It can't answer "should I train hard today" or "what actually hurts my recovery". This server can.
It connects your WHOOP data to Claude, ChatGPT, and any MCP client. You ask in plain English. It computes the answer from your own records and lets the AI explain it.
You: should I train hard today?
AI: Recovery 81% (green). HRV trending up. Sleep debt cleared.
Your 7-day load is 0.94x your 28-day base.
You are conditioned for more.Runs on your machine. Read-only. The only network peer is api.prod.whoop.com. No telemetry. MIT.
What you need
A WHOOP account. Any membership works.
uv or pipx, to install one command line tool.
An MCP client: Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, or ChatGPT.
One constraint to know before you start. WHOOP has no shared developer app, so during setup you create your own free one. It takes about two minutes of clicking, and it is the reason this is private by design: your tokens belong to your app, on your machine, and your health data never routes through anyone else's server. Including mine.
Related MCP server: WHOOP MCP Server
Set it up
Install the tool:
uv tool install whoop-mcp-server(pipx install whoop-mcp-server works the same.)
Then run the one command that does everything:
whoop-mcp-server setupHere is what happens, in order, so nothing surprises you:
Your WHOOP app. The wizard opens WHOOP's developer dashboard and tells you exactly what to click: create a team, create an app, enable every scope including
offline, set the redirect URL to exactlyhttp://localhost:8765/callback. The form requires a privacy policy URL. Use this repo's:https://github.com/rajdeepmondaldotcom/whoop-mcp-server/blob/main/PRIVACY.md. Copy the Client ID and Secret, paste them into the terminal. They're stored locally with 0600 permissions.Authorize. Your browser opens WHOOP's consent screen. Approve it. Tokens land in
~/.whoop-mcpand refresh themselves from then on. You never do this again.Proof. The wizard makes a live API call and prints your actual latest recovery. If anything is misconfigured, you find out here, in the terminal, not later in a chat window.
Your clients. It detects Claude Desktop, Cursor, Windsurf, VS Code, and Claude Code, and writes their configs for you. Existing config is backed up before any edit. If Claude Desktop is running, the wizard asks to quit it first, because Desktop silently overwrites config edits made while it's open. Then it launches the configured command once and confirms the server answers. "Done" means verified, not hopeful.
Restart your client. Ask it: "How did I sleep last night?" Then ask the better question: "Give me the full picture of my health this quarter."
Two useful asides. If you want to see the tools work before connecting anything, whoop-mcp-server serve --demo serves 150 days of realistic generated data through the same pipeline. And if anything misbehaves later, whoop-mcp-server doctor names what's wrong and the fix.
What you can ask
24 tools cover every public user-readable endpoint in WHOOP's API, plus the analysis layer that turns records into answers.
Ask | Tool behind it |
"Give me the full picture of my health" |
|
"How am I doing today?" |
|
"What actually affects my recovery?" |
|
"Am I overtraining?" |
|
"Is my HRV improving?" |
|
"Show my overnight heart rate curve" |
|
"This month vs last month?" |
|
"My records this year?" |
|
"Export everything" |
|
Week grids, raw records, profile |
|
"I have an old WHOOP activity id" |
|
Connection trouble |
|
Dates are plain English everywhere: yesterday, last 30 days, this week, 2 years ago, 2026-05.
ChatGPT's required search and fetch tools are implemented too, plus 4 resources and 4 ready-made prompts (morning_readiness, weekly_review, sleep_coach, training_planner).
More questions worth asking: docs/PROMPTS.md.
Works with
Client | Setup |
Claude Desktop |
|
Claude Code |
|
Cursor | auto via setup, or |
Windsurf | auto via setup |
VS Code | auto via setup, or |
ChatGPT | remote connector, see below |
Docker |
|
Any MCP client |
|
ChatGPT connects to remote MCP servers, so expose the HTTP transport and tunnel it:
whoop-mcp-server serve --transport http --port 8000 # endpoint: /mcp
ngrok http 8000Then in ChatGPT: Settings, Apps & Connectors, Advanced settings, enable Developer mode, create a connector with https://<your-tunnel>/mcp and no auth.
Be careful here: a no-auth tunnel means anyone with the URL can read your health data. Keep the URL private and the tunnel short-lived. Claude's stdio setup never exposes anything.
Why the answers hold up
The model is maybe 20% of this product. The other 80% is making the numbers right. Models are bad at arithmetic over 90 days of records, so this server computes first and lets the model explain.
Trend lines are fit to date-sorted series. WHOOP returns records newest-first. Fit arrival order instead and every trend reads backwards.
Direction respects what the metric means. Rising HRV is improvement. Rising resting heart rate is not.
Records land on calendar days using their own timezone offset. A sleep belongs to the morning you woke up, even when you travel.
WHOOP rotates both OAuth tokens on every refresh. Refreshes here are serialized, saved before use, and shared across concurrent requests. Re-running auth rescues a live server without a restart.
The client honors WHOOP's rate-limit headers, retries with backoff, and caps pagination. When a result is truncated or approximate, the output says so instead of pretending it's complete.
What it can't do: WHOOP's public API has no endpoints yet for Peak features like the stress monitor and healthspan. When WHOOP ships them, they land here. The overnight sensor stream isn't enabled for every account, and the tool reports that instead of failing. Bulk export intentionally fetches the collection endpoints; raw sleep streams are available per sleep with get_sleep_stream(include_raw=true).
105 tests, all offline against a faked WHOOP API. CI on Python 3.10 to 3.13.
CLI
whoop-mcp-server setup Guided setup: app, authorize, auto-configure clients
whoop-mcp-server serve Run the server (--demo, --transport stdio|http|sse, --host, --port)
whoop-mcp-server status Config and token state
whoop-mcp-server doctor Diagnose setup and connectivity
whoop-mcp-server auth Scriptable OAuth flow
whoop-mcp-server logout Delete tokens (--revoke also revokes at WHOOP)Configuration
Nothing required after whoop-mcp-server setup. Overrides, in priority order: process env, ./.env, ~/.whoop-mcp/.env, ~/.whoop-mcp/config.json.
Variable | Default | Purpose |
| none | WHOOP app credentials |
|
| Must exactly match the dashboard |
| off |
|
|
| Tokens, config, exports |
| system zone | IANA timezone for "today" and week bounds |
|
| Seconds |
|
| Logs go to stderr. stdout belongs to MCP |
| none | Static token for testing, no refresh |
Privacy
Read-only against WHOOP. Tokens stored locally with 0600 permissions. The only writes are local files you ask for (export_data) and the OAuth flow you trigger. One thing worth knowing: aggregates like trends and correlations can reveal more about you than single records. Connect this only to AI clients you trust with health data. Full policy: PRIVACY.md. Vulnerabilities: SECURITY.md.
Contributing
uv venv && uv pip install -e ".[dev]" && pytest && ruff check .The whole test suite runs offline. CONTRIBUTING.md lists the invariants that keep the data honest. The short version of the architecture: client.py talks to WHOOP, transform.py cleans the records, summaries.py and analytics.py do the math, server.py exposes the tools. oauth.py and tokens.py own auth. demo.py is the generated account.
Troubleshooting
Symptom | Fix |
"WHOOP authorization required" |
|
Redirect fails after consent | The dashboard redirect URI must be exactly |
| Enable all read scopes plus |
Tools missing in a client | Re-run |
No recovery shown today | WHOOP scores it after you wake and sync. The summary says so |
Sleep stream "not available" | WHOOP doesn't expose it for every account. Nightly summaries still work |
Anything else |
|
License
MIT. See LICENSE. Not affiliated with or endorsed by WHOOP. WHOOP is a trademark of WHOOP, Inc.
Available Tools
24 toolscompare_periodsCompare periodsARead-only
Compare two date ranges across recovery, HRV, resting heart rate, sleep, strain, calories, and workout count - with per-metric change, percent change, and an improved/declined/unchanged assessment. Period A is the baseline; period B is compared against it.
All four arguments accept: today | yesterday | N days ago | last week |
this month | YYYY-MM-DD | ISO datetime. Example: compare "last month" to
"this month" by using the same expression for a period's start and end.
Inputs: period_a_start (required), period_a_end (required), period_b_start (required), period_b_end (required). Returns: object
connect_whoop_accountConnect WHOOP accountA
Connect or re-authorize the user's WHOOP account from inside the chat: opens the WHOOP consent page in the user's browser on this machine and waits up to 3 minutes for them to approve. Only call this when the user explicitly asks to connect, reconnect, or fix authorization. Requires WHOOP app credentials to be configured already (otherwise it returns setup steps instead of opening anything).
Inputs: no named parameters. Returns: object
export_dataExport all WHOOP dataA
Export every WHOOP record in a date range to local files on this machine: data.json (complete transformed dataset, plus raw API records when include_raw is true), daily_summary.csv (one row per day), and workouts.csv. Nothing is uploaded anywhere. Returns the file paths and record counts. Large ranges can take a minute or two.
`start`/`end` accept: N years ago | N months ago | YYYY-MM-DD | ISO datetime.
Inputs: start, end, include_raw. Returns: object
fetchFetch WHOOP documentARead-only
Fetch the full document for an id returned by search. Supported id
forms: day:YYYY-MM-DD, sleep:, workout:, cycle:,
recovery:<cycle_int>, profile.
Inputs: id (required). Returns: object
get_activity_mappingActivity ID mappingARead-only
Map a legacy WHOOP v1 activity id to its v2 UUID. Useful when older exports, links, or integrations refer to an activity by v1_id.
Inputs: activity_v1_id (required). Returns: object
get_connection_statusWHOOP connection statusARead-only
Whether this server is connected to a WHOOP account: app credentials, token state and expiry, granted scopes, and a live API check. Call this first when WHOOP data tools fail.
Inputs: no named parameters. Returns: object
get_correlationsBehavior correlationsARead-only
How the user's metrics move together day-to-day (7-180 day window): strain vs next-morning recovery, sleep duration vs recovery, sleep consistency vs recovery, strain vs that night's sleep, HRV vs recovery. Pearson r with strength labels and plain-English interpretations - correlation, not causation.
Inputs: days. Returns: object
get_cycleCycle by idARead-only
Get one cycle by id, optionally with the recovery and sleep that belong to it (WHOOP links each recovery and primary sleep to a cycle). Set include_raw=true to also attach WHOOP's untouched API records.
Inputs: cycle_id (required), include_recovery, include_sleep, include_raw. Returns: object
get_cyclesList cyclesARead-only
List physiological cycles (WHOOP's wake-to-wake "days"): day strain, calories, heart rate. Newest first; the newest cycle is usually still in progress.
Defaults to the last 14 days when no range is given. `start`/`end` accept:
today | yesterday | N days ago | last week | YYYY-MM-DD | ISO datetime.
Inputs: start, end, limit. Returns: object
get_daily_summaryDaily summaryARead-only
One day of WHOOP data in a single call: recovery score, sleep, day strain, and workouts, with a one-line summary. The best first tool for "how am I doing" or "how did I sleep" questions.
`day` accepts: today | yesterday | N days ago | YYYY-MM-DD.
Inputs: day. Returns: object
get_health_overviewHealth overviewARead-only
The holistic everything-at-once view (7-180 day window): today's status, recovery/sleep/strain trend directions, training load, personal records and streaks, and the strongest behavior-physiology correlations. The best first call for "give me the full picture of my health".
Inputs: days. Returns: object
get_personal_recordsPersonal records & streaksARead-only
Bests, worsts, and streaks over a window (7-180 days): best/worst recovery, highest HRV, lowest resting heart rate, longest sleep, highest strain day, biggest workout, green-recovery streaks, and totals.
Inputs: days. Returns: object
get_profileWHOOP profileARead-only
Get the user's WHOOP profile and body measurements (name, email, height, weight, max heart rate). Set include_raw=true to also attach WHOOP's untouched profile and body-measurement records.
Inputs: include_raw. Returns: object
get_recoveriesList recoveriesARead-only
List recovery records (recovery %, HRV, resting heart rate, SpO2, skin temperature), newest first.
Defaults to the last 14 days when no range is given. `start`/`end` accept:
today | yesterday | N days ago | last week | YYYY-MM-DD | ISO datetime.
Inputs: start, end, limit. Returns: object
get_recovery_trendsRecovery trendsARead-only
Recovery trends over a window (7-180 days): statistics, trend direction, and unusual days for recovery %, HRV, and resting heart rate, plus a daily table. Trend directions account for metric polarity (rising HRV is good, rising resting heart rate is not).
Inputs: days. Returns: object
get_sleepSleep by idARead-only
Get one sleep record by its UUID (from get_sleeps or a recovery's sleep_id). Set include_raw=true to also attach WHOOP's untouched API record.
Inputs: sleep_id (required), include_raw. Returns: object
get_sleepsList sleepsARead-only
List sleep records (duration, stages, efficiency, performance, sleep debt), newest first.
Defaults to the last 14 days when no range is given. `start`/`end` accept:
today | yesterday | N days ago | last week | YYYY-MM-DD | ISO datetime.
Inputs: start, end, include_naps, limit. Returns: object
get_sleep_streamSleep sensor streamARead-only
Minute-level overnight sensor data for one sleep: heart rate and skin temperature curves (downsampled to resolution_minutes buckets) plus overnight stats like the lowest heart rate and when it happened. Get the sleep_id from get_sleeps, get_daily_summary, or a recovery record. WHOOP does not expose this stream for every account/app - if unavailable, a clear note is returned instead of an error. Set include_raw=true to also attach WHOOP's untouched stream payload.
Inputs: sleep_id (required), resolution_minutes, include_raw. Returns: object
get_sleep_trendsSleep trendsARead-only
Sleep trends over a window (7-180 days): hours slept, performance, efficiency, consistency, and sleep debt - statistics, trend directions, unusual nights, and a nightly table. Naps are counted but excluded from nightly averages.
Inputs: days. Returns: object
get_strain_trendsStrain & training loadARead-only
Strain and training-load trends over a window (7-180 days): daily strain statistics, calories, workout totals by sport, and the acute:chronic load ratio (7-day vs 28-day average strain) when enough data exists.
Inputs: days. Returns: object
get_weekly_reportWeekly reportARead-only
Monday-to-Sunday report: a per-day grid of recovery, sleep, and strain, plus weekly averages and workout totals.
`week_of` accepts: this week | last week | YYYY-MM-DD (any day in the
target week).
Inputs: week_of. Returns: object
get_workoutWorkout by idARead-only
Get one workout by its UUID (from get_workouts). Set include_raw=true to also attach WHOOP's untouched API record.
Inputs: workout_id (required), include_raw. Returns: object
get_workoutsList workoutsARead-only
List workouts (sport, strain, calories, heart rate, distance, HR zones), newest first. Optionally filter by sport name (substring match, e.g. "run").
Defaults to the last 30 days when no range is given. `start`/`end` accept:
today | yesterday | N days ago | last week | YYYY-MM-DD | ISO datetime.
Inputs: start, end, sport, limit. Returns: object
searchSearch WHOOP dataARead-only
Search WHOOP data with a natural-language query (e.g. "sleep last week",
"runs this month", "recovery yesterday"). Returns matching day summaries,
workouts, and sleeps as documents whose ids can be passed to fetch.
Inputs: query (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Every tool has a clearly distinct purpose, from listing records to retrieving specific ones, trends, correlations, and exports. Even similar tools like get_daily_summary and get_health_overview serve different scopes.
All tools follow a consistent verb_noun snake_case pattern (e.g., get_sleeps, get_recovery_trends, export_data), with no mixing of conventions or vague verbs.
24 tools is slightly above the typical range but justified by the need to cover multiple data types (recovery, sleep, strain, workouts) and provide analytical tools like compare_periods and get_correlations. Each tool serves a specific need without redundancy.
The tool surface covers all major WHOOP data types (profile, recovery, sleep, strain, workout, cycle) with listing, detail, trends, comparisons, and export. No obvious gaps for a read-only health tracking server.
Maintenance
Related MCP Connectors
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Your Garmin, Oura, WHOOP, Hevy and 35 more fitness apps, queryable from your own AI.
Connect Claude to your Intervals.icu watch data for fitness, workout review, and plan writing.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects WHOOP fitness data to Claude Desktop, enabling natural language queries about workouts, recovery, sleep patterns, and physiological cycles with secure OAuth authentication and local data storage.28MIT
- -licenseNot gradedqualityNot gradedmaintenanceConnects WHOOP fitness data to Claude Desktop, enabling natural language queries about workouts, recovery, sleep patterns, and health metrics while keeping data secure and private.-
- AlicenseNot gradedqualityDmaintenanceExposes Whoop fitness data (recovery, sleep, strain, workouts) to Claude for use as a daily training coach, enabling natural language queries about your health metrics and training readiness.MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to read your Whoop recovery, sleep, cycle, and workout data through natural language queries.-