domdomegg avatar

Open Food Facts

domdomegg/openfoodfacts-mcp

Connects Claude to the Open Food Facts database with both read and write access. You can search products by name or barcode, filter by nutrition grades like Nutri-Score, and pull detailed ingredient and nutrition data. The server also supports write operations if you provide credentials, letting you add or update product entries and upload images directly from your conversations. Useful when you need nutritional lookups, want to compare food products, or need to contribute data to the open database. Ships with both standard search filters and Lucene syntax for complex queries, plus autocomplete for brands and categories.

GitHub stars
3
tools
9
auth
Secret needed
transport
STDIO, HTTP
env vars
5
last updated
Jul 9, 2026

Tools

9 tools

Public tool metadata for what this MCP can expose to an agent.

get_productGet product info by barcode

Get product info by barcode

No parameter schema in public metadata yet.

search_products_standardSearch with structured filters (brand, category, Nutri-Score)

Search with structured filters (brand, category, Nutri-Score)

No parameter schema in public metadata yet.

search_products_luceneSearch with Lucene syntax, negation, and boolean logic

Search with Lucene syntax, negation, and boolean logic

No parameter schema in public metadata yet.

autocompleteAutocomplete brands, categories, labels, etc.

Autocomplete brands, categories, labels, etc.

No parameter schema in public metadata yet.

add_or_edit_productAdd or update a product

Add or update a product

No parameter schema in public metadata yet.

upload_imageUpload a product image

Upload a product image

No parameter schema in public metadata yet.

select_imageSelect, crop, and rotate an image

Select, crop, and rotate an image

No parameter schema in public metadata yet.

call_apiCall any OFF API endpoint directly

Call any OFF API endpoint directly

No parameter schema in public metadata yet.

get_api_docsGet OFF API documentation

Get OFF API documentation

No parameter schema in public metadata yet.

Sponsors

Configuration

OFF_USER_AGENT*

User-Agent string in format 'AppName/Version (email)'. Required by the Open Food Facts API.

OFF_USER_ID

Open Food Facts user ID (optional, needed for write operations).

OFF_PASSWORDsecret

Open Food Facts password (optional, needed for write operations).

OFF_COUNTRY

Country subdomain (default: 'world').

MCP_TRANSPORT*default: http

Transport type.

Readme

openfoodfacts-mcp

MCP server for the Open Food Facts API - search, read, and contribute to the world's largest open food database.

Use Cases

Look up a product by name: "How many calories in a Sainsbury's buffalo chicken wrap?" -> searches by name, finds the product, and returns nutrition data.

Look up a product by barcode: "What's in this product with barcode 3017620422003?" -> fetches Nutella's ingredients, Nutri-Score, and nutrition data.

Find healthy options: "Search for breakfast cereals with Nutri-Score A" -> searches with category and nutrition grade filters.

Contribute data: "Add the product name and brand for barcode 12345678" -> creates or updates a product entry on Open Food Facts.

Explore the database: "What brands of organic chocolate are in the database?" -> uses autocomplete and search to explore.

Setup


View the full README on GitHub

Details

Repository
github.com/domdomegg/openfoodfacts-mcp
Website
github.com/domdomegg/openfoodfacts-mcp#readme
Categories
Databases, Search & Web Crawling
Package
openfoodfacts-mcp
Transport
STDIO, HTTP
Auth
Required
Registry
MCP registry, active

More from domdomegg

Related Databases MCP servers

View all
1oxgeneral avataragentmemoxgeneral/agentmemLightweight persistent memory for AI agents. Hybrid search. 16 tools. One SQLite file.3stars
2zafety-vibin avatarGrimoire for Gamemasterszafety-vibin/grimoire-mcpD&D and TTRPG campaign manager for GMs: your AI reads and writes a live, typed campaign database.2stars
3cklam12345 avatarWisdomgraphcklam12345/wisdomgraphNeo4j-native DIKW memory for Claude Code — knowledge that compounds across sessions2stars
4colabfit avatarColabfit Mcpcolabfit/colabfit-mcpAn MCP server that provides access to the ColabFit database2stars
5davidmosiah avatarDelx Memorydavidmosiah/delx-memoryLocal-first persistent memory MCP: shared SQLite key/value store, searchable, TTL-aware, secret-safe2stars
6aantenore avatarLorebaseaantenore/lorebaseRead and change a governed, versioned knowledge graph on Postgres through typed tools.2stars