Opennutrition

Developer toolsDatabases

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

Your AI app calls the Opennutrition MCP server, which does the developer tools and databases work and sends the result back to the chat.

About Opennutrition

Opennutrition is a community MCP server from deadletterq, filed in our directory under developer tools and databases. MCP server providing access to the comprehensive OpenNutrition food database with 300,000+ food items, nutritional data, and barcode lookups.

At a glance

Publisher
deadletterq (community)
Runs
See the README for setup
Written in
TypeScript
License
MIT
GitHub stars
217

How to set up Opennutrition

  1. Follow the install steps in the Opennutrition README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Opennutrition README for keys or settings; the registry lists none that Opennutrition requires.
  3. Add Opennutrition to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Opennutrition tools to confirm the connection.
  5. Run one read-only task with Opennutrition first, and keep your app asking before each tool call until the results look right.

Opennutrition compared with similar servers

  • Bsl Platform Context by alkoleft has fewer GitHub stars than Opennutrition (216 against 217); both are community servers, and both run locally.
  • Oh My Cassette by Cassette-Editor has fewer GitHub stars than Opennutrition (217 against 217); both are community servers, and both run locally.
  • Agent Vscreen by kilolonion has fewer GitHub stars than Opennutrition (215 against 217); both are community servers, and both run locally.

Before you connect Opennutrition

  • Give Opennutrition its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Opennutrition tool call until you trust what it does with them.
  • Treat text that Opennutrition fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Opennutrition on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Opennutrition

How marketing and sales teams put Opennutrition to work, by company size. Pick the size closest to yours and start Opennutrition on one use case.

Small business

  • A small business with a developer can use Opennutrition to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Opennutrition to explain and fix a marketing site issue without context switching between tools.
  • A small business with its own app can ask Opennutrition plain questions about customers and orders, without writing SQL.
  • Opennutrition runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Opennutrition to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Opennutrition to keep scripts and automations documented and versioned as they change.
  • Marketing analysts can connect Opennutrition to answer campaign questions from the warehouse directly, instead of waiting on the data team's queue.
  • Start Opennutrition on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Opennutrition with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Opennutrition so web and marketing engineering share one reviewed way of working with AI.
  • Enterprises should point Opennutrition at a read replica with a read-only role, so agents query freely without risk to production data.
  • Opennutrition is a community server, so have security review the code and pin a version before Opennutrition touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Opennutrition README

From deadletterq/mcp-opennutrition on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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

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

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:

Questions about Opennutrition

What is the Opennutrition MCP server?

MCP server providing access to the comprehensive OpenNutrition food database with 300,000+ food items, nutritional data, and barcode lookups. Opennutrition is maintained by deadletterq on GitHub at deadletterq/mcp-opennutrition, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Opennutrition MCP server?

Opennutrition doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (deadletterq/mcp-opennutrition). Like most servers, Opennutrition ends with a command or URL you paste into your AI app's MCP config.

Does Opennutrition need an API key?

The registry lists no required keys for Opennutrition. Check the Opennutrition README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Opennutrition an official MCP server?

No. Opennutrition is a community server maintained by deadletterq. Community servers can be excellent; read the code and the open issues before you give Opennutrition access to company data.

What license is Opennutrition under?

Opennutrition is released under the MIT license, according to its GitHub repository. The license covers the code of Opennutrition; the service it connects to has its own terms.