M
Mason-Levyy/myfitnesspal-mcp
Log MyFitnessPal by talking to your AI.
★ 34·更新 2026-11-15
在 GitHub 查看 ↗直链 · 无中转页
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- ★ 数取值
- 34 ★ · Mason-Levyy/myfitnesspal-mcp · 取自 GitHub 搜索 API · (2026-11-19 20:00:48 核对)
- 来源明细
- 收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-18 · 最近见到 2026-11-20 · 共见到 3 次 · 被 3 个来源列出
- 评分构成
- 综合分 300 · 34 ★ · 3 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
Mason-Levyy/myfitnesspal-mcp;我们收录于 2026-11-18;最近见到 2026-11-20。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。README 原文(英文,未翻译) · 在 GitHub 读完整 README →
Log MyFitnessPal by talking to your AI.
以下摘录自该仓库的 README(片段)
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
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/mason-levyy-myfitnesspal-mcp/)
- 来源
- awesome · https://github.com/Mason-Levyy/myfitnesspal-mcp
- 按领域浏览
- MCP 服务
- Traction
- 34 ★
- 收录来源
- 3 个独立来源
- 收录于
- 今天
更多 MCP 服务器
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。