Openfoodfacts MCP Server
by cyanheadsio.github.cyanheads/openfoodfacts-mcp-serverv0.3.7
Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.
context tax
queued
security
queued
cold start
queued
freshness
Active2d ago
Install Openfoodfacts MCP server
Install in Claude Code
claude mcp add openfoodfacts -- npx -y @cyanheads/openfoodfacts-mcp-serverInstall in Cursor
{
"mcpServers": {
"openfoodfacts": {
"command": "npx",
"args": [
"-y",
"@cyanheads/openfoodfacts-mcp-server"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"openfoodfacts": {
"command": "npx",
"args": [
"-y",
"@cyanheads/openfoodfacts-mcp-server"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"openfoodfacts": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/openfoodfacts-mcp-server"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"openfoodfacts": {
"command": "npx",
"args": [
"-y",
"@cyanheads/openfoodfacts-mcp-server"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| OFF_BASE_URL | — | — | Open Food Facts API base URL override. Useful for testing against a mock server. |
| OFF_RATE_LIMIT_PRODUCT | — | — | Product read rate limit (requests/min). Matches the 15 req/min/IP Open Food Facts documents for product reads. |
| OFF_RATE_LIMIT_SEARCH | — | — | Search rate limit (requests/min). |
| OFF_RATE_LIMIT_TAXONOMY | — | — | 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 | — | — | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
| MCP_TRANSPORT_TYPE | — | — | Selects the HTTP transport. |
| MCP_HTTP_HOST | — | — | The hostname for the HTTP server. |
| MCP_HTTP_PORT | — | — | The port to run the HTTP server on. |
| MCP_HTTP_ENDPOINT_PATH | — | — | The endpoint path for the MCP server. |
| MCP_AUTH_MODE | — | — | Authentication mode to use: 'none', 'jwt', or 'oauth'. |
Remote endpoints
- streamable-http
https://openfoodfacts.caseyjhand.com/mcp
Freshness
Active — last maintenance signal 2d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-08 · 2d ago · GitHub
Latest release
2026-10-08 · 2d ago · GitHub · v0.3.7
Package published
no data · npm/PyPI
Registry entry updated
2026-10-08 · 2d ago · official registry · v0.3.7
FAQ
›How do I install the Openfoodfacts MCP server in Claude Code?
Run: claude mcp add openfoodfacts -- npx -y @cyanheads/openfoodfacts-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Openfoodfacts require an API key?
No required environment variables are declared in its published metadata.
›Can I use Openfoodfacts as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is Openfoodfacts in the official MCP registry?
Yes, as io.github.cyanheads/openfoodfacts-mcp-server.
Alternatives to Openfoodfacts
Other e-commerce MCP servers.