egym-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@egym-mcp show my recent workouts and current strength values"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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_plananddelete_planchange plans you see in the app, and a deleted plan cannot be restored. Only plans of typeUSER_TRAINING_PLANcan 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
.envfile, 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/.envThen 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 |
| required | Your EGYM Fitness login |
|
| Language of exercise names and API answers |
| found from the email address | Your gym's Netpulse address, if finding it fails |
|
| Folder for |
|
| Training notes |
|
| Cached exercise catalogue, fetched on first use and after 90 days |
|
| Markdown files returned by |
Tools
Tool | Purpose |
| Completed workouts with sets, weights and reps |
| EGYM maximum strength values and their history |
| Bio age and its parts |
| Flexibility angles in degrees per joint and side, with rating and history |
| Squat scans: depth, back and shoulder angle |
| Gym visits, with the minutes from check-in to the end of that day's workout |
| Body metrics and their history |
| Muscle imbalance analysis |
| Activity level, points and goal |
| Exercise catalogue, with |
| Plans in the app and the sets stored in them |
| Writes: creates an own plan or replaces one |
| Writes: deletes an own plan |
| Your coach files, if you have any |
| 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_workoutsonly holds workouts entered in the app. Circuit training on EGYM machines does not appear there; use the strength tools for those.get_check_insshows every gym visit.Check-outs are only recorded if the gym reports them; otherwise
get_check_inshas no time spent in the gym.weight: 0.0on a free-weight set means no weight was entered, not body weight.get_available_planscan show the values last trained;get_planshows those stored in the plan.
Tests
.venv/bin/pip install -e ".[test]"
.venv/bin/pytestThe tests make no network calls.
License
GPL-3.0, the license of python-egym, which this server imports.
Available Tools
18 toolsadd_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
Scored across 18 tools
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).
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.
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.
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
Related MCP Connectors
Your strength-training data for any AI assistant: workouts, progress, muscle volume, routines.
Access approved FITsociety clients, schedules, bookings and coaching data with AI assistants.
Manage fitness coaching clients, workouts, programs, chats and funnels from your assistant.
Connect your health, fitness, nutrition, sleep, and wearable data to your AI assistant.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to access and analyze your Hevy workout data, including workout history, exercise progress, personal records, and routines.433 npm3MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access Garmin Connect fitness and health data, including activities, heart rate, sleep, and device information.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to design strength training workouts, push them to Garmin Connect and your watch, and read back completed sessions and exercise history.MIT
- FlicenseNot gradedqualityFmaintenanceEnables 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-