JustGains MCP server

JustGains MCP server

justgains-workouts-nutrition-tracking•byjustgains

Official JustGains MCP server, available as a hosted remote endpoint or a local stdio server, letting AI agents manage workouts, training progress, programs, routes, meals and bodyweight in a JustGains account.

License: Not specified•Runtime: Awaiting documentation review•Category: productivity work

WHAT IT DOES

  • •Generates and shows workouts, and saves or edits workouts with exact exercises, sets, reps and loads for signed-in users.
  • •Reads training history and progress, including completed workouts, exercise history with personal bests, rankings, weekly recaps and streaks.
  • •Searches the exercise library and food catalog and returns exercise codes needed by the write tools.
  • •Logs meals and bodyweight, reads the food diary and weight history, and plans road-and-path-snapped routes.

BEST FOR

  • •Having an AI assistant review recent workouts and suggest a training session.
  • •Logging meals and nutrition into a JustGains food diary through an agent.
  • •Tracking progress on a specific lift over time.

ABOUT JUSTGAINS-WORKOUTS-NUTRITION-TRACKING

JustGains MCP server is cataloged as an MCP server attributed to justgains. Official JustGains MCP server, available as a hosted remote endpoint or a local stdio server, letting AI agents manage workouts, training progress, programs, routes, meals and bodyweight in a JustGains account. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for JustGains MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does using JustGains require an account?

Some tools work without an account, including exercise search, workout generation and previews, but account tools such as saving workouts, reading history and logging food require a signed-in JustGains user.

Does creating a workout plan record a completed workout?

No. A generated workout is a saved plan; you open its JustGains link to review, start the session and log the sets you complete.

How does the hosted server authenticate users?

It uses OAuth 2.0 authorization code flow with PKCE S256 and dynamic client registration, with workouts, progress and profile scopes; no API key is needed.

Upstream README

View this exact version on GitHub

README.md · 61a61d8bfa14 · Fetched 2026-11-13 12:22:15 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

JustGains MCP server

smithery badge

The official JustGains MCP server. It lets an AI agent build and save workouts, read a person's training history and progress, search the JustGains exercise library, plan routes, and log meals and bodyweight in their JustGains account.

Create a JustGains account to connect your own training log and food diary. The connection guide covers setup in supported AI assistants.

There are two ways to run it: connect to the hosted server (nothing to install), or run the stdio server in mcp-server/ on your own machine.

Connect to the hosted server

EndpointTransportAuth
https://justgains.com/connect/mcpStreamable HTTPOAuth 2.0

Add it as a remote MCP server and complete the browser sign-in with the JustGains account you use on your phone. An unauthenticated request returns 401 with a WWW-Authenticate challenge, so MCP clients start the sign-in on their own. Authentication uses the authorization code flow with PKCE S256, dynamic client registration, and the workouts progress profile scopes. No API key is needed and no credentials are stored in this repository.

Claude Code:

claude mcp add --transport http justgains https://justgains.com/connect/mcp

Cursor and other clients that read an mcpServers file:

{
  "mcpServers": {
    "justgains": {
      "url": "https://justgains.com/connect/mcp"
    }
  }
}

LobeHub

Add a remote MCP server in LobeHub using Streamable HTTP and https://justgains.com/connect/mcp, then sign in to JustGains when prompted. The hosted connection needs no local installation or API key. Your client must support MCP OAuth authorization.

Try asking: "Review my workouts this week and suggest a 45-minute session for today." To log a meal, say: "Log two eggs, toast and a latte for breakfast in JustGains."

The LobeHub marketplace manifest is lhm.plugin.json. It declares the hosted endpoint and includes the server's tool schemas, prompts and resources.

Grok Bot and Cursor plugin

This repository is also the JustGains plugin for Grok Bot and Cursor (.cursor-plugin/plugin.json, mcp.json, .mcp.json), which connects to https://justgains.com/grok/mcp, the same server and tools. In Grok Bot, open Marketplace, find JustGains when its listing is available, and choose Add, then complete the JustGains authorization in your browser. Mention JustGains with @ in a conversation to use it. Marketplace listing requires review; publishing this repository does not mean the listing has been approved. Where custom MCP servers are allowed, add a Remote HTTPS server with either URL. Team policies may restrict custom servers.

Run it locally (stdio)

mcp-server/ is a stdio MCP server written in TypeScript on the official MCP SDK. It serves the live JustGains tool catalog, so its schemas always match the hosted server, and executes each call through the JustGains tool API as the signed-in user. It needs Bun.

git clone https://github.com/JustGains/justgains-connector.git
cd justgains-connector/mcp-server
bun install
bun run login   # opens the JustGains sign-in in your browser

login runs the same OAuth flow as the hosted server with a loopback redirect and stores the rotating refresh token in ~/.justgains/mcp-credentials.json. Without signing in, the public tools (exercise search, workout generation and previews) still work. Then point your client at the server:

{
  "mcpServers": {
    "justgains": {
      "command": "bun",
      "args": ["run", "/path/to/justgains-connector/mcp-server/src/index.ts"]
    }
  }
}
VariablePurpose
JUSTGAINS_ACCESS_TOKENUse this access token instead of the stored sign-in.
JUSTGAINS_MEASUREMENT_SYSTEMimperial or metric for summaries and cards. Unset uses imperial.
JUSTGAINS_CREDENTIALSWhere login stores credentials.

The Dockerfile builds and runs the same stdio server.

Tools

Tools marked "account" need a signed-in user. Every tool declares its read-only, destructive and open-world hints.

Workouts

  • generate_workout: build a saved workout from a plain-language request ("30-minute dumbbell push day"). Works without an account.
  • show_workout: show a workout's exercises, sets and rest by ID.
  • create_workout, update_workout (account): save or edit a workout with exact exercises, sets, reps, loads and set types.
  • search_exercises: search the exercise library by name, muscle group or equipment, returning the exact exercise codes the write tools need.
  • get_exercise_details (account): instructions, muscles and equipment for one exercise.

Training history and progress (account)

  • get_my_workout_logs, get_workout_history: completed workouts with dates, exercises and top sets.
  • get_my_exercise_history: every recorded set of one lift, plus the personal best.
  • get_my_top_exercises, get_progress, summarize_my_week, analyze_my_consistency: rankings, volume, weekly recap, streaks and training frequency.

Programs and routes (account)

  • search_workout_programs, get_workout_program: browse multi-week programs.
  • create_workout_program, set_my_program_engagement: create a program, or start or leave one.
  • create_route: plan a road-and-path-snapped run, ride, walk or hike route.

Food and bodyweight (account)

  • log_my_food: log a whole meal in one call, with disclosed estimates when portions are missing; also corrects an earlier entry.
  • get_my_food_diary, search_foods, remove_my_food: read the diary and daily macros, search the food catalog, delete entries.
  • log_my_weight, get_my_weight_history: bodyweight entries and trend.
  • get_my_profile: the user's profile, units and preferences.

Read the live catalog with full input schemas at justgains.com/mcp/tools, or the OpenAPI contract.

Try asking

  • "Use JustGains to build a 30-minute dumbbell workout and save it to my account."
  • "Show my completed JustGains workouts from the last seven days."
  • "Check how my bench press changed this month."
  • "Log two eggs, two slices of toast, and a coffee with milk in JustGains for breakfast."

A generated workout is a saved plan. Open its returned JustGains link to review the exercises, start the session, and log the sets you complete. Creating a plan does not record a completed workout. Meal logging uses the connected user's food diary; missing portion details and nutrition estimates are disclosed. The mobile app receives those changes through its usual sync.

Tool responses include text and links, so the server works in hosts without MCP Apps cards. Hosts that support MCP Apps also get interactive workout and food cards. After a write timeout, check the result before retrying. Food logging retries must keep the original requestId to avoid duplicate entries.

Verify

bun run verify (from the repository root) validates the plugin manifest and bundled paths, performs MCP initialization and tool discovery against production, searches the public exercise library, checks OAuth metadata and registration, and verifies that unauthenticated requests cannot read a private profile. It never creates workouts or food entries.

The MIT license in this repository applies to this connector package and the stdio server, not to the hosted JustGains service.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for JustGains MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/justgains-workouts-nutrition-tracking)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related productivity work MCP Servers

Alternative and complementary servers in the same category

View all in productivity work →
Tuqui hosted MCP server for Odoo
tuqui-odoo-mcp-for-claude-chatgpt•tuqui-ai

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

Repository stats unavailable
Productivity & Ops