
Open Food Facts
Search the Open Food Facts catalog and optionally contribute corrections while prototyping nutrition, barcode, or grocery apps with an agent.
Overview
Open Food Facts MCP is a MCP server for the Build phase that searches and contributes to the Open Food Facts product database through MCP tools.
What is this MCP server?
- Search and browse Open Food Facts records through MCP without hand-curling the public API
- v2.5.1 with stdio and streamable-http transports via npx openfoodfacts-mcp
- Required OFF_USER_AGENT string per API policy; optional credentials for write/contributions
- OFF_COUNTRY subdomain toggle (default world) for market-specific product lookups
- Package version 2.5.1
- Two transports: stdio and streamable-http
- Default OFF_COUNTRY subdomain world when unset
Community signal: 3 GitHub stars.
What problem does it solve?
Building a food or retail feature means repeatedly hitting the Open Food Facts HTTP API by hand instead of letting your agent fetch products and nutrition fields in context.
Who is it for?
Solo devs prototyping apps that need barcode lookups, nutrition facts, or crowdsourced product metadata without paying for a commercial grocery API on day one.
Skip if: Enterprises that need guaranteed SLA product data, private label catalogs, or compliance-grade nutritional labeling without community-sourced gaps.
What do I get? / Deliverables
Once OFF_USER_AGENT is set and the server is registered, your agent can query (and optionally update) Open Food Facts data while you code features.
- Agent-callable search and contribution tools against Open Food Facts
- Configurable country subdomain for localized product queries
Recommended MCP Servers
Journey fit
Food and retail side projects need a real product database during integration work, which lands on the Build phase even when research started earlier. Open Food Facts is an external open database API—tag as integrations because the MCP server’s job is to connect your agent to that dataset.
How it compares
Open-data product MCP connector—not a hosted nutrition database SaaS or a mobile barcode SDK.
Common Questions / FAQ
Who is Open Food Facts MCP for?
Builders creating consumer apps, extensions, or agents that need open product and ingredient data from Open Food Facts during research and implementation.
When should I use Open Food Facts MCP?
Use it when integrating real product lookups into a prototype or backend, or when an agent-assisted workflow must verify barcodes and labels against the public database.
How do I add Open Food Facts MCP to my agent?
Run npx openfoodfacts-mcp, configure OFF_USER_AGENT as AppName/Version (email), add optional OFF credentials for writes, register the MCP server in your agent, and restart.