Sponsored by Deepsite.site

Whoop API MCP Server

Created By
RyanLisse9 months ago
MCP server for interacting with the Whoop API to retrieve fitness and health data
Content

Whoop API MCP Server

An MCP (Mission Control Protocol) server for interacting with the Whoop API to retrieve fitness and health data.

Overview

This MCP server provides a standardized interface for accessing Whoop fitness data through its API. It handles authentication, data retrieval, and formatting to make it easy to integrate Whoop data into your applications.

Features

  • OAuth 2.0 authentication with Whoop API
  • User profile information
  • Recovery data
  • Sleep data
  • Workout data
  • Menstrual cycle tracking data
  • MCP-compliant discovery endpoint
  • Clean error handling and logging

Prerequisites

  • Node.js 16.x or higher
  • Whoop developer account and API credentials
  • Register your app in the Whoop Developer Portal

Installation

  1. Clone the repository:

    git clone https://github.com/RyanLisse/whoop-api-mcp.git
    cd whoop-api-mcp
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file based on the .env.example:

    cp .env.example .env
    
  4. Update the .env file with your Whoop API credentials:

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

Usage

  1. Start the server:

    npm start
    
  2. The MCP endpoint will be available at:

    http://localhost:3000/.well-known/mcp.json
    
  3. To authenticate a user with Whoop, direct them to:

    http://localhost:3000/auth/login
    
  4. After authentication, you'll receive access and refresh tokens to use with the API endpoints.

Endpoints

  • GET /user - Get user profile information
  • GET /user/membership - Get user membership information
  • GET /recovery?start=YYYY-MM-DD&end=YYYY-MM-DD - Get recovery data for a date range
  • GET /recovery/latest - Get most recent recovery data
  • GET /sleep?start=YYYY-MM-DD&end=YYYY-MM-DD - Get sleep data for a date range
  • GET /workout?start=YYYY-MM-DD&end=YYYY-MM-DD - Get workout data for a date range
  • GET /cycle?start=YYYY-MM-DD&end=YYYY-MM-DD - Get menstrual cycle data for a date range

Whoop API Documentation

For more information about the Whoop API, refer to the official Whoop API documentation.

MCP Specification

This server follows the MCP (Mission Control Protocol) specification. The MCP discovery endpoint is available at /.well-known/mcp.json.

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
WindsurfThe new purpose-built IDE to harness magic
Tavily Mcp
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
CursorThe AI Code Editor
Amap Maps高德地图官方 MCP Server
Serper MCP ServerA Serper MCP Server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
DeepChatYour AI Partner on Desktop