# Nutritionix MCP for AI Agents AI Agent Connect

> Nutritionix lets your AI agent parse messy food descriptions into exact nutritional data. Instead of guessing calories for a "large burrito with guac," your agent uses the industry's most accurate NLP engine to pull protein, carbs, fat, and calories instantly. It handles everything from home-cooked meals to specific menu items at major restaurant chains.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_qd2EB5uR4foctxLARlP4JLLg6FqvJkhIduvJ2EwC/ai-agent-connect
- **Tags:** nutritional-analysis, natural-language-processing, calorie-tracking, macro-nutrients, health-data

## Description

This Connector gives your AI agent the ability to understand exactly what you're eating just by listening to you describe it. You're tired of manually logging every bite or trying to find the exact calorie count for a specific restaurant order. If you tell your agent you had a "turkey sandwich on whole wheat with mayo," it doesn't just guess. It breaks down the components and pulls the real data for calories, sodium, and macros. It's the same engine that powers some of the most popular fitness apps on the market. You can find specific branded items or search a massive database of common foods without leaving your chat interface. It's a huge win for anyone who needs accurate tracking without the friction of manual entry. When you connect this through the Vinkius catalog, your agent becomes a specialized nutritionist that knows the difference between a diet coke and a regular one, or a generic slice of pizza versus a specific chain's specialty. It turns "I ate some tacos" into a structured data point you can actually use to track your progress. This means you can stop worrying about the math and start focusing on your health goals. Whether you're tracking for weight loss, muscle gain, or just general wellness, you get the data you need in seconds.

## Tools

### search_nutritionix_foods
Finds specific branded items or generic foods in the database to get accurate calorie counts. This helps you identify precise menu items from major restaurant chains.

### analyze_food_nutrition
Turns a natural language sentence into a detailed breakdown of calories, protein, fat, carbs, and more. It parses messy descriptions to give you exact numbers.

## Prompt Examples

**Prompt:** 
```
Analyze the nutrition of 2 eggs, 1 toast with butter, and a glass of orange juice.
```

**Response:** 
```
Here's your breakfast breakdown:

| Item | Calories | Protein | Fat | Carbs |
| :--- | :--- | :--- | :--- | :--- |
| **2 Large Eggs** | 144 kcal | 12g | 10g | 0g |
| **1 Toast w/ Butter** | 166 kcal | 3g | 6g | 24g |
| **1 Glass OJ** | 112 kcal | 2g | 0g | 26g |

**Total:** 422 kcal, 17g protein, 16g fat, 50g carbs.
```

**Prompt:** 
```
Calculate the macros for 1 cup of oatmeal with a sliced banana and a tablespoon of peanut butter.
```

**Response:** 
```
Here is the breakdown for your oatmeal:

*   **1 cup cooked oatmeal:** 166 kcal, 6g protein, 28g carbs, 4g fiber
*   **1 medium banana:** 105 kcal, 1.3g protein, 27g carbs
*   **1 tbsp peanut butter:** 94 kcal, 4g protein, 8g fat

**Total:** 365 kcal, 11g protein, 63g carbs, 10g fat.
```

**Prompt:** 
```
How many calories in a Starbucks Grande Caramel Macchiato with almond milk?
```

**Response:** 
```
A **Starbucks Grande (16 oz) Caramel Macchiato** made with **almond milk** contains approximately:

*   **Calories:** 190 kcal
*   **Protein:** 4g
*   **Fat:** 5g
*   **Carbohydrates:** 27g (including 25g of sugar)
```

## Capabilities

### Parse natural language food descriptions
Your agent turns a sentence like "3 slices of pizza" into a full macro breakdown.

### Find branded restaurant items
Get exact calorie counts for specific menu items from national and regional chains.

### Retrieve full nutrient profiles
Get data for protein, fat, carbs, fiber, sugar, sodium, and cholesterol in one go.

### Search a massive food database
Access a huge list of common and branded foods to find the right nutritional values.

### Calculate multi-item meal totals
The agent sums up the nutrition for everything you ate in a single description.

## Use Cases

### Quickly checking a client's breakfast
A fitness coach asks the agent to "Analyze the nutrition of 2 eggs and a piece of toast" to quickly check a client's breakfast.

### Getting calories for a coffee order
A user wants to know the calories in a "Starbucks Grande Caramel Macchiato with almond milk" while at a coffee shop.

### Calculating protein for meal prep
A meal prep enthusiast describes a "grilled salmon 200g with 1 cup of brown rice" to see the total protein content.

### Tracking sodium for health reasons
A person tracking sodium for health reasons asks the agent to find the sodium level in a "generic ham sandwich."

## Benefits

- Get exact macro data for complex meals by using analyze_food_nutrition to break down multi-item orders.
- Find specific branded items from national chains with search_nutritionix_foods instead of guessing generic values.
- Track micronutrients like sodium and cholesterol automatically without manual research.
- Save time on data entry by letting your agent handle the nutrition math from your natural language descriptions.
- Improve tracking accuracy for fitness goals by using the same engine that powers major health apps.

## How It Works

The bottom line is your agent handles the complex math of nutrition so you can just talk about your food.

1. Get your app_id and app_key from the Nutritionix developer portal.
2. Connect this Connector to your AI client via the Vinkius dashboard.
3. Describe a meal like "a bowl of oatmeal with a sliced banana" to get a full nutritional breakdown.

## Frequently Asked Questions

**Can the Nutritionix MCP handle specific restaurant orders?**
Yes, it has data for national and regional chains, so your agent can find exact items from places like Starbucks or major fast food spots.

**Does the Nutritionix MCP work for home-cooked meals?**
It uses a natural language engine that parses descriptions like "grilled salmon with brown rice" to give you a breakdown based on the ingredients you mention.

**What kind of nutrients does the Nutritionix MCP provide?**
It goes beyond calories to give you protein, fat, carbs, fiber, sugar, sodium, and cholesterol for every meal it analyzes.

**Is the Nutritionix MCP accurate for different portion sizes?**
Yes, because it uses NLP, you can specify "3 slices of pizza" or "200g of salmon" and it will calculate the nutrition for that specific amount.

**Do I need a separate app to use the Nutritionix MCP?**
No, you just connect it to your AI client through Vinkius and talk to your agent normally. It does all the work in the background.

**Can I use the Nutritionix MCP to track my daily macro goals?**
Your agent can use the data from this Connector to sum up your daily intake and tell you how many grams of protein or carbs you have left for the day.

**How accurate is the NLP food analysis?**
Nutritionix's NLP engine is used by major fitness and health apps globally. It can parse complex meal descriptions including quantities, cooking methods, and brand names with high accuracy, backed by a verified database of 1M+ food items.

**Can it recognize branded foods or restaurant items?**
Yes, Nutritionix excels at this. If you type '1 Big Mac and a medium fries from McDonald's', it will correctly map these to specific branded items in its database.

**Does it track micronutrients?**
Yes, in addition to macros (proteins, fats, carbs), it returns data on dietary fiber, sugars, sodium, cholesterol, and potassium for an incredibly comprehensive nutritional profile.