Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A 3-tier nutrition lookup MCP server with local SQLite caching. Searches 326K+ foods locally, falls back to the USDA FoodData Central API, and caches results for instant future lookups.
npm install
npm run build
The local database is seeded on first use via the nutrition_seed tool (triggered automatically by the companion skill). The first seed downloads and imports the OpenNutrition dataset (~326K foods), which takes a few minutes in the background. Tools work immediately — USDA API results are available while seeding runs.
The database is stored at ~/.nutrition-mcp/nutrition.db.
To manually rebuild (e.g. after a dataset update):
npx nutrition-mcp build-db
Rebuilding preserves any previously cached USDA and web results.
A free USDA FoodData Central API key is strongly recommended. Without it, searches are limited to the local OpenNutrition dataset and many branded/packaged foods won't be found.
export USDA_API_KEY=your_key_here
With direnv, add it to your project's .env file so it's automatically available.
Add to your project's .mcp.json:
{
"mcpServers": {
"nutrition-mcp": {
"command": "npx",
"args": ["-y", "nutrition-mcp"]
}
}
}
Or for local development:
{
"mcpServers": {
"nutrition-mcp": {
"command": "node",
"args": ["--import", "tsx", "src/mcp.ts"],
"env": {
"USDA_API_KEY": "your_key_here"
}
}
}
}
nutrition_searchSearch foods by name. Returns matching foods with macros.
| Param | Type | Default | Description |
|---|---|---|---|
query | string | required | Food name to search for |
limit | number | 10 | Max results (1-50) |
Returns an array of results, each shaped like:
{
"id": "on_fd_vUZSKMYWbRkt", "name": "G2G Coconut Almond Protein Bar", "brand": "G2G",
"source_tier": "local", "serving_size": "1 bar",
"calories": 300, "protein": 18.0, "fat": 12.0, "carbs": 22.0, // scaled to the serving
"basis": "per_serving", "basis_weight_g": 70, // never inferred — always check this
"weight_source": "column", // "column" | "parsed_grams" | "parsed_mass" | "parsed_volume"
"per_100g": { "calories": 429, "protein": 25.7, "fat": 17.1, "carbs": 31.4 },
"atwater_delta_pct": 0.2, "is_correction": false,
"verified_fields": null, "superseded_by": null,
"data_quality": null, "macro_mass_g": null
}
If serving_weight_g isn't stored for a food, the server tries to derive it by parsing
serving_size (e.g. "42GRM" -> 42g, "8 oz" -> 226.8g, "1 cup" -> 240g assuming
water-like density) before falling back to per_100g. weight_source tells you which:
"column" (stated) and "parsed_grams"/"parsed_mass" (deterministic) are as trustworthy as
a stated weight; "parsed_volume" assumes 1.0 g/mL density, so treat it more cautiously — and
note that foods matching an oil/honey/syrup-class name never get a parsed_volume weight at
all (a 1.0 g/mL guess is wrong enough there that they fall back to per_100g instead) — see
docs/CALLER-GUIDE.md. Only when no weight can be resolved at all (e.g.
serving_size: "1 bottle", or an oil/honey-class food with only a volumetric serving size)
does basis fall back to "per_100g", with the headline values being the canonical per-100g
numbers — never silently mislabeled as a serving. per_100g is
always present regardless of basis. See docs/CALLER-GUIDE.md for how to use basis,
weight_source, atwater_delta_pct, is_correction, and superseded_by.
Every result is also checked for mass conservation: if protein + carbs + fat (per 100g)
exceeds 100g, the row is physically impossible and data_quality is "impossible_macros" —
in that case calories/protein/fat/carbs/fiber/sugar/sodium are all returned
null (never a corrupt or scaled-up number) and macro_mass_g reports the impossible sum;
per_100g still carries the raw stored values for reference. See docs/CALLER-GUIDE.md.
nutrition_lookupLook up a specific food by ID. Returns the complete food record, shaped like the nutrition_search
result above (see there for the basis/per_100g/trust-signal fields) plus full source metadata
(type, ean_13, source_id, source_query, alternate_names_text, labels, ingredients,
data_source, cached_at, updated_at). If superseded_by is non-null, a correction exists for
this exact id — look that id up instead.
| Param | Type | Description |
|---|---|---|
id | string | Food ID (e.g. on_abc123, usda_12345) |
nutrition_barcodeBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (daveremy/nutrition-mcp) — no native marketplace selected
npx claudepluginhub p/daveremy-nutrition-mcpPlugins from other owners that cover similar ground