WHOOP
平台与服务by JedPattersonn
Access your WHOOP fitness data—overview, sleep, recovery, strain, and healthspan—right where you work. Track daily trends and surface insights to understand readiness, workload, and sleep quality. Get quick summaries or deep dives by date to guide training and recovery decisions.
什么是 WHOOP?
Access your WHOOP fitness data—overview, sleep, recovery, strain, and healthspan—right where you work. Track daily trends and surface insights to understand readiness, workload, and sleep quality. Get quick summaries or deep dives by date to guide training and recovery decisions.
README
Whoop MCP Server
A Model Context Protocol (MCP) server for accessing Whoop fitness data. Integrate your WHOOP biometric data into Claude, LLMs, and other MCP-compatible applications.
Features
- Comprehensive Overview - All your daily metrics in one call
- Sleep Analysis - Deep dive into sleep performance and quality
- Recovery Metrics - HRV, RHR, and recovery contributors
- Strain Tracking - Day strain with heart rate zones and activities
- Healthspan - Biological age and pace of aging metrics
Quick Start
- Clone the repository:
git clone https://github.com/yourusername/whoop-mcp.git
cd whoop-mcp
- Create a
.envfile with your WHOOP credentials:
echo "WHOOP_EMAIL=your-email@example.com" > .env
echo "WHOOP_PASSWORD=your-password" >> .env
echo "PORT=3000" >> .env
Or set as environment variables:
export WHOOP_EMAIL='your-email@example.com'
export WHOOP_PASSWORD='your-password'
- Install dependencies:
bun install
- Start the server:
bun run start
Or for development with hot reload:
bun run dev
The server will run on http://localhost:3000/mcp by default.
Docker Deployment
- Create a
.envfile with your credentials:
cp .env.example .env
# Edit .env with your actual credentials
- Build the Docker image:
docker build -t whoop-mcp .
- Run the container:
docker run -d \
--name whoop-mcp \
whoop-mcp
The --env-file .env flag automatically loads all environment variables from your .env file.
- View logs:
docker logs -f whoop-mcp
- Stop the container:
docker stop whoop-mcp
The Docker image is based on the official Bun Alpine image. The container includes health checks to monitor the server's status.
Smithery Deployment
This server is configured to work with Smithery, a platform for deploying MCP servers. When deployed on Smithery:
-
Configuration via Query Parameters: Smithery passes your credentials as query parameters to the
/mcpendpoint (defined insmithery.yaml):whoopEmail- Your Whoop account emailwhoopPassword- Your Whoop account passwordmcpAuthToken- Optional authentication token
-
Automatic Configuration: The server automatically extracts these from query parameters when running on Smithery, so you don't need to set environment variables manually.
-
Deploy Button: Use the Railway deploy button above for quick deployment, or follow Smithery's documentation for other deployment options.
The smithery.yaml file in the repository root defines the configuration schema that Smithery uses to collect your credentials securely.
Configuration
Credentials Configuration
The server supports two methods for providing credentials:
-
Query Parameters (used by Smithery): Pass credentials as query parameters to the
/mcpendpointwhoopEmail- Your Whoop account emailwhoopPassword- Your Whoop account passwordmcpAuthToken- Optional authentication token
-
Environment Variables (used for local/Docker deployment):
| Variable | Required | Default | Description |
|---|---|---|---|
WHOOP_EMAIL | Yes | - | Your Whoop account email |
WHOOP_PASSWORD | Yes | - | Your Whoop account password |
MCP_AUTH_TOKEN | No | - | Optional authentication token for MCP requests |
PORT | No | 3000 | Server port |
The server will check query parameters first, then fall back to environment variables if not provided.
Optional Authentication
To protect your MCP server from unauthorized access, you can set the MCP_AUTH_TOKEN environment variable. When set, all requests to the /mcp endpoint must include a matching Bearer token:
export MCP_AUTH_TOKEN='your-secret-token-here'
Or add it to your .env file:
echo "MCP_AUTH_TOKEN=your-secret-token-here" >> .env
Clients must then include the token in the Authorization header:
curl -X POST http://localhost:3000/mcp \
-H "Authorization: Bearer your-secret-token-here" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
Note: If MCP_AUTH_TOKEN is not set, the server will accept all requests (useful for local development).
Using with Claude Desktop
Add this configuration to your Claude Desktop config file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Without Authentication (Local Development)
{
"mcpServers": {
"whoop": {
"command": "bun",
"args": ["run", "/absolute/path/to/whoop-mcp/index.ts"],
"env": {
"WHOOP_EMAIL": "your-email@example.com",
"WHOOP_PASSWORD": "your-password"
}
}
}
}
With Authentication (Recommended)
{
"mcpServers": {
"whoop": {
"command": "bun",
"args": ["run", "/absolute/path/to/whoop-mcp/index.ts"],
"env": {
"WHOOP_EMAIL": "your-email@example.com",
"WHOOP_PASSWORD": "your-password",
"MCP_AUTH_TOKEN": "your-secret-token-here"
}
}
}
}
Replace /absolute/path/to/whoop-mcp/ with the actual path to this directory.
Available Tools
The server provides five main tools for accessing your Whoop data:
whoop_get_overview
Retrieves comprehensive Whoop overview data for a specific date in a single API call.
Parameters:
date(optional) - Date in YYYY-MM-DD format. Defaults to today.
Returns:
- Cycle Info: Cycle ID, day, date display, sleep state
- Live Metrics: Recovery score, day strain, sleep hours, calories burned
- Gauges: All score gauges from the home screen
- Activities: Today's activities with scores and times
- Key Statistics: HRV, RHR, VO2 Max, respiratory rate, steps with 30-day trends
- Journal: Journal completion status
Example usage:
"Can you check my Whoop data for today?"
"What was my recovery score on 2024-01-15?"
"Show me my Whoop stats from yesterday"
"How many steps did I take and what were my activities today?"
whoop_get_sleep
Retrieves detailed sleep analysis and performance metrics.
Parameters:
date(optional) - Date in YYYY-MM-DD format. Defaults to today.
Returns:
- Sleep performance score
- Hours vs needed
- Sleep consistency
- Sleep efficiency
- High sleep stress percentage
- Personalized insights and recommendations
Example usage:
"How did I sleep last night?"
"What's my sleep performance for October 27?"
"Why is my sleep score low today?"
whoop_get_recovery
Retrieves comprehensive recovery deep dive analysis including contributors and trends.
Parameters:
date(optional) - Date in YYYY-MM-DD format. Defaults to today.
Returns:
- Recovery score (0-100%)
- Recovery contributors:
- Heart Rate Variability (HRV)
- Resting Heart Rate (RHR)
- Respiratory Rate
- Sleep Performance
- Trend indicators vs 30-day baseline
- Personalized coach insights
Example usage:
"What's my recovery score today?"
"Show me my recovery analysis for yesterday"
"How is my HRV trending compared to my baseline?"
whoop_get_strain
Retrieves comprehensive strain deep dive analysis including contributors, activities, and trends.
Parameters:
date(optional) - Date in YYYY-MM-DD format. Defaults to today.
Returns:
- Strain score with target and optimal ranges
- Strain contributors:
- Heart Rate Zones 1-3
- Heart Rate Zones 4-5
- Strength Activity Time
- Steps
- Today's activities with individual strain scores
- Trend indicators vs 30-day baseline
- Personalized coach insights
Example usage:
"What's my strain score today?"
"Show me my strain analysis and activities"
"How much time did I spend in heart rate zones 4-5?"
"Did I reach my optimal strain target?"
whoop_get_healthspan
Retrieves comprehensive healthspan analysis including WHOOP Age (biological age) and pace of aging metrics.
Parameters:
date(optional) - Date in YYYY-MM-DD format. Defaults to today.
Returns:
- WHOOP Age (biological age)
- Age status (Younger, Same, Older vs. chronological age)
- Years difference from chronological age
- Pace of aging (e.g., 0.5x = aging slower than average)
- Comparison with previous period
- Weekly date range for healthspan measurement
Example usage:
"What's my WHOOP Age?"
"Show me my biological age and healthspan data"
"How fast am I aging compared to average?"
"Am I aging slower or faster than my chronological age?"
How It Works
The server automatically handles authentication:
- Logs in with your email/password on first request
- Stores the access token (valid for 24 hours)
- Automatically re-authenticates before token expires
- Retries failed requests after re-authentication
Security
Best Practices
- Never commit your
.envfile or share your WHOOP credentials - The server stores Whoop authentication tokens in memory only (they expire after 24 hours)
- Use
MCP_AUTH_TOKENwhen exposing the server to a network or untrusted clients - Generate strong, random tokens for
MCP_AUTH_TOKEN(e.g., usingopenssl rand -hex 32) - When running in production or on a network, always set
MCP_AUTH_TOKEN
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT - see LICENSE file for details
常见问题
WHOOP 是什么?
Access your WHOOP fitness data—overview, sleep, recovery, strain, and healthspan—right where you work. Track daily trends and surface insights to understand readiness, workload, and sleep quality. Get quick summaries or deep dives by date to guide training and recovery decisions.
相关 Skills
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
MCP服务构建器
by alirezarezvani
从 OpenAPI 一键生成 Python/TypeScript MCP server 脚手架,并校验 tool schema、命名规范与版本兼容性,适合把现有 REST API 快速发布成可生产演进的 MCP 服务。
✎ 帮你快速搭建 MCP 服务与后端 API,脚手架完善、扩展顺手,尤其适合想高效验证服务能力的开发者。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。