M
Mason-Levyy/myfitnesspal-mcp
Log MyFitnessPal by talking to your AI.
★ 34·updated 2026-11-15
View on GitHub ↗Direct link · no redirect page
We have neither an install command nor a public remote endpoint from this repository, so we do not print a config. A made-up one is worse than none. How each client wires MCP up →
- Star count
- 34 ★ · Mason-Levyy/myfitnesspal-mcp · read from the GitHub search API · (checked 2026-11-19 20:00:48)
- Source
- collected from the punkpeye/awesome-mcp-servers list · type: MCP server
- Harvest history
- first seen 2026-11-18 · last seen 2026-11-20 · seen 3× · listed by 3 sources
- Score
- score 300 · 34 ★ · 3 sources · mcp
FAQ (answers come from our records)
Who is it for?
We filed it under these tags: MCP servers. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository
Mason-Levyy/myfitnesspal-mcp;first catalogued 2026-11-18;last seen 2026-11-20。There is no official certification or quality rating here — we record sources and dates only.README excerpt (English, untranslated) · Read the full README on GitHub →
Log MyFitnessPal by talking to your AI.
Excerpted from the repository README (abridged)
Quickstart · Tools · Authentication · Changelog
▶ Watch the launch video
MyFitnessPal MCP is a free, open-source MCP server that connects MyFitnessPal
to Claude, Cursor, VS Code, or any MCP client. Log meals by talking, search
the food database with macros, track trends, and export your nutrition history, all against your real MyFitnessPal diary.
Published on PyPI as mfp-mcp and in the
official MCP Registry
as io.github.Mason-Levyy/mfp-mcp.
> Unofficial. MyFitnessPal has no public API; this reverse-engineers the
> web app's own endpoints. It can break whenever MFP changes their site. Use at
> your own risk, with your own account.
## Why this one?
MyFitnessPal moved behind Cloudflare + NextAuth, which broke the
username/password login that most existing integrations rely on. This server:
Authenticates with your browser session cookie over a real Chrome TLS
fingerprint (curl_cffi), which
passes Cloudflare
Auto-refreshes the session (optional): a headless browser profile rotates
the token when it expires, and failed calls retry automatically
Writes, not just reads: log, modify, and delete real diary entries
Search-then-log: get candidates with macros, then log the exact item
## Quickstart
1. Connect your account (one-time; prompts you to paste a cookie — see
Authentication):
bash
uvx mfp-mcp auth
2. Add the server to your client. The install buttons at the top do this in
one click for Cursor and VS Code.
Claude Code
bash
claude mcp add myfitnesspal -- uvx mfp-mcp
Or install it as a plugin:
/plugin install myfitnesspal-mcp --marketplace Mason-Levyy/myfitnesspal-mcp
Claude Desktop (claude_desktop_config.json), Cursor
(~/.cursor/mcp.json), Windsurf (~/.codeium/windsurf/mcp_config.json),
and Cline (cline_mcp_settings.json) all take the same entry:
json
"mcpServers": {
"myfitnesspal": {
"command": "uvx",
"args": ["mfp-mcp"]
VS Code, Codex CLI, Gemini CLI
VS Code (or use the button above):
bash
code --add-mcp '{"name":"myfitnesspal","command":"uvx","args":["mfp-mcp"]}'
Codex CLI:
bash
codex mcp add myfitnesspal -- uvx mfp-mcp
Gemini CLI:
bash
gemini mcp add myfitnesspal uvx mfp-mcp
3. Talk to it: "log a banana as a snack", "what did I eat yesterday?",
"chart my weight this month".
Requires uv. Any MCP client that speaks stdio or
streamable HTTP works, not just Claude.
> Finding this useful? A ⭐ on
> GitHub helps other
> MyFitnessPal users find it.
## Authentication
This server signs in with your browser's MyFitnessPal session cookie:
1. Log in at myfitnesspal.com
2. Open DevTools (F12) → Application (Chrome) or Storage (Firefox) →
Cookies → https://www.myfitnesspal.com
3. Copy the value of __Secure-next-auth.session-token
4. Paste it into the mfp-mcp auth prompt, or on macOS run
mfp-mcp auth --clipboard and copy the cookie: it connects as soon as
the token reaches the clipboard
Sessions last 30 days from their last renewal. The server renews the session
whenever it builds a client and saves the cookies MyFitnessPal re-issues, so
the saved session stays current as long as it's used at least once a month.
mfp-mcp auth --check reports whether the saved session still works and
whether auto-refresh is set up; it renews and saves the session as it checks
▶ Watch the launch video
MyFitnessPal MCP is a free, open-source MCP server that connects MyFitnessPal
to Claude, Cursor, VS Code, or any MCP client. Log meals by talking, search
the food database with macros, track trends, and export your nutrition history, all against your real MyFitnessPal diary.
Published on PyPI as mfp-mcp and in the
official MCP Registry
as io.github.Mason-Levyy/mfp-mcp.
> Unofficial. MyFitnessPal has no public API; this reverse-engineers the
> web app's own endpoints. It can break whenever MFP changes their site. Use at
> your own risk, with your own account.
## Why this one?
MyFitnessPal moved behind Cloudflare + NextAuth, which broke the
username/password login that most existing integrations rely on. This server:
Authenticates with your browser session cookie over a real Chrome TLS
fingerprint (curl_cffi), which
passes Cloudflare
Auto-refreshes the session (optional): a headless browser profile rotates
the token when it expires, and failed calls retry automatically
Writes, not just reads: log, modify, and delete real diary entries
Search-then-log: get candidates with macros, then log the exact item
## Quickstart
1. Connect your account (one-time; prompts you to paste a cookie — see
Authentication):
bash
uvx mfp-mcp auth
2. Add the server to your client. The install buttons at the top do this in
one click for Cursor and VS Code.
Claude Code
bash
claude mcp add myfitnesspal -- uvx mfp-mcp
Or install it as a plugin:
/plugin install myfitnesspal-mcp --marketplace Mason-Levyy/myfitnesspal-mcp
Claude Desktop (claude_desktop_config.json), Cursor
(~/.cursor/mcp.json), Windsurf (~/.codeium/windsurf/mcp_config.json),
and Cline (cline_mcp_settings.json) all take the same entry:
json
"mcpServers": {
"myfitnesspal": {
"command": "uvx",
"args": ["mfp-mcp"]
VS Code, Codex CLI, Gemini CLI
VS Code (or use the button above):
bash
code --add-mcp '{"name":"myfitnesspal","command":"uvx","args":["mfp-mcp"]}'
Codex CLI:
bash
codex mcp add myfitnesspal -- uvx mfp-mcp
Gemini CLI:
bash
gemini mcp add myfitnesspal uvx mfp-mcp
3. Talk to it: "log a banana as a snack", "what did I eat yesterday?",
"chart my weight this month".
Requires uv. Any MCP client that speaks stdio or
streamable HTTP works, not just Claude.
> Finding this useful? A ⭐ on
> GitHub helps other
> MyFitnessPal users find it.
## Authentication
This server signs in with your browser's MyFitnessPal session cookie:
1. Log in at myfitnesspal.com
2. Open DevTools (F12) → Application (Chrome) or Storage (Firefox) →
Cookies → https://www.myfitnesspal.com
3. Copy the value of __Secure-next-auth.session-token
4. Paste it into the mfp-mcp auth prompt, or on macOS run
mfp-mcp auth --clipboard and copy the cookie: it connects as soon as
the token reaches the clipboard
Sessions last 30 days from their last renewal. The server renews the session
whenever it builds a client and saves the cookies MyFitnessPal re-issues, so
the saved session stays current as long as it's used at least once a month.
mfp-mcp auth --check reports whether the saved session still works and
whether auto-refresh is set up; it renews and saves the session as it checks
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/mason-levyy-myfitnesspal-mcp/)
- Source
- awesome · https://github.com/Mason-Levyy/myfitnesspal-mcp
- Browse by field
- MCP servers
- Traction
- 34 ★
- Listed by
- 3 independent sources
- added
- today
More MCP servers
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.