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 what's my recovery score and strain for today?"
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
A Model Context Protocol (MCP) server that provides tools for interacting with the WHOOP API. This server enables LLMs to retrieve sleep, recovery, and physiological cycle data from WHOOP.
Features
š OAuth 2.0 Authentication with automatic token refresh
š“ Sleep Data: Retrieve detailed sleep metrics by ID or cycle
š Cycle Data: Access physiological cycles with strain and heart rate data
šŖ Recovery Data: Get recovery scores, HRV, and readiness metrics
š Built with xmcp: Fast, type-safe MCP implementation
Related MCP server: whoop-tracker-mcp-server
Prerequisites
Node.js 20 or higher
A WHOOP account
WHOOP API credentials (Client ID and Secret)
Getting WHOOP API Credentials
Visit the WHOOP Developer Dashboard
Create a new OAuth application
Set the redirect URI to:
http://localhost:3000/auth/whoop/callbackNote your Client ID and Client Secret
Installation
# Clone the repository
git clone https://github.com/yourusername/whoop-mcp.git
cd whoop-mcp
# Install dependencies
pnpm install
# or npm install
# Build the project
pnpm build
# or npm run buildConfiguration
Copy the environment template:
cp .env.example .envAdd your WHOOP credentials to
.env:
WHOOP_CLIENT_ID=your_client_id_here
WHOOP_CLIENT_SECRET=your_client_secret_hereAuthentication
Before using the MCP server, you need to authenticate with WHOOP:
pnpm authThis will:
Open a browser window for WHOOP OAuth login
Save your access and refresh tokens locally
Automatically refresh tokens when they expire
Usage
Using with Claude Desktop - STDIO Mode (Recommended)
STDIO mode is recommended for better performance and reliability.
Get the full path to your installation:
pwd # Copy this path, e.g., /Users/yourname/projects/whoop-mcpAdd the server to your Claude Desktop configuration (
~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"whoop": {
"command": "node",
"args": ["/Users/yourname/projects/whoop-mcp/dist/stdio.js"],
"env": {
"WHOOP_CLIENT_ID": "your-client-id",
"WHOOP_CLIENT_SECRET": "your-client-secret"
}
}
}
}Replace /Users/yourname/projects/whoop-mcp with your actual installation path.
Using via HTTP Mode
For HTTP mode, start the server:
pnpm start
# or
node dist/http.jsThe server will run on http://localhost:3002/mcp
For Claude Desktop HTTP configuration:
{
"mcpServers": {
"whoop": {
"url": "http://localhost:3002/mcp"
}
}
}Important: When using STDIO mode with Claude Desktop, you MUST include the env section with your WHOOP credentials, as shown above. The server cannot read your .env file when launched by Claude Desktop.
See xmcp HTTP transport documentation for more details.
Development Mode
pnpm devAvailable Tools
get-recent-cycles
Retrieves recent physiological cycles (days) with strain and heart rate data.
Parameters:
limit(number, optional): Number of cycles to retrieve (1-25, default: 10)days(number, optional): Number of days to look back (1-30)
Example:
Get my last 7 days of WHOOP cyclesget-sleep-by-id
Gets detailed sleep data for a specific sleep ID.
Parameters:
sleepId(string): UUID of the sleep activity
Example:
Get sleep data for ID ecfc6a15-4661-442f-a9a4-f160dd7afae8get-sleep-for-cycle
Retrieves sleep data associated with a specific cycle.
Parameters:
cycleId(number): ID of the cycle
Example:
Get sleep data for cycle 12345get-recovery-for-cycle
Gets recovery metrics for a specific cycle, including HRV and readiness scores.
Parameters:
cycleId(number): ID of the cycle
Example:
Get recovery data for cycle 12345Data Interpretation
Recovery Scores
Green (67-100%): Ready for high strain
Yellow (34-66%): Moderate readiness
Red (0-33%): Focus on recovery
Strain Scale
WHOOP Strain is measured on a scale from 0 to 21
Higher values indicate greater cardiovascular load
Project Structure
whoop-mcp/
āāā src/
ā āāā api/ # WHOOP API client and types
ā āāā auth/ # Authentication and token management
ā āāā tools/ # MCP tool implementations
āāā scripts/
ā āāā auth.ts # OAuth authentication script
ā āāā refresh-token.ts # Manual token refresh
āāā dist/ # Compiled outputToken Management
Tokens are stored in
.whoop-tokens.jsonin the project rootAccess tokens expire after 1 hour
Refresh tokens are automatically used to obtain new access tokens
Run
pnpm refresh-tokento manually refresh tokens
Troubleshooting
"Not authenticated" error
Run pnpm auth to authenticate with WHOOP.
"Resource not found" error
Ensure your WHOOP app has the required scopes:
read:cyclesread:sleepread:recoveryread:profileoffline(for refresh tokens)
Rate limiting
WHOOP API has rate limits. If you encounter 429 errors, wait before making more requests.
Development
# Build the project
pnpm build
# Run in development mode
pnpm dev
# Manually refresh tokens
pnpm refresh-tokenSecurity Notes
Never commit
.envor.whoop-tokens.jsonfilesKeep your Client Secret secure
Tokens are stored in the project root as
.whoop-tokens.jsonTokens are never transmitted except to WHOOP
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT - See LICENSE file for details
Acknowledgments
Built with xmcp - Fast MCP implementation
Uses the WHOOP API v2
Additional Resources
Support
For WHOOP API issues, visit the WHOOP Developer Documentation.
For MCP-related questions, see the Model Context Protocol documentation.
Available Tools
4 toolsget-recent-cyclesBRead-onlyIdempotent
Get recent physiological cycles (days) from WHOOP, including strain and heart rate data
Inputs: limit, days.
get-recovery-for-cycleARead-onlyIdempotent
Get recovery data for a specific cycle from WHOOP, including recovery score, HRV, and resting heart rate
Inputs: cycleId (required).
get-sleep-by-idBRead-onlyIdempotent
Get sleep data for a specific sleep ID from WHOOP
Inputs: sleepId (required).
get-sleep-for-cycleBRead-onlyIdempotent
Get sleep data for a specific cycle from WHOOP
Inputs: cycleId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 4 tools
The tools have some overlap in purpose, particularly between 'get-sleep-by-id' and 'get-sleep-for-cycle', which both retrieve sleep data and could be confused. However, the descriptions clarify the distinction (by ID vs. by cycle), and the other tools target distinct data types (cycles, recovery), so agents can differentiate them with careful reading.
All tool names follow a consistent verb-noun pattern with hyphens ('get-recent-cycles', 'get-recovery-for-cycle', 'get-sleep-by-id', 'get-sleep-for-cycle'), using 'get' as the verb throughout. This predictability makes the set easy to navigate and understand.
With 4 tools, the count is slightly low but reasonable for a focused WHOOP data retrieval server. It covers key physiological aspects (cycles, recovery, sleep), though it might benefit from additional tools for broader health metrics or write operations, but it's not overly thin.
The tool set provides read-only access to core WHOOP data (cycles, recovery, sleep), which is appropriate for a retrieval-focused server. However, there are notable gaps: no tools for creating, updating, or deleting data, and missing operations like listing all sleeps or getting user profile info, which could limit agent workflows in a broader health context.
Related MCP Connectors
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Your WHOOP data in the assistant, read-only: recovery, sleep, strain, workouts, cycles and body meas
Read WHOOP recovery, sleep, cycles, workouts and body measurements.
WHOOP MCP server for ChatGPT, Claude and any AI agent: get day summary, list recoveries, list sleeps, list workouts, list cycles and get membership in your own WHOOP account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to WHOOP yourself; Cotlet does not store your password and you need no WHOOP API key. About the official WHOOP API: WHOOP has an official developer API (v2, OAuth 2.0, read-only) but no official MCP server (checked 27 Oct 2026). The API returns recovery, sleep, cycles and workouts to an app you register in the WHOOP Developer Dashboard, and an app WHOOP has not approved serves 10 members. Setup and FAQ: https://cotlet.dev/integrations/whoop-api-mcp-server
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables language models to query cycles, recovery, strain, and workout data from the Whoop API.-
- AlicenseBqualityDmaintenanceIntegrates with Whoop API v2 to access user profile, sleep, recovery, cycles, and workout data via natural language, with OAuth2 authentication and automatic token refresh.1422 npmMIT
- AlicenseAqualityCmaintenanceEnables Claude to query personal WHOOP health data including recovery, sleep, strain, workouts, and profile via WHOOP's OAuth 2.0 REST API.6MIT
- FlicenseNot gradedqualityDmaintenanceProvides read-only access to Whoop recovery, sleep, strain, workouts, and profile data, allowing users to query their Whoop metrics through natural language in Claude.-