nutrition-mcp
Click on "Install 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 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 keyUsage
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
This server cannot be installed
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/asachs01/nutrition-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server