Skip to content

AI Diet Planning

Claude & ChatGPT Diet Plans with Real Nutritional Data

Claude and ChatGPT are great at planning your week — until they guess your calories and protein from memory. Connect Recipe API so every diet plan is built from 25,000+ real recipes with 32 per-serving nutrients calculated from USDA FoodData Central data.

Get free API keyRead API docs50 evaluation requests, no card. Every call uses 1 request.

Why AI diet plans need real nutrition data

Asking an AI assistant for “a 1,800-calorie high-protein diet plan” produces confident tables — but without a real food database, the model is guessing every number. Grounding Claude or ChatGPT in Recipe API turns those guesses into verifiable math:

Swipe table horizontally to compare →

QuestionPlain Claude / ChatGPTRecipe API
Calorie & macro mathPredicted token-by-token from memory. Frequently off by 20–40%, and ingredients often don't add up to the stated total.Calculated from USDA FoodData Central ingredient records and returned per serving across 32 fixed nutrients.
Micronutrients (iron, fiber, sodium, B12)Rarely listed, or invented with plausible-looking round numbers.All 32 per-serving nutrients included on every recipe, with nutrition_source attached to every ingredient.
Dietary & allergen safetyEasy to slip hidden allergens or dairy/gluten ingredients into a 7-day plan.Filtered server-side with controlled dietary flags (Gluten-Free, Dairy-Free, Vegan, Nut-Free) plus not_suitable_for warnings.
Shopping list accuracyVague ingredient lines ('some spinach', 'a splash of oil') that don't merge cleanly across days.Structured quantities, units, and stable ingredient UUIDs so Claude or ChatGPT builds one exact grocery list.

1. Connect Claude or ChatGPT in two minutes

Paste one setup prompt into Claude or ChatGPT and it walks you through connecting Recipe API (free account, no card):

Claude (MCP + Skills)
Works in claude.ai, Claude Desktop, and Claude Code via OAuth.
  1. Add https://recipe-api.com/api/mcp under Customize → Connectors.
  2. Authorize once — no API key to copy.
  3. Install the free Macro Coach and Weekly Meal Planner skills for formatted diet tables and one shopping list.
Full MCP setup guide →
ChatGPT (Custom GPT Action)
Import our OpenAPI schema in 30 seconds — zero glue code.
  1. Create a free key at /signup (no card required).
  2. In ChatGPT's GPT Builder → Actions, import https://recipe-api.com/openapi.json.
  3. Set API Key authentication with custom header X-API-Key.
Inspect OpenAPI spec →

2. What Claude & ChatGPT actually receive

Instead of inventing calorie numbers, the assistant filters real recipes with GET /api/v1/recipes?max_calories=600&min_protein=30 and reads 32 USDA-backed nutrients per serving straight from the API:

GET /api/v1/recipes/{id} — real nutrition block returned to your assistant
{
  "name": "Texas Chili con Carne",
  "meta": { "yields": "4 servings", "yield_count": 4, "serving_size_g": 300 },
  "dietary": {
    "flags": ["Gluten-Free", "Dairy-Free", "Egg-Free", "Nut-Free", "Soy-Free"],
    "not_suitable_for": []
  },
  "nutrition": {
    "per_serving": {
      "calories": 569.02,
      "protein_g": 44.14,
      "carbohydrates_g": 5.59,
      "fat_g": 41.99,
      "fiber_g": 1.97,
      "sodium_mg": 350.75,
      "iron_mg": 7.16,
      "vitamin_b12_mcg": 6.14
    },
    "sources": ["USDA FoodData Central"]
  }
}
Example grounded diet plan output
DAILY DIET PLAN — Target: 1,800 kcal · 150g protein (Gluten-Free)

| Meal      | Recipe (from Recipe API)  | Srv | Cal   | Protein | Fiber | Sodium |
|-----------|---------------------------|-----|-------|---------|-------|--------|
| Breakfast | Greek Yogurt Power Bowl   | 1   | 410   | 32g     | 6g    | 145mg  |
| Lunch     | Chicken Burrito Bowl      | 1.5 | 690   | 54g     | 11g   | 520mg  |
| Dinner    | Sheet-Pan Salmon & Greens | 1   | 510   | 41g     | 7g    | 390mg  |
| Snack     | Cottage Cheese & Berries  | 1   | 210   | 24g     | 3g    | 310mg  |
| TOTAL     | USDA-backed per serving   |     | 1,820 | 151g    | 27g   | 1,365mg|

3. Prompts to try right away

“Build a 5-day gluten-free cutting diet plan at 1,800 kcal and 150g protein/day using Recipe API. Show every meal's real per-serving macros and one consolidated shopping list.”

“Find 7 weeknight dinners under 550 calories with at least 35g protein and under 600mg sodium, then total the week's nutrition.”

“Check today's meals against my 2,100 kcal / 160g protein goal and swap the lowest-protein meal for a real recipe that closes the gap.”

Cooking and planning every week? Move from the free evaluation tier (50 lifetime requests) to the $9/month Personal plan (5,000 requests and 100 unique recipes every month, non-commercial). Building a commercial diet or food app? Developer starts at $29/month.

Frequently asked questions

Why aren't plain Claude or ChatGPT diet plans accurate on their own?
Language models predict text rather than running food-composition calculations. When asked for a 1,800-calorie diet plan, they estimate plausible-sounding numbers that often drift by hundreds of calories per day. Connecting Recipe API grounds every recipe in 32 per-serving nutrients calculated from USDA FoodData Central data.
How do I connect Recipe API to Claude?
In claude.ai or Claude Desktop, open Customize -> Connectors, add https://recipe-api.com/api/mcp, and sign in with OAuth (no API key to copy). Pair it with the free Macro Coach or Weekly Meal Planner skills for structured daily macro tables and one consolidated shopping list.
How do I use Recipe API with ChatGPT?
Copy the setup prompt above into ChatGPT, or create a Custom GPT Action by importing https://recipe-api.com/openapi.json and authenticating with your X-API-Key header. ChatGPT can then search 25,000+ recipes by calories, protein, carbs, fat, and dietary flags.
How much does it cost for personal diet planning?
You can start free on the Evaluation tier (50 lifetime requests, 50 unique recipes, 1 generation, no card). For weekly personal meal and diet planning, the Personal plan is $9/month (5,000 requests/month, 100 unique recipes/month, 50 generations/month, non-commercial).

Related guides

MCP Server Setup
Connect Claude (claude.ai, Desktop, Claude Code) in 60 seconds with OAuth.
Macro Coach Skill
Free Claude skill that audits daily calories and protein against real recipes.
USDA Nutrition Data Guide
How all 32 per-serving nutrients and ingredient UUIDs work under the hood.

Stop guessing your macros

Start free (50 evaluation requests, no card), or run weekly diet plans year-round on Personal ($9/month).