# WHOOP MCP [Health: Active]

**Category:** 🏃 Sports  
**Repository:** https://github.com/cunicopia-dev/whoop-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/whoop-mcp-6

## Description
Sync WHOOP recovery, sleep, strain, and workouts into Postgres and query them from any MCP client.

## Tools
Capabilities this server exposes over MCP:

- **whoop_auth_url** — Returns the OAuth authorization URL to open in a browser.
- **whoop_connect** — Exchanges the OAuth code for tokens, stores them, returns the connected user.
- **whoop_sync** — Pulls data from WHOOP into Postgres. Returns per-collection counts and errors.
- **whoop_status** — Per-collection sync health: last sync, watermark, row count, last error.
- **whoop_overview** — Latest recovery and vitals vs. 30-day baseline, last night's sleep, recent workouts and strain.
- **whoop_recovery** — Recent recovery scores, resting HR, HRV, SpO2, skin temperature.
- **whoop_sleep** — Recent sleeps and naps with stage breakdown, need, performance, efficiency.
- **whoop_workouts** — Recent workouts with strain, HR, energy, distance, and zone minutes.
- **whoop_cycles** — Recent physiological cycles (WHOOP days) with day strain and HR.
- **whoop_baseline** — 30-day mean and standard deviation per vital.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "whoop-mcp": {
    "command": "uvx",
    "args": ["whoop-postgres-mcp"],
    "env": {
      "WHOOP_CLIENT_ID": "",
      "WHOOP_CLIENT_SECRET": "",
      "WHOOP_REDIRECT_URI": "",
      "WHOOP_DB_URL": ""
    }
  }
}
```

**Requires environment variables:** `WHOOP_CLIENT_ID`, `WHOOP_CLIENT_SECRET`, `WHOOP_REDIRECT_URI`, `WHOOP_DB_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What WHOOP MCP does

The WHOOP MCP MCP server stores WHOOP account data in a Postgres database and makes that data available to MCP clients. It covers physiological cycles, recovery, sleep, workouts, and body measurements. Each record is stored with typed columns and its original JSON, while the database schema remains available for direct SQL access.

The server separates network writes from local reads. OAuth authorization and synchronization call the WHOOP API; reporting tools query Postgres only. This design avoids making every agent question consume WHOOP API requests and allows previously synchronized data to remain queryable without a network connection.

## How it works

Authorization begins with `whoop_auth_url`, which returns a browser URL. After access is approved, `whoop_connect` exchanges the returned code for tokens and stores them in Postgres. `whoop_sync` then imports WHOOP collections and reports counts and errors for each collection.

Incremental synchronization re-fetches the requested recent window to catch records that were updated after creation, such as sleep records that receive a later score. Per-collection watermarks extend the window when necessary, and records are upserted using their natural identifiers. A full sync removes the lower time bound for an account backfill. Collection errors are recorded while other collections continue processing.

Token refresh occurs before expiration and uses a Postgres advisory lock so the MCP process and a separate scheduled sync can share credentials without racing. The WHOOP MCP MCP server returns tool results as JSON text.

## Setup and configuration

Install the package with `uv tool install whoop-postgres-mcp`, or run it with `uvx whoop-postgres-mcp`. You need a recent Postgres database and a WHOOP developer app. Run `whoop-mcp init-db` to create the `whoop` schema, then authorize the account, connect the OAuth code, and perform an initial full sync.

Set these required environment variables before starting the server:

- `WHOOP_CLIENT_ID`: WHOOP developer app client ID.
- `WHOOP_CLIENT_SECRET`: WHOOP developer app client secret.
- `WHOOP_REDIRECT_URI`: Redirect URI registered with the app.
- `WHOOP_DB_URL`: Postgres connection string containing the stored tokens and data.

The server runs over stdio and can be registered with Claude Desktop or Claude Code using a stdio command. The same authorization and synchronization flow is available through MCP tools.

## Tools and capabilities

- Authenticate with `whoop_auth_url` and `whoop_connect`.
- Import data with `whoop_sync` and inspect collection health with `whoop_status`.
- Compare current recovery and vitals with a 30-day baseline using `whoop_overview` and `whoop_baseline`.
- Query recovery, sleep, workouts, and cycles with their respective tools.
- Limit queries by days and result count; `days` is capped at 365 and `limit` at 200.

## Limitations and notes

Only `whoop_connect` and `whoop_sync` contact WHOOP. The remaining tools read from Postgres, so their results depend on the last successful synchronization. The application requests read-only WHOOP scopes plus offline access; it cannot modify the WHOOP account.

OAuth tokens are stored in plaintext in `whoop.whoop_tokens`. Anyone with access to that table may be able to call the WHOOP API until the refresh token is revoked, so database permissions and `WHOOP_DB_URL` require protection. Revocation involves deleting the token row and removing the app from WHOOP account settings.

The WHOOP MCP MCP server writes no files, caches, or telemetry outside Postgres. Its license is MIT.

_Full upstream README: https://allmcps.com/mcp/whoop-mcp-6/readme_

