Nutrition MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Nutrition MCPlog my lunch: 2 chicken tacos and a side of black beans"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Nutrition MCP
Introduction
A calorie and macronutrient tracker built around an MCP server. A single Bun process exposes a streamable-HTTP MCP API backed by the OpenNutrition dataset (SQLite + FTS search) and serves a Vue 3 web app — search foods, build recipes, compute macros, and log what you eat.
Tools exposed to your LLM client:
searchIngredient— FTS-backed food search with category/tag filtersgetIngredientMacros— per-100g and per-serving nutrition with measured/unmeasured flagscomputeRecipeMacros— deterministic macro summation for a recipefilterFoods— nutrient ranges and dietary presets (keto, high-protein, …)convertUnits— unit conversion, food-aware where possible
All arithmetic happens server-side, so the model never does math or invents nutrition data. Single-user by design: logs, recipes, and favorites live in your browser's IndexedDB and never leave your machine.
Related MCP server: nutrition-mcp
Usage
Requirements: Bun and Docker (for server deployment only).
Clone repository
Download latest OpenNutrition dataset from https://www.opennutrition.app/download and extract to local directory (e.g.
external/opennutrition-dataset-YYYY/)(First run only) Install dependencies and create OpenNutrition.sqlite database
bun install && bun run build:sqlite external/opennutrition-dataset-2025.1/opennutrition_foods.tsv
The TSV is gitignored — obtain the OpenNutrition dataset release first and place it at that path. The build writes opennutrition.sqlite next to the TSV.
Copy the database next to
docker-compose.ymlor adjust the bind mount path if you keep it elsewhere:
mkdir -p data && cp external/opennutrition-dataset-2025.1/opennutrition.sqlite data/Start the container:
docker compose up -d --build
Web app:
http://<host>:3000/nutrition-tracker/MCP endpoint:
http://<host>:3000/mcp— point your chat client (Claude Desktop, OpenWebUI, etc.) at this URL
License
See LICENSE.md
Contributing
See CONTRIBUTING.md
This server cannot be deployed
Maintenance
Related MCP Connectors
Food logging, nutrition summaries, and meal photo calorie and macro estimates.
Log meals, check calories and macros, set up a nutrition plan, and search foods.
Food and nutrition data: search, macros, and comparisons
Unlock the power of food transparency with our Open Food Facts MCP server. Easily look up any food
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA remote MCP server for personal nutrition tracking that enables logging meals, tracking macros, and reviewing nutrition history through conversation.114 npm63MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for USDA nutrition data lookup, meal logging, and daily macro tracking.114 npmMIT
- AlicenseBqualityAmaintenanceA local-first nutrition MCP server for food search, barcode lookup, meal estimation, intake logging, hydration, and nutrition coaching workflows.46127 npm9MIT
- AlicenseAqualityAmaintenanceMCP server for Cronometer nutrition tracking, enabling food diary management, nutrition data retrieval, food search, and biometric tracking via Cronometer's mobile REST API.1955MIT