Open Food Facts MCP Server
by domdomeggio.github.domdomegg/openfoodfacts-mcpv2.6.0
Search and contribute to the Open Food Facts database.
context tax
queued
security
queued
cold start
queued
freshness
Active30d ago
Install Open Food Facts MCP server
Install in Claude Code
claude mcp add openfoodfacts-domdomegg -e OFF_USER_AGENT='<off-user-agent>' -e OFF_PASSWORD='<off-password>' -- npx -y openfoodfacts-mcpInstall in Cursor
{
"mcpServers": {
"openfoodfacts-domdomegg": {
"command": "npx",
"args": [
"-y",
"openfoodfacts-mcp"
],
"env": {
"OFF_USER_AGENT": "<off-user-agent>",
"OFF_PASSWORD": "<off-password>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"openfoodfacts-domdomegg": {
"command": "npx",
"args": [
"-y",
"openfoodfacts-mcp"
],
"env": {
"OFF_USER_AGENT": "<off-user-agent>",
"OFF_PASSWORD": "<off-password>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"openfoodfacts-domdomegg": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"openfoodfacts-mcp"
],
"env": {
"OFF_USER_AGENT": "<off-user-agent>",
"OFF_PASSWORD": "<off-password>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"openfoodfacts-domdomegg": {
"command": "npx",
"args": [
"-y",
"openfoodfacts-mcp"
],
"env": {
"OFF_USER_AGENT": "<off-user-agent>",
"OFF_PASSWORD": "<off-password>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| OFF_USER_AGENT | yes | — | User-Agent string in format 'AppName/Version (email)'. Required by the Open Food Facts API. |
| OFF_USER_ID | — | — | Open Food Facts user ID (optional, needed for write operations). |
| OFF_PASSWORD | — | yes | Open Food Facts password (optional, needed for write operations). |
| OFF_COUNTRY | — | — | Country subdomain (default: 'world'). |
| MCP_TRANSPORT | yes | — | Transport type. |
Freshness
Active — last maintenance signal 30d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-09 · 30d ago · GitHub
Latest release
2026-07-09 · 3mo ago · GitHub · v2.6.0
Package published
no data · npm/PyPI
Registry entry updated
2026-07-09 · 3mo ago · official registry · v2.6.0
FAQ
›How do I install the Open Food Facts MCP server in Claude Code?
Run: claude mcp add openfoodfacts-domdomegg -e OFF_USER_AGENT='<off-user-agent>' -e OFF_PASSWORD='<off-password>' -- npx -y openfoodfacts-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Open Food Facts require an API key?
Yes. It expects OFF_USER_AGENT, MCP_TRANSPORT, OFF_PASSWORD, of which 1 is a secret.
›Can I use Open Food Facts as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is Open Food Facts in the official MCP registry?
Yes, as io.github.domdomegg/openfoodfacts-mcp.
Alternatives to Open Food Facts
Other database MCP servers.