MCPSERV.CLUB
deadletterq

deadletterq/mcp-opennutrition

MCP Server

MCP Server: deadletterq/mcp-opennutrition

Stale(55)
118stars
2views
Updated 12 days ago

About

A Model Context Protocol (MCP) server providing access to the comprehensive OpenNutrition food database with 300,000+ food items, nutritional data, and barcode lookups.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Brownie Recipe Example

Overview

The MCP OpenNutrition server delivers a rich, locally‑hosted food and nutrition database to AI assistants such as Claude. By packaging the OpenNutrition dataset—an aggregation of authoritative sources like USDA, CNF, FRIDA, and AUSNUT—this server eliminates the fragmentation that plagues many public nutrition APIs. Developers can now query accurate, up‑to‑date nutritional information without depending on external services or navigating restrictive licenses.

What the Server Solves

Nutrition data is often scattered across multiple, inconsistent sources. Many free APIs rely on user‑generated content or offer limited scopes, while commercial alternatives impose costly licensing and usage limits. OpenNutrition consolidates over 300 000 food items into a single, transparent dataset that is freely available to developers and researchers. The MCP server exposes this data through a simple, well‑defined interface, ensuring that AI assistants can retrieve reliable nutrition facts without compromising privacy or speed.

Core Functionality

  • Search by Name – Find foods using full or partial names, brands, or keywords.
  • Browse Foods – Retrieve paginated listings of all entries for exploratory queries.
  • Get by ID – Fetch detailed nutritional profiles using unique food identifiers.
  • Barcode Lookup – Resolve EAN‑13 barcodes to corresponding food items, enabling quick product identification.

These tools are exposed via MCP’s standard tool invocation format, allowing an assistant to prompt the server for a specific query and receive structured JSON responses. Because all data resides locally, latency is minimal and no network calls are required, preserving user privacy.

Real‑World Use Cases

  • Recipe Generation – Assistants can automatically calculate calorie counts, macro balances, and ingredient substitutions while drafting recipes.
  • Dietary Tracking – Apps can integrate the server to provide instant nutrient breakdowns for logged meals.
  • Health Research – Researchers can query large food datasets to analyze nutrient distributions across populations without external API limits.
  • Retail Checkout – Point‑of‑sale systems can use barcode lookups to instantly display nutrition information on receipts or mobile apps.

Integration with AI Workflows

Adding MCP OpenNutrition to an assistant’s toolset is straightforward: the server runs locally, exposing its tools via the MCP protocol. Once configured, any prompt that requires nutritional data can trigger the appropriate tool (e.g., “search by name” or “barcode lookup”). The assistant receives a structured response and can incorporate it into the conversation, such as generating a balanced meal plan or verifying ingredient compliance. Because the server is self‑contained, developers can embed it in private environments—ideal for HIPAA‑compliant applications or offline use cases.

Standout Advantages

  • Comprehensive Coverage – 300 000+ foods with full macro, micronutrient, and barcode data.
  • Transparency & Licensing – Open source dataset with no commercial restrictions.
  • Privacy‑First Architecture – All queries are processed locally, eliminating external API calls.
  • Fast Response Times – In‑memory access ensures sub‑second lookups, even for complex searches.

By integrating MCP OpenNutrition into your AI assistant’s toolkit, you gain a robust, privacy‑preserving nutrition knowledge base that scales with your application’s needs.