
Hevy MCP (Remote)
io.github.rwestergren由 GitHub 帳號 rwestergren 發布v0.1.6更新於 Oct 24, 2026
Hosted/gateway-ready Hevy fitness MCP: workouts, routines, templates.
概覽
針對 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 或以上版本。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Hevy MCP (Remote),將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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 upstreamhevy-mcpnpm 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
- Quick Start
- Prerequisites
- Installation
- Why hevy-mcp?
- Configuration
- Available MCP Tools
- Development & Contributing
🚀 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:
🛠️ 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:
Manual Installation
🔗 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
Cursor Configuration
Add this server under "mcpServers" in ~/.cursor/mcp.json:
✨ 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:
- Environment Variable:
HEVY_API_KEY(in.envor system environment). - CLI Argument:
--hevy-api-key=your_key(after--in npm scripts).
📡 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:$PORTat/mcp - Health endpoint at
/healthz - Stateful sessions (
Mcp-Session-Idhonored) HEVY_API_KEYis 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:
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
👨💻 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(requiresHEVY_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:
📄 License & Acknowledgements
- License: MIT
- Credits: Model Context Protocol, Hevy Fitness.
Contributions are welcome! Please open an issue or PR for any major changes.
來源:README.md,提交 6f0f6b3
工具
0版本歷史
1- v0.1.6最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分