fatsecret-mcp MCP Server
MCP server for FatSecret API - food search, nutrition, diary, recipes, weight tracking (unofficial)
fatsecret-mcp scores 70 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 40 tools. Filed under Search. GitHub shows 12 stars. Package registries report about 92 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
70 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
80/100 for listing completeness. Lost points: 20 of 40 tools barely described, short summary, no docs link.
How quality is graded
Where the 70 comes from
22 + 20 + 4 + 10 + 4 + 10 = 70. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "fliptheweb-fatsecret-mcp": { "command": "npx", "args": [ "-y", "fatsecret-mcp@0.0.10" ], "env": { "FATSECRET_CLIENT_ID": "YOUR_FATSECRET_CLIENT_ID", "FATSECRET_CLIENT_SECRET": "YOUR_FATSECRET_CLIENT_SECRET", "FATSECRET_CONSUMER_SECRET": "YOUR_FATSECRET_CONSUMER_SECRET" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
FATSECRET_CLIENT_IDSecret | Required | FatSecret API Client ID |
FATSECRET_CLIENT_SECRETSecret | Required | FatSecret API Client Secret (OAuth 2.0) |
FATSECRET_CONSUMER_SECRETSecret | Required | FatSecret API Consumer Secret (OAuth 1.0) |
Tools40Tool docs quality grade D
All capabilitiesAdd recipe to favorites
Add food to a saved meal
Get search autocomplete suggestions
Check if credentials and profile auth are configured. Call this first.
complete_authtoolComplete OAuth with verifier PIN from authorization page
Copy entries from one date to another
Copy a saved meal to a date
Add a food diary entry
Create a saved meal
Remove food from favorites
Remove recipe from favorites
Delete a food diary entry
About
FatSecret MCP Server
[!IMPORTANT] This is not an official MCP server by FatSecret. It uses the FatSecret Platform API which requires a free developer account.
An MCP (Model Context Protocol) server that connects Claude/Cursor to the FatSecret Platform API. Search foods, track your diet, manage recipes, and monitor weight directly from your AI assistant.
Available on NPM: npx fatsecret-mcp | Claude Desktop Extension: fatsecret-mcp.mcpb
โจ Features
- ๐ Authentication โ Interactive credential setup and OAuth authorization
- ๐ Food Search โ Search FatSecret's extensive food database with detailed nutrition data
- ๐ท Barcode Lookup โ Find foods by GTIN-13 barcode
- ๐ณ Recipe Search โ Browse and filter recipes by calories, macros, and prep time
- ๐ Food Diary โ Add, edit, copy, and delete food diary entries
- ๐ฝ๏ธ Saved Meals โ Create and manage reusable meal templates
- โ๏ธ Weight Tracking โ Record and view weight history
- ๐โโ๏ธ Exercise Tracking โ View exercises and manage activity entries
- โญ Favorites โ Manage favorite foods and recipes
๐ Quick Start
Add to your MCP client configuration:
{
"mcpServers": {
"fatsecret": {
"command": "npx",
"args": ["-y", "fatsecret-mcp"]
}
}
}
That's it! On first use, the AI will guide you through setup:
check_auth_statusโ detects missing credentials and tells you what to dosetup_credentialsโ you provide your API keys (saved to~/.fatsecret-mcp/config.json)start_authโcomplete_authโ authorize your FatSecret account for diary/weight tools
Alternatively, you can pass credentials as environment variables:
{
"mcpServers": {
"fatsecret": {
"command": "npx",
"args": ["-y", "fatsecret-mcp"],
"env": {
"FATSECRET_CLIENT_ID": "your_client_id",
"FATSECRET_CLIENT_SECRET": "your_client_secret",
"FATSECRET_CONSUMER_SECRET": "your_consumer_secret"
}
}
}
}
๐ Where to Get Credentials
- Create a free account at platform.fatsecret.com
- Navigate to My Account โ API Keys
- You'll see three values:
- Client ID (used for both OAuth 2.0 and OAuth 1.0)
- Client Secret (OAuth 2.0 - for public food/recipe search)
- Consumer Secret (OAuth 1.0 - for user profile/diary access)
๐ Step-by-step guide: Getting Started with FatSecret API
๐ Premier Keys
If your FatSecret application has Premier access (e.g. branded food data), the server requests the basic premier OAuth 2.0 scope by default so Premier-only data is included in search results. Free keys aren't entitled to the premier scope โ when FatSecret rejects it with invalid_scope, the server automatically retries with the basic scope, so nothing extra is needed for non-Premier keys.
To force a specific scope (e.g. skip the premier attempt, or request a different scope your key supports), set:
FATSECRET_OAUTH2_SCOPE=basic
Claude Desktop (Extension)
Download and open fatsecret-mcp.mcpb with Claude Desktop. You'll be prompted to enter your FatSecret credentials โ secrets are stored securely in the OS keychain.
[!WARNING] If one-click install fails or the extension doesn't start, it may be a Claude Desktop bug (mcpb#281). Workaround: download fatsecret-mcp.zip, extract it, and use Settings โ Extensions โ Advanced settings โ Install Unpacked Extension. Or use the
npxconfig above.
See Building Desktop Extensions with MCPB for more details.
Claude Desktop (Manual)
~/Library/Application Support/Claude/claude_desktop_config.json
Claude Code (CLI)
claude mcp add fatsecret -- npx -y fatsecret-mcp
Or with env vars:
claude mcp add fatsecret \
-e FATSECRET_CLIENT_ID=your_client_id \
-e FATSECRET_CLIENT_SECRET=your_client_secret \
-e FATSECRET_CONSUMER_SECRET=your_consumer_secret \
-- npx -y fatsecret-mcp
Verify with claude mcp list.
Cursor
- Settings UI โ
Settings โ MCP โ + Add new MCP server, then fill in the command, args, and env - Project config โ add JSON to
.cursor/mcp.jsonin your project root - Global config โ add JSON to
~/.cursor/mcp.json
๐ ๏ธ Available Tools
| Tool | Description |
|---|---|
| ๐ Setup & Auth | |
check_auth_status | Check if credentials and profile auth are configured. Call this first. |
setup_credentials | Save FatSecret API credentials to persistent config |
start_auth | Start OAuth 1.0 authorization โ returns URL for user to visit |
complete_auth | Complete OAuth with verifier PIN from authorization page |
| ๐ Food Search (public) | |
search_foods | Search the food database |
get_food | Get detailed nutrition info for a food |
find_food_by_barcode | Find food by GTIN-13 barcode |
autocomplete_foods | Get search autocomplete suggestions |
| ๐ณ Recipes (public) | |
search_recipes | Search recipes with filters |
get_recipe | Get recipe details with ingredients and directions |
| ๐ Reference (public) | |
get_food_categories | Get food categories |
get_food_sub_categories | Get food sub categories |
get_brands | Get food brands |
get_recipe_types | Get recipe types |
| ๐ Food Diary (profile auth) | |
get_food_entries | Get food diary entries for a date |
get_food_entries_month | Get monthly nutrition summary (calories & macros per day) |
create_food_entry | Add a food diary entry |
edit_food_entry | Edit a food diary entry |
delete_food_entry | Delete a food diary entry |
copy_food_entries | Copy entries from one date to another |
copy_saved_meal_entries | Copy a saved meal to a date |
| โญ Favorites (profile auth) | |
get_favorite_foods | Get favorite foods |
delete_favorite_food | Remove food from favorites |
get_most_eaten_foods | Get most eaten foods |
get_recently_eaten_foods | Get recently eaten foods |
get_favorite_recipes | Get favorite recipes |
add_favorite_recipe | Add recipe to favorites |
delete_favorite_recipe | Remove recipe from favorites |
| ๐ฝ๏ธ Saved Meals (profile auth) | |
get_saved_meals | Get saved meals |
create_saved_meal | Create a saved meal |
edit_saved_meal | Edit a saved meal |
delete_saved_meal | Delete a saved meal |
get_saved_meal_items | Get items in a saved meal |
add_saved_meal_item | Add food to a saved meal |
edit_saved_meal_item | Edit saved meal item |
delete_saved_meal_item | Remove item from saved meal |
| โ๏ธ Weight (profile auth) | |
update_weight | Record weight for a date |
get_weight_month | Get weight history for a month |
| ๐โโ๏ธ Exercise (profile auth) | |
get_exercises | Get exercise types |
edit_exercise_entries | Shift exercise time between activities |
get_exercise_entries_month | Get exercise data for a month |
save_exercise_template | Save exercise template for weekdays |
| ๐ค Profile (profile auth) | |
get_profile | Get user profile info |
create_food | Create a custom food (Premier) |
API reference: FatSecret Postman Collection
๐งช Test Connection
npx fatsecret-mcp
Or with env vars:
FATSECRET_CLIENT_ID='...' FATSECRET_CLIENT_SECRET='...' FATSECRET_CONSUMER_SECRET='...' npx fatsecret-mcp
๐ Requirements
- Node.js 18+
- FatSecret Platform API account (platform.fatsecret.com)
- MCP-compatible client (Claude Desktop, Cursor, etc.)
๐ง Development
- Clone the repository
npm install- Copy
.env.exampleto.envand fill in your credentials npm run devto run in development mode
Debugging with MCP Inspector:
FATSECRET_CLIENT_ID=X FATSECRET_CLIENT_SECRET=X FATSECRET_CONSUMER_SECRET=X npx -y @modelcontextprotocol/inspector npx <local-path>/fatsecret-mcp
๐ License
MIT License - see LICENSE file for details.
Frequently asked questions
What is fatsecret-mcp MCP Server?
MCP server for FatSecret API - food search, nutrition, diary, recipes, weight tracking (unofficial)
How do I install fatsecret-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. fatsecret-mcp MCP Server runs locally from the npm package fatsecret-mcp with the command npx -y fatsecret-mcp@0.0.10.
Is fatsecret-mcp MCP Server free and open source?
Yes. fatsecret-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does fatsecret-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for fatsecret-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does fatsecret-mcp MCP Server provide?
fatsecret-mcp MCP Server provides 40 tools, including add_favorite_recipe, add_saved_meal_item, autocomplete_foods, and check_auth_status. See the full tool list for descriptions and parameters.
How is fatsecret-mcp MCP Server's trust score calculated?
fatsecret-mcp MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetโBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.