remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Used for environment variable configuration to store the Hevy API key.
Utilized for code formatting and linting in the development process of the MCP server.
Used for version control of the MCP server codebase.
hevy-mcp: Model Context Protocol Server for Hevy Fitness API
A Model Context Protocol (MCP) server implementation that interfaces with the Hevy fitness tracking app and its API. This server enables AI assistants to access and manage workout data, routines, exercise templates, and more through the Hevy API (requires PRO subscription).
Features
- Workout Management: Fetch, create, and update workouts
- Routine Management: Access and manage workout routines
- Exercise Templates: Browse available exercise templates
- Folder Organization: Manage routine folders
Prerequisites
- Node.js (v20 or higher)
- npm or yarn
- A Hevy API key
Installation
Installing via Smithery
To install hevy-mcp for Claude Desktop automatically via Smithery:
Manual Installation
Integration with Cursor
To use this MCP server with Cursor, you need to update your ~/.cursor/mcp.json
file by adding the following configuration:
Make sure to replace your-api-key-here
with your actual Hevy API key.
Configuration
Create a .env
file in the project root with the following content:
Replace your_hevy_api_key_here
with your actual Hevy API key.
Usage
Development
This starts the MCP server in development mode with hot reloading.
Production
Available MCP Tools
The server implements the following MCP tools:
Workout Tools
get-workouts
: Fetch and format workout dataget-workout
: Get a single workout by IDcreate-workout
: Create a new workoutupdate-workout
: Update an existing workoutget-workout-count
: Get the total count of workoutsget-workout-events
: Get workout update/delete events
Routine Tools
get-routines
: Fetch and format routine datacreate-routine
: Create a new routineupdate-routine
: Update an existing routineget-routine
: Get a single routine by ID
Exercise Template Tools
get-exercise-templates
: Fetch exercise templatesget-exercise-template
: Get a template by ID
Routine Folder Tools
get-routine-folders
: Fetch routine folderscreate-routine-folder
: Create a new folderget-routine-folder
: Get a folder by ID
Project Structure
Development
Code Style
This project uses Biome for code formatting and linting:
Generating API Client
The API client is generated from the OpenAPI specification using Kiota:
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Acknowledgements
- Model Context Protocol for the MCP SDK
- Hevy for their fitness tracking platform and API
You must be authenticated.
Tools
A Model Context Protocol (MCP) server implementation that interfaces with the Hevy fitness tracking app and its API. This server enables AI assistants to access and manage workout data, routines, exercise templates, and more through the Hevy API (requires PRO subscription).