# Open Food Facts MCP for AI Agents AI Agent Connect

> Open Food Facts lets your AI agent pull real-time nutritional data from the world's largest open food database. You can look up specific items by barcode or search for products by brand and category. It provides Nutri-Score grades, NOVA processing levels, and full allergen breakdowns for over 2 million products across 150 countries. Use it to build health-focused apps or quickly check what's inside your groceries.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_LG3ZHHgVTtLIU6dOuJkWSmnSrrPLS1XRE1EcLcmB/ai-agent-connect
- **Tags:** nutritional-data, barcode-scanning, allergen-detection, food-labeling

## Description

Imagine you're building a nutrition app or just trying to figure out if a new snack fits your strict diet. Usually, you'd have to flip over a package, squint at the tiny print, and manually log the calories and ingredients into a spreadsheet. This Connector changes that. By connecting your agent to the Open Food Facts database, you can just ask for the details. It pulls everything from macronutrient profiles to specific allergen warnings like soy or nuts. Whether you're checking for ultra-processed NOVA scores or looking for a high-protein bar with a specific Nutri-Score, the data is there. It's a massive, community-driven resource that removes the friction of manual data entry. When you use this through the Vinkius catalog, your agent becomes an expert on global food labeling. It can handle requests for products from different countries, making it a go-to for anyone building dietary assistants or grocery tools. You get clean, consistent data without having to manage your own database or deal with complex API keys. It works for thousands of items from around the world, so you don't have to worry about whether a specific brand is in the system. It handles the heavy lifting of data retrieval so you can focus on the actual experience of your app or your personal health goals.

## Tools

### scan_food_barcode
Use this to get a full nutritional and allergen profile for any product by its EAN or UPC code. It provides instant clarity on what's inside a package.

### search_food_products
Use this to find specific food items in the global database by name, brand, or category. It's great for finding alternatives or checking brand details.

## Prompt Examples

**Prompt:** 
```
Scan barcode 3017620422003
```

**Response:** 
```
That's Nutella! Here's what I found:

* **Nutri-Score:** E
* **NOVA Group:** 4 (ultra-processed)
* **Per 100g:** 539 kcal, 31g fat, 57g carbs, 6g protein
* **Allergens:** Contains hazelnuts, milk, and soy
* **Ingredients:** sugar, palm oil, hazelnuts (13%), cocoa, skimmed milk powder, whey powder, lecithin, vanillin.
```

**Prompt:** 
```
Find vegan protein bars with a Nutri-Score of A.
```

**Response:** 
```
I found several options for you!

* **Misfits Vegan Protein Bar:** Often scores very well with high plant protein.
* **Trek High Protein Flapjack:** Features a good Nutri-Score due to its balance of fiber and plant protein.

Would you like me to look up the full ingredient list for either of these?
```

**Prompt:** 
```
What is the NOVA group for a standard can of Coca-Cola?
```

**Response:** 
```
A standard can of Coca-Cola is classified under **NOVA Group 4**, which means it is an ultra-processed food product. It also holds a **Nutri-Score of E** due to its high sugar content.
```

## Capabilities

### Look up nutrition by barcode
Retrieve a full nutritional and allergen profile for any packaged food item using its unique barcode.

### Search products by brand or name
Find specific food items in the global database by typing in a brand name or product category.

### Pull official Nutri-Score grades
Get the official A-to-E nutritional quality grading used across Europe for various products.

### Check NOVA processing levels
Identify how processed a food item is on a scale from 1 to 4.

### Identify specific allergens
Get instant warnings for common allergens like gluten, dairy, nuts, and soy.

## Use Cases

### Building a vegan meal planner
A developer asks the agent to find vegan protein bars with an 'A' Nutri-Score to populate a healthy snack list.

### Checking snack ingredients
A parent asks the agent to see if a specific snack contains dairy or soy to keep their child safe.

### Comparing soda brands
A user wants to know the NOVA group and sugar content of different soda brands in the database to make a choice.

### Creating a grocery list
A shopper asks the agent to find low-calorie snacks by brand and category to stay on track with their goals.

## Benefits

- Stop manual data entry by instantly pulling full ingredient lists and macronutrients from a barcode.
- Identify hidden risks for users by detecting allergens like nuts, soy, or gluten in seconds.
- Quickly filter high-quality options by searching for products that meet specific Nutri-Score grades.
- Understand food processing levels across different regions using the NOVA classification data.
- Build more robust health tools by accessing a database of over 2 million products from 150 countries.

## How It Works

The bottom line is you get instant access to a global food database without manual searching.

1. Connect your AI client to the Open Food Facts MCP via Vinkius.
2. Provide a barcode number or a product description to your agent.
3. Get a full breakdown of ingredients, calories, and nutritional scores.

## Frequently Asked Questions

**What can I do with the Open Food Facts MCP?**
You can use it to pull nutritional data, Nutri-Scores, and allergen information for millions of packaged food products. It's great for building health apps or quickly checking what's in your groceries.

**How can I check for allergens in my groceries?**
Just provide the barcode of the product to your agent. It will pull the full allergen warning list, including things like dairy, nuts, and soy, so you can see what's inside instantly.

**Can this Connector find products from other countries?**
Yes, it connects to a global database with over 2 million products from more than 150 countries, making it useful for international food data.

**What is a Nutri-Score and how does this Connector show it?**
The Nutri-Score is a nutritional quality grade from A to E. This Connector retrieves that score directly from the database so you can see how healthy a product is at a glance.

**How do I use this for a vegan diet?**
You can ask your agent to search for specific vegan products or check the ingredient lists of items you're considering to ensure they meet your dietary needs.

**Can I search for products by brand name?**
Yes, you can search the entire global database by brand, name, or category to find specific items or compare different products from the same company.

**What is Nutri-Score?**
Nutri-Score is a front-of-pack nutrition label that rates food products from A (healthiest) to E (least healthy). It's widely used across Europe and helps consumers make informed dietary choices at a glance.

**What is the NOVA classification?**
The NOVA classification assigns a score from 1 to 4 depending on how much a food is processed. 1 means unprocessed/minimally processed foods, while 4 indicates ultra-processed food and drink products.

**Is the allergen data reliable?**
The allergen data is derived from product labels uploaded by contributors. While extensive, you should always double-check physical packaging for severe allergies as formulations can change.