mcp-server-hevy
You can link your own Hevy Pro account and read your training data through this MCP server; no write tools are exposed in this schema.
Connect and manage a Hevy account: start a one-time secure link, check connection status, or disconnect/remove the stored API key.
Discover available Hevy tools with capability search.
Read workouts: list workouts, fetch one workout by ID, get total workout count, and sync updated/deleted workouts since a timestamp.
Read exercise history for a specific exercise template to assess progression.
Read routines and routine folders, including fetching a routine by ID.
Search exercise templates and fetch an exercise template by ID.
Read your Hevy profile information.
Read body measurements stored in Hevy; these are deliberately read-only here.
Provides tools for interacting with the Hevy strength-training API, enabling users to manage workouts, routines, exercise templates, and view exercise history and body measurements.
Click on "Deploy 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., "@mcp-server-hevy show my recent 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.
mcp-server-hevy
MCP server for the Hevy strength-training API — workouts, routines, exercise history and progression data.
Self-hosted alternative to the public hosted Hevy MCP: one shared instance, per-user credentials encrypted at rest, access gated by the identity an authenticating gateway verifies.
This is an independent, unofficial project. It is not developed, endorsed or supported by Hevy.
Requirements
Hevy Pro. The Hevy developer API is only available to Pro subscribers — the API key simply doesn't exist on a free account, so nothing here will work without one.
Related MCP server: Hevy MCP
How a user links their account
The key never passes through the conversation. Instead:
Ask Claude to connect Hevy →
hevy_connectreturns a one-time linkOpen it, check that it shows your gateway identity, tick the confirmation box, then paste the Hevy API key into the form and submit
The server validates it against Hevy before storing it, so a wrong key fails immediately rather than as a confusing 401 later
The key is found at hevy.com/settings?developer — in a browser, not the mobile app.
The enrollment route is reached directly by the browser (through a reverse
proxy, without the /mcp bearer) and is secured by a single-use, user-bound state token
plus an explicit identity confirmation that is bound to the confirming browser
(HttpOnly cookie), so a link opened by someone else cannot silently attach their
key to another identity.
Unlike an OAuth code, a Hevy API key is long-lived, which is exactly why it
shouldn't sit in a chat transcript.
Tools
Auth: hevy_connect, hevy_status, hevy_disconnect, hevy_search_capabilities
Read: hevy_get_workouts, hevy_get_workout, hevy_get_workout_count,
hevy_get_workout_events (incremental sync), hevy_get_exercise_history,
hevy_get_routines, hevy_get_routine, hevy_get_routine_folders,
hevy_search_exercise_templates, hevy_get_exercise_template,
hevy_get_user_info, hevy_get_body_measurements
Write (only registered when HEVY_ENABLE_WRITES=true):
hevy_create_workout, hevy_update_workout, hevy_create_routine,
hevy_update_routine, hevy_create_routine_folder,
hevy_create_exercise_template
Hevy API constraints worth knowing
These are properties of Hevy's API, not choices made here:
No DELETE, no PATCH. Nothing can be deleted through the API, and there is no partial update.
PUT replaces the whole record. Any exercise or set omitted from an update is erased. Always read the current object first and resend it complete — the update tools are annotated
destructiveHintfor this reason.Creates are not idempotent. A retried create makes a duplicate, so this client retries GET only; failed writes surface to the caller instead of silently double-posting.
Units are fixed: weights in kilograms, durations in seconds.
Small pages. Max 10 per page for workouts/routines/folders, 100 for exercise templates.
Hevy's own docs describe the API as unstable and subject to change.
Body measurements are read-only, deliberately
Hevy can store body weight and composition, and its API can write them — this server intentionally doesn't. Body metrics are expected to come from a dedicated source such as a smart scale; writing them here too would create a second competing record with no defined winner. Reading is exposed so existing Hevy data stays visible.
Configuration
HEVY_ENCRYPTION_KEY= # AES-256-GCM key for the credential store (openssl rand -hex 32)
HEVY_STORE_PATH=/data/store.json
HEVY_PUBLIC_BASE_URL= # public origin, used to build the enrollment link
HEVY_TRUST_FORWARDED_USER=true
HEVY_ENABLE_WRITES=true
HEVY_AUDIT_LOG=
HEVY_TIMEOUT_MS=30000 # upstream request timeout, 1-600000 ms
MCP_HTTP_TOKEN= # REQUIRED with HEVY_TRUST_FORWARDED_USER=true or a non-loopback bind (see below)HTTP transport (node dist/http.js):
Variable | Default | Meaning |
|
| Bind address. |
|
| Listen port (1-65535). |
| - | Bearer token required on |
|
| Serve |
|
| Largest accepted |
| localhost origins | Comma-separated exact |
|
| Allow any |
| see below | Comma-separated host names accepted in the |
|
| Failed |
|
| Window for the limit above. |
MCP_HTTP_TOKEN is the shared bearer the gateway sends on /mcp
(Authorization: Bearer <token>), compared in constant time. The server
refuses to start without it when HEVY_TRUST_FORWARDED_USER=true (otherwise
anyone who can reach the port could claim any X-MCP-User), when bound to a
non-loopback address, or with MCP_ALLOW_ANY_ORIGIN=true. Generate one with
openssl rand -hex 32. Invalid numbers or booleans in these variables stop the
server at startup instead of being ignored.
On a loopback bind, /mcp only accepts localhost, 127.0.0.1, [::1] or
the bind address in the Host header (DNS-rebinding protection); set
MCP_ALLOWED_HOSTS to change this. /healthz and /hevy/enroll need no
bearer. Keep /mcp reachable only from the gateway.
No app-level API credentials exist — every credential is per user.
Security model
Each user links their own Hevy API key; tools only act on the key stored for the identity in
X-MCP-User. That header is only trusted withHEVY_TRUST_FORWARDED_USER=true, and only behindMCP_HTTP_TOKEN.User authentication and authorization belong in an identity-aware gateway in front of this server: it signs the user in, sets
X-MCP-Userand holds the bearer token. This server does not authenticate end users itself.Tool access is not data access: whoever can call
/mcpwith the bearer and a givenX-MCP-Uservalue acts as that user against Hevy.The HTTP server does not terminate TLS. Put it behind a TLS-terminating proxy or keep it on a private network.
Verification
npm run typecheck && npm test && npm run buildLicense
The code is source-available under the Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2).
In plain words:
Allowed: reading the code, running it, changing it, using it inside your own organisation (also commercially), using it for non-commercial education and research, and contributing changes back.
Not allowed: making it, or something built from it, available to others as a commercial product or service that competes with it, for example a hosted service with the same functionality.
Becomes Apache-2.0: each version is also licensed under the Apache License 2.0 from two years after it is released.
Earlier versions: versions released before 0.3.0 were licensed under Apache-2.0 and remain so.
The terms in LICENSE are what apply; this summary does not replace them. See also NOTICE.
Available Tools
16 toolshevy_connectConnect Hevy accountA
Start linking YOUR Hevy account. Returns a one-time link to a form where you paste your Hevy API key — the key is never sent through this conversation. Get the key from hevy.com/settings?developer in a BROWSER (it is not in the mobile app) — it requires an active Hevy Pro subscription.
Inputs: no named parameters.
hevy_disconnectDisconnect HevyADestructive
Remove your stored Hevy API key from this server.
Inputs: no named parameters.
hevy_get_body_measurementsGet Body MeasurementsARead-onlyIdempotent
Body measurements stored in Hevy. READ-ONLY here by design: Withings is the source of truth for body weight and composition, so this server deliberately does not write measurements and create a second competing record.
Inputs: page, pageSize.
hevy_get_exercise_historyExercise HistoryARead-onlyIdempotent
Every recorded set for one exercise template over time — the right tool for judging progression on a specific lift.
Inputs: exerciseTemplateId (required), endDate, startDate.
hevy_get_exercise_templateGet Exercise TemplateCRead-onlyIdempotent
One exercise template by id.
Inputs: exerciseTemplateId (required).
hevy_get_routineGet RoutineARead-onlyIdempotent
One routine by id. Always fetch this before hevy_update_routine — updates replace the entire routine.
Inputs: routineId (required).
hevy_get_routine_foldersGet Routine FoldersDRead-onlyIdempotent
Your routine folders.
Inputs: page, pageSize.
hevy_get_routinesGet RoutinesBRead-onlyIdempotent
Your saved routines (training templates). Max 10 per page.
Inputs: page, pageSize.
hevy_get_user_infoGet User InfoARead-onlyIdempotent
Your Hevy profile (id, name, profile URL).
Inputs: no named parameters.
hevy_get_workoutGet WorkoutCRead-onlyIdempotent
One workout by id.
Inputs: workoutId (required).
hevy_get_workout_countWorkout CountARead-onlyIdempotent
Total number of workouts you have logged.
Inputs: no named parameters.
hevy_get_workout_eventsWorkout Events (sync)ARead-onlyIdempotent
Workouts updated or deleted since a timestamp — use for incremental sync rather than re-reading everything.
Inputs: page, since, pageSize.
hevy_get_workoutsGet WorkoutsARead-onlyIdempotent
Your logged workouts, newest first, with full exercise and set detail. Max 10 per page.
Inputs: page, pageSize.
hevy_search_capabilitiesSearch Hevy CapabilitiesCRead-onlyIdempotent
Find the right Hevy tool. Use first.
Inputs: limit, query.
hevy_search_exercise_templatesSearch Exercise TemplatesARead-onlyIdempotent
Find exercise templates by name to get the exercise_template_id needed for creating workouts/routines. Hevy has no server-side search, so this pages through templates and filters locally.
Inputs: query, maxPages, pageSize.
hevy_statusHevy Connection StatusARead-onlyIdempotent
Whether your Hevy account is linked.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool has a clearly distinct purpose: account management (connect/status/disconnect), workouts (list/single/count/events), routines (list/single/folders), exercise templates (search/get), plus dedicated tools for history, user info, and body measurements. No tools appear to overlap or cause confusion.
All tools use the consistent hevy_ prefix and snake_case, with the vast majority following a verb_noun pattern (get_workouts, search_exercise_templates). Even the exceptions (connect, status, disconnect) are clear and fit the overall style without mixing conventions.
16 tools is slightly above the typical 3-15 well-scoped range, but each tool serves a distinct purpose in covering Hevy's account, workout, routine, and template data. The count is still reasonable and not bloated.
The tool set has significant gaps: it references hevy_update_routine (which is missing) and mentions creating workouts/routines via template IDs, but offers no create or update tools for workouts or routines. This leaves critical actions unavailable and creates a dead end for agents.
Related MCP Connectors
Encrypted Apple Health for MCP clients. Your key never leaves your iPhone.
Encrypted Apple Health for MCP clients. Your key never leaves your iPhone.
Remote MCP server for training, nutrition, wellness, and performance data with OAuth 2.0.
MCP server for Withings health data — sleep, activity, heart, and body metrics.
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).23555MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that connects AI clients to the Hevy workout tracking app, allowing users to manage routines and exercises. It enables reading workout history and logging new fitness sessions through simple natural language commands.-
- AlicenseBqualityDmaintenanceMCP server for the Hevy workout tracker API that allows reading and writing workouts, routines, exercise templates, and body measurements.2217 npm1MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for the Hevy workout tracker that enables users to query training history, log workouts, and manage routines via natural language.MIT