You signed in with another tab or window. Reload
to refresh your session. You signed out in another tab or window. Reload
to refresh your session. You switched accounts on another tab or window. Reload
to refresh your session. Dismiss alert
RyanLisse / whoop-api-mcp Public
MCP server for interacting with the Whoop API to retrieve fitness and health data
1 star
0 forks
Branches
Tags
Activity
Notifications
You must be signed in to change notification settings
main
Go to file
Code
| Name | | Name | Last commit message | Last commit date |
| --- | --- | --- | --- |
| Latest commit
-------------
History
-------
8 Commits
| | |
| src | | src | | |
| .env.example | | .env.example | | |
| README.md | | README.md | | |
| mcp.json | | mcp.json | | |
| package.json | | package.json | | |
| View all files | | |
An MCP (Mission Control Protocol) server for interacting with the Whoop API to retrieve fitness and health data.
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.
Clone the repository:
git clone https://github.com/RyanLisse/whoop-api-mcp.git
cd whoop-api-mcp
Install dependencies:
npm install
Create a .env
file based on the .env.example
:
cp .env.example .env
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
Start the server:
npm start
The MCP endpoint will be available at:
http://localhost:3000/.well-known/mcp.json
To authenticate a user with Whoop, direct them to:
http://localhost:3000/auth/login
After authentication, you'll receive access and refresh tokens to use with the API endpoints.
GET /user
- Get user profile informationGET /user/membership
- Get user membership informationGET /recovery?start=YYYY-MM-DD&end=YYYY-MM-DD
- Get recovery data for a date rangeGET /recovery/latest
- Get most recent recovery dataGET /sleep?start=YYYY-MM-DD&end=YYYY-MM-DD
- Get sleep data for a date rangeGET /workout?start=YYYY-MM-DD&end=YYYY-MM-DD
- Get workout data for a date rangeGET /cycle?start=YYYY-MM-DD&end=YYYY-MM-DD
- Get menstrual cycle data for a date rangeFor more information about the Whoop API, refer to the official Whoop API documentation
.
This server follows the MCP (Mission Control Protocol) specification. The MCP discovery endpoint is available at /.well-known/mcp.json
.
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
MCP server for interacting with the Whoop API to retrieve fitness and health data
No releases published
No packages published
You can’t perform that action at this time.