# mcp-whoop [Health: Active]

**Category:** 🏃 Sports  
**Repository:** https://github.com/AlixAkhribi/mcp-whoop  
**GitHub Stars:** 0  
**npm Downloads (last month):** 300  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-whoop

## Description
Model Context Protocol (MCP) server for WHOOP, served over stdio

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

```json
"mcpServers": {
  "mcp-whoop": {
    "command": "npx",
    "args": ["-y","mcp-whoop"],
    "env": {
      "WHOOP_CLIENT_ID": "",
      "WHOOP_CLIENT_SECRET": "",
      "WHOOP_REDIRECT_URI": "",
      "WHOOP_SCOPES": "",
      "WHOOP_TOKEN_STORE": "",
      "WHOOP_HTTP_TIMEOUT_MS": "",
      "WHOOP_API_BASE_URL": "",
      "WHOOP_LOGIN_WAIT_MS": ""
    }
  }
}
```

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

## Documentation

## What mcp-whoop does

mcp-whoop gives an MCP-compatible model read access to data from the WHOOP v2 API. Its tools cover the user's profile and body measurements, physiological cycles, sleep and naps, recovery scores, and workouts. Additional tools combine these records into recent sleep and recovery summaries or a snapshot of the current cycle, recovery, and sleep.

All exposed operations are read-only. The server registers MCP read-only hints and does not provide tools that modify WHOOP data. Tool availability follows the scopes granted during WHOOP authorization, so a client only sees operations that the associated application is allowed to perform.

## How it works

The server communicates with MCP hosts through stdio. Run it directly with `npx mcp-whoop`, or configure an MCP client to launch `npx --yes mcp-whoop` as a stdio process. Logging is written to stderr so stdout remains available for MCP JSON-RPC traffic; log output removes token material.

Authentication uses a WHOOP application created in the WHOOP Developer Dashboard. The `login` command opens a browser authorization flow using a loopback redirect URI, then stores the resulting credentials and tokens in the platform's per-user data directory. Stored refresh credentials are used to renew rotating tokens between sessions. The `offline` scope is requested to support this persistent login.

List operations return one WHOOP page at a time, ordered newest first. They accept ISO 8601 `start` and `end` values, a `limit` from 1 to 25, and an optional `nextToken`. The returned `next_token` can be passed back as `nextToken` to retrieve the following page.

## Setup and configuration

Use Node.js `^22.22.1` or `>=24.10.0`. Register a WHOOP application, configure a loopback redirect URI such as `http://127.0.0.1:8788/callback`, and log in with:

```sh
WHOOP_CLIENT_ID=... WHOOP_CLIENT_SECRET=... WHOOP_REDIRECT_URI=http://127.0.0.1:8788/callback npx mcp-whoop login
```

The default login requests all six read scopes. Set `WHOOP_SCOPES` when the WHOOP application has a narrower set enabled. `WHOOP_TOKEN_STORE` can relocate the token file. When launching the server from an MCP client, the saved login normally supplies the credentials; setting `WHOOP_CLIENT_ID` or `WHOOP_CLIENT_SECRET` overrides the stored values.

`WHOOP_HTTP_TIMEOUT_MS` changes the request timeout, while `WHOOP_API_BASE_URL` can point development or test traffic at another API origin. `WHOOP_LOGIN_WAIT_MS` and `WHOOP_LOGIN_TTL_MS` control interactive login offers initiated during tool or resource requests. Environment values are validated, and invalid settings are reported on stderr.

## Tools and capabilities

Available tools include:

- `get_profile` and `get_body_measurements` for identity and basic body data.
- `list_cycles` and `get_cycle` for physiological cycles.
- `list_sleeps`, `get_sleep`, and `get_cycle_sleep` for sleep records and naps.
- `list_recoveries` and `get_cycle_recovery` for cycle recovery data.
- `list_workouts` and `get_workout` for recognized workouts and their sports.
- `get_sleep_summary` for recent nights, with naps counted separately.
- `get_recovery_summary` for recent cycle-day recovery rows.
- `get_today_snapshot` for the current cycle, its strain so far, recovery, and the sleep that started it.

Summary tools accept a requested number of recent days or nights, defaulting to seven and allowing up to 30. Tools that combine multiple WHOOP data areas require every corresponding scope to be granted.

## Limitations and notes

The server is pre-1.0 and depends on WHOOP authorization and network access. It only reads data; it cannot update WHOOP records. Pagination is explicit: the server passes through WHOOP's continuation token and does not automatically traverse all available pages. Scope selection also changes the tool set, and a tool requiring multiple data areas is withheld unless all required permissions are present.

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

