Skip to main content
Glama
karlhsueh

Hevy MCP Server

by karlhsueh

Hevy MCP Server

An MCP server that gives AI agents (Claude, ChatGPT, n8n, etc.) access to your Hevy workout data.

Runs as a Docker container and exposes an SSE endpoint, making it easy to connect remotely via a Cloudflare tunnel or any reverse proxy.


Deploy with Docker

1. Clone the repo

git clone https://github.com/karlhsueh/hevyapp-mcp.git
cd hevyapp-mcp

2. Configure your credentials

cp .env.example .env

Edit .env and fill in:

HEVY_API_KEY=your-api-key-here   # from hevy.com/settings?developer (requires Hevy Pro)
MCP_AUTH_TOKEN=your-secret-token  # generate one: openssl rand -hex 32

MCP_AUTH_TOKEN protects the server — any client must send Authorization: Bearer <token> to connect. If unset, the server starts unprotected (fine for local-only use).

3. Start the container

docker compose up -d

Verify it's running:

curl http://localhost:3847/health
# {"status":"ok","server":"hevyapp-mcp"}

Related MCP server: Hevy MCP Server

Expose remotely via Cloudflare Tunnel

If you're self-hosting on a home server and want remote access:

  1. Go to Cloudflare Zero Trust → Networks → Tunnels

  2. Click your tunnel → EditPublic HostnameAdd a public hostname

  3. Fill in:

    • Subdomain: hevy-mcp (or anything you like)

    • Domain: your domain

    • Service: http://localhost:3847

  4. Save — no tunnel restart needed

Your MCP server will be live at https://hevy-mcp.yourdomain.com/sse.


Connect to it

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "hevy": {
      "type": "sse",
      "url": "https://hevy-mcp.yourdomain.com/sse",
      "headers": {
        "Authorization": "Bearer your-secret-token"
      }
    }
  }
}

Restart Claude Desktop.

Claude Code (CLI)

claude mcp add hevy --transport sse https://hevy-mcp.yourdomain.com/sse \
  --header "Authorization: Bearer your-secret-token"

ChatGPT / other agents

URL: https://hevy-mcp.yourdomain.com/sse
Header: Authorization: Bearer your-secret-token

Local agents (same machine)

Same token required, but use localhost directly to skip Cloudflare:

http://localhost:3847/sse

Available tools

Tool

What it does

get_workouts

List workouts (paginated)

get_workout_count

Total workout count

get_workout

Single workout details

get_workout_events

Changes since a date (for sync)

create_workout

Log a new workout

update_workout

Edit an existing workout

get_user_info

Your profile

get_routines

List saved routines

get_routine

Single routine

create_routine / update_routine

Manage routines

get_exercise_templates

Full exercise library

get_exercise_template

Single exercise info

get_exercise_history

Progress over time for any exercise

get_routine_folders

Routine folder list

create_routine_folder / update_routine_folder

Manage folders

get_body_measurements

Weight/body fat history

get_body_measurement_by_date

Measurements for a date

upsert_body_measurement

Log body measurements


Updating

git pull
docker compose up -d --build

Logs

docker compose logs -f hevyapp-mcp
Install Server
F
license - not found
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/karlhsueh/hevyapp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server