Installation
Get Hevy HTTP MCP running on your machine with these step-by-step instructions.Prerequisites
Before installing, ensure you have the following:Install Bun
Get a Hevy Pro account
You need a Hevy Pro subscription to access the Hevy API.If you don’t have Hevy Pro yet, upgrade at hevyapp.com.
Generate your Hevy API key
- Log in to Hevy on the web
- Navigate to Settings → Developer
- Generate a new API key
- Save the key securely - you’ll need it for configuration
Keep your API key secure. It grants full access to your workout data.
Install from source
Install dependencies
Use Bun to install all required packages:This installs:
elysia- Web frameworkelysia-mcp- MCP protocol implementationofetch- HTTP client for Hevy API
Configure environment variables
Copy the example environment file and edit it with your credentials:Open
.env in your editor and configure the required variables:Environment variables explained
| Variable | Required | Default | Description |
|---|---|---|---|
HEVY_API_KEY | Yes | - | Your Hevy API key from the developer settings |
MCP_API_KEY | Yes | - | Secret key that MCP clients must use to authenticate |
PORT | No | 3000 | HTTP port for the MCP server |
HOST | No | 127.0.0.1 | Hostname to bind the server to |
LOG_LEVEL | No | info | Logging verbosity: debug, info, warn, or error |
Generate a secure random string for
MCP_API_KEY using:Development mode
For development with hot-reload:Verify installation
Test that your server is running and authenticated correctly:Replace
your_mcp_access_key_here with the actual MCP_API_KEY from your .env file.Next steps
Quickstart
Connect your first MCP client and make API calls
Configuration
Learn about advanced configuration options