Fatsecret MCP
Unofficial FatSecret server for food search, diary, recipes and weight logging
Fatsecret MCP is an open-source MCP server for health and science. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, macOS
- Runs
- Locally
- What it can do
- Can delete data (1 tool)
- Access
- Needs a secret key or token
- Version
- 0.0.10
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add fatsecret-mcp --env FATSECRET_CLIENT_ID='<FATSECRET_CLIENT_ID>' --env FATSECRET_CLIENT_SECRET='<FATSECRET_CLIENT_SECRET>' --env FATSECRET_CONSUMER_SECRET='<FATSECRET_CONSUMER_SECRET>' -- npx -y fatsecret-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"fatsecret-mcp": {
"command": "npx",
"args": [
"-y",
"fatsecret-mcp"
],
"env": {
"FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>",
"FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>",
"FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"fatsecret-mcp": {
"command": "npx",
"args": [
"-y",
"fatsecret-mcp"
],
"env": {
"FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>",
"FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>",
"FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"fatsecret-mcp": {
"command": "npx",
"args": [
"-y",
"fatsecret-mcp"
],
"env": {
"FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>",
"FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>",
"FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"fatsecret-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"fatsecret-mcp"
],
"env": {
"FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>",
"FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>",
"FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add fatsecret-mcp --env FATSECRET_CLIENT_ID='<FATSECRET_CLIENT_ID>' --env FATSECRET_CLIENT_SECRET='<FATSECRET_CLIENT_SECRET>' --env FATSECRET_CONSUMER_SECRET='<FATSECRET_CONSUMER_SECRET>' -- npx -y fatsecret-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.fatsecret-mcp]
command = "npx"
args = ["-y", "fatsecret-mcp"]
env = { FATSECRET_CLIENT_ID = "<FATSECRET_CLIENT_ID>", FATSECRET_CLIENT_SECRET = "<FATSECRET_CLIENT_SECRET>", FATSECRET_CONSUMER_SECRET = "<FATSECRET_CONSUMER_SECRET>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"fatsecret-mcp": {
"command": "npx",
"args": [
"-y",
"fatsecret-mcp"
],
"env": {
"FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>",
"FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>",
"FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "fatsecret-mcp": { "command": "npx", "args": [ "-y", "fatsecret-mcp" ], "env": { "FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>", "FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>", "FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>" } } } }Or run: gemini mcp add -s user -e FATSECRET_CLIENT_ID='<FATSECRET_CLIENT_ID>' -e FATSECRET_CLIENT_SECRET='<FATSECRET_CLIENT_SECRET>' -e FATSECRET_CONSUMER_SECRET='<FATSECRET_CONSUMER_SECRET>' fatsecret-mcp npx -- -y fatsecret-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "fatsecret-mcp": { "command": "npx", "args": [ "-y", "fatsecret-mcp" ], "env": { "FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>", "FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>", "FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "fatsecret-mcp": { "command": "npx", "args": [ "-y", "fatsecret-mcp" ], "env": { "FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>", "FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>", "FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "fatsecret-mcp": { "command": "npx", "args": [ "-y", "fatsecret-mcp" ], "env": { "FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>", "FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>", "FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "fatsecret-mcp": { "command": "npx", "args": [ "-y", "fatsecret-mcp" ], "env": { "FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>", "FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>", "FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "fatsecret-mcp": { "command": "npx", "args": [ "-y", "fatsecret-mcp" ], "env": { "FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>", "FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>", "FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "fatsecret-mcp": { "command": "npx", "args": [ "-y", "fatsecret-mcp" ], "env": { "FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>", "FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>", "FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "fatsecret-mcp": { "command": "npx", "args": [ "-y", "fatsecret-mcp" ], "env": { "FATSECRET_CLIENT_ID": "<FATSECRET_CLIENT_ID>", "FATSECRET_CLIENT_SECRET": "<FATSECRET_CLIENT_SECRET>", "FATSECRET_CONSUMER_SECRET": "<FATSECRET_CONSUMER_SECRET>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
FATSECRET_CLIENT_IDFatSecret API Client IDRequiredFATSECRET_CLIENT_SECRETFatSecret API Client Secret (OAuth 2.0)RequiredFATSECRET_CONSUMER_SECRETFatSecret API Consumer Secret (OAuth 1.0)Required
About Fatsecret MCP
The server wraps the FatSecret Platform API rather than shipping its own food data, so it needs a free developer account and three credentials: a client ID, a client secret for OAuth 2.0 and a consumer secret for OAuth 1.0. Public lookups such as food search, barcode search and recipes use the OAuth 2.0 side, while personal diary and weight tools need a profile authorization.
On first use the assistant can walk you through setup itself: it checks auth status, stores the keys in a local config file under your home folder, then starts and completes the OAuth flow with a PIN. Keys can also be passed as environment variables. If your FatSecret app has Premier access, the server asks for the premier scope and falls back to basic when it is rejected.
It is an unofficial project, not made by FatSecret. It runs over stdio from npm and is also packaged as a Claude Desktop extension.
Tools this server provides (23)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 23 tools deletes data and 6 change data; 4 names don't say.
From the server's own tool labels and tool names; not verified by us.
- check_auth_statusName suggests: reads
- Check whether credentials and profile auth are configured
- setup_credentials
- Save FatSecret API credentials to persistent config
- start_authName suggests: changes
- Start OAuth 1.0 authorization and return a URL to visit
- complete_auth
- Complete OAuth with the verifier PIN
- search_foodsName suggests: reads
- Search the food database
- get_foodName suggests: reads
- Get detailed nutrition info for a food
- find_food_by_barcodeName suggests: reads
- Find a food by GTIN-13 barcode
- autocomplete_foods
- Get search autocomplete suggestions
- search_recipesName suggests: reads
- Search recipes with filters
- get_recipeName suggests: reads
- Get recipe details with ingredients and directions
- get_food_entriesName suggests: reads
- Get food diary entries for a date
- get_food_entries_monthName suggests: reads
- Get a monthly nutrition summary
- create_food_entryName suggests: changes
- Add a food diary entry
- edit_food_entryName suggests: changes
- Edit a food diary entry
- delete_food_entryName suggests: deletes
- Delete a food diary entry
- copy_food_entries
- Copy entries from one date to another
- get_saved_mealsName suggests: reads
- Get saved meals
- create_saved_mealName suggests: changes
- Create a saved meal
- update_weightName suggests: changes
- Record weight for a date
- get_weight_monthName suggests: reads
- Get weight history for a month
- get_exercisesName suggests: reads
- Get exercise types
- get_profileName suggests: reads
- Get user profile info
- create_foodName suggests: changes
- Create a custom food (Premier)
What it does
- Food and barcode search
- Search the FatSecret food database, fetch nutrition detail, look up GTIN-13 barcodes and get autocomplete suggestions.
- Recipe search
- Search recipes with filters and fetch ingredients and directions.
- Food diary
- Add, edit, delete and copy diary entries, and read a month of daily calories and macros.
- Saved meals
- Create reusable meals and add, edit or remove their items.
- Weight and exercise
- Record weight for a date, read monthly history and view or edit exercise entries.
- Guided credential setup
- Tools check auth status, store API keys and run the OAuth PIN flow from inside the chat.
Good for
- Log what you ate by telling an assistant instead of using the FatSecret app
- Look up nutrition for a food or packaged product by barcode
- Find recipes within a calorie or macro target
- Review a month of calorie and weight history in a chat
- Copy a saved meal onto several diary dates
Pricing
Open source
Server is free; FatSecret API requires a free developer account
Fatsecret MCP FAQ
Is this an official FatSecret server?
No. The README states it is not made by FatSecret and uses the FatSecret Platform API.
What do I need before using Fatsecret MCP?
A free FatSecret developer account with a client ID, client secret and consumer secret.
Where are my credentials stored?
If you use the setup tool they are saved to a config file in your home directory; you can also pass them as environment variables.
Does Fatsecret MCP work with free API keys?
Yes. The premier scope is tried first and the server falls back to the basic scope when a free key is rejected.
How do I install Fatsecret MCP?
Run it with npx fatsecret-mcp from an MCP client config, or install the Claude Desktop extension bundle.
How do I add Fatsecret MCP to Claude Code?
Run this command in your terminal: claude mcp add fatsecret-mcp --env FATSECRET_CLIENT_ID='<FATSECRET_CLIENT_ID>' --env FATSECRET_CLIENT_SECRET='<FATSECRET_CLIENT_SECRET>' --env FATSECRET_CONSUMER_SECRET='<FATSECRET_CONSUMER_SECRET>' -- npx -y fatsecret-mcp
What are the best alternatives to Fatsecret MCP?
The closest alternatives to Fatsecret MCP are Tooluniverse, Oya Browser, BasalFit, Alpha-Gal Watch: Alpha-Gal Syndrome Food Check and Renal Diet (CKD) and Alpha-Gal Syndrome Food Check.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.
