Skip to main content
Glama
MyFitnessGuide MCP Server

MyFitnessGuide MCP Server

by Hritvik

MyFitnessGuide

A household nutrition and training tracker. It shows whether your current choices are moving you in the direction you want, while leaving every decision to you.

It runs as a Cloudflare Worker with D1, reached through an MCP server, with a phone web app. A household is the unit of tenancy: members share meals and a kitchen, train at their own gyms, and each member's health data is visible only to its owner.

Part

Where

Does

Remote MCP

app/worker/src/oauth-entry.ts

Member access from ChatGPT and other OAuth-capable MCP clients

Privileged MCP adapter

app/mcp/

Local administration and unattended jobs (README)

Coaching skills

myfitnessguide/skills/

Optional Claude Code guidance for privileged workflows

Worker API and D1

app/worker/

Every rule, check and computation, behind Cloudflare Access (ACCESS.md)

Domain rules

app/domain/

Pure TypeScript rules: loads, progression, nutrition, body

Importer

app/importer/

A one-time Sheets → D1 import, with rulings and a parity report

Web app

app/web/

The phone PWA (README)

Legacy skills

app/skills/

The Sheets-era skill package, kept while the archives are frozen

Run it locally

npm install
npx playwright install chromium      # once per machine, for the browser suite

npm test                             # every workspace's unit tests, then the browser suite's fast subset
npm run test:e2e -w @myfitnessguide/web   # the full browser suite (about 30 minutes)

The Worker tests run against a local D1. npm test copies the example configs (app/worker/wrangler.example.jsonc, app/worker/wrangler.oauth.example.jsonc) into place when the real ones are missing, so a fresh clone needs no Cloudflare account. The local browser suite seeds a sample household on a fixed clock.

Each browser-suite run leaves its summary (verdict, counts, timings, layout findings) in $TMPDIR/myfitnessguide-e2e-last/<mode>.json; see app/web/README.md.

The layout gate (npm run test:layout -w @myfitnessguide/web, about five minutes) checks every screen at eight widths in light and dark. It is a manual step here; there are no repository hooks.

Related MCP server: set-and-signal

Deploying your own

Deployment identifiers live in local-only files that are gitignored: app/worker/wrangler.jsonc and app/worker/wrangler.oauth.jsonc. Copy the .example.jsonc templates and fill in your account, D1 database, Access application and service tokens. app/worker/ACCESS.md is the runbook: D1 creation, Access policies, service tokens, and the deploy gate.

Connect a member

A deployed instance exposes its OAuth MCP endpoint at the Worker's origin plus /mcp:

https://<your-worker>.workers.dev/mcp

The browser sign-in identifies the member and the server exposes the tools that member may use. No repository checkout, Node installation, service token, or local MCP process is needed.

The privileged adapter is separate: it talks to the Worker with a Cloudflare Access service token from ~/.config/myfitnessguide/access-service-token.json and is documented in app/mcp/README.md.

Docs

A note on names

The project is MyFitnessGuide / myfitnessguide. A few deployed resource names still say gym-tracker (the D1 database, the OAuth Worker, one service token, and the local backup job). They are kept because renaming live Cloudflare resources would break existing clients for no user-visible gain. New code uses myfitnessguide.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients like Codex and Claude Code to securely read and manage a personal Cronometer account, including food logs, nutrient summaries with missing-data awareness, food search, biometrics, and export analysis.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to connect to a privacy-first, self-hostable workout planning and training log, allowing coaching agents to preview and apply program changes while accessing training data through OAuth-protected endpoints.
      AGPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables existing apps to expose their users and data to external AI agents via MCP with OAuth 2.1 authentication and scoped tools.
      29 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables ChatGPT and other MCP clients to securely read Health Connect-derived health and training history, retrieve daily readiness and workout briefs, save schema-validated coach reports, and trigger email delivery through OAuth-protected tools.
      1
      MIT