TH 

tomtorggler/hevy-mcp-server 是从 https://github.com/tomtorggler/hevy-mcp-server. 导入的 MCP 服务器候选
概览
tomtorggler/hevy-mcp-server 是从 https://github.com/tomtorggler/hevy-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,为AI助手提供对Hevy健身追踪API的访问权限。这让你可以通过AI聊天界面直接记录锻炼、管理训练计划、浏览锻炼和追踪健身进展。
🏋️ 特色
该MCP服务器提供Hevy健身追踪功能的全面访问:
锻炼
get_workouts- 浏览你的锻炼历史(已分页)get_workout- 获取特定锻炼的详细信息create_workout- 记录新的锻炼,包含动作组、组数、重量和重复次数update_workout- 更新现有锻炼get_workouts_count- 获取训练总数get_workout_events- 获取自同步日期以来的锻炼变更事件(更新/删除)
日常
get_routines- 列出你的锻炼计划get_routine- 获取特定例程的详细信息create_routine- 创建新的锻炼计划模板update_routine- 更新现有例程
练习
get_exercise_templates- 浏览可用练习(包括Hevy的游戏库和你自定义的练习)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Hevy MCP Server
A remote Model Context Protocol server for the Hevy fitness tracking API, running on Cloudflare Workers. Connect it to Claude (or any MCP client) to browse and log workouts, manage routines and track progress by chatting.
- Multi-user: sign in with GitHub, add your own Hevy API key, done. One deployment serves many people.
- Standards-based auth: OAuth 2.1 with PKCE, protected resource metadata (RFC 9728), Client ID Metadata Documents and Dynamic Client Registration. Works out of the box as a custom connector in Claude.
- Stateless Streamable HTTP at
/mcp, built on MCP SDK v2 (protocol 2026-07-28, with 2025-era clients served transparently). No sessions, no Durable Objects. - Tools with titles, descriptions and annotations covering the Hevy public API.
🏋️ Tools
| Area | Tools |
|---|---|
| Workouts | get_workouts, get_workout, create_workout, update_workout, get_workouts_count, get_workout_events |
| Routines | get_routines, get_routine, create_routine, update_routine |
| Exercises | get_exercise_templates, search_exercise_templates, get_exercise_template, create_exercise_template, get_exercise_history |
| Folders | get_routine_folders, get_routine_folder, create_routine_folder |
| Body & profile | get_user_info, get_body_measurements, get_body_measurement, log_body_measurement, update_body_measurement |
Read tools are marked readOnlyHint; update_* tools replace the whole record and are marked destructive so clients can ask before running them.
🔌 Using a hosted instance
- Open the server’s home page and click Connect your Hevy account. Sign in with GitHub and paste your API key from Hevy Settings → Developer (requires Hevy Pro).
- Add the server to your client using its
/mcpURL:- Claude (web/desktop): Settings → Connectors → Add custom connector → paste the URL. No client ID or credentials are needed.
- Claude Code:
claude mcp add --transport http hevy https:///mcp, then/mcpto sign in. - Other clients: anything that speaks Streamable HTTP with OAuth. stdio-only clients can bridge with
npx mcp-remote https:///mcp.
- Approve the connection in the browser window your client opens.
🚀 Deploying your own
Prerequisites
- A Cloudflare account and
npx wrangler login - A GitHub OAuth App (Settings → Developer settings → OAuth Apps) with the callback URL
https:///callback
Steps
git clone https://github.com/tomtorggler/hevy-mcp-server.git
cd hevy-mcp-server
npm install
# Create the KV namespace and put its id into wrangler.jsonc (kv_namespaces → OAUTH_KV)
npx wrangler kv namespace create OAUTH_KV
# Secrets
npx wrangler secret put GITHUB_CLIENT_ID
安装
npx wrangler kv namespace create OAUTH_KV