MH

madebydia/hevy-mcp-server

API development

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

3 stars 17 forks 品質 53 トレンド 8

MCP サーバーは、エージェントを Hevy ワークアウト アプリ API に接続します.

概要

公式のHevy APIに接続し、ワークアウトデータをAIアシスタントに公開するモデルコンテキストプロトコル(MCP)サーバー。 デュアルトランスポートモードをサポート: リモートアクセス(例えば、Poke.com)のClaudeデスクトップとSSE用のstdio。 構成の詳細は、下の鉄道の展開セクションを参照してください。 - get-workouts - 日付のフィルタリングで開始されたワークアウトリストを取得する - 取得ワークアウト - 完全な詳細でIDでシングルワークアウトを取得する - 作成ワークアウト - 演習とセットで新しいワークアウトを作成 - 更新ワークアウト - 既存のワークアウトを更新 - 取得ワークアウトカウント - 統計のためのトータルワークアウトカウントを取得する - 取得ワークアウトイベント - ワークアウトの更新/削除イベントを日付から取得 - 取得ルーチン - すべて保存されたルーチン - 取得ルーチン - IDで単一のルーチンを入手 - 作成ルーチン - 新しいワークアウトルーチンテンプレートを作成 - 更新ルーチン - 既存のルーチンを更新 - 削除ルーチン - ルーチンを削除 - get-exercise-templates - 利用可能な演習をブラウズ (標準 + カスタム) - get-exercise-template - ID で単一の演習を取得する - .

概要(AI 翻訳)

公式のHevy APIに接続し、ワークアウトデータをAIアシスタントに公開するモデルコンテキストプロトコル(MCP)サーバー。 デュアルトランスポートモードをサポート: リモートアクセス(例えば、Poke.com)のClaudeデスクトップとSSE用のstdio。

@madebydia によって造られる

鉄道への展開

構成の詳細は、下の鉄道の展開セクションを参照してください。

##特徴

MCP ツール

ワークアウト管理
  • [[get-workouts] - 日付のフィルタリングで開始されたワークアウトリストを取得する
  • [get-workout - 完全な詳細でIDでシングルワークアウトを取得
  • [create-workout - 演習とセットで新しいワークアウトを作成する
  • [update-workout - 既存のワークアウトを更新する
  • [get-workout-count - 統計のための総ワークアウト数を取得する
  • [get-workout-events - ワークアウトの更新/削除イベントを日付から取得する

ルーチン管理

  • [get-routines - 保存されたすべてのルーチンをリスト
  • [get-routine - IDで単一のルーチンを取得
  • [create-routine - 新しいワークアウトルーチンテンプレートを作成する
  • [update-routine - 既存のルーチンを更新する
  • [delete-routine - ルーチンを削除

#####演習データ

  • [get-exercise-templates - 利用可能な演習をブラウズ (標準 + カスタム)
  • [get-exercise-template - IDで単一のエクササイズを取得する

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Hevy MCP Server

A Model Context Protocol (MCP) server that connects to the official Hevy API and exposes workout data to AI assistants. Supports dual transport modes: stdio for Claude Desktop and SSE for remote access (e.g., Poke.com).

Built by @madebydia

Deploy to Railway

See the Railway Deployment section below for configuration details.

Features

MCP Tools

Workout Management

  • get-workouts - Get paginated workout list with date filtering
  • get-workout - Get single workout by ID with full details
  • create-workout - Create new workout with exercises and sets
  • update-workout - Update existing workout
  • get-workout-count - Get total workout count for stats
  • get-workout-events - Get workout update/delete events since date

Routine Management

  • get-routines - List all saved routines
  • get-routine - Get single routine by ID
  • create-routine - Create new workout routine template
  • update-routine - Update existing routine
  • delete-routine - Remove routine

Exercise Data

  • get-exercise-templates - Browse available exercises (standard + custom)
  • get-exercise-template - Get single exercise by ID
  • get-exercise-progress - Track progress for specific exercises over time
  • get-exercise-stats - Get personal records and 1RM estimates

Folder Organization

  • get-routine-folders - List routine folders
  • get-routine-folder - Get folder by ID
  • create-routine-folder - Create new folder
  • update-routine-folder - Update folder name
  • delete-routine-folder - Remove folder

Prerequisites

  1. Hevy PRO Subscription - Required for API access
  2. Hevy API Key - Get it at https://hevy.com/settings?developer
  3. Node.js - Version 18 or higher

Installation

1. Clone and Install Dependencies

git clone https://github.com/madebydia/hevy-mcp-server
cd hevy-mcp-server
npm install

2. Configure Environment

cp .env.example .env

Edit .env and add your Hevy API key:

HEVY_API_KEY=your_hevy_api_key_here
HEVY_API_BASE_URL=https://api.hevyapp.com

# Transport configuration
TRANSPORT=stdio                    # stdio | sse | both
PORT=3004                          # Port for SSE/HTTP mode
HOST=127.0.0.1                     # Host for SSE/HTTP mode

# SSE Configuration (for Poke.com)
SSE_PATH=/mcp                      # SSE endpoint path
HEARTBEAT_INTERVAL=30000           # ms - keep connection alive
AUTH_TOKEN=                        # See Security section below

Security: AUTH_TOKEN Configuration

When using SSE mode with remote access (e.g., via ngrok for Poke.com), you MUST set an AUTH_TOKEN to prevent unauthorized access to your Hevy data.

Generate a secure token using either method:

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →