# Nutrition MCP

> Nutrition MCP is an MCP server for health and science. USDA FoodData Central nutrition lookup, meal and recipe analysis for AI assistants. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API
- **Website:** https://docuslide-mcp-production.up.railway.app/docs
- **Repository:** https://github.com/andrewvg23/nutrition_mcp
- **MCP Registry name:** io.github.AndrewVG23/nutrition-mcp
- **Categories:** [health and science](https://ai-powered.com/categories/health-and-science)
- **Listing updated:** 2026-11-23

## About

This connector answers food questions from a local copy of USDA FoodData Central, about 600,000 foods with macro and micronutrient data. It is read-only except three profile tools that hold age and sex in memory for the conversation, so assessments use U.S. dietary reference intakes instead of FDA label daily values.

It goes beyond lookup: compare up to 10 foods, total a meal of up to 25 items, resolve ingredient names and portions like 1 cup to grams, analyze a recipe per serving, or assess a plan of up to 14 days as a daily average with a shopping list. It can also build exact product links for a retailer, but changes no cart and buys nothing.

Nutrients not reported are treated as unknown, not zero.

## Features

- **Food search:** Name search with macros per 100 g.
- **Nutrient ranking:** Find lab-measured foods by one nutrient.
- **Meal and recipe analysis:** Totals, shortfalls and per-serving values.
- **Ingredient resolution:** Convert portions to grams for up to 400 items.
- **Plan assessment:** Daily averages for up to 14 days with a shopping list.
- **Retailer links:** Product links only; nothing is bought.

## Good for

- Check iron in a serving of spinach
- Compare protein across lentils, chickpeas and tofu
- Analyze a recipe per serving
- Assess a day of meals against daily targets

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http nutrition-mcp https://docuslide-mcp-production.up.railway.app/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "nutrition-mcp": {
      "type": "http",
      "url": "https://docuslide-mcp-production.up.railway.app/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://docuslide-mcp-production.up.railway.app/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "nutrition-mcp": {
      "url": "https://docuslide-mcp-production.up.railway.app/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "nutrition-mcp": {
      "type": "http",
      "url": "https://docuslide-mcp-production.up.railway.app/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://docuslide-mcp-production.up.railway.app/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add nutrition-mcp --url https://docuslide-mcp-production.up.railway.app/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.nutrition-mcp]
url = "https://docuslide-mcp-production.up.railway.app/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "nutrition-mcp": {
      "httpUrl": "https://docuslide-mcp-production.up.railway.app/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http nutrition-mcp https://docuslide-mcp-production.up.railway.app/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "nutrition-mcp": {
      "serverUrl": "https://docuslide-mcp-production.up.railway.app/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "nutrition-mcp": {
      "url": "https://docuslide-mcp-production.up.railway.app/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "nutrition-mcp": {
      "type": "streamableHttp",
      "url": "https://docuslide-mcp-production.up.railway.app/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "nutrition-mcp": {
      "url": "https://docuslide-mcp-production.up.railway.app/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "nutrition-mcp": {
      "url": "https://docuslide-mcp-production.up.railway.app/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "nutrition-mcp": {
      "url": "https://docuslide-mcp-production.up.railway.app/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "nutrition-mcp": {
      "url": "https://docuslide-mcp-production.up.railway.app/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://docuslide-mcp-production.up.railway.app/mcp
```

Enter a Name (for example "Nutrition MCP"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "nutrition-mcp": {
      "type": "http",
      "url": "https://docuslide-mcp-production.up.railway.app/mcp"
    }
  }
}
```

## Tools

The server marks 2 of 14 tools as able to delete data. From the server's own tool labels and tool names; not verified by us.

- `search_foods` (says read-only): Searches USDA FoodData Central by food name. Each match has an fdc_id, its dataset, key macros per 100 g, and, for branded products, USDA's verbatim ingredient statement. ingredients_available is false when USDA supplied no ingredient statement for that record. Results are paged, and pagination.next_offset is null on the last page.
- `get_food_nutrition` (says read-only): Returns the nutrient breakdown for one food at a serving weight. The result has macros, micronutrients, an assessment against daily targets, USDA's verbatim ingredient statement when available, and common portion sizes with their gram weights. ingredients_available is false when USDA supplied no ingredient statement, which does not mean the food has no ingredients. assessment.basis is personal_dri
- `compare_foods` (says read-only): Puts several foods side by side at the same serving weight. highest_per_nutrient names the food with the most of each nutrient. failed lists ids that could not be loaded, and partial is true when the comparison is missing some of them.
- `analyze_meal` (says read-only): Totals nutrients across several foods and assesses the meal. assessment.shortfalls lists missed targets, worst first, and assessment.over_limit lists exceeded limits. not_reported lists nutrients with no data in the food records; those are unknown, not zero. failed lists items left out of the total, and partial is true when there are any.
- `find_foods_by_nutrient` (says read-only): Ranks foods by how much of one nutrient they carry per 100 g. The default list is lab-measured foods. Branded products are included only when data_type is Branded. Amounts that cannot fit in 100 g, and potassium above the potassium-chloride ceiling, are left out. Per-100 g ranking favors foods eaten in small amounts, such as spices and dried herbs; the category filter narrows the list to one food 
- `database_status` (says read-only): Reports whether the local USDA database is built and what it holds. The result counts foods by dataset and records with an ingredient statement.
- `list_retailers` (says read-only): Lists configured retailers and the commerce capabilities each supports. A retailer with integration_mode link_handoff supports product links only; no account, cart, checkout, or order is created for it.
- `prepare_retailer_handoff` (says read-only): Packages exact retailer products into links for the user to open. The handoff repeats the products, links, and quantities with the original request. It does not contact the retailer, change a cart, or check out.
- `resolve_ingredients` (says read-only): Matches ingredient names to FoodData Central foods and converts portions to grams. Portions such as 2 tbsp, 1/2 cup, or 1 medium are converted with each food's own measured portions, so 1 cup differs for spinach and olive oil. Repeated ingredients are looked up once. method says how each portion was converted. Ingredients that could not be converted are listed under unresolved with the portions th
- `analyze_recipe` (says read-only): Totals one dish from its ingredient list and reports it per serving. Ingredient quantities are for the whole dish, as a recipe states them. per_serving divides by servings, whole_recipe holds the undivided totals, and the assessment covers one serving.
- `analyze_plan` (says read-only): Analyzes a multi-day meal plan and assesses its daily average. Every ingredient is resolved and converted, then totaled by dish, meal, and day, up to 400 ingredients. The assessment is of the daily average, not the multi-day sum. per_day has each day's totals, shopping_list totals ingredients at full recipe quantities, and failed lists ingredients missing from the totals. The detail breakdown is l
- `set_profile` (says it can change data): Stores a profile for this conversation so assessments use Dietary Reference Intakes. Age- and sex-specific U.S. Dietary Reference Intakes replace the generic food-label values. The result lists the resolved daily targets and limits. The profile is held in memory for the conversation, replaces any earlier profile, and is not written to disk.
- `get_profile` (says read-only): Returns this conversation's profile and the daily targets it resolves to. profile is null when none is set, and assessments then use the FDA food-label daily values.
- `clear_profile` (says it can change data): Deletes this conversation's profile so assessments use the FDA food-label values. cleared is false when no profile was set.

## FAQ

### Where does the data come from?

USDA FoodData Central.

### Is an account needed?

No account or sign-in.

### Can Nutrition MCP buy groceries?

No, it only prepares product links.

### Why do I get 401 after an update?

Remove and re-add the connector; older versions used OAuth.

### How do I add Nutrition MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http nutrition-mcp https://docuslide-mcp-production.up.railway.app/mcp

### What are the best alternatives to Nutrition MCP?

The closest alternatives to Nutrition MCP are Tooluniverse, Oya Browser, BasalFit, Renal Diet (CKD) and Alpha-Gal Syndrome Food Check and Alpha-Gal Watch: Alpha-Gal Syndrome Food Check.

## Where this comes from

- Description: written from the project's README and the project's website.
- Status and tools: checked automatically by AIPoweredBot on 24 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Tooluniverse](https://ai-powered.com/mcp/tooluniverse): Tooluniverse is an open-source MCP server for health and science.
- [Oya Browser](https://ai-powered.com/mcp/oya-browser): Oya Browser is a freemium MCP server for browser automation.
- [BasalFit](https://ai-powered.com/mcp/basalfit): BasalFit is a free MCP server for health and science.
- [Renal Diet (CKD) and Alpha-Gal Syndrome Food Check](https://ai-powered.com/mcp/renal-diet-ckd-and-alpha-gal-syndrome-food-check): Renal Diet (CKD) and Alpha-Gal Syndrome Food Check is an MCP server for mcp data access.
- [Alpha-Gal Watch: Alpha-Gal Syndrome Food Check](https://ai-powered.com/mcp/alpha-gal-watch-alpha-gal-syndrome-food-check): Alpha-Gal Watch: Alpha-Gal Syndrome Food Check is an MCP server for food and drink.
- [KidneyWatch Renal Diet (CKD) Food Check](https://ai-powered.com/mcp/kidneywatch-renal-diet-ckd-food-check): KidneyWatch Renal Diet (CKD) Food Check is an MCP server for mcp data access.
- [Diochi — bylinné přípravky, kluby a Sféra](https://ai-powered.com/mcp/diochi-bylinne-pripravky-kluby-a-sfera): Diochi — bylinné přípravky, kluby a Sféra is an MCP server for health and science.
- [ClinicalTrials.gov Biotech Sponsor & PI Emails MCP](https://ai-powered.com/mcp/clinicaltrials-gov-biotech-sponsor-and-pi-emails-mcp): ClinicalTrials.gov Biotech Sponsor & PI Emails MCP is a paid MCP server for sales and crm.

---
Source: https://ai-powered.com/mcp/nutrition-mcp
