MCP OpenNutrition

MCP OpenNutrition

Provides local, privacy-preserving access to a comprehensive food and nutrition database via the Model Context Protocol.

134
Stars
11
Forks
134
Watchers
0
Issues
MCP OpenNutrition is a Model Context Protocol (MCP) server offering access to a large, authoritative nutrition database with over 300,000 food items sourced from trusted public datasets. It enables searching by name, browsing, detailed nutritional lookups by ID, and barcode scanning, all running locally for privacy and low latency. The tool is designed for seamless integration with AI systems that follow the MCP standard, such as Claude/Cline, to enhance food and nutrition query capabilities.

Key Features

MCP-compliant local server
Search foods by name or brand
Browse and paginate all available foods
Retrieve detailed nutritional information via food ID
Barcode (EAN-13) food lookup
Uses authoritative public nutrition datasets
Privacy-preserving; operates fully offline
Seamless integration with Claude/Cline and similar AI systems
Fast response time with no external API dependency
Comprehensive macro and micronutrient data

Use Cases

Integrating real-time nutritional data lookup into AI assistants
Building dietary analysis or meal planning applications
Supporting barcode-based food tracking for health apps
Assisting researchers in accessing large-scale nutrition datasets
Providing offline nutrition data solutions for privacy-sensitive environments
Enhancing smart kitchen or grocery devices with nutrition intelligence
Assisting in automated food logging for fitness platforms
Facilitating educational tools that require comprehensive nutrition data
Supplying nutrition facts retrieval for recipe recommendation systems
Developing data-driven clinical nutrition decision support tools

README

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:

    bash
    npm install
    
  2. Build the project:

    bash
    npm run build
    
  3. Add to your Claude/Cline MCP configuration (set the same version of node that you used to build the project):

    json
    "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

Star History

Star History Chart

Repository Owner

Repository Details

Language TypeScript
Default Branch main
Size 61,905 KB
Contributors 2
License GNU General Public License v3.0
MCP Verified Nov 12, 2025

Programming Languages

TypeScript
79.49%
JavaScript
20.51%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Campertunity MCP Server

    Campertunity MCP Server

    Model Context Protocol server for AI-driven camping and outdoor recreation data

    Implements the Model Context Protocol (MCP) to provide AI models with structured access to camping and outdoor recreation data. Offers tools for searching, filtering, and booking campgrounds and sites based on a wide range of criteria. Enhances data accuracy with AI and aggregates information from multiple sources, enabling dynamic, real-time queries and bookings. Ideal for integrating intelligent camping experiences into AI-driven applications.

    • 11
    • MCP
    • campertunity/mcp-server
  • ShopSavvy Data API MCP Server

    ShopSavvy Data API MCP Server

    MCP server providing AI assistants with live product data, pricing, and price tracking from ShopSavvy.

    ShopSavvy Data API MCP Server implements the Model Context Protocol to enable AI assistants to access and interact with ShopSavvy's extensive product database. It supports product lookup, retrieves current and historical pricing from multiple retailers, and allows scheduled monitoring of product prices. The server also manages API usage analytics and credit consumption, offering robust error handling and developer tools for integration.

    • 5
    • MCP
    • shopsavvy/shopsavvy-mcp-server
  • Exa MCP Server

    Exa MCP Server

    Fast, efficient web and code context for AI coding assistants.

    Exa MCP Server provides a Model Context Protocol (MCP) server interface that connects AI assistants to Exa AI’s powerful search capabilities, including code, documentation, and web search. It enables coding agents to retrieve precise, token-efficient context from billions of sources such as GitHub, StackOverflow, and documentation sites, reducing hallucinations in coding agents. The platform supports integration with popular tools like Cursor, Claude, and VS Code through standardized MCP configuration, offering configurable access to various research and code-related tools via HTTP.

    • 3,224
    • MCP
    • exa-labs/exa-mcp-server
  • National Parks MCP Server

    National Parks MCP Server

    Real-time access to U.S. National Parks data via the Model Context Protocol.

    Provides an MCP-compliant API server for real-time information on U.S. National Parks. Offers endpoints to query park details, alerts, activities, visitor centers, campgrounds, and events. Designed for easy integration with AI agents and tools that utilize the Model Context Protocol for context management.

    • 35
    • MCP
    • KyrieTangSheng/mcp-server-nationalparks
  • NCBI Literature Search MCP Server

    NCBI Literature Search MCP Server

    Seamless PubMed literature search via Model Context Protocol server.

    NCBI Literature Search MCP Server provides a Model Context Protocol (MCP) interface to search the vast PubMed database using natural language queries. It enables AI assistants to conduct comprehensive and advanced literature searches across biological and biomedical disciplines, returning metadata such as abstracts, author lists, MeSH terms, and DOIs. Designed for integration with AI tools, it supports advanced query capabilities and streamlines literature review and research discovery processes.

    • 6
    • MCP
    • vitorpavinato/ncbi-mcp-server
  • OpenTK Model Context Protocol Server

    OpenTK Model Context Protocol Server

    A standardized interface for LLMs to access Dutch parliamentary data.

    OpenTK Model Context Protocol Server provides a bridge between large language models and Dutch parliamentary data using the Model Context Protocol (MCP). It enables AI systems to access, search, and analyze parliamentary documents, debates, and member information from the Tweede Kamer through a unified and structured interface. By leveraging the @modelcontextprotocol/sdk, it ensures consistent context management for model interactions. Built atop the OpenTK project, it delivers streamlined access to extensive open government datasets.

    • 16
    • MCP
    • r-huijts/opentk-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results