Skip to content
Back to search

mcp-opennutrition

MCP server providing access to the comprehensive OpenNutrition food database with 300,000+ food items, nutritional data, and barcode lookups

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/deadletterq--mcp-opennutrition/badge.svg)](/listings/deadletterq--mcp-opennutrition)

HTML

<a href="/listings/deadletterq--mcp-opennutrition"><img src="/api/listings/deadletterq--mcp-opennutrition/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

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

1. Install dependencies:

   npm install

2. Build the project:

   npm run build

3. 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"
       ]
   }

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 69 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # MCP OpenNutrition
  2. A Model Context Protocol (MCP) server providing access to the comprehensive OpenNutrition food database with 300,000+ food items, nutritional data, and barcode lookups.
  3. 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.
  4. ## Tools
  5. - **Search by Name**: Find foods by name, brand, or partial matches
  6. - **Browse Foods**: Get paginated lists of all available foods
  7. - **Get by ID**: Retrieve detailed nutritional information using food IDs
  8. - **Barcode Lookup**: Find foods using EAN-13 barcodes
  9. ## Installation
  10. ### Docker (recommended)
  11. The easiest way to run the server is via Docker. No build steps required.
  12. Run the container:
  13. ```bash
  14. docker run --rm -p 9113:3000 deadletterq/mcp-opennutrition
  15. ```
  16. Then add to your MCP configuration:
  17. ```json
  18. "mcp-opennutrition": {
  19. "type": "streamable-http",
  20. "url": "http://localhost:9113"
  21. }
  22. ```
  23. ### From source
  24. 1. Install dependencies:
  25. ```bash
  26. npm install
  27. ```
  28. 2. Build the project:
  29. ```bash
  30. npm run build
  31. ```
  32. 3. Add to your MCP configuration (set the same version of node that you used to build the project):
  33. ```json
  34. "mcp-opennutrition": {
  35. "command": "/Users/YOUR.USERNAME/.nvm/versions/node/v20.19.0/bin/node",
  36. "args": [
  37. "/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-opennutrition/build/index.js"
  38. ]
  39. }
  40. ```
  41. ## Data Source
  42. This server uses the [OpenNutrition dataset](https://www.opennutrition.app/).
  43. The dataset provides comprehensive nutritional profiles including macronutrients, vitamins, and minerals.
  44. ## Usage
  45. Once configured, the MCP server runs fully locally on your machine and automatically provides food and nutrition query capabilities to Claude/Cline. All data processing and queries happen locally with no external API calls, ensuring privacy and fast response times.
  46. ## Example
  47. Here is an example of how Claude uses the tool for a brownie recipe:
  48. ![Brownie Recipe Example](readme_example.png)

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.