MyFitnessPal logo

MyFitnessPal

Log, edit, analyze, and export MyFitnessPal diary data through MCP tools.

Install MyFitnessPal

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "myfitnesspal": {
      "command": "uvx",
      "args": [
        "mfp-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

MyFitnessPal MCP server connects an AI client to a real MyFitnessPal diary for food, water, weight, exercise, notes, and nutrition analysis. It authenticates with a MyFitnessPal browser session cookie and communicates through stdio or streamable HTTP. Food workflows support database search, macro-aware drafts, remembered choices, exact logging, deletion, and replacement. Reach for MyFitnessPal when an agent needs to manage diary data or analyze nutrition history rather than only read it.

Use cases

  • Log meals from natural-language descriptions
  • Compare nutrition metrics across a date range
  • Correct diary entries and water totals
  • Export food and nutrition history for analysis

Key features

  • Searches the MyFitnessPal food database
  • Drafts food choices against macro and calorie targets
  • Logs, replaces, and deletes diary foods
  • Tracks weight, water, exercise, and notes
  • Builds nutrition trends and bulk exports
  • Refreshes browser-based sessions optionally

Tools18

What MyFitnessPal lets your agent do. Expand a tool for its parameters.

Verified live~3.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

25/29 checks healthy over the last 112d

What it can do

From the 18 tools this server returned when we ran it; 18 declare their own safety hints.

Can delete or modify data · 8Makes network requests · 15Read-only tools · 10
Network at startup2 connections
Files written at startup13

Observed 2026-11-22 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · mfp-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars37Stargazers on the source repository.
Last commit15d agoMost recent push to the default branch.
Tools exposed18Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How MyFitnessPal works

What MyFitnessPal does

MyFitnessPal exposes diary management and nutrition-analysis operations through MCP. Agents can read a day's nutrition totals, diary entries, MyFitnessPal note, and local feel note; search the food database; and write food entries to the real diary. The server also handles weight measurements, water totals, exercise entries, daily notes, and trend data.

Food logging can begin with a database search or a draft. Search results include the food name, brand, calories, macros, serving information, and identifiers needed to select an exact item. Drafts present numbered choices with serving sizes and whole-entry nutrition values, optionally ranked against calorie or macro targets.

Analysis tools cover individual metrics such as weight, calories, protein, carbohydrates, and fat over a date range. A bulk export returns per-day nutrition totals, food entries, MyFitnessPal notes, and locally stored feel notes for a larger period.

How it works

The server uses MyFitnessPal's web application endpoints rather than a public API. Authentication is based on the __Secure-next-auth.session-token browser cookie from a signed-in MyFitnessPal account. Saved sessions can be renewed when the server builds a client, and an optional headless-browser setup can refresh a rejected session and retry the request.

The normal food workflow is search or draft, choose an option, then call fitness_log_food. A draft remains available for 24 hours and can be refined with different targets. Confirmed food choices can be pinned locally so later logs for the same query reuse the selected food and serving. Delete and modify operations use name matching, with errors listing candidates or the day's actual entries when a query needs narrowing.

Setup and configuration

Install uv, authenticate once, and add the server as a stdio MCP server:

bash
uvx mfp-mcp auth

The authentication command prompts for the session cookie. It can also read the cookie from the clipboard on macOS. Add uvx mfp-mcp to an MCP client configuration, or use the client-specific commands for Claude Code, Codex CLI, and Gemini CLI. Cursor, VS Code, Windsurf, Cline, and Claude Desktop use the same command-and-arguments pattern.

For automatic session renewal through a persistent headless browser profile, install the optional autorefresh extra and Chromium:

bash
uvx --from 'mfp-mcp[autorefresh]' playwright install chromium
uvx --from 'mfp-mcp[autorefresh]' mfp-mcp auth

The same --from form is used in the client configuration. mfp-mcp auth --check checks and renews the saved session; it exits with status 1 when the session needs attention.

Tools and capabilities

  • Read daily nutrition, diary entries, notes, and local feel ratings.
  • Search foods and create serving-aware drafts with calorie and macro targets.
  • Log, delete, replace, and locally pin food choices.
  • Record weight and water, including replacing a day's water total.
  • Read and remove cardio or strength exercise entries.
  • Read or write the MyFitnessPal daily note and save a local feel note.
  • Generate metric trends or export a date range for analysis.

Limitations and notes

MyFitnessPal MCP is unofficial and depends on reverse-engineered web endpoints. Changes to the MyFitnessPal website can interrupt compatibility. It operates against the authenticated account's real diary, so write operations change account data. Local food pins and feel notes are stored locally, while fitness_log_note writes to the MyFitnessPal diary. The server supports stdio and streamable HTTP MCP clients, and requires an active authenticated session.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MyFitnessPal

MyFitnessPal is an MCP server that connects AI clients to a real MyFitnessPal diary through a browser session cookie. Its main tools search, draft, log, modify, and delete foods; track weight and water; read exercise and notes; and analyze or export nutrition history.

Install `uv`, authenticate with `uvx mfp-mcp auth`, then add `uvx mfp-mcp` as a stdio server in your MCP client. The documented setup includes Claude Desktop, Cursor, VS Code, Windsurf, Cline, Claude Code, Codex CLI, and Gemini CLI.

It authenticates with the `__Secure-next-auth.session-token` cookie from your signed-in MyFitnessPal browser session. Copy the cookie from browser developer tools and paste it into `mfp-mcp auth`; an optional autorefresh setup can renew expired sessions with a headless browser.

Yes, `fitness_modify_food` replaces a matched diary entry, and `fitness_delete_food` removes one. Matching uses the entry name and optional meal and date; ambiguous matches return candidates so the query can be narrowed before changing the diary.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMyFitnessPal AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/myfitnesspal?style=directory)](https://allmcps.com/mcp/myfitnesspal)
HTML Embed
<a href="https://allmcps.com/mcp/myfitnesspal"><img src="https://allmcps.com/api/badge/myfitnesspal?style=directory" alt="MyFitnessPal on AllMCPs" /></a>