Skip to main content
Glama

MCP OpenNutrition

by deadletterq
GPL 3.0
74

MCP OpenNutrition

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

  1. Install dependencies:
    npm install
  2. Build the project:
    npm run build
  3. Add to your Claude/Cline 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 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.

Example

Here is an example of how Claude uses the tool for a brownie recipe:

Brownie Recipe Example

-
security - not tested
A
license - permissive license
-
quality - not tested

Provides access to a comprehensive food database with 300,000+ items, enabling nutritional data lookups, food searches, and barcode scanning with all processing happening locally for privacy and speed.

  1. Tools
    1. Installation
      1. Data Source
        1. Usage
          1. Example

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              ClickHouse database integration with schema inspection and query capabilities
              Last updated -
              3
              381
              Python
              Apache 2.0
              • Apple
            • A
              security
              A
              license
              A
              quality
              Provides tools for listing and retrieving content from different knowledge bases using semantic search capabilities.
              Last updated -
              2
              10
              TypeScript
              The Unlicense
              • Linux
              • Apple
            • -
              security
              -
              license
              -
              quality
              A Model Context Protocol server that enables Claude to search and access detailed nutritional information from the USDA's FoodData Central database.
              Last updated -
              1
              TypeScript
            • A
              security
              A
              license
              A
              quality
              A service that provides cafeteria dining statistics, allowing users to query breakfast and lunch attendance numbers within a specified date range.
              Last updated -
              1
              Python
              MIT License
              • Linux
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/deadletterq/mcp-opennutrition'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server