
tomtorggler/hevy-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
tomtorggler/hevy-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/tomtorggler/hevy-mcp-server.
Обзор
tomtorggler/hevy-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/tomtorggler/hevy-mcp-server.
Обзор (машинный перевод)
Удаленный сервер Model Context Protocol для API отслеживания фитнеса Hevy, работающего на Cloudflare Workers. Подключите его к Claude (или любому клиенту MCP) для просмотра и регистрации тренировок, управления рутинами и отслеживания прогресса в чате.
Многопользовательский: зарегистрируйтесь на GitHub, добавьте свой собственный ключ API Hevy. Одно развертывание служит многим людям.
Стандарты на основе auth: OAuth 2.1 с PKCE, защищенные метаданные ресурса (RFC 9728), документы метаданных Client ID и динамическая регистрация клиентов. Работает из коробки как пользовательский разъем в Клоде.
Stateless Streamable HTTP at /mcp, построенный на MCP SDK v2 (протокол 2026-07-28, с клиентами 2025-го года, обслуживаемых прозрачно). Никаких сессий, никаких прочных объектов.
**17 инструментов с названиями, описаниями и аннотациями, охватывающими общедоступный API Hevy.
️ Инструменты
Область, инструменты
[править править код]
[[Т1]], [[Т2]], [[Т3], [[Т4]], [[Т5]], [[Т6]]
get_routines, get_routine, create_routine, update_routine
Упражнения[11],[12],[13],[14]
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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. - 17 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, 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