# agentfood

agentfood — an MCP server with access to USDA FoodData Central: searches 1M+ foods, displays complete nutrient profiles (macros and micronutrients), and compares them side-by-side. Public government data.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 10415 installs
- Author: heavysword1
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/heavysword1/agentfood
- Updated: 2026-05-28
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/agentfood

## What it does

agentfood brings nutrition lookup and analysis tools into your IDE. Three functions handle the workflow: `search_food` queries by name and returns macros for matching results, `get_nutrition` retrieves the full profile (protein, fat, carbs, vitamins, minerals) for a specific USDA FDC ID, and `compare_foods` lines up multiple foods to show which win on protein and calorie density.

Data comes from USDA FoodData Central. The server runs at `https://agentfood--heavysword1.run.tools` over HTTP; no API keys required.

## Requirements
- Remote server: `https://agentfood--heavysword1.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http agentfood https://agentfood--heavysword1.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add agentfood --url https://agentfood--heavysword1.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "agentfood": {
            "url": "https://agentfood--heavysword1.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "agentfood": {
            "type": "http",
            "url": "https://agentfood--heavysword1.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http agentfood https://agentfood--heavysword1.run.tools
```

## When to use it
- find foods matching target macronutrients for meal planning
- compare nutrition profiles across multiple ingredients or dishes
- retrieve detailed micronutrient data from authoritative sources

## Example prompts
- Search for high-protein dairy foods using `search_food`
- Get full nutrition breakdown including vitamins for a chicken egg
- Compare chicken, fish and beef on calories and protein density

## Similar
- [Nutrition MCP](https://affpapa.org/en/nevibecode/mcp/nutrition-mcp.md) — MCP server · ★ 99 repo stars
- [rp-diet](https://affpapa.org/en/nevibecode/skills/rp-diet.md) — skill · 537 installs
- [wellness-nourish](https://affpapa.org/en/nevibecode/mcp/wellness-nourish.md) — MCP server · ★ 12 repo stars
- [cronometer-api-mcp](https://affpapa.org/en/nevibecode/mcp/cronometer-api-mcp.md) — MCP server · ★ 73 repo stars
- [gym-trainer](https://affpapa.org/en/nevibecode/skills/gym-trainer.md) — skill · 1 install
- [leafengines](https://affpapa.org/en/nevibecode/mcp/leafengines.md) — MCP server · ★ 6 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
