Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Save workouts, read training history and progress, search exercises, and log food in JustGains.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
https://justgains.com/connect/mcp在终端中运行这条命令
claude mcp add --transport http justgains https://justgains.com/connect/mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"justgains": {
"url": "https://justgains.com/connect/mcp"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"justgains": {
"type": "http",
"url": "https://justgains.com/connect/mcp"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
https://justgains.com/connect/mcp菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过域名 justgains.com 验证(注册中心会核实域名所有权)
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
尚未检查;我们会轮流检查各个端点
尚未检查;我们会轮流检查各个端点
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。
GitHub 仓库最后更新于–,最新版本(1.0.0)于25天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
| Endpoint | Transport | Auth |
|---|---|---|
https://justgains.com/connect/mcp | Streamable HTTP | OAuth 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" } } }
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.
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"] } } }
| Variable | Purpose |
|---|---|
JUSTGAINS_ACCESS_TOKEN | Use this access token instead of the stored sign-in. |
JUSTGAINS_MEASUREMENT_SYSTEM | imperial or metric for summaries and cards. Unset uses imperial. |
JUSTGAINS_CREDENTIALS | Where login stores credentials. |
The Dockerfile builds and runs the same stdio server.
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.
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.
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.