Categories
self-hosted mcp-server ai-assistant nutrition-tracker calorie-counter health-and-fitness quantified-selfStars
Forks
Watchers
Developer links
NutriTrace
Stop handing your daily food diary, body weight history, and biometric sleep data to ad-funded fitness clouds: NutriTrace brings complete calorie, macro, micronutrient, and wellness tracking to your own server with an offline-capable web PWA and native Android app. Log meals across customizable slots using live Open Food Facts and USDA FoodData Central lookups, barcode scanning, AI nutrition label OCR, or direct recipe imports from Mealie and CookTrace. Calorie and macro targets adjust automatically through three goal engines, including an inspectable Adaptive TDEE algorithm that regresses 35 days of intake against scale weight at 7,700 kcal per kilogram. Connect Fitbit via Google Health, Garmin, Withings, and Android Health Connect to pull steps, heart rate variability, sleep stages, and body composition into unified Sleep, Readiness, and Resilience scores. An integrated Trace AI assistant and Smart Log let you log meals by voice, text, or meal photo, while the opt-in Model Context Protocol server exposes 20 read, write, and management tools to Claude Desktop, Cursor, and Codex. Multi-user households get OpenID Connect SSO and one-step migration from MyFitnessPal, Cronometer, Lose It, and Waistline. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. AGPL-3.0 licensed.
Benefits
- Zero-Telemetry Nutrition and Biometric Ownership
- Store every meal entry, body composition reading, and wearable sleep metric inside a local SQLite database on your own server with zero cloud analytics, ads, or subscription paywalls.
- Inspectable Adaptive TDEE Expenditure Math
- Replace black-box coaching subscriptions with an open 35-day intake-to-weight linear regression engine using 7,700 kcal per kilogram math, a 21-day readiness gate, and an exposed confidence score.
- Air-Gapped and Offline-First Food Logging
- Keep logging meals, fasting timers, and workouts without internet connectivity via the browser PWA or Android app, and query local Open Food Facts Parquet mirrors on air-gapped networks.
- Conversational AI and External MCP Automation
- Log food by voice, photo, or text using the 16-tool in-app Trace AI assistant, or connect Claude Desktop and Cursor via the 20-tool Streamable HTTP Model Context Protocol endpoint.
Features
- Multi-Source Food Catalog
- Search personal foods alongside Open Food Facts cloud or local DuckDB Parquet snapshots, USDA FoodData Central APIs, Mealie recipes, ML Kit barcode scans, and AI label OCR.
- Four Wearable Wellness Integrations
- Synchronize steps, workouts, weight, sleep stages, and heart rate variability from Fitbit via Google Health, Garmin, Withings, and Android Health Connect to compute Readiness and Resilience scores.
- Three Dynamic Goal Modes
- Choose Fixed Mifflin-St Jeor targets, Dynamic daily adjustments driven by yesterday's wearable energy burn, or Adaptive TDEE targets calculated from 35-day caloric intake and weight trends.
- Trace AI and Smart Log
- Use Claude, OpenAI, Gemini, or local Ollama endpoints to parse natural-language voice and text logs, analyze meal photos via propose-and-confirm workflows, and query diary history across 16 tools.
- Scoped MCP Server Endpoint
- Expose 13 read tools, 4 additive logging tools, and 3 confirmation-gated destructive tools over `/api/mcp` using Streamable HTTP transport and per-user bearer tokens.
- OIDC SSO and Tracker Migrations
- Authenticate households via OpenID Connect 1.0 with PKCE for Authentik, Keycloak, or Authelia, and import historical logs from MyFitnessPal, Cronometer, Lose It, and Waistline.