Whoop API MCP Server

Whoop API MCP Server

用于与Whoop API交互以获取健身和健康数据的MCP Server。

概述

Whoop API MCP 服务器提供标准化接口,让您轻松获取和集成 Whoop 健身及健康数据到您的应用中。

先决条件

快速开始

1. 安装

git clone https://github.com/RyanLisse/whoop-api-mcp.git
cd whoop-api-mcp
npm install
cp .env.example .env

2. 配置

编辑 .env 文件,填入您的凭证:

WHOOP_CLIENT_ID=your_client_id_here
WHOOP_CLIENT_SECRET=your_client_secret_here
WHOOP_REDIRECT_URI=http://localhost:3000/auth/callback

3. 启动服务器

npm start

4. 使用服务

  • MCP 发现端点:http://localhost:3000/.well-known/mcp.json
  • 用户认证:http://localhost:3000/auth/login

主要端点

  • /user - 用户资料
  • /recovery - 恢复数据
  • /sleep - 睡眠数据
  • /workout - 锻炼数据
  • /cycle - 月经周期数据

示例请求

GET /recovery?start=2023-01-01&end=2023-01-07
GET /sleep/latest

更多信息