Skip to main content
Glama
arpitarunkumaar

whoop-mcp-server

WHOOP MCP Server

Connect WHOOP data to Claude Desktop through MCP. This server authenticates with WHOOP, fetches fitness/recovery datasets, and exposes them as MCP tools.

What It Can Do

  • Return WHOOP profile and body measurements.

  • Return workouts, recovery, sleep, and cycles with date filters and pagination.

  • Return an analyzed dashboard snapshot for quick trend views.

  • Return full raw history used by the dashboard.

  • Return precomp analytics for trends, period comparisons, correlations + narrative insights.

  • Export flattened CSV for spreadsheet & pandas workflows.

  • Keep tokens encrypted locally and refresh them automatically.

Related MCP server: WHOOP MCP Server

MCP Tools

  • get_whoop_auth_status: token/auth health.

  • get_whoop_profile: WHOOP profile.

  • get_whoop_body_measurements: body measurement record.

  • get_whoop_workouts(limit, start_date, end_date, next_token): workouts.

  • get_whoop_recovery(limit, start_date, end_date, next_token): recovery records.

  • get_whoop_sleep(limit, start_date, end_date, next_token): sleep records.

  • get_whoop_cycles(limit, start_date, end_date, next_token): cycle records.

  • get_whoop_dashboard_snapshot(refresh): aggregated dashboard payload.

  • get_whoop_full_history(refresh): raw history payload.

  • analyze_whoop_trends(metric, days): trend stats for recovery|sleep|hrv|strain|rhr.

  • compare_whoop_periods(start_date_1, end_date_1, start_date_2, end_date_2): side-by-side period comparison.

  • get_whoop_correlations(days): pairwise metric correlations (sleep/recovery/strain/HRV relationships).

  • get_whoop_insights(days): dashboard-style narrative insights for the selected trailing window.

Dates use YYYY-MM-DD.

Requirements

  • Python 3.10+ (3.11 ideally)

  • Active WHOOP account

  • Claude Desktop

Install

git clone https://github.com/arpitarunkumaar/whoop-mcp-server.git
cd whoop-mcp-server
python3.11 -m venv .venv311
source .venv311/bin/activate
pip install -r requirements.txt

Authorize WHOOP

Use the direct local OAuth flow (no third-party auth broker):

python3.11 setup.py --client-id YOUR_CLIENT_ID

If WHOOP_CLIENT_SECRET is not set, setup prompts for it securely.

Claude Desktop Setup

Claude config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/claude/claude_desktop_config.json

Use absolute paths:

{
  "mcpServers": {
    "whoop": {
      "command": "/absolute/path/to/python3",
      "args": ["/absolute/path/to/whoop-mcp-server/src/whoop_mcp_server.py"],
      "env": {
        "PYTHONPATH": "/absolute/path/to/whoop-mcp-server/src"
      }
    }
  }
}

Restart Claude Desktop after saving config.

Quick Verification

Ask Claude:

  • "Run get_whoop_auth_status."

  • "Show my last 7 days of recovery and sleep."

Local Dashboard

  • Run python3.11 src/whoop_dashboard_server.py to start the local dashboard API server (loopback-only by default).

  • Run npm run dev to start the Next.js dashboard.

  • Open http://localhost:3000 in your browser to view the dashboard UI.

  • Click Refresh in the dashboard UI to force a fresh WHOOP pull.

  • To bind to a non-loopback host, pass --allow-remote explicitly.

Live Data Reset (Quick Steps)

If the dashboard is not showing current data, run these steps in order:

  1. Stop any existing dashboard process:

pkill -f 'src/whoop_dashboard_server.py'
  1. Clear local WHOOP cache:

rm -f ~/.whoop-mcp-server/cache.json
  1. Re-authorize WHOOP:

python3.11 setup.py --client-id YOUR_CLIENT_ID --redirect-uri http://127.0.0.1:8786/callback
  1. Start the dashboard API again:

python3.11 src/whoop_dashboard_server.py --host 127.0.0.1 --port 8765
  1. Open http://localhost:3000 and click Refresh.

CSV Export

Generate JSON + CSV in one run:

python3.11 scripts/export_whoop_data.py --csv

Generate only JSON:

python3.11 scripts/export_whoop_data.py

CSV files are written into the selected export directory (for example storage/exports/whoop-export-YYYYMMDDTHHMMSSZ/):

  • recovery.csv

  • sleep.csv

  • workouts.csv

  • cycles.csv

  • daily_summary.csv

  • csv_manifest.json (row counts + metadata)

Essential Notes

  • Token storage path: ~/.whoop-mcp-server/

  • Logs: use LOG_LEVEL and optional LOG_FILE environment variables.

  • Export utility (optional): python scripts/export_whoop_data.py

  • Drop prior exports in drop_exports/; incremental runs auto-select the newest dropped export.

  • drop_exports/ is scaffolded in Git, but files you drop there are gitignored.

  • Override drop folder if needed: python scripts/export_whoop_data.py --drop-base /path/to/exports

  • If refresh fails after moving tokens between machines, set:

    • WHOOP_CLIENT_ID

    • WHOOP_CLIENT_SECRET

  • If your ~/.whoop-mcp-server/tokens.json was created before client credentials were persisted, re-run setup once so refresh remains stable:

    • python3.11 setup.py --client-id YOUR_CLIENT_ID

Troubleshooting

  • No valid access token available:

    • Run the Live Data Reset (Quick Steps) section above.

  • OAuth error invalid_client:

    • Re-run step 3 from Live Data Reset (Quick Steps) and complete the browser authorization flow.

  • Claude does not show WHOOP tools:

    • Confirm absolute paths in claude_desktop_config.json

    • Ensure PYTHONPATH points to <repo>/src

    • Restart Claude Desktop

License

MIT. See LICENSE.

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arpitarunkumaar/whoop-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server