- INGREDIENTS
- NUTRITION
- DIETARY
- HUMAN
Short answer
How can I check food nutrition with my AI?
Provide a product barcode to your agent. It uses the Open Food Facts API to fetch the ingredient list and nutritional values. You'll get a full breakdown of the product's profile.
The results you get
What your AI delivers
The AI handles the data fetching so you can focus on your dietary needs.
INGREDIENTS
Full ingredient lists
The AI pulls the complete list of ingredients from the database. You get a clear view of what's actually in the food.
NUTRITION
Macro and micro data
Your agent retrieves calories, fats, sugars, and proteins. It presents these numbers clearly for your review.
DIETARY
Allergen identification
The AI scans the ingredient list for specific allergens you care about. It flags items that don't fit your diet.
HUMAN
Personal health decisions
The AI provides the raw data, but you make the final call on whether a product is safe or healthy for you.
The workflow
What your AI does when a barcode arrives.
The AI acts as the bridge between your chat and the Open Food Facts database.
Fetch product data
Your agent uses the barcode to find the specific product in the Open Food Facts database.
get_food_productExtract ingredients
The AI pulls the raw ingredient text from the product record.
get_food_productParse nutrition
It identifies and organizes the nutritional values like sugar, fat, and calories.
get_food_productReport findings
The AI summarizes the data into a format that answers your specific question.
get_food_product
Try it
Copy these to start.
Use these prompts to interact with the food data.
Starting points
Replace the bracketed text with the actual barcode or dietary requirement you want to check.
Open Food Facts Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_6b9L2XZHv24AK4m1qT4TX9DQQ1xA9oqiITtrCcup/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 — Open Food Facts capabilities are ready to use.
{
"mcpServers": {
"open-food-facts-api-mcp": {
"url": "https://edge.vinkius.com/vk_preview_6b9L2XZHv24AK4m1qT4TX9DQQ1xA9oqiITtrCcup/mcp"
}
}
}What are the ingredients for barcode [insert barcode]?
How many calories are in the product with barcode [insert barcode]?
Does the product with barcode [insert barcode] contain any peanuts?
Give me a nutritional summary for barcode [insert barcode].
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Open Food Facts API once, then ask.
Connect the MCP to your preferred client with one click. Your credentials stay encrypted on our side.
Connect Open Food Facts API to your AIFAQ
How this task behaves
- 01
Can the AI add new products to the database?
No. The AI can only read data from the Open Food Facts API; it cannot write or edit product entries.
- 02
Can the AI tell me if a food is 'healthy'?
No. The AI provides the nutritional facts, but you must decide if a product meets your personal health standards.
- 03
What happens if the barcode is invalid?
If the barcode doesn't exist in the Open Food Facts database, the AI will tell you it couldn't find the product.
- 04
Can I use this with Cursor or Claude?
Yes. You can use this with any MCP-compatible client, including Claude, Cursor, and Windsurf.
- 05
Does the AI store my food history?
No. The AI only performs the lookup you request; it doesn't maintain a personal database of your scans.
More questions about Open Food Facts API? The Connector page answers them. See everything the Open Food Facts API Connector can do
Connect Open Food Facts to Claude, Cursor, ChatGPT & more
