fatsecret-mcp

v0.3.0
io.github.jaronskijakub/fatsecret-mcp Checked 5 days ago Published 1 month ago

Unofficial, self-hosted MCP server for logging food to a FatSecret diary through Claude or ChatGPT.

Values you need

VariableWhat it is
FATSECRET_CONSUMER_KEYrequired secret Your FatSecret Platform API consumer key.
FATSECRET_CONSUMER_SECRETrequired secret Your FatSecret Platform API consumer secret.
FATSECRET_MCP_SIGNING_KEYrequired secret A random key of at least 32 characters that signs drafts. Keep it across restarts.
FATSECRET_MCP_USERSrequired secret Everyone the server serves, as one JSON line written by `fatsecret-mcp add-user`.
FATSECRET_MCP_USERoptional With more than one person in FATSECRET_MCP_USERS: the id the server acts as.

PyPI (uvx)

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

Run in a terminal
claude mcp add fatsecret-mcp -e 'FATSECRET_CONSUMER_KEY=<FATSECRET_CONSUMER_KEY>' -e 'FATSECRET_CONSUMER_SECRET=<FATSECRET_CONSUMER_SECRET>' -e 'FATSECRET_MCP_SIGNING_KEY=<FATSECRET_MCP_SIGNING_KEY>' -e 'FATSECRET_MCP_USERS=<FATSECRET_MCP_USERS>' -- uvx fatsecret-mcp==0.3.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "fatsecret-mcp": {
      "args": [
        "fatsecret-mcp==0.3.0"
      ],
      "command": "uvx",
      "env": {
        "FATSECRET_CONSUMER_KEY": "<FATSECRET_CONSUMER_KEY>",
        "FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>",
        "FATSECRET_MCP_SIGNING_KEY": "<FATSECRET_MCP_SIGNING_KEY>",
        "FATSECRET_MCP_USERS": "<FATSECRET_MCP_USERS>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "fatsecret-mcp": {
      "args": [
        "fatsecret-mcp==0.3.0"
      ],
      "command": "uvx",
      "env": {
        "FATSECRET_CONSUMER_KEY": "<FATSECRET_CONSUMER_KEY>",
        "FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>",
        "FATSECRET_MCP_SIGNING_KEY": "<FATSECRET_MCP_SIGNING_KEY>",
        "FATSECRET_MCP_USERS": "<FATSECRET_MCP_USERS>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "FATSECRET_CONSUMER_KEY",
      "id": "fatsecret-consumer-key",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "FATSECRET_CONSUMER_SECRET",
      "id": "fatsecret-consumer-secret",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "FATSECRET_MCP_SIGNING_KEY",
      "id": "fatsecret-mcp-signing-key",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "FATSECRET_MCP_USERS",
      "id": "fatsecret-mcp-users",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "fatsecret-mcp": {
      "args": [
        "fatsecret-mcp==0.3.0"
      ],
      "command": "uvx",
      "env": {
        "FATSECRET_CONSUMER_KEY": "${input:fatsecret-consumer-key}",
        "FATSECRET_CONSUMER_SECRET": "${input:fatsecret-consumer-secret}",
        "FATSECRET_MCP_SIGNING_KEY": "${input:fatsecret-mcp-signing-key}",
        "FATSECRET_MCP_USERS": "${input:fatsecret-mcp-users}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.fatsecret-mcp]
command = "uvx"
args = ["fatsecret-mcp==0.3.0"]
env = { "FATSECRET_CONSUMER_KEY" = "<FATSECRET_CONSUMER_KEY>", "FATSECRET_CONSUMER_SECRET" = "<FATSECRET_CONSUMER_SECRET>", "FATSECRET_MCP_SIGNING_KEY" = "<FATSECRET_MCP_SIGNING_KEY>", "FATSECRET_MCP_USERS" = "<FATSECRET_MCP_USERS>" }

For AI agents

  1. Ask the user for: FATSECRET_CONSUMER_KEY, FATSECRET_CONSUMER_SECRET, FATSECRET_MCP_SIGNING_KEY, FATSECRET_MCP_USERS. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  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