Skip to content
MCP server
Registry

Open Food Facts MCP Server

Search and contribute to the Open Food Facts database.

Open Food Facts scores 68 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 8 tools. Filed under Databases. GitHub shows 4 stars. Package registries report about 412 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by domdomeggMITTypeScript4 stars
Trust score
68Good
Trust score 68 of 100, Good

Good trust

68 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 68 comes from

22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 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.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "domdomegg-openfoodfacts-mcp": {      "command": "npx",      "args": [        "-y",        "openfoodfacts-mcp@2.6.0"      ],      "env": {        "OFF_USER_AGENT": "",        "OFF_USER_ID": "",        "OFF_PASSWORD": "YOUR_OFF_PASSWORD",        "OFF_COUNTRY": ""      }    }  }}

Environment variables

NameRequiredNotes
OFF_USER_AGENTRequiredUser-Agent string in format 'AppName/Version (email)'. Required by the Open Food Facts API.
OFF_USER_IDOptionalOpen Food Facts user ID (optional, needed for write operations).
OFF_PASSWORDSecretOptionalOpen Food Facts password (optional, needed for write operations).
OFF_COUNTRYOptionalCountry subdomain (default: 'world').
MCP_TRANSPORTRequiredTransport type.
OFF_USER_AGENTRequiredUser-Agent string in format 'AppName/Version (email)'. Required by the Open Food Facts API.
OFF_USER_IDOptionalOpen Food Facts user ID (optional, needed for write operations).
OFF_PASSWORDSecretOptionalOpen Food Facts password (optional, needed for write operations).
OFF_COUNTRYOptionalCountry subdomain (default: 'world').

Tools8Tool docs quality grade D

All capabilities

About

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 OFF_USER_AGENT to identify your app (e.g. openfoodfacts-mcp/1.2.0 (you@example.com)). For write operations (adding/editing products, uploading images), also set OFF_USER_ID and OFF_PASSWORD.

Environment Variables

VariableRequiredDescription
OFF_USER_AGENTYesUser-Agent string, e.g. "AppName/1.0 (email@example.com)"
OFF_USER_IDNoOpen Food Facts username (for write operations)
OFF_PASSWORDNoOpen Food Facts password (for write operations)
OFF_COUNTRYNoCountry subdomain (default: world)

Tools

ToolDescriptionAuth
get_productGet product info by barcodeNo
search_products_standardSearch with structured filters (brand, category, Nutri-Score)No
search_products_luceneSearch with Lucene syntax, negation, and boolean logicNo
autocompleteAutocomplete brands, categories, labels, etc.No
add_or_edit_productAdd or update a productYes
upload_imageUpload a product imageYes
select_imageSelect, crop, and rotate an imageYes
call_apiCall any OFF API endpoint directlyDepends
get_api_docsGet OFF API documentationNo

Contributing

Pull requests are welcomed on GitHub! To get started:

  1. Install Git and Node.js
  2. Clone the repository
  3. Install dependencies with npm install
  4. Run npm run test to run tests
  5. Build with npm run build

Releases

Versions follow the semantic versioning spec.

To release:

  1. Use npm version <major | minor | patch> to bump the version
  2. Run git push --follow-tags to push with tags
  3. Wait for GitHub Actions to publish to the NPM registry.

Frequently asked questions

What is Open Food Facts MCP Server?

Search and contribute to the Open Food Facts database.

How do I install Open Food Facts 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. Open Food Facts MCP Server runs locally from the npm package openfoodfacts-mcp with the command npx -y openfoodfacts-mcp@2.6.0.

Is Open Food Facts MCP Server free and open source?

Yes. Open Food Facts MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

What tools does Open Food Facts MCP Server provide?

Open Food Facts MCP Server provides 8 tools, including add_or_edit_product, call_api, get_api_docs, and get_product. See the full tool list for descriptions and parameters.

How is Open Food Facts MCP Server's trust score calculated?

Open Food Facts MCP Server scores 68 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

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server