OpenNutrition

v1.0.0Data Science & MLstable

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.

mcp-opennutritionmcpai-integration
Share:
182
Stars
0
Downloads
0
Weekly
0/5

What is OpenNutrition?

OpenNutrition is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 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...

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.

This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Provides access to a comprehensive food database with 300,00

Use Cases

Search 300,000+ foods and get nutritional data locally.
Scan barcodes and lookup nutrition information with privacy.
deadletterq

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedMay 17, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-opennutrition

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use OpenNutrition

MCP OpenNutrition gives AI assistants access to a local database of 300,000+ food items sourced from authoritative datasets including USDA, CNF, FRIDA, and AUSNUT, covering macronutrients, vitamins, and minerals. All processing happens on-device with no external API calls, making it both fast and private. It exposes tools to search foods by name or brand, browse the full catalogue with pagination, retrieve detailed nutrition by ID, and look up products by EAN-13 barcode — making it ideal for nutrition tracking, recipe analysis, and dietary planning applications.

Prerequisites

  • Docker installed (recommended deployment method) or Node.js 18+ for source builds
  • An MCP-compatible client such as Claude Desktop or Claude Code
  • No external API keys required — the food database is bundled locally
1

Pull and run the Docker image

The fastest way to start is pulling the pre-built Docker image. It starts an HTTP server on port 3000 that the MCP client connects to.

docker run --rm -p 9113:3000 deadletterq/mcp-opennutrition
2

Alternative: build from source

If you prefer a local Node.js setup, clone the repository, install dependencies, and build the TypeScript project.

git clone https://github.com/deadletterq/mcp-opennutrition
cd mcp-opennutrition
npm install
npm run build
3

Configure your MCP client for Docker

Add the server to your MCP client config. When using Docker the transport is streamable-http pointing to localhost:9113.

4

Configure your MCP client for source builds

For a local Node.js build, use the stdio transport pointing directly at the built index.js file.

5

Test a food search

Ask your AI assistant to search for a food item. The server will query the local database and return nutritional details without any network calls.

OpenNutrition Examples

Client configuration (Docker)

Use this configuration when running the server via Docker on port 9113. Add to your claude_desktop_config.json.

{
  "mcpServers": {
    "mcp-opennutrition": {
      "type": "streamable-http",
      "url": "http://localhost:9113"
    }
  }
}

Client configuration (source build)

Use this configuration when running from a local Node.js build. Replace the paths with your actual locations.

{
  "mcpServers": {
    "mcp-opennutrition": {
      "command": "/usr/local/bin/node",
      "args": ["/path/to/mcp-opennutrition/build/index.js"]
    }
  }
}

Prompts to try

Example prompts that use the food search, barcode lookup, and nutrition detail tools.

- "What are the nutritional facts for a medium banana?"
- "Search for foods containing 'oat' and show macronutrients"
- "Look up the barcode 5000112546415 and tell me what it is and its calorie count"
- "Compare the protein content of chicken breast vs tofu per 100g"
- "How many calories are in 200g of cooked brown rice?"

Troubleshooting OpenNutrition

Docker container starts but MCP client cannot connect

Confirm the container is listening on the mapped port with 'docker ps'. The config url must be http://localhost:9113 — not port 3000, which is the internal container port.

Food search returns no results

The database uses English food names from USDA and other English-language sources. Try shorter or more generic search terms (e.g. 'apple' instead of 'fresh Fuji apple').

Barcode lookup returns nothing

The server supports EAN-13 barcodes indexed in the bundled database. Not all regional products are included — fall back to a name search if the barcode is not found.

Frequently Asked Questions about OpenNutrition

What is OpenNutrition?

OpenNutrition is a Model Context Protocol (MCP) server that 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. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install OpenNutrition?

Follow the installation instructions on the OpenNutrition GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with OpenNutrition?

OpenNutrition works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is OpenNutrition free to use?

Yes, OpenNutrition is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Data Science & ML MCP Servers

Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-opennutrition": { "command": "npx", "args": ["-y", "mcp-opennutrition"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use OpenNutrition?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides