Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

io.github.thebriangao/totem

Latest version: v2.0.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
MCP server Transport: stdio Publisher: thebriangao
145 Stars
42 Forks
2 Versions
TypeScript Repo language

Scan summary

io.github.thebriangao/totem was last scanned on 23 Nov 2026 at version 2.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions; the latest was published on 23 Nov 2026.
  • Findings: No rules fired in version 2.0.0.
  • MCP server: Runs over stdio.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.0.0 LATEST 23 Nov 2026 No rules fired
1.4.4 12 Jun 2026 Not shown

No rules fired in 2.0.0

Findings

Findings for v2.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

totem connects your WHOOP account to your AI apps. Ask about last night's sleep, why your recovery is low, or how your HRV has moved this quarter. Have the app log a workout or fill in your journal.

It is a small server that speaks MCP to your apps and talks to WHOOP the way the WHOOP app does. You run it on your own computer or on a cloud server you own.

  • 41 tools. Recovery, sleep, strain, stress, heart rate, trends, workouts, Strength Trainer, journal, WHOOP Coach, weight, cycle tracking, Smart Alarm, profile and settings. See them all.
  • Nothing changes without a yes. Every tool that writes shows a preview first and waits for you to confirm.
  • Light on context. A default answer is about 1.5 KB, so the tools leave room for the conversation.
  • One command. totem local or totem cloud logs you in to WHOOP and adds totem to the AI apps it finds.

[!NOTE] totem uses WHOOP's private app API, not the public developer API, and isn't affiliated with WHOOP. Read the FAQ before you install it.

Quick start

You need Node.js 24 or newer and a WHOOP account.

1. Install it.

npm install -g @thebriangao/totem

2. Pick where it runs.

On this computer In the cloud
Command totem local totem cloud
Works with Desktop and terminal apps: Claude Desktop, Claude Code, ChatGPT desktop and Codex, Cursor, VS Code, OpenCode, Antigravity All of those, plus claude.ai, chatgpt.com and Claude on your phone
Cost Free Free on Cloudflare, about $4 a month on Fly.io
Available While your computer is on Always

Either command opens a browser window on WHOOP's own site for you to log in. totem never sees your password. It then finds the AI apps on your computer and offers to add itself to each one.

3. Ask something.

Open your app and try "How did I sleep last night?"

Run totem on its own any time to see where things stand.

Prefer a button?

  • Cloudflare asks for two values: MCP_AUTH_TOKEN (64 random characters, for example from openssl rand -hex 32) and AUTH_PASSWORD (the password you'll type when an app connects). It runs on the free Workers plan.
  • Railway generates both for you (they're under the service's Variables). It needs Railway's paid plan.

Then log in to WHOOP and send the login to your server:

npx @thebriangao/totem auth --url https://your-server-address

Only use Claude Desktop? Download totem.mcpb, double-click it, and log in once with npx @thebriangao/totem auth --local.

What you can ask

  • "How did I sleep last night, and how does it compare to my month?"
  • "Why is my recovery low today?"
  • "Show my HRV and resting heart rate for the last 90 days."
  • "What was my heart rate during this morning's run?"
  • "Log a 30-minute walk at 6 pm."
  • "I had caffeine and alcohol yesterday. Add that to my journal."
  • "Log today's lift: bench press 3×5 at 80 kg, squat 3×5 at 100 kg."
  • "Set a Smart Alarm for 7:30 on weekdays."

Anything that writes comes back as a preview first. Your app shows you what will change and asks before it happens.

Connect your apps

totem connect sets up the apps on your computer. A cloud server also has a Connect page at https://your-server/connect, with a button or a copy-ready step for each app, already filled in with your server's address.

With a cloud server, each app sends you to totem's sign-in page once. It names the app that's asking, shows where access will go, and asks for your connector password.

App On this computer With a cloud server
claude.ai, Claude Desktop, Claude mobile Claude Desktop's config file A link that opens claude.ai's "Add custom connector" filled in. It then shows up in Desktop and on your phone too
Claude Code claude mcp add claude mcp add --transport http, then /mcp to sign in
ChatGPT desktop and Codex codex mcp add (they share one config) codex mcp add --url, which opens the sign-in itself
chatgpt.com Needs a cloud server Plugins → Add → Add custom MCP server
Cursor ~/.cursor/mcp.json An "Add to Cursor" link
VS Code (Copilot) ~/.copilot/mcp-config.json An "Add to VS Code" link
OpenCode (1 and 2) opencode.json opencode.json, then opencode mcp auth whoop
Antigravity ~/.gemini/config/mcp_config.json The same file, with the server's address

totem connect <app> sets up one app, and totem connect --print shows what it would add without touching anything.

Hosting

totem cloud deploys to any of these, then checks that the server answers.

Host Cost Good to know
Cloudflare Workers (recommended) Free plan, 100,000 requests a day No machine to look after. The login lives in a Durable Object.
Fly.io About $4 a month for one 512 MB machine in Virginia and a 1 GB volume Always on. At the time of writing, Fly doesn't bill personal accounts for less than $5 a month.
Railway Railway's paid plan A dashboard and logs in the browser.
Your own server Yours Any Docker host. totem writes the settings and prints the commands, or use the image ghcr.io/thebriangao/totem. Mount a volume at /data.

Afterwards, totem status checks the server and its WHOOP login, totem logs shows its logs, and totem deploy sends it a new version.

How it works

Your data goes from WHOOP to your totem to the app you asked, and nowhere else. There is no totem company in the middle, no shared server and no analytics.

The WHOOP login
  1. totem auth, which local and cloud run for you, opens a fresh browser window on app.whoop.com. You log in on WHOOP's own page, two-factor check included.
  2. totem reads only WHOOP's session cookies from that window, then closes it and deletes the temporary profile.
  3. The login is kept in one file that only you can read (~/.config/totem/tokens.json), or on your server: on its volume, or in Cloudflare Durable Object storage.
  4. WHOOP replaces the refresh token every time it's used, so exactly one place owns a login. totem refreshes it on its own, every 12 hours and before it expires, and saves the new one first.

To log in again, run totem auth.

Security
  • Your server, your keys. A cloud server has two secrets of its own: MCP_AUTH_TOKEN, the server's key, kept in ~/.config/totem/deploy.json on your computer, and the connector password you type when an app connects.
  • The sign-in page names the destination. It shows the real address access goes to (claude.ai, chatgpt.com, an app on your own computer), never just the name an app claims.
  • The server talks to WHOOP and your apps, nothing else. No telemetry, no analytics.
  • Writes need confirmation, and whoop_raw writes also need allow_write.

More in SECURITY.md.

Commands

Command What it does
totem Show where this install stands and what to run next
totem local Run on this computer: log in, then set up your AI apps
totem cloud Deploy your own server, log it in, connect your apps
totem connect [app] Set up your apps again, or just one
totem auth Log in to WHOOP (--local, --url URL, --paste, --status)
totem status / ping / logs Check the server and its login
totem deploy Deploy this version to your server
totem update Update totem (--check, --auto on)
totem tools List the 41 tools

totem <command> --help explains each one.

Troubleshooting

The app doesn't show any WHOOP tools. Restart it fully. For a local setup, run totem status. For a server, run totem ping.

"No WHOOP login on this server." Run totem auth. It sends the login to your server when one is set up, or saves it on this computer.

No browser was found for the login. totem uses Chrome, Chromium, Edge or Brave. Point it at another one with TOTEM_BROWSER=/path/to/browser, or run totem auth --paste and paste the whoop-auth-refresh-token cookie from a browser that's logged in to app.whoop.com.

OpenCode or another app's config has comments. totem doesn't rewrite files it can't read exactly. For OpenCode it lets OpenCode add the server itself. For others it prints the entry to add.

WHOOP answers 5xx. WHOOP is having trouble. Try again in a minute.

FAQ

Is this supported by WHOOP? No. totem uses WHOOP's private app API, which WHOOP doesn't offer to third parties, and WHOOP's terms let them act against accounts that use unsupported tools. totem's requests look like the app's and stay at a person's pace, but there is no guarantee. If losing your WHOOP account would be a problem, don't use it.

Why not WHOOP's public API? It's read-only and covers a small part of the data: no journal, Strength Trainer, stress, Coach, Smart Alarm, hypnogram or trends, and no writes. If recovery, sleep totals and a workout list are enough for you, use it instead.

Can I share my server with a friend? No. Each person needs their own server and their own WHOOP login. A login can't be shared, because WHOOP replaces the refresh token on every use.

Does it work with WHOOP 4.0 and 5.0/MG? Yes. The API depends on your account, not your strap.

Where does my data go? From WHOOP to your server to the app you asked. totem keeps no copy, only an in-memory cache of recent reads.

Contributing

Issues and pull requests are welcome. To work on totem:

git clone https://github.com/thebriangao/totem && cd totem
npm install
npx tsc && npm link     # builds once and puts `totem` on your PATH
totem test

CONTRIBUTING.md explains how the project is laid out, and WHOOP.md documents what is known about WHOOP's API.

Acknowledgments

Thanks to everyone who opened issues and pull requests for v1 and v2, to Anthropic for MCP, and to the people who documented pieces of WHOOP's API over the years.

License

MIT. "WHOOP" is a trademark of WHOOP, Inc. totem is an independent project and is not affiliated with, endorsed by or connected to WHOOP.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.thebriangao/totem

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229