WHOOP MCP logo

WHOOP MCP

Syncs WHOOP recovery, sleep, strain, and workout data into Postgres for MCP-based analysis.

Install WHOOP MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "whoop-mcp-6": {
      "command": "uvx",
      "args": [
        "whoop-postgres-mcp"
      ],
      "env": {
        "WHOOP_CLIENT_ID": "YOUR_VALUE_HERE",
        "WHOOP_CLIENT_SECRET": "YOUR_VALUE_HERE",
        "WHOOP_REDIRECT_URI": "YOUR_VALUE_HERE",
        "WHOOP_DB_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env WHOOP_CLIENT_ID=YOUR_VALUE_HERE --env WHOOP_CLIENT_SECRET=YOUR_VALUE_HERE --env WHOOP_REDIRECT_URI=YOUR_VALUE_HERE --env WHOOP_DB_URL=YOUR_VALUE_HERE --transport stdio whoop-mcp-6 -- uvx whoop-postgres-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx whoop-postgres-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

WHOOP MCP MCP server connects the WHOOP API to Postgres and exposes the stored health data through MCP tools. OAuth handles account authorization, while synchronization imports cycles, recovery, sleep, workouts, and body measurements into a documented schema. Read tools query Postgres without contacting WHOOP, so they can operate offline after data is synced. Use it when an agent needs recent WHOOP metrics, historical records, or comparisons with a 30-day baseline.

Use cases

  • Sync WHOOP history into a Postgres database
  • Compare recent recovery metrics with a 30-day baseline
  • Review sleep stages, sleep need, and efficiency
  • Analyze workout strain, heart rate, and zone minutes
  • Monitor synchronization health by collection

Key features

  • WHOOP OAuth authorization and token storage
  • Incremental and full historical synchronization
  • Postgres-backed recovery, sleep, workout, and cycle queries
  • 30-day vital baselines with mean and standard deviation
  • Per-collection sync watermarks and error reporting
  • stdio MCP server and command-line interface

Tools10

What WHOOP MCP lets your agent do. Expand a tool for its parameters.

Self-reported~206 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 61d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev Ā· whoop-postgres-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit2mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed10Callable tools this server registers over MCP.

How WHOOP MCP works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about WHOOP MCP

WHOOP MCP is an MCP server that connects the WHOOP API to Postgres and exposes tools for OAuth setup, synchronization, sync status, recovery, sleep, workouts, cycles, overview data, and 30-day baselines. MCP clients can query synchronized records without contacting WHOOP for every request.

Install it with `uv tool install whoop-postgres-mcp`, or run it without installation using `uvx whoop-postgres-mcp`. You also need a recent Postgres database and a WHOOP developer app.

Set `WHOOP_CLIENT_ID`, `WHOOP_CLIENT_SECRET`, `WHOOP_REDIRECT_URI`, and `WHOOP_DB_URL`. Run `whoop-mcp init-db`, authorize through the OAuth URL, connect the returned code, and start an initial sync.

Yes, WHOOP MCP works with Claude Desktop through its stdio configuration. Register `uvx whoop-postgres-mcp` as the command and provide the four required environment variables.

Yes, read-only query tools can work offline after synchronization because they query Postgres rather than WHOOP. Authentication and synchronization still require access to the WHOOP API.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWHOOP MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/whoop-mcp-6?style=directory)](https://allmcps.com/mcp/whoop-mcp-6)
HTML Embed
<a href="https://allmcps.com/mcp/whoop-mcp-6"><img src="https://allmcps.com/api/badge/whoop-mcp-6?style=directory" alt="WHOOP MCP on AllMCPs" /></a>