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-mcp log 2 servings of oatmeal for breakfast"
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
USDA FoodData Central MCP server for nutrition lookup, meal logging, and daily macro tracking.
Setup
Get a free API key at https://fdc.nal.usda.gov/api-key-signup
Set
USDA_API_KEYenvironment variable (or it falls back toDEMO_KEY)
cp .env.example .env
# Edit .env with your keyRelated MCP server: nutrition-mcp
Usage
node src/server.js # stdio MCP serverTools
nutrition
Action | Description | Key Params |
| Search foods by name |
|
| Full nutrition details |
|
| Side-by-side macro comparison |
|
meal_log
Action | Description | Key Params |
| Log a food eaten |
|
| List entries for a date |
|
| Remove an entry |
|
| Macro totals for a day |
|
| Weekly averages |
|
targets
Action | Description | Key Params |
| Set daily macro targets |
|
| View current targets | — |
| Progress vs targets |
|
Architecture
src/
server.js — MCP stdio server
usda-client.js — USDA API client with 24h cache
meal-log.js — Local meal log storage (~/.nutrition-mcp/logs/)
targets.js — Macro targets storage (~/.nutrition-mcp/targets.json)
tools/
nutrition.js — nutrition tool handler
meal-log.js — meal_log tool handler
targets.js — targets tool handler
test/
server.test.js — Unit testsTesting
npm testLicense
MIT © Aaron Sachs
Available Tools
3 toolsmeal_logB
Log meals, view daily/weekly summaries, manage food diary. Actions: log, list, delete, daily_summary, weekly_summary.
Inputs: action (required), date, fdcId, notes, +5 more.
nutritionB
Search USDA FoodData Central, get nutrition details, or compare foods. Actions: search, get, compare.
Inputs: action (required), fdcId, query, fdcIds, +3 more.
targetsB
Set and track daily macro nutrient targets. Actions: set, get, progress.
Inputs: action (required), fat, date, carbs, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools map to clearly distinct domains: food database lookup, meal diary management, and macro target tracking. The action lists within each tool are specific and do not overlap across tools, so an agent can easily select the right one.
Names follow a consistent resource-noun pattern (nutrition, meal_log, targets) with explicit action parameters rather than a strict verb_noun convention. Minor inconsistency in singular/plural and compound naming, but the pattern is predictable.
Three well-scoped tools cover the server's core purpose without unnecessary fragmentation. Each tool bundles related actions coherently, so every tool earns its place.
The surface covers food search/details/comparison, meal logging with list/delete and summaries, and target setting/progress tracking. A minor gap is the lack of an update/edit operation for logged meals or custom foods, though agents can work around it via delete and re-log.
Maintenance
Related MCP Connectors
MCP server exposing supplements database used by iNutriPlan.com
Unlock the power of food transparency with our Open Food Facts MCP server. Easily look up any food
USDA FoodData Central nutrient lookup, FDA recall watch, EU FMCG labelling via remote MCP
A calorie MCP that looks up calories and macros from a 4M+ food catalog, not model guesses.
Related MCP Servers
- AlicenseBqualityBmaintenanceA local-first nutrition MCP server for food search, barcode lookup, meal estimation, intake logging, hydration, and nutrition coaching workflows.46108 npm12MIT
- FlicenseNot gradedqualityDmaintenanceLocal-first nutrition tracker MCP server for Hermes, enabling food, alias, recipe, and meal log management with SQLite persistence.-
- AlicenseNot gradedqualityBmaintenanceTracks macros and logs meals via plain language by exposing a local USDA food database as an MCP server.MIT
- AlicenseAqualityDmaintenanceMCP server for Cronometer nutrition tracking using the mobile API. Enables food logging, nutrition data retrieval, diary management, and fasting tracking.131MIT