JW

jedpattersonn/whoop-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

13 stars 15 forks 质量 65 趋势 9MIT

用于WHOOP的MCP服务器 - 将您的健身和生物鉴别数据与克洛德和其他LLMS集成

概览

用于访问Whoop健身数据的示范背景协议(MCP)服务器. 把你的WHOP生物鉴别数据纳入克洛德,LLMS,以及其他MCP相容的应用. 深度潜入睡眠性能和质量 - HRV、RHR和复苏贡献者 - 日积月累与心率区和活动 - 生物年龄和衰老速度 服务器将默认运行于 http://localhost:3000/mcp 。 --env-file.env旗自动从您.env文件中加载所有环境变量. Docker形象取自官方的"邦·阿尔卑斯"形象. 该容器包括健康检查以监测服务器的状况. 此服务器被配置为与Smithery合作,Smithery是部署MCP服务器的平台. 当部署在史密斯里时: 1. : Smithery 将您的证书作为查询参数传递到 /mcp 终点(在 smithery 中定义).

概述(AI 翻译)

用于访问Whoop健身数据的示范背景协议(MCP)服务器. 把你的WHOP生物鉴别数据纳入克洛德,LLMS,以及其他MCP相容的应用.

□ 特性

  • ** 综合概览** - 每日所有衡量标准在一个电话中 -睡眠分析-深度潜入睡眠性能和质量 ** 康复计量** – – HRV、RHR和康复捐助者
  • ** 火车跟踪** - 与心率区和活动有关的日积月累 -健康 – – 生物年龄和老龄化速度

□ 快开始

  1. ** 登记库:**

  2. ** 制作一个带有WOOP证书的.env文件:**

或设置为环境变量 :

  1. ** 建立附属关系:**

  2. ** 启动服务器:**

或用于热重载的发展 :

服务器将默认运行于 http://localhost:3000/mcp 。

□ Docker 部署

  1. ** 创建一份.env文件,并附有全权证书:**

  2. ** 建造Docker图像:**

  3. ** 运行容器:**

--env-file .env 旗帜自动从您的 [[T4] 文件装入所有环境变量 。

  1. ** 查看日志:**

  2. ** 停止集装箱:**

Docker形象取自官方的"邦·阿尔卑斯"形象.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 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

  1. Clone the repository:
git clone https://github.com/yourusername/whoop-mcp.git
cd whoop-mcp
  1. Create a .env file with your WHOOP credentials:
echo "[email protected]" > .env
echo "WHOOP_PASSWORD=your-password" >> .env
echo "PORT=3000" >> .env

Or set as environment variables:

export WHOOP_EMAIL='[email protected]'
export WHOOP_PASSWORD='your-password'
  1. Install dependencies:
bun install
  1. 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

  1. Create a .env file with your credentials:
cp .env.example .env
# Edit .env with your actual credentials
  1. Build the Docker image:
docker build -t whoop-mcp .
  1. 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.

  1. View logs:
docker logs -f whoop-mcp
  1. 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:

  1. Configuration via Query Parameters: Smithery passes your credentials as query parameters to the /mcp endpoint (defined in smithery.yaml):

    • whoopEmail - Your Whoop account email
    • whoopPassword - Your Whoop account password
    • mcpAuthToken - Optional authentication token
  2. Automatic Configuration: The server automatically extracts these from query parameters when running on Smithery, so you don’t need to set environment variables manually.

  3. 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.

在 GitHub 查看完整 README

安装

docker run -d \
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "whoop": { "command": "bun", "args": ["run", "/absolute/path/to/whoop-mcp/index.ts"], "env": { "WHOOP_EMAIL": "[email protected]", "WHOOP_PASSWORD": "your-password" } } } }