---
title: "JustGains MCP server: let agents plan workouts and log meals"
description: "Install the JustGains MCP server in an Aldena project so agents build workouts, read training history and log meals as the person who signed in."
url: "https://aldena.ai/mcp-servers/justgains"
---

# Give a coaching agent your JustGains history and let it draft the next workout

JustGains MCP server. Install the JustGains MCP server in an Aldena project so agents build workouts, read training history and log meals as the person who signed in.

- **Sign-in**: Browser sign-in
- **Installs as**: `justgains`
- **Transport**: Streamable HTTP
- **Last verified**: 2026-12-02

JustGains keeps strength workouts, runs and meals in one account: the sessions you lift, the routes you run, the food you log and the bodyweight you track. Its MCP server opens that whole record to an agent, from the exercise library and workout programs to recovery per muscle group and the daily food diary.

A coaching agent in an Aldena project is the natural fit. Ask it for next week's plan and it calls `summarize_my_week` and `get_my_recovery_analytics` to see what you trained and what is lagging, checks `get_my_exercise_history` for the weights you actually moved, and saves Monday's session with `create_workout`, sets and RPE included. When you tell it what you ate, it finds the foods with `search_foods` and logs them with `log_my_food`. Its [memory](https://aldena.ai/features/agent-memory) keeps the goals and injuries you mention, so the next plan respects them.

Sign-in happens when you install the server. Aldena opens the JustGains login in your browser, you approve the workouts, progress and profile scopes, and from then on all 29 tools act as you. The ten tools that change data, including `remove_my_food` and `update_my_profile`, start on the [ask policy](https://aldena.ai/features/human-in-the-loop), so a person approves each one, while the read tools run without waiting.

## With JustGains, your agents can

- Generate a workout from a request, or write one out with exact sets, reps, weight and RPE
- Read workout logs, personal bests, streaks and per-muscle recovery over any window
- Log meals and bodyweight, and check the food diary against daily targets
- Find, start and track multi-week programs, or create one from written-out text
- Plan and save a route for a run, ride, walk or hike

## Try asking

- “Summarize my JustGains week, then draft Thursday's workout around the muscles I trained least and save it.”
- “What's my best bench press set in JustGains, and how has my top weight moved over the last two months?”
- “Log lunch in JustGains: a chicken burrito bowl with rice and black beans, then tell me how much protein I have left today.”
- “Find a beginner strength program in JustGains that fits three days a week and start it for me.”

## JustGains MCP tools

| Tool | What it does | Access |
| --- | --- | --- |
| `search_exercises` | Searches the exercise library by name, muscle group or equipment | Read |
| `show_workout` | Shows a workout's exercises and sets | Read |
| `generate_workout` | Generates and saves a workout from a plain-language request | Write |
| `get_exercise_details` | Instructions, equipment and muscles worked for one exercise | Read |
| `create_workout` | Saves a workout with exact exercises, sets, reps, weight and RPE | Write |
| `update_workout` | Edits a workout's title, description or exercise list | Write |
| `search_workout_programs` | Searches the workout program catalog | Read |
| `get_workout_program` | Reads a program with its weeks and days | Read |
| `get_my_workout_programs` | Lists the user's program enrollments and progress | Read |
| `set_my_program_engagement` | Starts, abandons or completes a program | Write |
| `create_workout_program` | Creates a multi-week program from written-out text | Write |
| `create_route` | Plans and saves a run, ride, walk or hike route | Write |
| `get_progress` | Daily XP, volume and steps over a date range | Read |
| `get_workout_history` | Recent workouts with volume, sets and reps | Read |
| `get_my_workout_logs` | Completed workout logs over a window | Read |
| `get_my_exercise_history` | Every recorded set of one exercise, plus the personal best | Read |
| `get_my_top_exercises` | Ranks exercises by frequency, max weight and volume | Read |
| `get_my_recovery_analytics` | Weekly set targets, completion and last-trained date per muscle | Read |
| `summarize_my_week` | A recap of recent logs, recovery and weight change | Read |
| `analyze_my_consistency` | Streaks, training days and workouts per week | Read |
| `compare_my_weeks` | Compares workout count and weight change with the period before | Read |
| `get_my_weight_history` | Bodyweight entries with current, lowest and highest | Read |
| `log_my_weight` | Records a bodyweight entry in kg or lb | Write |
| `get_my_food_diary` | Food diary, daily totals and targets | Read |
| `search_foods` | Searches the food catalog and recent diary entries | Read |
| `log_my_food` | Logs a meal's foods, or corrects an earlier entry | Write |
| `remove_my_food` | Removes entries from the food diary | Write |
| `get_my_profile` | Reads the profile, units and preferences | Read |
| `update_my_profile` | Changes profile fields such as units, timezone, height or goals | Write |

## Server

- **URL**: `https://justgains.com/connect/mcp`
- **Website**: [justgains.com](https://justgains.com)
- **MCP docs**: [JustGains MCP docs](https://justgains.com/learn/connect-justgains-to-ai-assistants)

## How to connect JustGains

1. **Open Marketplace.** In a project, open Settings → Connectors → MCP servers and press Marketplace.
2. **Install JustGains.** Search for JustGains and press Install. Aldena adds it as `justgains`.
3. **Sign in to JustGains.** Open the sign-in link Aldena shows and approve. The server then acts as you.
4. **Let agents use it.** Agents find its tools with `mcp_search` and call them with `mcp_call`. Each tool gets its own row in the project's permissions.

## Related MCP servers

- [Linear MCP server](https://aldena.ai/mcp-servers/linear): Read and update issues, projects, and cycles.
- [Mercado Pago MCP server](https://aldena.ai/mcp-servers/mercadopago): Manage payments, refunds, and settlement reports.
- [monday.com MCP server](https://aldena.ai/mcp-servers/monday): Read and update boards, items, and updates.
- [Morningstar MCP server](https://aldena.ai/mcp-servers/morningstar): Look up fund, equity, and market research data.
- [All MCP servers](https://aldena.ai/mcp-servers)

## FAQ

### Does the JustGains MCP server cost anything?

No. The connector is free with any JustGains account, and there is no API key to create or paste. Installing it from the Aldena marketplace opens the JustGains sign-in in your browser, and once you approve, the project's agents can use every tool on your behalf.

### Which JustGains tools change or delete data?

Ten tools write. remove_my_food deletes entries from the food diary. update_my_profile, update_workout, log_my_food and set_my_program_engagement overwrite what is already there, and generate_workout, create_workout, create_workout_program, create_route and log_my_weight add new records. No tool deletes a workout. Aldena starts all ten on ask.

### Why does Aldena install JustGains from /connect/mcp and not /mcp?

https://justgains.com/mcp answers without any sign-in, so only its three public tools work there: search_exercises, generate_workout and show_workout. https://justgains.com/connect/mcp asks for sign-in, which lets Aldena open the JustGains login on install and reach all 29 tools as you.

### How does Aldena sign in to JustGains?

With OAuth 2.1 and PKCE using S256. Aldena identifies itself with a Client ID Metadata Document, so there is no client to set up by hand, and JustGains also supports dynamic client registration. JustGains asks for three scopes: workouts, progress and profile. Aldena finds the authorization server through JustGains' well-known protected resource metadata.

### How many tools does the JustGains MCP server have?

29 once you are signed in: 19 that read, such as get_workout_history, summarize_my_week and get_my_food_diary, and 10 that write, such as create_workout, log_my_food and remove_my_food. The table on this page lists every one with its access.
