Skip to content
All Skills

Nutrition Label Analyzer & Meal Logger

Analyzes nutrition facts from food items via Brave Search, logs daily meals with macros, and generates daily/weekly nutrition summaries with target comparisons. Prerequisites: brave-search MCP, python3.

Health & Wellness|v1|Updated 5/18/2026
MCP get_skill({ skillId: "nutrition-label-analyzer-meal-logger-bdad3e66" })

Use this skill with your agent

Create a free account and connect via MCP

Get Started Free
# Nutrition Label Analyzer & Meal Logger

Look up nutrition info for any food, log meals throughout the day, and get daily/weekly macro summaries compared to your targets.

## When to Use

- "How many calories in a chicken burrito bowl?"
- "Log my meals today and show macros"
- "Am I hitting my protein target this week?"

## Requirements

- **Brave Search MCP** for nutrition data lookup
- **python3** for macro calculations

## Workflow

### Step 1 — Set Nutrition Targets

If not already set:
```bash
python3 << 'PYEOF'
weight_lbs = {WEIGHT}
goal = "{GOAL}"  # lose_weight, maintain, gain_muscle

# Simplified TDEE estimate
if goal == "lose_weight":
    calories = weight_lbs * 12
    protein_g = weight_lbs * 1.0
elif goal == "gain_muscle":
    calories = weight_lbs * 16
    protein_g = weight_lbs * 1.2
else:
    calories = weight_lbs * 14
    protein_g = weight_lbs * 0.8

print(f"Daily targets: {calories:.0f} cal, {protein_g:.0f}g protein")
PYEOF
```

### Step 2 — Look Up Food Nutrition

```
brave_web_search: "{FOOD_ITEM} nutrition facts calories protein per serving"
brave_web_search: "{RESTAURANT} {MENU_ITEM} nutrition information calories"
```

Extract: calories, protein, carbs, fat, fiber, sodium per serving.

### Step 3 — Log Meal

Append to daily log:

```bash
mkdir -p outputs/health/nutrition
cat >> "outputs/health/nutrition/{DATE}-food-log.md" << 'EOF'

### {MEAL_TIME} — {MEAL_NAME}
| Item | Serving | Cal | Protein | Carbs | Fat |
|------|---------|-----|---------|-------|-----|
| {Food 1} | {Amount} | {X} | {X}g | {X}g | {X}g |
| {Food 2} | {Amount} | {X} | {X}g | {X}g | {X}g |
| **Meal Total** | | **{X}** | **{X}g** | **{X}g** | **{X}g** |
EOF
```

### Step 4 — Daily Summary

```bash
python3 << 'PYEOF'
meals = [
    {"name": "Breakfast", "cal": 0, "protein": 0, "carbs": 0, "fat": 0},
    {"name": "Lunch",     "cal": 0, "protein": 0, "carbs": 0, "fat": 0},
    {"name": "Dinner",    "cal": 0, "protein": 0, "carbs": 0, "fat": 0},
    {"name": "Snacks",    "cal": 0, "protein": 0, "carbs": 0, "fat": 0},
]

target_cal = {TARGET_CALORIES}
target_protein = {TARGET_PROTEIN}

total_cal = sum(m["cal"] for m in meals)
total_protein = sum(m["protein"] for m in meals)

remaining_cal = target_cal - total_cal
remaining_protein = target_protein - total_protein

print(f"Daily totals: {total_cal} cal, {total_protein}g protein")
print(f"Remaining: {remaining_cal} cal, {remaining_protein}g protein")
print(f"Status: {'On track ✅' if remaining_cal > 0 else 'Over budget 🔴'}")
PYEOF
```

Output:
```markdown
## Daily Summary — {DATE}
| | Consumed | Target | Remaining | Status |
|---|----------|--------|-----------|--------|
| Calories | {X} | {X} | {X} | ✅/🔴 |
| Protein | {X}g | {X}g | {X}g | ✅/🔴 |
| Carbs | {X}g | {X}g | {X}g | |
| Fat | {X}g | {X}g | {X}g | |

💡 Tip: You have {X} cal left — a {suggested snack} would hit your protein target.
```

## Important Rules

- Use Brave Search for real nutrition data — don't guess calorie counts
- Clearly state when portions are estimated
- Never provide medical dietary advice or diagnose deficiencies
- Suggest consulting a dietitian for medical nutrition therapy

## Example Prompts

- "How many calories in a Chipotle chicken bowl?"
- "Log my breakfast: 2 eggs, toast, coffee with cream"
- "Show my nutrition summary for today"
#nutrition#health#tracking#brave-searchbrave-searchpython3