Skip to main content
Glama

egym-mcp

An unofficial MCP server that gives an AI assistant access to your EGYM Fitness account: workouts, strength values, bio age and body metrics. It can also create, change and delete your own training plans in the app. It is not affiliated with or endorsed by EGYM.

It builds on python-egym, which talks to the member API behind the app. That API is undocumented and can change or stop working at any time. Using it may go against your gym's or EGYM's terms, so use it at your own risk.

What to know first

  • It writes to your real account. save_plan and delete_plan change plans you see in the app, and a deleted plan cannot be restored. Only plans of type USER_TRAINING_PLAN can be changed; gym and trainer plans are refused.

  • Your health data goes to your AI provider. Whatever a tool returns is sent to the model your MCP client uses.

  • It is not medical advice. Training suggestions from an AI assistant do not replace a doctor or physiotherapist, least of all with injuries or health conditions.

  • Your password stays local. It is read from your own .env file, which is kept outside this repository.

Related MCP server: Garmin MCP Server

Setup

Requires Python 3.10 or newer.

git clone https://github.com/FreDJ1996/egym-mcp.git
cd egym-mcp
python3 -m venv .venv
.venv/bin/pip install -e .

Store your login in the data folder, ~/.egym-mcp by default:

mkdir -p ~/.egym-mcp
cp .env.example ~/.egym-mcp/.env
chmod 600 ~/.egym-mcp/.env

Then edit ~/.egym-mcp/.env, and add the server to your MCP client. .mcp.json.example shows the format; replace the path with your own absolute path.

Configuration

Variable

Default

Meaning

EGYM_EMAIL, EGYM_PASSWORD

required

Your EGYM Fitness login

EGYM_LOCALE

en-GB

Language of exercise names and API answers

EGYM_BASE_URL

found from the email address

Your gym's Netpulse address, if finding it fails

EGYM_MCP_DATA_DIR

~/.egym-mcp

Folder for .env, notes, catalogue and coach files

EGYM_MCP_NOTES_FILE

<data>/training_notes.md

Training notes

EGYM_MCP_CATALOG_FILE

<data>/exercise_catalog.json

Cached exercise catalogue, fetched on first use and after 90 days

EGYM_MCP_COACH_DIR

<data>/coach

Markdown files returned by get_coach_context

Tools

Tool

Purpose

get_recent_workouts, get_workouts

Completed workouts with sets, weights and reps

get_strength_status, get_strength_history

EGYM maximum strength values and their history

get_bio_age, get_bio_age_history

Bio age and its parts

get_flexibility

Flexibility angles in degrees per joint and side, with rating and history

get_squat_analysis

Squat scans: depth, back and shoulder angle

get_check_ins

Gym visits, with the minutes from check-in to the end of that day's workout

get_body_composition, get_body_metric_history

Body metrics and their history

get_muscle_imbalances

Muscle imbalance analysis

get_activity_level

Activity level, points and goal

search_exercises

Exercise catalogue, with activityId and the name in the app

get_available_plans, get_plan

Plans in the app and the sets stored in them

save_plan

Writes: creates an own plan or replaces one

delete_plan

Writes: deletes an own plan

get_coach_context

Your coach files, if you have any

read_training_notes, add_training_note

Local notes for what EGYM does not record

Coaching files

To give the assistant a role and your goals, copy the templates and fill them in:

mkdir -p ~/.egym-mcp/coach
cp examples/coach/*.md ~/.egym-mcp/coach/

Every .md file in that folder is returned by get_coach_context, so this works with any MCP client. Keep them out of public repositories if they hold personal data.

With Claude Code you can use them as a skill that activates by itself: put them in .claude/skills/fitness-coach/ in your project and set EGYM_MCP_COACH_DIR to that folder.

Known gaps

  • get_workouts only holds workouts entered in the app. Circuit training on EGYM machines does not appear there; use the strength tools for those. get_check_ins shows every gym visit.

  • Check-outs are only recorded if the gym reports them; otherwise get_check_ins has no time spent in the gym.

  • weight: 0.0 on a free-weight set means no weight was entered, not body weight.

  • get_available_plans can show the values last trained; get_plan shows those stored in the plan.

Tests

.venv/bin/pip install -e ".[test]"
.venv/bin/pytest

The tests make no network calls.

License

GPL-3.0, the license of python-egym, which this server imports.

Available Tools

18 tools
add_training_noteB

Adds an entry to the training notes (date: YYYY-MM-DD, today by default).

Inputs: text (required), date. Returns: result

delete_planA

Permanently deletes an own training plan (USER_TRAINING_PLAN only). Only after the user has confirmed.

Inputs: plan_id (required). Returns: result

get_activity_levelC

Activity level, points and weekly goal.

Inputs: no named parameters. Returns: result

get_available_plansA

Training plans in the app with planId: the user's own (USER_TRAINING_PLAN), from trainers and gym templates. own_only=True returns only the user's own plans. Sets here can show the values last trained; get_plan returns the stored ones.

Inputs: own_only. Returns: result

get_bio_ageA

Current bio age with its parts (muscle, metabolism, cardio, flexibility), including flexibility measurements.

Inputs: no named parameters. Returns: result

get_bio_age_historyA

Bio age per month or year (period: 'month' | 'year'; shift: periods back, 0 = current).

Inputs: shift, period. Returns: result

get_body_compositionA

Latest body metrics (weight, body fat, muscle mass, BIA values and so on).

Inputs: no named parameters. Returns: result

get_body_metric_historyB

History of single body metrics, e.g. types=['WEIGHT_KG','BODY_FAT_PERCENTS'] (names from get_body_composition).

Inputs: types (required), days. Returns: result

get_coach_contextA

Coaching context from the user's Markdown files in the coach folder: role, planning rules, athlete profile. Call this first before planning or reviewing training, unless these files are already loaded.

Inputs: no named parameters. Returns: result

get_muscle_imbalancesB

EGYM's analysis of muscle imbalances (agonist/antagonist, left/right).

Inputs: no named parameters. Returns: result

get_planB

Details of a plan (any type) with all exercises and sets.

Inputs: plan_id (required). Returns: result

get_recent_workoutsA

Completed workouts of the last days days (including today) with exercises, sets, weights and reps.

Inputs: days. Returns: result

get_strength_historyB

EGYM strength measurements over days days, optionally for one activityId.

Inputs: days, activity_id. Returns: result

get_strength_statusB

Current EGYM maximum strength per machine/exercise (activityId for get_strength_history).

Inputs: no named parameters. Returns: result

get_workoutsA

Completed workouts between start_date and end_date (ISO format YYYY-MM-DD, both included).

Inputs: end_date (required), start_date (required). Returns: result

read_training_notesC

Training notes: runs, how the user felt, mobility impressions, free-weight loads that are not in EGYM.

Inputs: no named parameters. Returns: result

save_planA

Creates an own training plan in the EGYM app or replaces an existing one (plan_id).

exercises: list in training order, each {"activityId": , "sets": [...]}. Every set is its own entry, with the fields: numberOfReps (int), weight (kg, per dumbbell for two dumbbells; required for strength exercises unless body-weight based), recoveryTime (rest in s), duration (s, for timed sets such as cardio or stretching), optionally distance (m), speed, incline, heartRate, sideMode ('BOTH'|'LEFT'|'RIGHT'), trainingMethod (EGYM machines), setType (added if missing). Example: {"activityId": 95, "sets": [{"numberOfReps": 8, "weight": 22, "recoveryTime": 120}]} Replacing overwrites the whole plan; only replace plans the user has agreed to change.

Inputs: name (required), exercises (required), plan_id. Returns: result

search_exercisesA

Searches EGYM's exercise catalogue (~1200 exercises) for the exact name an exercise has in the app.

All words in query must appear in the local or English name (e.g. 'dumbbell bench', 'pullover', 'face pull'). Optionally filter by category, e.g. FREE_WEIGHTS, BODY_WEIGHT_BASED, WEIGHT_MACHINE_BASED, EGYM_MACHINE, MOBILITY, STRETCHING, ROWING. appName is the name in the app. The catalogue is cached locally; refresh=True fetches it again from EGYM (only for missing exercises).

Inputs: query (required), limit, refresh, category. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 18 tools

    Disambiguation4/5

    Most tools target clearly distinct resources (workouts, strength, bio age, body composition, plans, notes). A few near-pairs exist — get_recent_workouts vs get_workouts, get_available_plans vs get_plan, get_body_composition vs get_body_metric_history — but descriptions explicitly delineate the boundaries (relative days vs date range, last-trained vs stored values, summary vs single-metric history).

    Naming Consistency5/5

    Every tool follows a consistent verb_noun snake_case pattern (get_*, search_exercises, save_plan, delete_plan, read_training_notes, add_training_note). No mixed conventions or camelCase deviations in tool names.

    Tool Count4/5

    18 tools is slightly above the ideal range but each covers a distinct slice of the fitness domain (workouts, strength, body metrics, plans, notes, coaching). Nothing appears redundant or padded, so the count is reasonable though on the heavier side.

    Completeness4/5

    Strong read coverage across all major domains plus plan lifecycle (list/get/save/delete) and notes (read/add). Minor gaps: training notes can only be added, not edited or deleted, and there is no workout logging or exercise-detail lookup beyond the catalogue search, but agents can work around these.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      F
      maintenance
      Enables AI assistants to access and manage a user's Fitia account, including profile, Premium, food search, diary, meal suggestions, and preview-first writes that require confirmation before mutating data.
      2
      -