git404hub

what is myfitnesspal-mcp fr?

mason-levyy/myfitnesspal-mcp — explained in plain English

Analysis updated 2026-05-18

3PythonAudience · generalComplexity · 3/5LicenseSetup · moderate

tl;dr

Lets Claude or other AI assistants log meals, search foods, and track nutrition trends in your real MyFitnessPal account.

vibe map

mindmap
  root((myfitnesspal-mcp))
    What it does
      Logs meals via chat
      Searches food database
      Tracks nutrition trends
    Tech stack
      Python
      MCP server
      SQLite cache
    Use cases
      Log meals by talking
      Search foods with macros
      Export nutrition history
    Audience
      General users
      Claude users
    Setup
      Copy session cookie
      Optional auto refresh

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Log meals to your MyFitnessPal diary by telling an AI assistant what you ate.

VIBE 2

Search the food database for macros before logging the exact item.

VIBE 3

Track weight, calories, or protein trends over a date range from a chat conversation.

VIBE 4

Export your full nutrition history for analysis.

what's the stack?

PythonMCPSQLite

how it stacks up fr

mason-levyy/myfitnesspal-mcp0marildo/imago0xdfi/glm-5.2-1m-4x-dgx-spark
Stars333
LanguagePythonPythonPython
Setup difficultymoderateeasyhard
Complexity3/52/55/5
Audiencegeneralgeneralresearcher

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires copying a session cookie from your browser after logging into MyFitnessPal manually.

Use, modify, and share freely for any purpose, including commercial use, as long as you keep the copyright notice.

in plain english

This project connects the food tracking app MyFitnessPal to Claude or any other AI assistant that supports the Model Context Protocol, so you can log meals, look up foods, and check your nutrition trends just by talking to the assistant instead of opening the app. The README explains this is unofficial, since MyFitnessPal has no public way for outside apps to connect. Instead, it works by mimicking what the MyFitnessPal website itself does in a browser. MyFitnessPal recently added extra security that broke the simple username and password logins other tools used to rely on, so this project instead asks you to copy a login cookie out of your browser after logging in normally. That cookie is used to authenticate, disguised so it looks like it is coming from a real Chrome browser rather than a script. There is also an optional feature that automatically refreshes that login using a hidden browser window when the session expires, so you do not have to repeat the copy and paste process every month. Once set up, the assistant gains a set of tools: it can read a full day's food log, search the food database for matches with calorie and nutrient details, add a specific food to your diary, delete or change an entry, log your weight, read and write the notes section of your diary, save a personal note about how you feel that stays only on your own computer, and pull trends like weight or protein intake over a date range, or export everything at once. To log something accurately, you first search for the food, then tell the assistant to log the exact match rather than trusting a guess. Reading water intake works, but MyFitnessPal does not currently offer a way to write it back through this method. The tool keeps a local database that fills in missing days automatically the first time you use it. It can also run as a small local web server instead of the default mode, though the README is clear that mode has no built-in login protection and should never be exposed directly to the internet without something else guarding it. Setup requires a tool called uv to install and run it. The project is released under the MIT license.

prompts (copy fr)

prompt 1
Set up myfitnesspal-mcp with Claude Code and connect it to my MyFitnessPal account.
prompt 2
Log a banana as a snack in my MyFitnessPal diary.
prompt 3
What did I eat yesterday and how does it compare to my weekly average?
prompt 4
Chart my weight trend for this month using MyFitnessPal data.

Frequently asked questions

what is myfitnesspal-mcp fr?

Lets Claude or other AI assistants log meals, search foods, and track nutrition trends in your real MyFitnessPal account.

What language is myfitnesspal-mcp written in?

Mainly Python. The stack also includes Python, MCP, SQLite.

What license does myfitnesspal-mcp use?

Use, modify, and share freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is myfitnesspal-mcp to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is myfitnesspal-mcp for?

Mainly general.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.