# totem

Connects Whoop to an AI agent over MCP, exposing wearable data for queries. Useful for checking recovery, sleep, or strain from a client conversation.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 135
- Author: thebriangao
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/thebriangao/totem
- Updated: 2026-09-16
- HTML: https://affpapa.org/en/nevibecode/mcp/thebriangao-totem

## What it does

totem links Whoop with an MCP-compatible client and provides tools to read and write account data. The project lists 55 tools, automatic Cognito token renewal, and a bounded cache for reads. Ask an agent about today's recovery, sleep, or strain.

Node 24+ and a Whoop account are required. In Claude Code, the server can run through `npx`; setup needs Whoop tokens and the account email. One important caveat: totem uses Whoop's private iOS API rather than its public OAuth API, and this access method does not comply with Whoop's terms.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `WHOOP_IOS_BEARER_TOKEN`, `WHOOP_COGNITO_REFRESH_TOKEN`, `WHOOP_EMAIL`, `WHOOP_USER_ID`, `WHOOP_TIMEZONE` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env WHOOP_IOS_BEARER_TOKEN=<WHOOP_IOS_BEARER_TOKEN> --env WHOOP_COGNITO_REFRESH_TOKEN=<WHOOP_COGNITO_REFRESH_TOKEN> --env WHOOP_EMAIL=<WHOOP_EMAIL> --env WHOOP_USER_ID=<WHOOP_USER_ID> --env WHOOP_TIMEZONE=<WHOOP_TIMEZONE> --transport stdio thebriangao-totem -- npx -y @thebriangao/totem
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add thebriangao-totem --env WHOOP_IOS_BEARER_TOKEN=<WHOOP_IOS_BEARER_TOKEN> --env WHOOP_COGNITO_REFRESH_TOKEN=<WHOOP_COGNITO_REFRESH_TOKEN> --env WHOOP_EMAIL=<WHOOP_EMAIL> --env WHOOP_USER_ID=<WHOOP_USER_ID> --env WHOOP_TIMEZONE=<WHOOP_TIMEZONE> -- npx -y @thebriangao/totem
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "thebriangao-totem": {
            "command": "npx",
            "args": [
                "-y",
                "@thebriangao/totem"
            ],
            "env": {
                "WHOOP_IOS_BEARER_TOKEN": "<WHOOP_IOS_BEARER_TOKEN>",
                "WHOOP_COGNITO_REFRESH_TOKEN": "<WHOOP_COGNITO_REFRESH_TOKEN>",
                "WHOOP_EMAIL": "<WHOOP_EMAIL>",
                "WHOOP_USER_ID": "<WHOOP_USER_ID>",
                "WHOOP_TIMEZONE": "<WHOOP_TIMEZONE>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "thebriangao-totem": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@thebriangao/totem"
            ],
            "env": {
                "WHOOP_IOS_BEARER_TOKEN": "<WHOOP_IOS_BEARER_TOKEN>",
                "WHOOP_COGNITO_REFRESH_TOKEN": "<WHOOP_COGNITO_REFRESH_TOKEN>",
                "WHOOP_EMAIL": "<WHOOP_EMAIL>",
                "WHOOP_USER_ID": "<WHOOP_USER_ID>",
                "WHOOP_TIMEZONE": "<WHOOP_TIMEZONE>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e WHOOP_IOS_BEARER_TOKEN=<WHOOP_IOS_BEARER_TOKEN> -e WHOOP_COGNITO_REFRESH_TOKEN=<WHOOP_COGNITO_REFRESH_TOKEN> -e WHOOP_EMAIL=<WHOOP_EMAIL> -e WHOOP_USER_ID=<WHOOP_USER_ID> -e WHOOP_TIMEZONE=<WHOOP_TIMEZONE> thebriangao-totem npx -y @thebriangao/totem
```
Replace <…> with your own values

## When to use it
- query Whoop recovery metrics through MCP
- check sleep and workout strain data
- give an AI client access to Whoop data
- refresh Whoop tokens for a deployed server

## Example prompts
- Show my Whoop recovery metrics for today.
- Compare my sleep and strain over the selected period.
- Check how my Whoop workouts have changed.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74559
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
