OpenNutritionSAFE
MCP server providing access to the comprehensive OpenNutrition food database with 300,000+ food items, nutritional data, and barcode lookups
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Model Context Protocol (MCP) server providing access to the comprehensive OpenNutrition food database with 300,000+ food items, nutritional data, and barcode lookups.
OpenNutrition addresses the longstanding issues with fragmented and unreliable nutritional data by combining authoritative public sources (USDA, CNF, FRIDA, AUSNUT). Unlike other databases that suffer from inconsistent user-generated content or restrictive commercial licensing, OpenNutrition provides transparent, comprehensive, and accurate nutritional data that's freely accessible to developers and researchers.
Tools
- Search by Name: Find foods by name, brand, or partial matches
- Browse Foods: Get paginated lists of all available foods
- Get by ID: Retrieve detailed nutritional information using food IDs
- Barcode Lookup: Find foods using EAN-13 barcodes
Installation
Docker (recommended)
The easiest way to run the server is via Docker. No build steps required.
Run the container:
docker run --rm -p 9113:3000 deadletterq/mcp-opennutrition
Then add to your MCP configuration:
"mcp-opennutrition": {
"type": "streamable-http",
"url": "http://localhost:9113"
}From source
- Install dependencies:
npm install
- Build the project:
npm run build
- Add to your MCP configuration (set the same version of node that you used to build the project):
"mcp-opennutrition": {
"command": "/Users/YOUR.USERNAME/.nvm/versions/node/v20.19.0/bin/node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-opennutrition/build/index.js"
]
}Data Source
This server uses the OpenNutrition dataset.
The dataset provides comprehensive nutritional profiles including macronutrients, vitamins, and minerals.
Usage
Once configured, the MCP server runs fully locally on your machine and automatically provides
123c5f999c6cOBSERVED · 2026-10-06Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mcp-opennutrition -- npx -y [email protected]
{
"mcpServers": {
"mcp-opennutrition": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (4)
4 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get-food-by-ean13 | read | |
get-food-by-id | read | |
get-foods | read | |
search-food-by-name | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
@modelcontextprotocol/sdk, better-sqlite3, papaparse, yauzl, zod, @types/better-sqlite3, @types/node, @types/papaparse
data/opennutrition-dataset-2025.1.zip
Gates applied: no_behavioural_pass.
123c5f999c6cfull audit observations/trust-audit/mcp-server/deadletterq__opennutrition.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | 123c5f999c6c | SAFE | B | 89 | first audit |
Questions
What is the OpenNutrition MCP server?
MCP server providing access to the comprehensive OpenNutrition food database with 300,000+ food items, nutritional data, and barcode lookups
What tools does OpenNutrition expose?
4 in total: 4 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is OpenNutrition safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does OpenNutrition need?
No credential environment variables were found in its source, so it appears to need none.
How does OpenNutrition run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as mcp-opennutrition at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (123c5f999c6c), read on 2026-10-06. The repository is watched and re-audited when it changes.