Open Food Facts MCP server
Search and contribute to the Open Food Facts database.
3 stars74 downloads/wk
Reviews
Write oneNobody has reviewed Open Food Facts yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Open Food Facts tools (10, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
add_or_edit_productautocompleteGet autocomplete suggestions for Open Food Facts taxonomy entries (brands, categories, labels, etc.).
call_apiget_api_docsGet Open Food Facts API documentation. Useful for understanding available endpoints before using call_api.
get_productGet product information from Open Food Facts by barcode. Reads the primary database directly (no sync lag), so this is always current even when search_products returns stale results. Prefer this over search whenever you have a barcode. If this returns "product not found", the product genuinely isn't in the database — you can add it with add_or_edit_product.
get_skillGet the OFF upload skill document. This describes the recommended process for bulk uploading food packaging photos to Open Food Facts.
search_products_lucenesearch_products_standardselect_imageSelect, crop, and rotate a previously uploaded product image on Open Food Facts. Requires OFF_USER_ID and OFF_PASSWORD.
upload_imagewrite action
Public scan report
scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it
- Code scan35 source files scanned; 35 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 16 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Open Food Facts compares
Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 83/100
- higher than 60% of 802 Databases servers
- Tools
- 10
- the typical Databases server has 8
- Tools that change things
- 10%
- typical: 9%. Fewer write tools means less an agent can break
- GitHub stars
- 3
- more than 65% of 602 Databases servers
- Downloads a week
- 74
- more than 48% of 330 Databases servers with a package
What its tools let an agent do: 8 read · 2 create
Install Open Food Facts in Claude Code, Cursor or VS Code
Runs npx -y openfoodfacts-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add openfoodfacts-mcp -- npx -y openfoodfacts-mcp
What the publisher says
From the Open Food Facts repository's README, as published. We do not edit it. Read it on GitHub
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
Follow the instructions on install-mcp, which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).
Set OFFUSERAGENT to identify your app (e.g. openfoodfacts-mcp/1.2.0 (you@example.com)). For write operations (adding/editing products, uploading images), also set OFFUSERID and OFF_PASSWORD.
Environment Variables
Tools
Contributing
Pull requests are welcomed on GitHub! To get started:
- Install Git and Node.js
- Clone the repository
- Install dependencies with npm install
- Run npm run test to run tests
- Build with npm run build
Releases
Versions follow the semantic versioning spec.
To release:
- Use npm version to bump the version
- Run git push --follow-tags to push with tags
- Wait for GitHub Actions to publish to the NPM registry.
Nothing above is checked by us. What we check is on the safety report.
Open Food Facts: common questions
- Is Open Food Facts MCP server safe?
- Mostly: it is graded B (83/100). Read the Open Food Facts safety report
- How do I install Open Food Facts?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Open Food Facts need an API key?
- Yes. The registry entry asks for
OFF_PASSWORD. - Is Open Food Facts maintained?
- The last commit was 56 days ago (2026-09-09). The latest release is v2.6.0.
- What can I use instead of Open Food Facts?
- Servers from other publishers that do the same job: Usda MCP server, CogniCore MCP server and DBHub MCP server.
- How does Open Food Facts compare with other Databases MCP servers?
- safety score 83/100 (higher than 60% of 802 Databases servers); tools 10 (the typical Databases server has 8); tools that change things 10% (typical: 9%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Open Food Facts
Same job from other publishers: the closest match first, then the best rated.
- UsdaSearch foods, compare nutrients, and look up the full USDA FoodData Central database.not reviewedGrowingA
- CogniCoreMemory, reflection and safety for AI agents. Hosted or local, no vector database.5.0(1)GrowingA
- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
- Neo4j CypherA simple Neo4j MCP server that allows you to run Cypher queries against a Neo4j database.not reviewedEstablishedA
- AppwriteBuild and deploy backends: auth, Postgres/MySQL/vector databases, storage, functions, hosting, CDNnot reviewedEstablishedA