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 分