← Back to directory
O

OpenNutrition MCP Server

Community
Access the OpenNutrition food database with 300,000+ items
Category
Database #57 of 58
Stars
★ 207 Very popular
Transport
Streamable HTTP · stdio (local process)
Runtime
Docker · Node.js
Credentials
No credential needed
License
MIT
Last commit
Tools
4

Static review · not runListed 2026-08-07

FMRS 33/100 · D · Weakest Reliability 6/20 — Read the FMRS scoring method →

Fit and risk

What it can accessConnects to a database

Best for

  • Developers requiring reliable nutritional data
  • Researchers
  • Health app developers

Not for

  • Those needing real-time web data
  • Those needing user-generated content databases

Required permissions

  • Local file access (possible)
  • Network access (for dataset download, but no external calls at runtime)

Risks and side effects

  • Local data storage may consume space
  • Risk of outdated data

Setup

Before you start

Runtime:Docker · Node.js

Using Docker (recommended): run docker run --rm -p 9113:3000 deadletterq/mcp-opennutrition, then add to MCP config: {"mcp-opennutrition": { "type": "streamable-http", "url": "http://localhost:9113" }}. From source: in the repo root, run npm install and npm run build, then specify node path and the built index.js in MCP config.

Check that it works

After configuration, the client's tool list should show Search by Name, Browse Foods, Get by ID, and Barcode Lookup; searching for 'apple' and getting nutritional data back confirms the connection works.

Troubleshooting

  1. Check that the Docker container is running
  2. Verify the URL and port in MCP config
  3. For source install, ensure node version and paths are correct

Things to try

Once connected, you can ask your AI assistant things like:

  • Search the food database for 'brownie' and show the nutritional info
  • Look up the food for EAN-13 barcode 5449000000996
  • Browse the first 20 foods in the database
  • Get detailed macronutrients, vitamins, and minerals for food ID 12345

Tools 4

Search by Name read-only
Find foods by name, brand, or partial matches
Browse Foods read-only
Get paginated lists of all available foods
Get by ID read-only
Retrieve detailed nutritional information using food IDs
Barcode Lookup read-only
Find foods using EAN-13 barcodes

Use cases

Query nutritional information for foods
Identify foods quickly via barcode
Search for foods for recipes or meal planning

Supported clients

Claude

Listed from the project's documentation, not tested by this site.

Overview

A Model Context Protocol (MCP) server providing access to the comprehensive OpenNutrition food database with 300,000+ food items, nutritional data, and barcode lookups. It aggregates authoritative public sources (USDA, CNF, FRIDA, AUSNUT) to provide transparent, comprehensive, and accurate nutritional data, addressing issues of fragmented and unreliable data.

Similar servers

Source revision 724984a7308d Data synced 2026-10-12 Read the FMRS scoring method