14 MCP Tools · x402 Micropayments · USDA Database

AI-Powered
Nutrition Platform

Clinical-grade nutrition analysis powered by medgemma:4b. Search 8,000+ foods from USDA FoodData Central. Pay per tool call with USDC on Base, Solana, or Ethereum via x402 protocol.

Platform Features

Food Database

8,000+ foods from USDA FoodData Central with complete nutrient profiles including vitamins, minerals, and micronutrients.

AI Nutrition Coaching

Clinical nutrition AI powered by medgemma:4b. Get evidence-based advice aligned with DGA 2025-2030, AHA, and ADA guidelines.

Macro Calculator

Mifflin-St Jeor BMR/TDEE calculation with personalized macro targets based on your body stats, activity level, and goals.

AI Meal Planning

Generate multi-day personalized meal plans with specific foods, portions, and macros. Supports keto, vegan, Mediterranean, and more.

Food Logging

Daily food diary with meal-type tracking. Get daily nutrition summaries with calorie/macro percentages vs your targets.

x402 Payments

Pay-per-tool-call with USDC micropayments. Supports Base (low fees), Solana (fast finality), and Ethereum mainnet via x402 protocol.

Nutrition Calculator

Mifflin-St Jeor equation for accurate BMR and TDEE estimation

-- kcal/day
--
Protein (g)
--
Carbs (g)
--
Fat (g)
BMR: -- kcal | TDEE: -- kcal

14 MCP Tools

Connect any AI agent via Model Context Protocol (Streamable HTTP)

search_foods

Search food DB by name/category/nutrients

FREE
get_food_nutrition

Complete nutrient profile for a food

FREE
calculate_macros

BMR/TDEE/macro targets (Mifflin-St Jeor)

FREE
log_food

Log food to daily diary

FREE
find_recipes

Search recipes by cuisine/diet/calories

FREE
compare_foods

Side-by-side nutrient comparison (2-5 foods)

FREE
create_user_profile

Create user with body stats and goals

FREE
get_payment_schemes

x402 payment options for all chains

FREE
get_daily_summary

Daily totals vs targets with micro gaps

$0.01
analyze_meal

Meal nutrient analysis with balance scoring

$0.02
check_deficiencies

Multi-day deficiency analysis with severity

$0.03
ai_nutrition_advice

medgemma-powered nutrition Q&A

$0.05
ai_generate_recipe

AI recipe from ingredients + constraints

$0.05
generate_meal_plan

Personalized multi-day AI meal plan

$0.10

Connect via MCP (Streamable HTTP)

curl -X POST https://dietmeal.org/mcp/ \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-03-26",
      "capabilities": {},
      "clientInfo": {"name": "my-agent", "version": "1.0"}
    },
    "id": 1
  }'

Membership Tiers

Pay with USDC on Base, Solana, or Ethereum

Free

$0/mo
  • 100 API calls/day
  • 10 AI calls/day
  • Food search & logging
  • Basic nutrition calculator
  • Community recipes
Most Popular

Pro

$9.99 USDC/mo
  • 1,000 API calls/day
  • Unlimited AI calls
  • AI meal plan generation
  • Deficiency analysis
  • AI recipe generation
  • Priority support

Enterprise

$49.99 USDC/mo
  • 10,000 API calls/day
  • Unlimited AI calls
  • All Pro features
  • API key management
  • Webhook notifications
  • Bulk food import

REST API Documentation

28 endpoints — Base URL: https://dietmeal.org/api

Health

GET/healthService status and stats

Foods

GET/v1/foods?query=&category=Search foods
GET/v1/foods/:idGet food by ID
POST/v1/foodsAdd custom food
PUT/v1/foods/:idUpdate food
POST/v1/foods/compareCompare 2-5 foods
POST/v1/foods/import-usdaImport from USDA
GET/v1/foods/categoriesList categories
GET/v1/foods/usda-search?query=Proxy USDA search

Users

POST/v1/usersCreate profile
GET/v1/users/:idGet profile
PUT/v1/users/:idUpdate profile
POST/v1/users/calculate-macrosCalculate BMR/TDEE/macros

Meal Plans

POST/v1/meal-plansCreate plan
GET/v1/meal-plans/:idGet plan with meals
GET/v1/users/:userId/meal-plansList user plans
PUT/v1/meal-plans/:idUpdate plan
POST/v1/meal-plans/:id/archiveArchive plan

Food Log

POST/v1/food-logsLog food entry
GET/v1/users/:userId/food-logsGet logs by date
GET/v1/users/:userId/daily-summaryDaily nutrition totals
DEL/v1/food-logs/:idDelete entry

Recipes

GET/v1/recipes?query=&cuisine=Search recipes
GET/v1/recipes/:idGet recipe detail
POST/v1/recipesSubmit recipe

AI (x402-gated)

POST/v1/ai/nutrition-advice$0.05 — AI nutrition Q&A
POST/v1/ai/generate-meal-plan$0.10 — AI meal plan
POST/v1/ai/generate-recipe$0.05 — AI recipe

Billing

GET/v1/billing/payment-schemesx402 payment options