Whoop Mcp

io.github.souravpn由 GitHub 帳號 souravpn 發布v1.0.2更新於 Oct 25, 2026

MCP server for WHOOP — gives Claude access to your recovery, sleep, strain, and workout data

已驗證STDIO僅桌面位置與生活資料與分析

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理透過 WHOOP API 讀取你的恢復、睡眠、負荷、運動與個人資料。

可以做什麼
讀取恢復指標,例如恢復分數、HRV、靜止心率與血氧,以及多日(預設 7 天)恢復趨勢。取得睡眠時長、各階段、效率與呼吸頻率,以及多日睡眠趨勢。取得當日負荷分數、平均與最大心率及卡路里。查詢最近一次運動的項目、時長、負荷與心率區間,或近期運動紀錄。取得個人資料與身體測量數據。
適用情境
適合配戴 WHOOP 並想向助理詢問每日恢復、睡眠品質、負荷、HRV 趨勢或運動紀錄的人,也適合將 WHOOP 資料與其他穿戴裝置伺服器交叉比對。
執行需求
透過 npm(Node.js)在本機執行,設定對象為 Claude Desktop。需要一個 WHOOP 開發者應用程式,提供 Client ID 與 Client Secret,分別以 WHOOP_CLIENT_ID 和 WHOOP_CLIENT_SECRET 設定,並需一次性在瀏覽器完成 OAuth 授權,權杖會存到本機檔案。需要連線至 WHOOP API 的網路存取。
安裝前請注意
需要 WHOOP 開發者應用程式密鑰(WHOOP_CLIENT_SECRET),並將 OAuth 權杖存放在本機檔案,兩者都應妥善保護。README 要求勾選所有唯讀權限以及 offline 權限。資料為唯讀,README 表示資料留在本機,但仍需從 WHOOP API 取得。README 的配對範例使用了未在宣告設定中出現的 WHOOP_ACCESS_TOKEN 變數。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Whoop Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

whoop-mcp

A Model Context Protocol (MCP) server that gives Claude access to your WHOOP biometric data — recovery, sleep, strain, and workouts.

Ask Claude things like:

  • "How's my recovery today?"
  • "How did I sleep last night?"
  • "How has my HRV trended this week?"
  • "What was my strain from yesterday's workout?"

Privacy

This app accesses your WHOOP data locally on your device. No data is sent to any third-party server.


Tools

ToolWhat it returns
get_recoveryRecovery score, HRV, resting HR, SpO2
get_sleepSleep duration, stages (light/deep/REM), efficiency, respiratory rate
get_strainDay strain score, avg/max HR, calories
get_latest_workoutMost recent workout — sport, duration, strain, HR zones
get_recovery_trendRecovery scores over N days (default 7)
get_sleep_trendSleep data over N days (default 7)
get_workout_historyRecent workout history (default 5)
get_profileProfile + body measurements

Setup

1. Create a WHOOP developer app

  1. Go to developer-dashboard.whoop.com
  2. Sign in with your WHOOP account
  3. Create a new App:
    • Name: whoop-mcp (or anything)
    • Redirect URI: http://localhost:8080/callback
    • Scopes: select all read scopes + offline
  4. Copy your Client ID and Client Secret

2. Install

bash
npm install -g @souravpn/whoop-mcp

3. Run one-time auth setup

This opens your browser, you log into WHOOP, and your tokens are saved to ~/.whoop-mcp-tokens.json:

bash
WHOOP_CLIENT_ID=your_id WHOOP_CLIENT_SECRET=your_secret whoop-mcp-auth-setup

You only need to do this once. The server will auto-refresh tokens after that.

4. Add to Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

json
{  "mcpServers": {    "whoop": {      "command": "@souravpn/whoop-mcp",      "env": {        "WHOOP_CLIENT_ID": "your_client_id",        "WHOOP_CLIENT_SECRET": "your_client_secret"      }    }  }}

Restart Claude Desktop. You should see a green "running" badge in Settings → Developer.

5. Test it

Open a new chat and ask:

How's my recovery today?

Example queries

Daily check-in:

What's my recovery, sleep, and strain for today?

Trend analysis:

How has my HRV trended over the past 7 days?

Workout correlation:

Look at my workouts this week and my recovery scoresthe day after each one. Is there a pattern?

Full briefing:

Give me a complete health briefing — recovery, lastnight's sleep breakdown, and any workouts from yesterday

Pairing with Oura

If you also use Oura Ring, you can run both MCP servers together and ask Claude to cross-reference:

json
{  "mcpServers": {    "whoop": {      "command": "/path/to/whoop-mcp",      "env": { "WHOOP_ACCESS_TOKEN": "your_whoop_token" }    },    "oura": {      "command": "/path/to/oura-mcp",      "env": { "OURA_ACCESS_TOKEN": "your_oura_token" }    }  }}

Then ask:

Compare my WHOOP and Oura HRV readings for this week.Do they agree? Which is trending higher?

Development

bash
git clone https://github.com/yourusername/whoop-mcpcd whoop-mcpnpm installnpm run build
# Test locallyWHOOP_ACCESS_TOKEN=your_token node dist/index.js

Project structure

whoop-mcp/├── src/│   ├── index.ts   # MCP server + tool definitions│   └── whoop.ts   # WHOOP API client + formatters├── package.json├── tsconfig.json└── README.md

Contributing

PRs welcome. Some ideas for extension:

  • Heart rate time series data
  • Sleep stage timeline (light/deep/REM per hour)
  • Strain goal recommendations
  • Weekly summary tool

License

MIT


Acknowledgements

Built with the MCP TypeScript SDK and the WHOOP Developer API.

來源:README.md,提交 993d71e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。