Atlas / MCP servers / alixakhribi / mcp-whoop

mcp-whoopCAUTION

mcp/alixakhribi/mcp-whoop

Read-only Model Context Protocol server for WHOOP, over stdio. Browser OAuth login with automatic token refresh, and scope-gated tools across WHOOP's v2 API: cycles, sleep, recovery, workouts, profile and body measurements, plus summaries that digest the last N days into one answer.

Verdict
CAUTION
Grade
B
Trust score
86 /100
Exposed tools
14 14r · 0w · 0d
Transport
—
License
MIT
Stars
0
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A Model Context Protocol (MCP) server for WHOOP, served over stdio.

Published on npm as `mcp-whoop`.

Status: pre-1.0. The authentication surface is complete — browser login, automatic token refresh, scope-gated tools, and logout, against WHOOP's v2 API — and every read scope WHOOP defines now carries tools: profile and body measurements, the cycle, sleep, recovery and workout reads, and the summaries over them. The server speaks the current MCP spec revision (2026-07-28) via SDK v2.

Usage

Run directly with npx (Node.js ^22.22.1 || >=24.10.0):

npx mcp-whoop

Logging in

Every user brings their own WHOOP application. Register one in the WHOOP Developer Dashboard, give it a loopback redirect URI (for example http://127.0.0.1:8788/callback), then run the login once in a terminal.

POSIX shells:

WHOOP_CLIENT_ID=... WHOOP_CLIENT_SECRET=... WHOOP_REDIRECT_URI=... npx mcp-whoop login

PowerShell:

$env:WHOOP_CLIENT_ID = "..."
$env:WHOOP_CLIENT_SECRET = "..."
$env:WHOOP_REDIRECT_URI = "http://127.0.0.1:8788/callback"
npx mcp-whoop login

It prints an authorization URL, opens it in your browser, captures the redirect, and saves the resulting tokens — together with the app credentials, which WHOOP requires again on every token refresh — in your platform's per-user data directory. That directory is readable only by you: by file mode on POSIX, and by your user profile's ACLs on Windows, where Node cannot set one.

From then on the server refreshes the rotating tokens by itself; you log in again only if WHOOP stops honoring the stored refresh token. Two optional variables adjust the login: WHOOP_SCOPES narrows what is asked for (all six read scopes by default), and WHOOP_TOKEN_STORE moves the token file elsewhere. Narrowing is required when your app

Read from source at commit 43c212aa8046OBSERVED · 2026-10-12
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add mcp-whoop -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "mcp-whoop": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (14)

14 read · 0 write · 0 destructive.

ToolRiskDescription
get_body_measurementsread
get_cycleread
get_cycle_recoveryread
get_cycle_sleepread
get_profileread
get_recovery_summaryread
get_sleepread
get_sleep_summaryread
get_today_snapshotread
get_workoutread
list_cyclesread
list_recoveriesread
list_sleepsread
list_workoutsread
04

Trust audit

CAUTIONgrade B · trust 86/100 Install with care. The audit found things worth knowing before you trust its output.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
declared (4 observation(s))
Shell
declared (1 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (12)

MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
.env.example:18
WHOOP_REDIRECT_URI=http://127.0.0.1:8788/callback
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
src/config/environment.ts:101
"must be the URL WHOOP sends the browser back to, like http://127.0.0.1:8788/callback",
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
src/whoop/auth/elicited/attempt.ts:244
remedy: `A login offered inside an MCP client catches WHOOP's redirect on a plain-HTTP loopback port of this machine, so only an http:// loopback redirect URI — one on http://127.0.0.1, http://localho
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
tests/integration/whoop-reader.test.ts:107
const secret = "reader-upstream-secret";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/helpers/harness.ts:21
new URL("../../dist/index.js", import.meta.url),
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/stdio/tool-surface.test.ts:12
readFileSync(new URL("../../package.json", import.meta.url), "utf8"),
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/unit/environment-documentation.test.ts:11
const readmePath = fileURLToPath(new URL("../../README.md", import.meta.url));
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/unit/environment-documentation.test.ts:13
new URL("../../.env.example", import.meta.url),
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/unit/readme-surface.test.ts:11
const readmePath = fileURLToPath(new URL("../../README.md", import.meta.url));
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:27
loopback redirect URI (for example `http://127.0.0.1:8788/callback`), then run the
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:41
$env:WHOOP_REDIRECT_URI = "http://127.0.0.1:8788/callback"
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/server, zod, @biomejs/biome, @commitlint/cli, @commitlint/config-conventional, @modelcontextprotocol/client, @semantic-release/changelog, @semantic-release/git
Why it matters. 16 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha 43c212aa8046full audit observations/trust-audit/mcp-server/alixakhribi__mcp-whoop.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-1243c212aa8046CAUTIONB86first audit
06

Questions

What is the mcp-whoop MCP server?

Read-only Model Context Protocol server for WHOOP, over stdio. Browser OAuth login with automatic token refresh, and scope-gated tools across WHOOP's v2 API: cycles, sleep, recovery, workouts, profile and body measurements, plus summaries that digest the last N days into one answer.

What tools does mcp-whoop expose?

14 in total: 14 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is mcp-whoop safe to connect to an agent?

With care. The audit graded it B (86/100) and found 12 things worth knowing before you trust this server, listed below with the exact line each was found on.

What credentials does mcp-whoop need?

No credential environment variables were found in its source, so it appears to need none.

How current is this page?

The grade is for one exact copy of the source (43c212aa8046), read on 2026-10-12. The repository is watched and re-audited when it changes.

Advertisement