fatsecret-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fatsecret-mcp-serverlog 200g chicken breast for lunch"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FatSecret MCP Server
MCP server for managing your food diary, nutrition tracking, meal planning, and weight logging via the FatSecret Platform API.
Tools Available
Tool | Description |
| Search food database by name |
| Get full nutrition details for a food |
| Log food to diary |
| Edit existing diary entry |
| Delete diary entry |
| Get all entries for a date |
| Monthly diary summary |
| Create reusable meal template |
| Add food to a saved meal |
| List saved meal templates |
| Paste saved meal into diary |
| Log weight for a date |
| Monthly weight history |
| Recently logged foods |
| Copy all entries between dates |
Setup
1. Register for FatSecret API
Create a developer account
Generate an application — you'll get a Client ID and Client Secret
2. Get User OAuth Tokens (3-legged OAuth 1.0a)
For diary/weight access, you need user-level tokens. The flow:
Request a temporary token from FatSecret
Redirect user to authorize at
https://www.fatsecret.com/oauth/authorizeExchange the verifier for permanent access tokens
A helper script for this is at scripts/oauth-setup.ts (TODO).
3. Environment Variables
export FATSECRET_CLIENT_ID="your_client_id"
export FATSECRET_CLIENT_SECRET="your_client_secret"
export FATSECRET_ACCESS_TOKEN="user_access_token"
export FATSECRET_ACCESS_TOKEN_SECRET="user_access_token_secret"4. Build & Run
npm install
npm run build
npm start5. Configure in Claude Desktop
Add to your Claude Desktop MCP config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"fatsecret": {
"command": "node",
"args": ["/path/to/fatsecret-mcp-server/dist/index.js"],
"env": {
"FATSECRET_CLIENT_ID": "your_client_id",
"FATSECRET_CLIENT_SECRET": "your_client_secret",
"FATSECRET_ACCESS_TOKEN": "your_access_token",
"FATSECRET_ACCESS_TOKEN_SECRET": "your_access_token_secret"
}
}
}
}Typical Workflow
Search for a food:
fatsecret_search_food("chicken breast")Get details to find serving_id:
fatsecret_get_food(food_id)Log it:
fatsecret_create_food_entry(food_id, "Chicken Breast", serving_id, 2.5, "lunch", "2026-05-16")Review day:
fatsecret_get_food_entries("2026-05-16")Track weight:
fatsecret_update_weight(77.5, "2026-05-16")
API Tier
The free Basic tier (5,000 calls/day, US food database) is sufficient for personal use. Apply for Premier Free if you want barcode scanning and autocomplete.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Yurzs/fatsecret-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server