Skip to main content
Glama

WHOOP MCP

A Model Context Protocol server that gives AI assistants (Claude, ChatGPT and other MCP clients) read access to your own WHOOP data: recovery, HRV, sleep, strain and workouts.

Single file, zero dependencies, runs on Cloudflare Workers. Tool descriptions are in Slovenian.

Tools

Tool

What it returns

get_whoop_summary

Profile, latest recovery, sleep, cycle and workouts for the last N days (default 3, max 14)

get_profile

Basic profile and body measurements (cached for 6 h)

get_recoveries

Recovery score, HRV (rMSSD), resting heart rate, SpO2, skin temperature

get_sleeps

Sleep performance, stages (light, SWS, REM), disturbances, respiratory rate, sleep need

get_workouts

Sport, strain, average and max heart rate, kilojoules, heart rate zones

get_cycles

Daily strain, kilojoules, average and max heart rate

All list tools accept limit (1 to 25), start, end (ISO 8601) and nextToken for paging.

Related MCP server: apple-health-shortcuts-mcp

How it works

  • WHOOP OAuth 2.0 with offline scope; tokens live in a Cloudflare KV namespace and refresh automatically

  • Access token cached in memory per isolate, refresh is single flight so parallel calls never invalidate each other's rotating refresh token

  • OAuth state is verified, the refresh token is never shown in HTML

  • Optional endpoint protection with a secret path (/mcp/<MCP_PATH_TOKEN>) or an API key

  • Hard timeouts and retries on every WHOOP request

Setup

  1. Create an app in the WHOOP Developer Dashboard and note the client ID and secret.

  2. Install and create the KV namespace:

    npm install
    npx wrangler kv namespace create WHOOP_KV

    Put the returned id into wrangler.toml.

  3. Add the secrets (never commit them):

    npx wrangler secret put WHOOP_CLIENT_ID
    npx wrangler secret put WHOOP_CLIENT_SECRET
    npx wrangler secret put MCP_PATH_TOKEN
  4. Deploy: npm run deploy

  5. In the WHOOP dashboard set the redirect URI to https://<your-worker>.workers.dev/callback.

  6. Open https://<your-worker>.workers.dev/ and click Poveži Whoop račun to connect your account.

  7. Add the MCP endpoint to your client: https://<your-worker>.workers.dev/mcp/<MCP_PATH_TOKEN>

For local development copy dev.vars.example to .dev.vars and run npm run dev.

Without MCP_PATH_TOKEN or MCP_API_KEY the endpoint is public and anyone with the URL can read your health data. Always set one of them.

License

MIT, see LICENSE. Made by Nik Bogataj.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to read-only access Apple Health data through three tools: current status and sleep, detailed metrics, and 7/14/30-day trends, deployed via one-click on Cloudflare with private-key authentication.
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to read Apple Health data through three tools: current stats, detailed metrics, and trends. Deployable to Cloudflare with a one-click phone setup, exposing only read-only access.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants such as Claude, ChatGPT and Gemini to read wearable health data — daily activity, sleep stages, heart rate, SpO2, HRV, workouts, weight and nutrition — through a self-hosted, OAuth-protected Cloudflare Worker endpoint. It also lets users log weight, body fat, water, food, exercises, mood and symptoms by voice or chat, while leaving sensor-recorded data read-only.
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to query a user's WHOOP recovery, sleep, HRV, strain, workouts and body measurements through 16 read-only tools, including today's status, personal baselines, sleep debt, trends and period comparisons. Runs locally, requires no data exports, and supports aggregate mode that limits responses to high-level summaries.
      14 npm
      -