# Openfoodfacts

> Openfoodfacts is a freemium MCP server for food and drink. MCP server for looking up food products, nutrition and allergens from Open Food Facts. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $49 a month
- **Platforms:** API, CLI, Web
- **Website:** https://pipeworx.io/packs/openfoodfacts
- **Repository:** https://github.com/pipeworx-io/mcp-openfoodfacts
- **MCP Registry name:** io.github.pipeworx-io/openfoodfacts
- **Categories:** [food and drink](https://ai-powered.com/categories/food-and-drink)
- **Listing updated:** 2026-11-18

## About

The README says the server wraps the Open Food Facts collaborative database, which holds roughly three million food products with ingredients, nutrition, allergen, Nutri-Score and packaging details. It is an unofficial integration run through the Pipeworx gateway and does not require an upstream key.

The pack exposes five tools: a barcode lookup for EAN-13 and UPC-A codes, full-text search, and listings filtered by category, brand or country. Each tool takes paging parameters, and the search tool also accepts sorting and field selection. Connections can use a hosted streamable-HTTP endpoint or a local stdio bridge launched with npx.

According to the README, the hosted endpoint also lists shared Pipeworx meta-tools such as ask_pipeworx, and the stdio package lists only this pack's tools unless an environment flag is set. Calls are anonymous and capped daily, with a higher limit for a free registered key.

## Features

- **Barcode product lookup:** Returns product details for an EAN-13 or UPC-A barcode.
- **Full-text product search:** Searches the food database by keyword with paging, sorting and field selection.
- **Browse by category:** Lists products belonging to a given food category.
- **Browse by brand:** Lists products published under a specific brand name.
- **Browse by country:** Lists products sold or registered in a specified country.

## Good for

- Checking ingredients and allergens for a scanned grocery item inside an AI assistant
- Comparing Nutri-Score and nutrition data across products in a category
- Building a meal or diet planning tool that needs packaged food data
- Researching which products a brand or country has listed in the database

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http openfoodfacts https://gateway.pipeworx.io/openfoodfacts/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://gateway.pipeworx.io/openfoodfacts/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "openfoodfacts": {
      "url": "https://gateway.pipeworx.io/openfoodfacts/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "openfoodfacts": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/openfoodfacts/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "openfoodfacts": {
      "serverUrl": "https://gateway.pipeworx.io/openfoodfacts/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "openfoodfacts": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/openfoodfacts/mcp"
    }
  }
}
```

## Tools

- `product`: Product by barcode (EAN-13 / UPC-A).
- `search`: Full-text search with paging, sorting and field options.
- `category`: Products by category.
- `brand`: Products by brand.
- `country`: Products from a country.

## FAQ

### Does the server need an API key?

The README says the upstream Open Food Facts source is keyless. The Pipeworx gateway allows anonymous calls capped at 50 per day, and a free account raises that to 200 per day.

### Which tools does the server expose?

The README lists product, search, category, brand and country tools. The hosted endpoint also lists shared gateway meta-tools such as ask_pipeworx.

### Can it run without a network connection?

No. The README states the npm bridge needs network access and there is no offline mode.

### Is Openfoodfacts free?

Openfoodfacts has a free plan, with paid plans for more usage or features. Paid plans start at $49 a month.

### How do I add Openfoodfacts to Claude Code?

Run this command in your terminal: claude mcp add --transport http openfoodfacts https://gateway.pipeworx.io/openfoodfacts/mcp

### What are the best alternatives to Openfoodfacts?

The closest alternatives to Openfoodfacts are Spoonacular and Foodish.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Spoonacular](https://ai-powered.com/mcp/spoonacular): Spoonacular is a freemium MCP server for food and drink.
- [Foodish](https://ai-powered.com/mcp/foodish): Foodish is a freemium MCP server for food and drink.

---
Source: https://ai-powered.com/mcp/openfoodfacts
