Skill
myfitnesspal
Pull every meal you ever logged out of MyFitnessPal — per-food CSV, agent-shaped trends, and a local SQLite store...
When to use myfitnesspal
Choose if
You need to pull a user's entire MyFitnessPal food log out for agent-side analysis — per-food CSV, calorie adherence, macro trends, weight-vs-deficit correlation — and you're willing to manage browser-session credentials because MFP no longer ships a public API. Local SQLite store keeps repeated queries cheap. Alternatives like direct API clients no longer work since MyFitnessPal shut down third-party API access.
Avoid if
You need real-time / sub-second freshness (the throttle is 1 req/sec and bulk backfills are slow), write-back to MFP (read-only by design), or parsed structures for exercise / measurements / goals (those endpoints still emit raw HTML pending the v0.2 release).
Risk Flags
- MEDIUM auth Uses browser session scraping because MyFitnessPal closed their official API. Sessions typically last 7-30 days before re-authentication is required; agents running unattended must handle session-expiry exit codes and refresh credentials out-of-band.
- MEDIUM rate_limit Default throttle is 1 req/sec; raising --concurrency triggers 429 responses and the README recommends waiting 60 seconds before re-running. Heavy backfills must respect the throttle or the run fails partway.
- LOW scope Some food IDs are user-scoped — readable only by accounts that have logged that food. Cross-account enrichment of arbitrary food IDs returns 403. Several exercise/measurements/goals endpoints emit raw HTML rather than parsed structures (deferred to v0.2).
- LOW runtime Default install needs Node.js (npx); Go-source fallback requires Go 1.26.3+. Sandboxed environments without either need the pre-built release binaries.
Cost
Type: Unknown
Install
Default
npx -y @mvanhorn/printing-press install myfitnesspal
Estimated time to first success: ~10 min
Dependencies
Minimum runtime: Node.js 18+ (or Go 1.26.3+ for source install)
Distribution
- Repository
- https://github.com/mvanhorn/printing-press-library