hevy-mcp
Allows reading and writing Hevy workout data: workouts, routines, exercise templates, routine folders, exercise history, and body measurements via the Hevy API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hevy-mcpshow my last 5 workouts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hevy-mcp
MCP (Model Context Protocol) server for the Hevy workout tracker API.
Lets Claude (or any MCP client) read and write your Hevy data: workouts, routines, exercise templates, routine folders, exercise history, and body measurements.
Requirements: Node.js >= 18, a Hevy Pro account, and an API key from https://hevy.com/settings?developer.
Usage
.mcp.json (project-level, Claude Code)
A .mcp.json file in a project's root directory makes MCP servers available to everyone who runs Claude Code inside that project — check it into git and the whole team gets the server automatically.
Step by step:
Create a file named
.mcp.jsonin the root of your project (same folder as.git), or run:claude mcp add hevy --scope project -- npx -y @antnsn/hevy-mcpwhich creates/updates it for you.
Make sure it contains:
{ "mcpServers": { "hevy": { "command": "npx", "args": ["-y", "@antnsn/hevy-mcp"], "env": { "HEVY_API_KEY": "${HEVY_API_KEY}" } } } }Provide the key.
${HEVY_API_KEY}is expanded from your environment at launch, so the key never lives in the file (safe to commit). Export it in your shell profile or session:export HEVY_API_KEY=your-api-keyStart (or restart)
claudeinside the project. First use prompts you to approve the project's MCP servers; approve and thehevytools are available. Verify with/mcp.
Claude Code (global)
claude mcp add hevy -s user --env HEVY_API_KEY=your-api-key -- npx -y @antnsn/hevy-mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"hevy": {
"command": "npx",
"args": ["-y", "@antnsn/hevy-mcp"],
"env": {
"HEVY_API_KEY": "your-api-key"
}
}
}
}Global install (alternative to npx)
If npx is slow or blocked in your environment — common on corporate machines with npm security policies (e.g. allow-scripts guards) — install once globally:
npm install -g @antnsn/hevy-mcpThen use hevy-mcp as the command in any of the configs above:
{
"mcpServers": {
"hevy": {
"command": "hevy-mcp",
"env": {
"HEVY_API_KEY": "${HEVY_API_KEY}"
}
}
}
}Note: ${HEVY_API_KEY} interpolation only works in Claude Code's .mcp.json. Claude Desktop does not expand environment variables — put the literal key there ("HEVY_API_KEY": "your-api-key").
Related MCP server: Hevy MCP
Tools
Tool | Description |
| Paginated list of workouts |
| Single workout by ID |
| Total workout count |
| Workout update/delete events since a date (sync) |
| Log a completed workout |
| Update a workout (full overwrite) |
| Paginated list of routines |
| Single routine by ID |
| Create a routine |
| Update a routine (full overwrite) |
| Paginated exercise templates |
| Single exercise template by ID |
| Create a custom exercise |
| Paginated routine folders |
| Single folder by ID |
| Create a routine folder |
| History for an exercise template (progress tracking) |
| Paginated body measurements |
| Body measurement by date |
| Create a body measurement entry |
| Update a body measurement (full overwrite) |
| Authenticated user info |
Notes
The Hevy API is v0 ("use at your own risk" per Hevy's docs) — endpoints may change.
The API has no delete endpoints; anything created can only be deleted manually in the Hevy app.
update-workout,update-routine, andupdate-body-measurementoverwrite the full record; fetch first, modify, then update.
Contributing
From source
git clone https://github.com/antnsn/hevy-mcp.git
cd hevy-mcp
npm install
npm run buildWhen running from a clone, the key can also live in a .env file in the project root (gitignored) instead of the environment:
echo 'HEVY_API_KEY=your-api-key' > .env
chmod 600 .envThe repo's .mcp.json then picks the server up automatically when running claude inside the repo. Note: the .env file only works for clones — the npm-installed package looks for it next to its own install location, so use the env config shown above instead.
Development
npm run dev # run from source via tsx
npm run typecheck # type-check without emittingTest interactively with the MCP Inspector (pass the key explicitly — the Inspector does not inherit your shell environment):
npx @modelcontextprotocol/inspector -e HEVY_API_KEY=$HEVY_API_KEY node dist/index.jsThe upstream OpenAPI spec is vendored at docs-openapi.json, extracted from the Swagger UI at https://api.hevyapp.com/docs/ (the spec is embedded in swagger-ui-init.js; there is no standalone spec URL).
Issues and PRs welcome at https://github.com/antnsn/hevy-mcp.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceA 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).Last updated234,871371MIT
- Alicense-qualityCmaintenancePython MCP server for the Hevy fitness app. Gives Claude full access to your Hevy data. Log workouts, manage routines, track body measurements, browse exercises, and more. Covers all 25 endpoints of the official Hevy API.Last updatedMIT
- Alicense-qualityDmaintenanceA production-ready MCP server for the Hevy fitness API that exposes 27 tools for reading, writing, and analyzing workout data, enabling LLM-driven personal trainer workflows.Last updated2MIT
Related MCP Connectors
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Wger MCP — wraps wger Workout Manager REST API (free, no auth for read)
MCP server wrapping the Tesla Fleet API and TeslaMate API
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/antnsn/hevy-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server