
用于WHOOP API集成的模型上下文协议服务器. 连接您的 WHOOP 健身数据到 Claude Desktop , 并配有 OAuth 认证和 18+ API 端点 .
概览
一个模式上下文协议(MCP)服务器,提供所有WHOOP API端点的访问. 这个服务器允许您通过 MCP 标准将 WHOOP 健身和健康数据整合到您的应用中. - 获取所有 WHOOP v2 API 端点 - 安全认证流 - 概况信息和身体测量 - 具有菌株和心率测量仪的生理学周期数据 - 恢复分数,HRV,和休息心率数据 - 详细睡眠分析,包括阶段和性能测量仪 - :带菌株,心率区和活动测量仪的锻炼数据 - 以发光处理大数据集 - :全类型安全和智能支持 - Node.js 18+ - WHOOP开发者账户 - WHOOP API证书 1. 前往 WHOOP 开发者平台 2. 创建新应用程序 3. 注意您的客户端 ID 和客户端 机密 4. 设定方向URI(例如 http://localhost:3000/callback)) 复制示例环境文件并配置您的 WOOP 证书 : 编辑 .
概述(AI 翻译)
一个模式上下文协议(MCP)服务器,提供所有WHOOP API端点的访问. 这个服务器允许您通过 MCP 标准将 WHOOP 健身和健康数据整合到您的应用中.
□ 特性
- ** 完成WHOOP API 覆盖范围**:进入WHOOP v2 API 端点
- OAuth 2.0认证: 安全认证流量
- 用户数据:概况信息和身体测量
- ** 循环**:带有菌株和心率测量的生理周期数据
- 恢复:恢复分数、HRV和休养心率数据
- 睡眠:详细睡眠分析,包括阶段和性能衡量标准
- 工作**: 具有菌株、心率区和活动指标的锻炼数据
- ** Pagination 支持**:用平面处理大型数据集
- ** TypeScript**:全类型安全和情报支持
□ 先决条件
- 节点.js 18+
- WHOOP 开发者账户
- WOOP API证书
□ 设置
-
安装附属物
-
WHOP API 设置
-
使用WHOOP开发者平台
-
创建新的应用程序
-
注意您的[[T0]和
Client Secret -
设定方向URI(例如
http://localhost:3000/callback) -
环境配置
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
WHOOP MCP Server
A Model Context Protocol (MCP) server that provides access to all WHOOP API endpoints. This server allows you to integrate WHOOP fitness and health data into your applications through the MCP standard.
Features
- Complete WHOOP API Coverage: Access to all WHOOP v2 API endpoints
- OAuth 2.0 Authentication: Secure authentication flow
- User Data: Profile information and body measurements
- Cycles: Physiological cycle data with strain and heart rate metrics
- Recovery: Recovery scores, HRV, and resting heart rate data
- Sleep: Detailed sleep analysis including stages and performance metrics
- Workouts: Exercise data with strain, heart rate zones, and activity metrics
- Pagination Support: Handle large datasets with pagination
- TypeScript: Full type safety and IntelliSense support
Prerequisites
- Node.js 18+
- WHOOP Developer Account
- WHOOP API credentials
Setup
1. Install Dependencies
npm install
2. WHOOP API Setup
- Go to the WHOOP Developer Platform
- Create a new application
- Note your
Client IDandClient Secret - Set your redirect URI (e.g.,
http://localhost:3000/callback)
3. Environment Configuration
Copy the example environment file and configure your WHOOP credentials:
cp env.example .env
Edit .env with your WHOOP API credentials:
# WHOOP API Configuration
WHOOP_CLIENT_ID=your_client_id_here
WHOOP_CLIENT_SECRET=your_client_secret_here
WHOOP_REDIRECT_URI=http://localhost:3000/callback
# MCP Server Configuration
MCP_SERVER_PORT=3001
4. Build and Run
# Build the project
npm run build
# Run the MCP server
npm start
# Or run in development mode
npm run dev
Authentication Flow
The MCP server supports OAuth 2.0 authentication with WHOOP. Here’s how to authenticate:
- Get Authorization URL: Use the
whoop-get-authorization-urltool to get the OAuth URL - User Authorization: Direct users to the authorization URL
- Copy Authorization Code: When WHOOP redirects you back, copy the authorization code from the URL
- Share Code with Claude: IMPORTANT - You must copy and paste the authorization code directly to Claude in the chat
- Exchange Code: Claude will use the
whoop-exchange-code-for-tokentool with the authorization code - Set Access Token: Claude will use the
whoop-set-access-tokentool to set the access token for API calls
⚠️ Important Note About Authorization Codes
When you complete the WHOOP authorization in your browser, you’ll be redirected to a URL that contains an authorization code. You must copy this code and paste it directly into your chat with Claude. The code will look something like this in the URL:
http://localhost:3000/callback?code=ABC123XYZ789&scope=read:recovery%20read:cycles...
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →