Openfoodfacts MCP Server

Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.

Remote serverstreamable-http

What is the Openfoodfacts MCP Server?

Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.

What you get

Configuration and credentials

  • Bun v1.3.0 or higher (or Node.js v24+). - No API key needed. The server sends an identifying User-Agent to comply with Open Food Facts' terms of service — this is baked in and requires no configuration.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
off_get_productFetch a packaged food product by barcode. Returns name, brand, quantity, ingredients, allergens, additives, Nutri-Score, NOVA group, Green-Score, nutrition per 100g/serving, categories, labels, and data completeness.
off_search_productsSearch by text query and/or structured tag filters (category, brand, label, allergen, additive, Nutri-Score grade, NOVA group, country). Returns summary rows with barcodes for follow-up lookups.
off_compare_productsSide-by-side nutrition and scoring comparison for 2–10 products by barcode. Returns a normalized table of energy, macros, salt, Nutri-Score, NOVA, and Green-Score.
off_browse_taxonomyResolve a human term to the canonical tag ID (categories, labels, allergens, additives, countries, NOVA groups, Nutri-Score grades) that off_search_products filters on, against the live Open Food Facts taxonomy.

How to install the Openfoodfacts MCP Server

{
  "mcpServers": {
    "openfoodfacts-mcp-server": {
      "type": "streamable-http",
      "url": "https://openfoodfacts.caseyjhand.com/mcp"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Bun v1.3.0 or higher (or Node.js v24+). - No API key needed. The server sends an identifying User-Agent to comply with Open Food Facts' terms of service — this is baked in and requires no configuration.
VariableDescriptionRequired
MCP_TRANSPORT_TYPEConfiguration value read at startup.Optional
MCP_LOG_LEVELConfiguration value read at startup.Optional
OFF_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Openfoodfacts to off get product.”
  • “Use Openfoodfacts to off search products.”
  • “Use Openfoodfacts to off compare products.”

Frequently asked questions

Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.