fatsecret-mcp
v0.3.0Unofficial, self-hosted MCP server for logging food to a FatSecret diary through Claude or ChatGPT.
Values you need
| Variable | What it is | |
|---|---|---|
FATSECRET_CONSUMER_KEY | required secret | Your FatSecret Platform API consumer key. |
FATSECRET_CONSUMER_SECRET | required secret | Your FatSecret Platform API consumer secret. |
FATSECRET_MCP_SIGNING_KEY | required secret | A random key of at least 32 characters that signs drafts. Keep it across restarts. |
FATSECRET_MCP_USERS | required secret | Everyone the server serves, as one JSON line written by `fatsecret-mcp add-user`. |
FATSECRET_MCP_USER | optional | 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.0Add 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
- 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.
- 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).
- Restart or reload the client so it starts the server.
- 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