nutrition-mcp-server
by AiAgentKarl
README.md
# nutrition-mcp-server
MCP Server for nutrition data powered by **USDA FoodData Central** — the official U.S. government food database with 1,000,000+ foods.
[](https://pypi.org/project/nutrition-mcp-server/)
[](LICENSE)
## Features
- **Search 1M+ foods** in the USDA database (branded, foundation, and SR Legacy data)
- **Detailed nutrition facts** — calories, protein, fat, carbs, vitamins, minerals
- **Compare two foods** side-by-side across key nutrients
- **Find foods high in** any nutrient (iron, protein, fiber, vitamin C, etc.)
- **Daily Value calculator** — see what % of daily intake a meal covers
- **Nutrient education** — functions, deficiency signs, top food sources
- No API key required — uses USDA DEMO_KEY (30 requests/hour)
## Tools
| Tool | Description |
|------|-------------|
| `tool_search_food` | Search USDA database by name |
| `tool_get_nutrition_facts` | Full nutrition panel for any food (by FDC ID) |
| `tool_compare_foods` | Side-by-side comparison of two foods |
| `tool_find_foods_high_in` | Find top foods for a specific nutrient |
| `tool_get_daily_values` | FDA Daily Values reference table |
| `tool_calculate_daily_intake` | Calculate % of daily needs covered |
| `tool_get_food_categories` | Browse USDA database categories |
| `tool_get_nutrient_info` | Education on vitamins & minerals |
## Installation
```bash
pip install nutrition-mcp-server
```
## Claude Desktop Config
```json
{
"mcpServers": {
"nutrition": {
"command": "nutrition-mcp-server"
}
}
}
```
## Data Source
[USDA FoodData Central](https://fdc.nal.usda.gov/) — maintained by the U.S. Department of Agriculture, National Agricultural Library.
## License
MIT
TDQS
A3.9/5.0
Scored across 8 tools
Disambiguation5/5
Each tool has a clearly distinct purpose: searching, retrieving facts, daily values, nutrient info, finding high-nutrient foods, categories, comparison, and intake calculation. No overlap.
Naming Consistency5/5
All tool names follow a consistent verb_noun pattern with underscores (e.g., search_food, get_nutrition_facts, compare_foods). No mixed conventions.
Tool Count5/5
Eight tools cover the core functionalities of a nutrition database server without being excessive or insufficient. Each tool has a clear role.
Completeness5/5
The tool set covers search, retrieval, nutrient information, daily values, comparisons, and intake calculation. There are no obvious gaps for an informational nutrition server.
Maintenance
ActivityInactive
ResponsivenessNo issues