MyFitnessPal MCP

v0.5.0
io.github.Mason-Levyy/mfp-mcp Checked 16 hours ago Published 28 days ago

Log MyFitnessPal by talking to your AI: search foods with macros, log meals, weight, water and more.

Values you need

VariableWhat it is
MFP_COOKIEoptional secret MyFitnessPal session cookie (optional; 'mfp-mcp auth' is the guided alternative)
MFP_USERNAMEoptional MyFitnessPal username; only needed if MFP's profile lookup fails for your account

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add mfp-mcp -- uvx mfp-mcp==0.5.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mfp-mcp": {
      "args": [
        "mfp-mcp==0.5.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mfp-mcp": {
      "args": [
        "mfp-mcp==0.5.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mfp-mcp": {
      "args": [
        "mfp-mcp==0.5.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mfp-mcp]
command = "uvx"
args = ["mfp-mcp==0.5.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: fitness_get_day, fitness_search_food, fitness_draft_food, fitness_log_food, fitness_list_food_pins, fitness_clear_food_pin, fitness_delete_food, fitness_modify_food, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json