Hevy MCP (Remote)

io.github.rwestergren由 GitHub 账号 rwestergren 发布v0.1.6更新于 Oct 24, 2026

Hosted/gateway-ready Hevy fitness MCP: workouts, routines, templates.

已验证STDIO仅桌面位置与生活效率与工作流

概览

AI 生成的概览

面向 Hevy 健身应用的 MCP 服务器,让助手读取、创建和更新训练、训练计划、动作模板、文件夹和 webhook 订阅。

可以做什么
获取、创建和更新训练记录,并读取训练数量与训练事件。列出、读取、创建和更新训练计划。浏览和搜索动作模板,带内存缓存。列出和创建训练计划文件夹。创建、查看和删除训练事件的 webhook 订阅。
适用场景
当你希望助手处理 Hevy 训练记录时使用:查看或记录训练、管理训练计划和文件夹,或为训练事件设置 webhook 订阅。它面向 Hevy PRO 用户;打包版本面向将其托管在 MCP 网关后的运维者。
运行要求
需要在 HEVY_API_KEY 环境变量中提供 Hevy API 密钥(需 Hevy PRO)。打包版本是用 Docker 运行的 OCI 镜像,在 /mcp 提供 MCP streamable-HTTP,在 /healthz 提供健康检查;上游 npm 包需要 Node.js 24 或更高版本和 npm 10 或更高版本。
安装前请注意
服务器需要 HEVY_API_KEY 密钥,可访问用户的 Hevy 账户。它可以创建和更新训练、训练计划和文件夹,并可创建或删除 webhook 订阅,因此改动会写入真实账户。README 说明内置 Sentry 监控,默认关闭 PII 收集。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Hevy MCP (Remote),将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

hevy-mcp-remote: Hosted / gateway-ready MCP for Hevy Fitness

[License: MIT] [Build Docker image] [ghcr.io]

Fork notice. This is an independently-maintained fork of chrisdoc/hevy-mcp, repackaged for multi-tenant MCP gateways. It ships the same Hevy tools wrapped in supergateway as an OCI image that speaks MCP streamable-HTTP over HTTP, instead of stdio. Use the upstream hevy-mcp npm package for local/stdio use in Claude Desktop, Cursor, etc.

A Model Context Protocol (MCP) server for the Hevy fitness tracking app, packaged as a supergateway-wrapped OCI image for hosting behind an MCP gateway. Exposes MCP streamable-HTTP on /mcp and health on /healthz; reads HEVY_API_KEY from the container environment.


📋 Table of Contents


🚀 Features

  • Workout Management: Fetch, create, and update workouts.
  • Routine Management: Access and manage workout routines.
  • Exercise Templates: Browse available exercise templates with in-memory caching.
  • Folder Organization: Manage routine folders.
  • Webhook Subscriptions: Create, view, and delete webhook subscriptions for workout events.

🏁 Quick Start

Pick the workflow that fits your setup:

ScenarioCommandRequirements
One-off stdio runHEVY_API_KEY=sk_live... npx -y hevy-mcpNode.js ≥ 24, Hevy API key
Local developmentnpm install && npm run build && npm start.env with HEVY_API_KEY

🛠️ Prerequisites

  • Node.js: v24 or higher (strongly recommended to use the exact version pinned in .nvmrc).
  • npm: v10 or higher.
  • Hevy API key: Required for all operations (available with Hevy PRO).

📦 Installation

Run via npx (Recommended)

You can launch the server directly without cloning:

bash
HEVY_API_KEY=your_hevy_api_key_here npx -y hevy-mcp

Manual Installation

bash
# Clone the repositorygit clone https://github.com/chrisdoc/hevy-mcp.gitcd hevy-mcp
# Install dependenciesnpm install
# Create .env and add your keyscp .env.sample .env# Edit .env and add your HEVY_API_KEY

🔗 Integration

Claude Desktop Configuration

To use this server with Claude Desktop, add the following to your claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{	"mcpServers": {		"hevy-mcp": {			"command": "npx",			"args": ["-y", "hevy-mcp"],			"env": {				"HEVY_API_KEY": "sk_live_your_key_here"			}		}	}}

Cursor Configuration

Add this server under "mcpServers" in ~/.cursor/mcp.json:

json
{	"mcpServers": {		"hevy-mcp": {			"command": "npx",			"args": ["-y", "hevy-mcp"],			"env": {				"HEVY_API_KEY": "your-api-key-here"			}		}	}}

✨ Why hevy-mcp?

  • 🚀 High Performance: Built with the Oxc toolchain (oxlint/oxfmt) for near-instant linting and formatting.
  • 🛡️ Type Safety: Fully type-safe implementation using Zod and Kubb-generated API clients.
  • 📉 Observability: Built-in Sentry monitoring for error tracking and performance profiling.
  • ⚡ Optimized: Includes in-memory caching for exercise templates to reduce API latency.

⚙️ Configuration

Supply your Hevy API key via:

  1. Environment Variable: HEVY_API_KEY (in .env or system environment).
  2. CLI Argument: --hevy-api-key=your_key (after -- in npm scripts).
env
# Example .envHEVY_API_KEY=your_hevy_api_key_here

📡 Sentry Monitoring

hevy-mcp includes Sentry monitoring to observe errors and usage in production. It initializes @sentry/node with tracing enabled and PII collection disabled by default.


🐳 Running behind an MCP gateway (supergateway contract)

The MCP server itself speaks stdio only. For multi-tenant gateway deployments (e.g. mcp-gateway-poc), this repo ships a Dockerfile that wraps the stdio binary with supergateway so a single container exposes MCP streamable-HTTP.

The image follows the same contract every gateway-hosted MCP uses:

  • MCP streamable-HTTP on 0.0.0.0:$PORT at /mcp
  • Health endpoint at /healthz
  • Stateful sessions (Mcp-Session-Id honored)
  • HEVY_API_KEY is read from the container environment and passed to the spawned stdio child

Images are published to ghcr.io/rwestergren/hevy-mcp from main and from any manually cut GitHub release. Build locally with:

bash
docker build -t hevy-mcp:local .docker run --rm -e HEVY_API_KEY=sk_live_... -p 8080:8080 hevy-mcp:localcurl http://localhost:8080/healthz

End users running hevy-mcp directly should use the stdio/npx flow above; the Docker image is aimed at gateway operators, not individual clients.


🛠️ Available MCP Tools

CategoryTools
Workoutsget-workouts, get-workout, create-workout, update-workout, get-workout-count, get-workout-events
Routinesget-routines, get-routine-by-id, create-routine, update-routine
Templatesget-exercise-templates, get-exercise-template, search-exercise-templates
Foldersget-routine-folders, get-routine-folder, create-routine-folder
Webhooksget-webhook-subscription, create-webhook-subscription, delete-webhook-subscription

👨‍💻 Development & Contributing

Quick Commands

  • Build: npm run build
  • Lint/Format: npm run check (uses oxlint/oxfmt)
  • Unit Tests: npx vitest run --exclude tests/integration/**
  • Full Test Suite: npm test (requires HEVY_API_KEY)

For a detailed senior engineer guide, please refer to AGENTS.md.

API Client Generation

The API client is automatically generated from the OpenAPI spec using Kubb:

bash
npm run build:client

📄 License & Acknowledgements


Contributions are welcome! Please open an issue or PR for any major changes.

来源:README.md,提交 6f0f6b3

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.6最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分