whoop-mcp-server
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-server how was my recovery and sleep last night?"
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
An MCP (Model Context Protocol) server that provides access to your Whoop health and fitness data, enabling Claude and other AI assistants to give you personalized health recommendations.
New here? Check out HOW_TO_USE.md for a step-by-step setup guide.
Features
Recovery Data: Get your recovery score, HRV, resting heart rate, SpO2, and skin temperature
Sleep Analysis: Detailed sleep stages (light, REM, deep), sleep performance, efficiency, and respiratory rate
Workout Tracking: Strain scores, calories burned, heart rate zones, distance, and elevation
Daily Strain: Cumulative daily strain and energy expenditure
Health Overview: Combined view of recovery, sleep, and strain with personalized recommendations
Profile & Body Measurements: User profile and body measurements data
Related MCP server: whoop-chatgpt-app
Prerequisites
Whoop Device: You need an active Whoop membership
Whoop Developer Account: Create an app at developer.whoop.com
Node.js 18+: Required to run the server
Setup
1. Create a Whoop Developer App
Create a new app
Set the redirect URL to
http://localhost:8080/callbackNote your Client ID and Client Secret
Request the following scopes:
read:recoveryread:cyclesread:workoutread:sleepread:profileread:body_measurementoffline(for refresh token)
2. Install the MCP Server
cd whoop-mcp-server
npm install
npm run build3. Get Your Initial Tokens (One-Time)
Run the token helper script:
node get-tokens.mjsFollow the prompts to:
Enter your Client ID and Client Secret
Open the authorization URL in your browser
Authorize the app and copy the code from the redirect URL
The script will output your initial tokens
4. Configure Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"whoop": {
"command": "node",
"args": ["/path/to/whoop-mcp-server/dist/index.js"],
"env": {
"WHOOP_CLIENT_ID": "your-client-id",
"WHOOP_CLIENT_SECRET": "your-client-secret",
"WHOOP_ACCESS_TOKEN": "your-initial-access-token",
"WHOOP_REFRESH_TOKEN": "your-initial-refresh-token"
}
}
}
}5. First Use & Token Persistence
On first API call, the server will:
Use your initial tokens from the config
Save them to
tokens.jsonin the server directoryAutomatically refresh when they expire
After initial setup, you can remove WHOOP_ACCESS_TOKEN and WHOOP_REFRESH_TOKEN from your config. The server only needs:
{
"mcpServers": {
"whoop": {
"command": "node",
"args": ["/path/to/whoop-mcp-server/dist/index.js"],
"env": {
"WHOOP_CLIENT_ID": "your-client-id",
"WHOOP_CLIENT_SECRET": "your-client-secret"
}
}
}
}Token Architecture
┌─────────────────────────────────────────────────────────────────┐
│ STARTUP │
├─────────────────────────────────────────────────────────────────┤
│ Claude Desktop starts → WHOOP MCP server launches │
│ │ │
│ ▼ │
│ Check for tokens.json │
│ / \ │
│ Found Not Found │
│ │ │ │
│ ▼ ▼ │
│ Use persisted Use env vars │
│ tokens (initial setup) │
│ \ / │
│ ▼ ▼ │
│ Token loaded in memory │
└─────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ ON API CALL │
├─────────────────────────────────────────────────────────────────┤
│ You ask "get my recovery" → check token expiry │
│ │ │
│ Token expired? │
│ / \ │
│ YES NO │
│ │ │ │
│ ▼ │ │
│ Refresh via WHOOP │ │
│ API (uses client │ │
│ credentials + │ │
│ refresh token) │ │
│ │ │ │
│ ▼ │ │
│ Save new tokens │ │
│ to tokens.json │ │
│ \ / │
│ ▼ ▼ │
│ Make API call with valid token │
└─────────────────────────────────────────────────────────────────┘Key files:
tokens.json- Persisted tokens (auto-created, survives restarts)dist/index.js- The MCP server
What's automatic:
Token refresh when expired
Saving new tokens to disk
Loading tokens on restart
What requires manual action:
Initial OAuth setup (one-time)
Re-authentication if unused for 30-90 days (refresh token expires)
Available Tools
whoop_get_profile
Get your Whoop user profile (name, email, user ID).
whoop_get_body_measurements
Get your body measurements (height, weight, max heart rate).
whoop_get_recovery
Get recovery data including recovery score, HRV, resting heart rate, SpO2.
Parameters:
limit(1-25, default 7): Number of recordsstart: Start date filter (ISO 8601)end: End date filter (ISO 8601)
whoop_get_sleep
Get detailed sleep data including sleep stages, performance, and efficiency.
Parameters:
limit(1-25, default 7): Number of recordsstart: Start date filter (ISO 8601)end: End date filter (ISO 8601)
whoop_get_workouts
Get workout data including strain, calories, heart rate zones.
Parameters:
limit(1-25, default 10): Number of recordsstart: Start date filter (ISO 8601)end: End date filter (ISO 8601)
whoop_get_cycles
Get daily physiological cycle data (strain, calories, heart rate).
Parameters:
limit(1-25, default 7): Number of recordsstart: Start date filter (ISO 8601)end: End date filter (ISO 8601)
whoop_get_health_overview
Get a comprehensive health overview combining recovery, sleep, and strain data with personalized recommendations.
Example Usage with Claude
Once configured, you can ask Claude things like:
"How's my recovery today?"
"Show me my sleep from last week"
"What workouts have I done recently?"
"Give me a health overview"
"Based on my Whoop data, should I train hard today?"
"How has my HRV trended this week?"
"What was my sleep quality like last night?"
Troubleshooting
"No tokens available" error
Run node get-tokens.mjs to get initial tokens, or check that tokens.json exists.
"Missing WHOOP_CLIENT_ID or WHOOP_CLIENT_SECRET" error
These must always be in your Claude Desktop config - they never expire.
"Failed to refresh token" error
Your refresh token has expired (typically after 30-90 days of non-use). Run node get-tokens.mjs to re-authenticate.
No data returned
Ensure you've worn your Whoop device and data has synced
Check that your app has the required scopes authorized
View current persisted tokens
cat tokens.jsonForce re-authentication
rm tokens.json
# Then run get-tokens.mjs or add tokens back to Claude configSecurity Considerations
Token Storage
Tokens are stored in
tokens.jsonwith restricted permissions (mode 0600 - owner read/write only)Windows users: File permissions work differently on Windows and may not provide equivalent protection. Consider additional access controls.
Tokens are stored unencrypted; ensure your system has appropriate access controls
Configuration Security
Your
claude_desktop_config.jsoncontains your client secret in plain textDo not commit this config file to version control
Consider restricting file permissions on the config file:
macOS/Linux:
chmod 600 ~/Library/Application\ Support/Claude/claude_desktop_config.json
Best Practices
Regularly rotate your Whoop developer app credentials
Monitor your Whoop account for unauthorized access
Run
npm auditperiodically to check for dependency vulnerabilitiesAfter initial setup, remove
WHOOP_ACCESS_TOKENandWHOOP_REFRESH_TOKENfrom your config (they're persisted intokens.json)
Optional: Custom Token Location
Set WHOOP_TOKEN_PATH environment variable to store tokens in a specific location:
"env": {
"WHOOP_TOKEN_PATH": "/path/to/secure/tokens.json",
"WHOOP_CLIENT_ID": "your-client-id",
"WHOOP_CLIENT_SECRET": "your-client-secret"
}API Reference
This server uses the Whoop API v2. For more details on the data model and endpoints, see the official documentation.
License
MIT
Available Tools
7 toolswhoop_get_body_measurementsGet Body MeasurementsARead-onlyIdempotent
Retrieves body measurements for the authenticated Whoop user.
Returns:
height_meter: Height in meters
weight_kilogram: Weight in kilograms
max_heart_rate: Maximum heart rate
Useful for calculating calories burned and personalizing workout recommendations.
Inputs: no named parameters.
whoop_get_cyclesGet Daily Strain CyclesARead-onlyIdempotent
Retrieves physiological cycle (day) data from Whoop including daily strain, calories, and heart rate.
A cycle represents a physiological day (wake to wake), not a calendar day.
Day Strain is cumulative and measured on a 0-21 scale:
0-10: Light day
10-14: Moderate day
14-18: Strenuous day
18-21: All out day
Parameters:
limit: Number of records (1-25, default: 7)
start: Filter cycles after this date (ISO 8601)
end: Filter cycles before this date (ISO 8601)
Returns for each cycle:
strain: Daily strain score (0-21)
kilojoule: Total energy expenditure
average/max_heart_rate: Heart rate summary
Inputs: end, limit, start.
whoop_get_health_overviewGet Health OverviewARead-onlyIdempotent
Gets a comprehensive health overview combining your latest recovery, sleep, and strain data.
This is the best tool to use when you want a quick summary of current health status.
Returns:
Latest recovery score and metrics (HRV, RHR, SpO2)
Last night's sleep data and performance
Today's/yesterday's strain
Personalized recommendations based on recovery status
Use this for:
Morning check-ins on readiness
Quick health status updates
Deciding workout intensity
Understanding overall health trends
Inputs: no named parameters.
whoop_get_profileGet Whoop User ProfileARead-onlyIdempotent
Retrieves basic profile information for the authenticated Whoop user.
Returns:
user_id: Whoop user ID
email: User's email address
first_name: User's first name
last_name: User's last name
Use this to identify the user and personalize responses.
Inputs: no named parameters.
whoop_get_recoveryGet Recovery DataARead-onlyIdempotent
Retrieves recovery data from Whoop including recovery score, HRV, resting heart rate, and SpO2.
Recovery score indicates how ready your body is for strain:
67-100% (Green): Optimal recovery, ready for high strain
34-66% (Yellow): Moderate recovery, be mindful of strain
0-33% (Red): Low recovery, prioritize rest
Parameters:
limit: Number of records (1-25, default: 7)
start: Filter recoveries after this date (ISO 8601)
end: Filter recoveries before this date (ISO 8601)
Returns for each recovery:
recovery_score: Overall recovery percentage
hrv_rmssd_milli: Heart rate variability (ms)
resting_heart_rate: Resting heart rate (bpm)
spo2_percentage: Blood oxygen saturation
skin_temp_celsius: Skin temperature
Inputs: end, limit, start.
whoop_get_sleepGet Sleep DataARead-onlyIdempotent
Retrieves detailed sleep data from Whoop including sleep stages, performance, and respiratory rate.
Parameters:
limit: Number of records (1-25, default: 7)
start: Filter sleeps after this date (ISO 8601)
end: Filter sleeps before this date (ISO 8601)
Returns for each sleep:
Sleep stages: Light, REM, Deep (SWS), Awake time
sleep_performance_percentage: How well you met your sleep need
sleep_efficiency_percentage: Time asleep vs time in bed
sleep_consistency_percentage: Regularity of sleep schedule
respiratory_rate: Breaths per minute
sleep_needed: Baseline need plus adjustments for strain/debt
Inputs: end, limit, start.
whoop_get_workoutsGet Workout DataARead-onlyIdempotent
Retrieves workout data from Whoop including strain, heart rate zones, calories, and distance.
Strain is measured on a 0-21 scale:
0-10: Light activity
10-14: Moderate activity
14-18: High strain (strenuous)
18-21: All out (maximal effort)
Parameters:
limit: Number of records (1-25, default: 10)
start: Filter workouts after this date (ISO 8601)
end: Filter workouts before this date (ISO 8601)
Returns for each workout:
sport_name: Type of activity
strain: Workout strain score (0-21)
kilojoule: Energy burned
average/max_heart_rate: Heart rate data
distance_meter: Distance covered (if applicable)
zone_durations: Time spent in each HR zone
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
Each tool targets a distinct Whoop data domain: profile, body measurements, recovery, sleep, workouts, cycles, and a combined health overview. The health overview is clearly complementary rather than overlapping, and the parameterized filters on date/limit further distinguish the data-retrieval tools.
All tools follow the exact same 'whoop_get_<resource>' pattern, with clear and consistent resource names. This uniform verb_noun structure makes it easy to predict tool behavior and select the right one.
Seven tools is well-scoped for a Whoop data retrieval server. Each tool covers a meaningful health data category without redundancy, and the count feels appropriately balanced—not too sparse, not overwhelming.
The tool set provides comprehensive read coverage of Whoop's main health data types: profile, body metrics, recovery, sleep, workouts, daily cycles, and a combined overview. Since the server's purpose is data retrieval, the absence of write operations is not a gap; all core data categories are represented, and the health overview tool nicely ties everything together.
Related MCP Connectors
Adaptive running coach MCP server — training data, plans, and recovery for AI assistants.
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Hosted Apple Health MCP: workouts, sleep and HRV in ChatGPT, Claude, Gemini, Grok. Free, no export.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server that connects AI assistants like Claude to WHOOP health data, enabling natural language queries about recovery, sleep, workouts, and more.302 npm181MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that connects WHOOP health tracker data to ChatGPT, enabling read-only search, fetch, summary, and a React dashboard widget for recovery, sleep, strain, and workouts.1MIT
- AlicenseAqualityDmaintenanceExposes WHOOP recovery, sleep, strain, and workout metrics to MCP-compatible AI assistants using OAuth 2.0 authentication, enabling daily wellbeing snapshots, trend analysis, and workload recommendations.647 npmMIT
- AlicenseAqualityDmaintenanceMCP server providing read access to WHOOP biometric data including recovery, sleep, strain, and workouts.161MIT