
JustGains
com.justgains由 justgains.com 发布官方发布者v1.0.0更新于 Oct 24, 2026
Save workouts, read training history and progress, search exercises, and log food in JustGains.
概览
JustGains 官方 MCP 服务器,让助手生成并保存训练计划、查看训练历史与进度、搜索动作,并记录饮食和体重。
- 可以做什么
- 生成、创建、更新和查看训练计划,包含具体动作、组数、次数和负重
- 搜索动作库并查看单个动作的说明、肌肉与器械
- 读取训练历史、单个动作的每组记录与个人最佳、训练量、连续天数与每周总结
- 浏览和创建多周训练计划、加入或退出计划,并规划贴合道路与路径的跑步、骑行、步行或徒步路线
- 记录整餐饮食与体重,查看饮食日记和每日宏量营养、搜索食物、删除记录
- 读取用户资料、单位与偏好设置
- 适用场景
- 适合希望让助手规划并保存训练、回顾训练记录与进步情况,或在 JustGains 账户中维护饮食与体重日记的用户。公开的动作搜索和训练生成无需登录即可使用。
- 运行要求
- 通过 Streamable HTTP 连接远程端点,使用 JustGains 账户在浏览器中完成 OAuth 2.0 登录,无需 API 密钥。可选的本地 stdio 服务器需要 Bun 和一次性登录,可使用 JUSTGAINS_ACCESS_TOKEN、JUSTGAINS_MEASUREMENT_SYSTEM 和 JUSTGAINS_CREDENTIALS 变量。
安装
在 SourceWeft 中
- 打开 控制台中的 JustGains,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/com.justgains%2Fmcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"justgains": {
"type": "http",
"url": "https://justgains.com/connect/mcp"
}
}
}README
JustGains MCP server
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.
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
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:
Cursor and other clients that read an mcpServers file:
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.
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:
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.
Links
- JustGains
- Use JustGains in Claude, ChatGPT and Grok Bot
- Privacy policy and terms
- Support: [email protected]
The MIT license in this repository applies to this connector package and the stdio server, not to the hosted JustGains service.
来源:README.md,提交 c05cc34
工具
0版本历史
1- v1.0.0最新Oct 13, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分