Skip to main content
Glama
nissand

WHOOP MCP Server

by nissand

whoop-get-recovery-for-cycle

Retrieve recovery metrics for a specific WHOOP cycle using its ID to analyze physiological data and track fitness progress.

Instructions

Get recovery data for a specific cycle

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cycleIdYesID of the cycle to get recovery data for

Implementation Reference

  • Core handler function that performs the HTTP GET request to the Whoop API to retrieve recovery data for the specified cycle ID.
    async getRecoveryForCycle(cycleId: number): Promise<WhoopRecovery[]> {
      const response = await this.client.get(`/cycle/${cycleId}/recovery`);
      return response.data;
    }
  • Tool registration in MCP server including name, description, and input schema validation.
    {
      name: 'whoop-get-recovery-for-cycle',
      description: 'Get recovery data for a specific cycle',
      inputSchema: {
        type: 'object',
        properties: {
          cycleId: {
            type: 'number',
            description: 'ID of the cycle to get recovery data for',
          },
        },
        required: ['cycleId'],
      },
    },
  • MCP tool request handler that validates arguments, delegates to WhoopApiClient, and formats response as MCP content.
    case 'whoop-get-recovery-for-cycle': {
      if (!args || typeof args.cycleId !== 'number') {
        throw new Error('cycleId is required and must be a number');
      }
      const result = await this.whoopClient.getRecoveryForCycle(args.cycleId);
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(result, null, 2),
          },
        ],
      };
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nissand/whoop-mcp-server-claude'

If you have feedback or need assistance with the MCP directory API, please join our Discord server