
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 分