- DATA
- IDENTITY
- LOG
- HUMAN
Short answer
How can I find nutritional info using a barcode?
Give your AI a UPC or EAN code, and it will pull the exact brand, product name, and nutritional breakdown from the FatSecret database. You'll get specific data for branded items instead of generic guesses. Here is the breakdown of what you get.
The results
What your AI finds
The AI pulls specific data points from the FatSecret database.
DATA
Nutritional profiles
The AI pulls calories, macros, and micronutrients for the specific branded item you scanned.
IDENTITY
Brand and product names
It identifies the exact manufacturer and product name associated with the barcode.
LOG
Dietary tracking
Your AI can use this data to update your food logs or meal plans immediately.
HUMAN
Manual verification
You decide if the scanned data matches the physical item in your hand before saving it to a log.
The workflow
What your AI does when a barcode is provided.
The AI handles the database heavy lifting so you don't have to type out ingredient lists.
Identify the code
Your AI takes the UPC or EAN number you provide from a photo or text input.
get_food_by_barcodeQuery the database
The agent uses the barcode to find the specific branded entry in the FatSecret library.
get_food_by_barcodeExtract nutrition
It pulls the specific calorie counts, fats, carbs, and protein values for that item.
get_food_by_barcodePresent results
The AI shows you the product name and nutritional facts in your chat window.
get_food_by_barcode
Try it
Copy these to start.
Use these prompts once you have connected the FatSecret Platform.
Starting points
Replace the bracketed text with your actual barcode numbers or product names.
FatSecret Platform Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_7lRa54UQKpv0UcTVlOWvzkEGEa58Y5tsT1LGDvt3/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — FatSecret Platform capabilities are ready to use.
{
"mcpServers": {
"fatsecret-platform-mcp": {
"url": "https://edge.vinkius.com/vk_preview_7lRa54UQKpv0UcTVlOWvzkEGEa58Y5tsT1LGDvt3/mcp"
}
}
}Look up the nutritional info for barcode 0123456789012.
What are the macros for the product with EAN 9876543210987?
Find the calorie count for this barcode: 400123456789.
Check the ingredients and nutrition for barcode 555666777888.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect FatSecret Platform once, then ask.
One click connects the database to your AI. Your credentials stay encrypted and secure on our side.
Connect FatSecret Platform to your AIFAQ
How this task behaves
- 01
Can the AI change the nutritional data in the database?
No. The AI can only read data from the FatSecret database; it cannot edit or delete existing product information.
- 02
Does it work with any barcode?
It works with any UPC or EAN code that exists within the FatSecret product database.
- 03
Can the AI automatically log my food to a third-party app?
No. The AI can provide the data, but you must manually confirm or move that data into your specific tracking apps.
- 04
Can I use this for generic foods like 'an apple'?
No. This specific tool is designed for branded products identified by a barcode.
- 05
What happens if the barcode isn't found?
If the code isn't in the database, the AI will tell you it couldn't find a match for that specific identifier.
More questions about FatSecret Platform? The Connector page answers them. See everything the FatSecret Platform Connector can do
Connect FatSecret Platform to Claude, Cursor, ChatGPT & more
