
Openfoodfacts Mcp Server
Connects Claude to the Open Food Facts crowd-sourced database of 3 million packaged food products. Exposes four tools: barcode lookup for full nutrition labels and ingredient parsing, filtered search across categories and nutrition grades, side-by-side product comparisons, and taxonomy browsing to find valid filter tags. Built on the framework author's own mcp-ts-core with embedded rate limiting and retry logic to stay within OFF's API constraints. The comparison tool is the standout feature here, letting you line up nutritional data for up to 10 products at once without managing individual requests. Reach for this when you need structured food data for meal planning, dietary analysis, or ingredient research. No API key required, runs over stdio or streamable HTTP, and includes a public hosted endpoint if you don't want to run it locally.
- GitHub stars
- 2
- tools
- 4
- transport
- STDIO, HTTP
- env vars
- 10
- last updated
- Nov 8, 2026
Install
From registry metadata$ npx add-mcp https://openfoodfacts.caseyjhand.com/mcp --name openfoodfactsRun in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http openfoodfacts https://openfoodfacts.caseyjhand.com/mcpRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 4 toolsVerified live against the running server on Nov 6, 2026.
off_get_productFetch a packaged food product by barcode (4–40 digits: EAN-13, EAN-8, UPC, and the shorter and longer codes Open Food Facts also holds) from Open Food Facts. Returns the product name, brand, quantity, ingredients (raw text and parsed list), declared allergens, trace allergens...2 params
Fetch a packaged food product by barcode (4–40 digits: EAN-13, EAN-8, UPC, and the shorter and longer codes Open Food Facts also holds) from Open Food Facts. Returns the product name, brand, quantity, ingredients (raw text and parsed list), declared allergens, trace allergens...
barcode*stringfieldsarrayoff_search_productsSearch Open Food Facts by full-text query, structured tag filters, or both at once. Returns a summary list with barcodes, product names, brands, Nutri-Score, NOVA group, and categories — enough for triage and selection, not full label data. Use off_get_product on the returned...17 params
Search Open Food Facts by full-text query, structured tag filters, or both at once. Returns a summary list with barcodes, product names, brands, Nutri-Score, NOVA group, and categories — enough for triage and selection, not full label data. Use off_get_product on the returned...
additives_tagstringallergens_tagstringbrands_tagstringcategories_tagstringcountries_tagstringexclude_allergensarrayexclude_tracesarrayingredients_analysis_tagstringen:palm-oil · en:palm-oil-free · en:may-contain-palm-oil · en:palm-oil-content-unknown · en:vegan · en:maybe-veganlabels_tagvaluenova_groupstring1 · 2 · 3 · 4nutrient_filtersarraynutrition_gradestringa · b · c · d · epageintegerpage_sizenumberquerystringsort_bystringlast_modified_t · unique_scans_n · created_t · popularity_keytraces_tagstringoff_compare_productsSide-by-side nutrition and scoring comparison for 2–10 products per call by barcode; a repeated barcode is compared once, so two identical barcodes yield one row, and barcodes past the 10th distinct one are listed in unprocessed rather than fetched. Returns a normalized table...1 params
Side-by-side nutrition and scoring comparison for 2–10 products per call by barcode; a repeated barcode is compared once, so two identical barcodes yield one row, and barcodes past the 10th distinct one are listed in unprocessed rather than fetched. Returns a normalized table...
barcodes*arrayoff_browse_taxonomyResolve a human term to the canonical Open Food Facts tag ID that off_search_products filters on. Covers categories, labels/certifications, allergens, additives, countries, NOVA groups, and Nutri-Score grades. Pass a search term to resolve against the Open Food Facts vocabular...3 params
Resolve a human term to the canonical Open Food Facts tag ID that off_search_products filters on. Covers categories, labels/certifications, allergens, additives, countries, NOVA groups, and Nutri-Score grades. Pass a search term to resolve against the Open Food Facts vocabular...
facet*stringcategories · labels · allergens · additives · countries · nova_groupslimitnumbersearchstringSponsors
Configuration
OFF_BASE_URLdefault: https://world.openfoodfacts.orgOpen Food Facts API base URL override. Useful for testing against a mock server.
OFF_RATE_LIMIT_PRODUCTdefault: 15Product read rate limit (requests/min). Matches the 15 req/min/IP Open Food Facts documents for product reads.
OFF_RATE_LIMIT_SEARCHdefault: 10Search rate limit (requests/min).
OFF_RATE_LIMIT_TAXONOMYdefault: 10Taxonomy resolution rate limit (requests/min). Applies to the live tag-vocabulary lookups off_browse_taxonomy makes, to tag-value resolution on text searches, and to checking allergen and trace exclusions on every search; a spent budget falls back to the offline sample, or to the
MCP_LOG_LEVELdefault: infoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_TRANSPORT_TYPEdefault: httpSelects the HTTP transport.
MCP_HTTP_HOSTdefault: 127.0.0.1The hostname for the HTTP server.
MCP_HTTP_PORTdefault: 3010The port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHdefault: /mcpThe endpoint path for the MCP server.
MCP_AUTH_MODEdefault: noneAuthentication mode to use: 'none', 'jwt', or 'oauth'.
Readme
@cyanheads/openfoodfacts-mcp-server
Look up food products by barcode, search by keyword, tag, allergen, or nutrition filter, compare products side-by-side, and browse the canonical tag vocabulary via MCP. STDIO or Streamable HTTP.
Details
- Repository
- github.com/cyanheads/openfoodfacts-mcp-server
- Category
- Search & Web Crawling
- Package
@cyanheads/openfoodfacts-mcp-server- Transport
- STDIO, HTTP
- Registry
- MCP registry, active
- Resources
- 1
- Tools verified
- Nov 6, 2026
More from cyanheads
- Reliefweb Mcp Server2
- Smithsonian Mcp Server2
- Stackexchange Mcp Server2
- Wsdot Mcp Server2
- Oecd Mcp Server4
- Socrata Mcp Server4
- Census Mcp Server3
- Who Gho Mcp Server3
- Bls Labor Mcp Server1
- College Scorecard Mcp Server1
- Cpsc Recalls Mcp Server1
- Cyanheads Mcp Server1
- Exchange Rates Mcp Server1
- Fcc Broadband Mcp Server1
- Nist Nvd Mcp Server1
- Pokeapi Mcp Server1
- Reference Data Mcp Server1
- Usda Mcp Server1
- Epa Mcp Server2
- Osv Advisory Mcp Server2
- Gbif Biodiversity Mcp Server1
- Pentest Mcp Server1
- Workflows Mcp Server32
- Noaa Cdo Mcp Server5