Dev adds remote MCP to workout app: read-only tools, app-side approval for any changes
Damian-Gymfile · reddit · 2026-12-03
The developer of Gymfile, an iOS workout tracker, details how he wired a remote MCP server (mcp.gymfile.app) so users can ask Claude or ChatGPT "which of my lifts are stalling?" against real training logs. Design choices worth stealing for mobile-app MCP:
- OAuth without accounts: data lives on-device/iCloud; OAuth 2.1 with dynamic client registration + PKCE, where "sign-in" is a tap in the app or QR code scan.
- Data: after each workout the app uploads a compressed SQLite copy (VACUUM INTO); the server opens it read-only, and turning access off deletes the copy and tokens.
- Read-only by default: tools like personalrecords, weeklysets, musclerecovery never write; the sole exception, proposechanges, stores a pending routine proposal with a push notification for per-day Accept/Decline in the app.
- Answer quality: server instructions explain that machine/grip variations are different weight scales, and progresscheck classifies lifts as improving/stalled/declining server-side so the model doesn't eyeball long histories.
Stack: Kotlin/JVM reusing the KMP core, stateless Streamable HTTP, Cloud Run, Firestore for tokens/proposals. Listed in Claude's connector directory; addable as a custom MCP in ChatGPT.
More from coding & agent
- A Year-Old Bet on SQL as Context Engine Has Paid Off Significantly — teodorio · 2026-12-03
- Automated purchasing with n8n and local Qwen: which supplier quote format works best in practice? — Syosse-CH · 2026-12-03
- Two-hour workshop teaches live prompt-injection attacks and defenses for AI agents — Al_Grigor · 2026-12-03
- OpenClaw adds PostgreSQL storage backend for enterprise Gateway deployments — vincent_koc · 2026-12-03
- Telling Claude "I'm going to bed" stops it from blocking with questions — paul_cal · 2026-12-03
- Rolling chat summary at the top of the prompt busted prompt caching — here's the simple fix — npmBROKE · 2026-12-03