Skip to content
VS Code

MyFitnessPal for VS Code

io.github.mason-levyy/mfp-mcp

MCP server for MyFitnessPal: log, search, and analyze your food diary.

client:VS Code transport:stdio runtime:pypi

Install MyFitnessPal in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mfp-cookie",
      "description": "MFP_COOKIE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mfp-username",
      "description": "MFP_USERNAME",
      "password": true
    }
  ],
  "servers": {
    "mfp-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mfp-mcp"
      ],
      "env": {
        "MFP_COOKIE": "${input:mfp-cookie}",
        "MFP_USERNAME": "${input:mfp-username}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

MyFitnessPal in other clients