A minimal Model Context Protocol (MCP) server that connects ChatGPT to WHOOP v2 API (read‑only). It exposes tools to fetch recovery, sleep, workouts, cycles, and a daily summary.
- Create a WHOOP Developer app and note the Client ID and Client Secret.
- Set the Redirect URI in WHOOP to
https://<your-host>/oauth/callback. - Deploy this folder as a Node service (Node 18+).
- Configure env vars (see
.env.example). For Vercel, add them in Project → Settings → Environment Variables. - Open
https://<your-host>/oauth/loginand finish OAuth. This writestokens.json. - In ChatGPT → Settings → Connectors → Create → URL of MCP server:
https://<your-host>/mcp→ Auth: OAuth.
NOTE: This demo stores tokens in
tokens.jsonon disk (single-user). For multi-user or serverless, use a proper secret store (e.g., Vercel KV, Redis, or a database).
whoop_today_summary– Get today’s recovery + last sleep in one go.whoop_recovery_range– Recoveries between ISO datetimes.whoop_sleep_range– Sleep sessions between ISO datetimes.whoop_workouts_range– Workouts between ISO datetimes.
This example is read-only and requests only read scopes. Review code before deploying.