• DATA
  • ANALYSIS
  • INSIGHT
  • HUMAN

How to compare nutritional data with your AI

Connect Open Food Facts to your AI client to pull specific ingredient and nutrition data instantly. Once connected, you can ask your agent to run comparisons across multiple products.

Ask AI about this page

Short answer

How can I compare nutritional data with my AI?

You can use the get_product tool to pull the 100g nutritional breakdown for any food item in the Open Food Facts database. Your AI then processes these values to highlight differences in sugar, protein, or fats between products. This allows for instant side-by-side comparisons without manual searching.

The results you get

Where your data lands

The AI handles the data retrieval and math, leaving you with the insights.

DATA

Standardized nutrition

The AI pulls the 100g breakdown for every product you name. You get consistent metrics to compare different brands or items.

ANALYSIS

Direct comparisons

Your agent identifies which product has more sodium, less sugar, or higher protein. It spots the differences you actually care about.

INSIGHT

Dietary alignment

The AI checks products against your specific dietary goals. It flags items that don't fit your requirements.

HUMAN

Final decision

The AI provides the data and the math, but you decide which product to actually buy or eat.

The workflow

What your AI does when you ask for a comparison.

The AI acts as a bridge between your chat interface and the Open Food Facts database.

  1. Fetch product data

    The AI looks up the specific food item you mentioned to find its nutritional profile.

    get_product
  2. Normalize values

    The AI ensures all nutritional data is scaled to a 100g basis for an accurate comparison.

    get_product
  3. Calculate differences

    Your agent subtracts or compares the values of different products to find the outliers.

    get_product
  4. Present findings

    The AI outputs a clear summary or table showing how the products stack up against each other.

    get_product

Try it

Copy these to start.

Use these prompts to trigger the comparison workflow.

Starting points

Swap the product names in these prompts for the specific items you want to check.

Open Food Facts Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_UbS0tE7w0pcsizMsWZiRGetdpNV4XS7n5PzCDPEb/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Open Food Facts capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "open-food-facts-alternative-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_UbS0tE7w0pcsizMsWZiRGetdpNV4XS7n5PzCDPEb/mcp"
    }
  }
}
Copy into chat04
  • Compare the 100g nutritional breakdown of Oatly milk and Alpro oat milk.

  • Which of these three yogurt brands has the lowest sugar content per 100g?

  • Get the nutritional data for Ben & Jerry's Chunky Monkey and compare it to Haagen-Dazs Vanilla.

  • Find the protein content for these two protein bars and tell me which is better for muscle gain.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Open Food Facts once, then ask.

Click the link to connect the MCP to your preferred client. Your credentials stay encrypted, and you can start asking questions immediately.

Connect Open Food Facts to your AI

FAQ

How this task behaves

  • 01

    Can the AI add new products to Open Food Facts?

    No. The AI can only read existing product data using the available tools.

  • 02

    Does the AI compare products based on price?

    No. The AI only has access to nutritional data, not real-time retail pricing.

  • 03

    Will the AI automatically buy these products for me?

    No. The AI only retrieves and analyzes data; it cannot perform purchases.

  • 04

    Can I compare products that aren't in the database?

    No. The AI can only analyze products that the get_product tool can find in Open Food Facts.

  • 05

    How does the AI handle different serving sizes?

    The AI uses the 100g standard to make sure you are comparing apples to apples.

  • More questions about Open Food Facts? See everything the Open Food Facts Connector can do

Connect Open Food Facts to Claude, Cursor, ChatGPT & more