Totem gives Claude (or any MCP-compatible AI) full read + write access to your wearable data. Today it speaks Whoop — every metric, through Whoop's private iOS API.
▶ 2-min demo — the full totem cloud flow: install → Whoop login → Fly deploy → Claude connector → first query.
55 tools, structured zod-validated outputs, bundled catalogs (372 exercises, 308 behaviors, 203 sports, 311 endpoints), write-safety harness, automatic Cognito token refresh, bounded in-memory read cache. TypeScript 6, Node 24, 278 tests.
Totem is becoming a universal wearables bridge. Whoop is the first adapter — every metric, fully wired. Fitbit, Apple Watch, and Garmin are in progress (contributors welcome). The MCP + projection layer is device-agnostic; an adapter just maps its source into the same shared schemas, so everything below applies to whatever you wear.
Note: this works through Whoop's private iOS API rather than the public OAuth API. That isn't what Whoop's terms allow — see the FAQ if you want the full picture before installing.
Table of contents
- Get Started
- Why this exists
- What it does
- Architecture
- The 55 tools
- Authentication
- Write-safety harness
- Bundled catalogs
- Configuration
- Remote hosting
- The
totem CLI
- Privacy + security
- Troubleshooting
- Comparison to alternatives
- FAQ
- Disclaimers
- Acknowledgments
Other root-level docs: TOOLS.md (full per-tool reference) · WHOOP.md (full API reference) · CHANGELOG.md · CONTRIBUTING.md · SECURITY.md · LICENSE
Get Started
Prerequisites: Node 24+ and a Whoop account (any membership tier).
git clone https://github.com/thebriangao/totem.git
cd totem && npm install && npx tsc && npm link
That puts totem on your PATH (the one-time npx tsc builds it; after that every workflow is a totem command — there are no npm run scripts). Now run one guided command — each handles Whoop login (SMS included), setup, and connecting to Claude from end to end. Pick how you want to run it:
★ Recommended — totem cloud
Deploys the server to a host and connects it to Claude on web, desktop, and mobile, synced across every device on your account. One command walks through:
- Whoop login — email + password, plus the SMS code if your account has MFA. Tokens are saved locally and pushed to the host.
- Pick a host — Fly (automated + tested), Railway, Google Cloud Run, or your own server (guided Docker steps).
- Secrets — generates
MCP_AUTH_TOKEN and asks you to choose a connector password.
- Deploy + verify — sets env, deploys, confirms
/health and the OAuth endpoints are live.
- Connect — prints ready-to-paste setup for claude.ai, ChatGPT, Claude Code (remote), and Cursor / Windsurf / any HTTP MCP client (URL + password for the OAuth connectors, a bearer-token block for the rest), and opens claude.ai's connector page.
Local only — totem local
Runs the server on this machine over stdio — no hosting, this device only. Walks through Whoop login → build → wiring it into the client you pick: Claude Desktop, Claude Code, Cursor, VS Code (Copilot), Gemini CLI, Codex CLI, or Windsurf — it writes the right config to the right path automatically (or prints a universal block for any other MCP client). Restart the client and you're set.
Keeping it alive
Whoop's tokens expire roughly every 30 days. When they do, re-run the same command — it re-logs you in and (if you deployed) pushes the new tokens to your server:
Silent if your account has no SMS MFA; prompts for the code if it does. Pushes fresh tokens to your deployment automatically.
Check it works
Ask Claude: "how am I doing today on whoop?" — you should get structured recovery / sleep / strain back.
Prefer to wire everything up by hand? The guided commands just automate the steps documented in The totem CLI, Remote hosting, and Configuration. Stuck? See Troubleshooting.
Why this exists
Whoop ships two APIs:
- The public developer API at
developer.whoop.com is OAuth2, read-only, and exposes 13 endpoints under 6 scopes. You get recovery score, sleep stage totals, workout strain, body measurements (3 fields), and HRV/RHR per cycle. No journal, no Strength Trainer, no Whoop Coach, no hypnogram, no stress monitor, no trends, no writes, nothing else. Numeric sport_id was removed 2025-09-01.
- The private iOS API is what the actual Whoop app uses —
api.prod.whoop.com behind AWS Cognito. 311 distinct operations across 47 microservices, including everything missing from above.
This MCP wraps the iOS surface.
What the iOS API has that the public OAuth doesn't
| Capability | Tool |
|---|
| HRV / RHR / respiratory / VO2 / weight time-series (25 metrics × up to 4 windows) | whoop_trend |
| Hypnogram (per-stage sleep timeline) + full stage breakdown (ms + %) + in-sleep HR | whoop_sleep |
| Strength Trainer — every set, every workout, full 372-exercise catalog, PRs | whoop_lift_* (8 tools) |
| 308-behavior Journal + behavior impact analysis | whoop_journal* (5 tools) |
| Stress monitor (intraday timeline) | whoop_stress, whoop_live_stress |
| Whoop Coach AI chat | whoop_coach_ask |
| Smart Alarm (read + 4 write modes) | whoop_smart_alarm* |
| HR zones (read + configure max HR / 5 custom zones) | whoop_hr_zones* |
| Compare-windows, sleep coach, calendar grid, performance assessment | whoop_compare, whoop_sleep_need, whoop_calendar, whoop_performance_assessment |
| Live HR / activity state / live stress | whoop_live_* (3 tools) |
| Community leaderboards, hidden metrics, women's health (cycle / symptoms / MCI) | whoop_leaderboard, whoop_hidden_metric, whoop_cycle* |
| 15 write tools — log workouts, journal entries, profile edits, smart-alarm config, edit sleep times | various |
If recovery + sleep totals + workout list is enough for you, use the public OAuth API. If anything in the table is interesting, you need this. The iOS API was discovered via mitmproxy — full methodology in WHOOP.md.
What it does
The MCP runs as a local Node process. It speaks Model Context Protocol over stdio (or HTTP for remote deployments), registers 55 tools at startup, and waits for tool calls from a connected MCP client.
When a tool is called:
- Authenticates via the cached Cognito access token (auto-refreshes if expired)
- Issues HTTP requests to
api.prod.whoop.com
- Walks the response to extract a flat domain object (the projection step)
- Validates the projected object against a zod schema (catches Whoop API drift)
- Returns the structured JSON to the MCP client
Writes follow the same path plus a preview gate: every write tool defaults confirm: false, returning a preview of what would be sent. Claude must explicitly re-call with confirm: true to fire.
See The 55 tools for the full per-tool reference.
Architecture