indian-food-nutrition-mcp

v1.0.2
io.github.krishnabhat/indian-food-nutrition-mcp Checked 22 hours ago Published 5 months ago

Indian-accurate nutrition logging for your AI: IFCT 2017 + USDA, by text or photo.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_food Search Indian foods (IFCT 2017 + INDB)

Search Indian food data (IFCT 2017 raw ingredients + INDB cooked dishes) and their per-100g nutrition. Use this to find a food_code before logging a meal so calories are database-accurate for Indian food, not estimated. INDB results are cooked dishes and include a serving size. Returns code, name, group, source, per-100g cal/protein/carb/fat/fiber, and serving (when known). Prefer the result that matches how the food was prepared (cooked dish over raw ingredient; a tempered/fried version over a plain one). If the top result looks off, search again with a more specific phrase before settling.

ParameterTypeDescription
query *stringFood to search, e.g. "rice raw milled" or "wheat flour".
limitintegerMax results (default 8).

log_meal Log a meal

Log one or more eaten items to the personal nutrition history. QUANTITY IS MANDATORY: every item needs qty + unit (e.g. 2 katori, 1 large plate, 3 pieces). If the user did NOT say how much they ate, you MUST ask them before calling this tool. Do not guess or assume a default portion. PHOTO INPUT: if the user uploads a photo of food, identify each dish from the image, then state your estimated qty + unit for each and confirm with the user before logging (photo portion estimates are approximate, so confirmation is required). ALWAYS USE THE DATABASE: for every recognizable food you MUST call sear…

ParameterTypeDescription
items *arrayThe items eaten in this meal.
mealstringOptional meal label.
whenstringISO datetime of the meal (default: now).

get_day Get a day's log

Return all logged items and macro totals for a given local date (default today). Use to answer 'what did I eat today / how many calories so far'.

ParameterTypeDescription
datestringLocal date YYYY-MM-DD (default today).

get_history Get nutrition history

Return per-day macro totals over a date range, as a compact block for coaching. Feed this to the model so it can program diet around real intake. Specify start/end (YYYY-MM-DD) or days (default last 14).

ParameterTypeDescription
daysintegerTrailing days if no start.
endstringEnd date YYYY-MM-DD (default today).
startstringStart date YYYY-MM-DD.

edit_entry Edit a logged item

Correct a logged meal item by id (from log_meal/get_day) so the history stays accurate. Pass only the fields to change.

ParameterTypeDescription
id *integerMeal entry id.
calnumber
carb_gnumber
descriptionstring
fat_gnumber
fiber_gnumber
gramsnumber
mealstring
protein_gnumber
qtynumber
unitstring

delete_entry Delete a logged item

Delete a logged meal item by id. Use to fix mistakes so history isn't poisoned.

ParameterTypeDescription
id *integerMeal entry id to delete.

fetch_image Fetch a food image from a URL

Download an image from an http(s) URL and return it so you can SEE it. Use this when the user gives a LINK to a food photo instead of uploading the image. After viewing it, identify each dish, propose qty + unit per item, confirm portions with the user, then call log_meal (photo portions are approximate).

ParameterTypeDescription
url *stringDirect http(s) URL of the food image.