openfoodfacts-mcp-server MCP Server
Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.
openfoodfacts-mcp-server scores 72 (Good), licensed Apache-2.0 and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 5 tools. Filed under Search. GitHub shows 2 stars. Package registries report about 1,114 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
72 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade D
54/100 for listing completeness. Lost points: no README, 4 of 5 tools barely described, short summary.
How quality is graded
Where the 72 comes from
22 + 20 + 7 + 10 + 10 + 3 = 72. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 7 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 10 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "cyanheads-openfoodfacts-mcp-server": { "command": "npx", "args": [ "-y", "@cyanheads/openfoodfacts-mcp-server@0.5.1" ], "env": { "OFF_BASE_URL": "https://world.openfoodfacts.org", "OFF_RATE_LIMIT_PRODUCT": "15", "OFF_RATE_LIMIT_SEARCH": "10", "OFF_RATE_LIMIT_TEXT_SEARCH": "10", "OFF_RATE_LIMIT_TAXONOMY": "10", "MCP_LOG_LEVEL": "info" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
OFF_BASE_URL | Optional | Open Food Facts API base URL override. Useful for testing against a mock server. |
OFF_RATE_LIMIT_PRODUCT | Optional | Product read rate limit (requests/min). Matches the 15 req/min/IP Open Food Facts documents for product reads. |
OFF_RATE_LIMIT_SEARCH | Optional | Tag-only search rate limit (requests/min). Applies to searches by tag filters alone that read /api/v2/search. Matches the 10 req/min/IP Open Food Facts documents for that endpoint. |
OFF_RATE_LIMIT_TEXT_SEARCH | Optional | Text search rate limit (requests/min). Applies to searches carrying a query, nutrient filters, or an ingredient filter, which read search.openfoodfacts.org, and to the text index date check sent beside them. |
OFF_RATE_LIMIT_TAXONOMY | Optional | Taxonomy 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 tag value as normalized, rather than failing, except that an exclusion it could not check is refused as retryable. |
MCP_LOG_LEVEL | Optional | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
MCP_TRANSPORT_TYPE | Optional | Selects the HTTP transport. |
OFF_BASE_URL | Optional | Open Food Facts API base URL override. Useful for testing against a mock server. |
OFF_RATE_LIMIT_PRODUCT | Optional | Product read rate limit (requests/min). Matches the 15 req/min/IP Open Food Facts documents for product reads. |
OFF_RATE_LIMIT_SEARCH | Optional | Tag-only search rate limit (requests/min). Applies to searches by tag filters alone that read /api/v2/search. Matches the 10 req/min/IP Open Food Facts documents for that endpoint. |
OFF_RATE_LIMIT_TEXT_SEARCH | Optional | Text search rate limit (requests/min). Applies to searches carrying a query, nutrient filters, or an ingredient filter, which read search.openfoodfacts.org, and to the text index date check sent beside them. |
OFF_RATE_LIMIT_TAXONOMY | Optional | Taxonomy 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 tag value as normalized, rather than failing, except that an exclusion it could not check is refused as retryable. |
MCP_HTTP_HOST | Optional | The hostname for the HTTP server. |
MCP_HTTP_PORT | Optional | The port to run the HTTP server on. |
MCP_HTTP_ENDPOINT_PATH | Optional | The endpoint path for the MCP server. |
MCP_AUTH_MODE | Optional | Authentication mode to use: 'none', 'jwt', or 'oauth'. |
MCP_LOG_LEVEL | Optional | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
Tools5Tool docs quality grade F
All capabilitiesctx.logtoolrequest-scoped logging, ctx.state for tenant-scoped storage
<sub>tool</sub>
<sub>tool</sub>
off_get_producttool<sub>tool</sub>
<sub>tool</sub>
About
Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.
Frequently asked questions
What is openfoodfacts-mcp-server MCP Server?
Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.
How do I install openfoodfacts-mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. openfoodfacts-mcp-server MCP Server runs locally from the npm package @cyanheads/openfoodfacts-mcp-server with the command npx -y @cyanheads/openfoodfacts-mcp-server@0.5.1.
Is openfoodfacts-mcp-server MCP Server free and open source?
Yes. openfoodfacts-mcp-server MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does openfoodfacts-mcp-server MCP Server support remote (HTTP) connections?
Yes. openfoodfacts-mcp-server MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does openfoodfacts-mcp-server MCP Server provide?
openfoodfacts-mcp-server MCP Server provides 5 tools, including ctx.log, off_browse_taxonomy, off_compare_products, and off_get_product. See the full tool list for descriptions and parameters.
How is openfoodfacts-mcp-server MCP Server's trust score calculated?
openfoodfacts-mcp-server MCP Server scores 72 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.