Indian Food Nutrition Mcp

io.github.krishnabhat由 GitHub 账号 krishnabhat 发布v1.0.2更新于 Nov 3, 2026

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

已验证STDIO仅桌面位置与生活数据与分析

概览

AI 生成的概览

本地 MCP 服务器,让助手查询印度与 USDA 食物营养数据、以家常份量记录饮食,并回顾摄入历史。

可以做什么
  • 搜索 8,300 多种食物(IFCT 2017 与 USDA),提供每 100 克的卡路里、蛋白质、碳水、脂肪和纤维
  • 按必填数量与家常单位(如 katori、盘、个)记录餐食,营养值取自数据库
  • 查看某天的记录与合计,以及某日期范围内每日合计,用作饮食指导上下文
  • 修改或删除条目以纠正错误
  • 从网址抓取食物照片,让模型查看并记录盘中餐
适用场景
适合希望助手准确记录印度家常菜(文字或照片)并回答今日或上周摄入情况的人。面向个人本地饮食记录,而非临床或多用户场景。
运行要求
作为本地进程运行,需从 npm 全局安装该包,并在 Claude Desktop 等桌面客户端中配置;仅支持桌面端。无需账号、API 密钥或环境变量。数据存于用户主目录下的 SQLite,可用 NUTRITION_DB_PATH 与 NUTRITION_CSV_PATH 覆盖路径。
安装前请注意
助手可写入、修改和删除本地数据库及 CSV 镜像中的饮食记录,误操作会影响历史数据。照片记录会从你提供的网址抓取图片。内置 INDB 熟食数据集未随包分发,需本地生成并仅供个人使用。代码采用 AGPL-3.0-or-later 许可。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Indian Food Nutrition Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

indian-food-nutrition-mcp

Your AI assistant can finally count Indian food calories correctly.

An MCP server that lets you log meals through Claude (and soon ChatGPT) in plain language: "2 rotis and a katori of dal", or just a photo of your plate. Calories and macros come from India's official food composition data (IFCT 2017, National Institute of Nutrition) plus USDA for everything else, not from US-centric databases that think a roti is a tortilla.

Why

Every popular calorie database is built on USDA data. It is inaccurate for home-cooked Indian food: wrong oils, wrong preparations, no katori, no idli. The one app with a great Indian database keeps it locked behind a subscription with no API. Meanwhile the Indian government published the real data. This project wraps it for the AI you already talk to, and gives that AI memory of what you actually ate.

  • Indian-accurate: IFCT 2017, measured across six Indian regions by NIN Hyderabad. Ghee, atta, dals, regional varieties.
  • Everything else too: 7,800+ USDA foods and drinks (public domain).
  • Household units: log in katori, plates, pieces, cups. Quantity is mandatory; the model asks instead of guessing portions.
  • Photo logging: show Claude your plate (upload or URL via fetch_image).
  • Your AI gets memory: get_history returns your real intake so the model can coach you ("your protein is low on training days") against data, not vibes.
  • Local-first and private: SQLite on your machine, plus an always-current CSV mirror at ~/.nutrition-mcp/meals.csv. No account, no cloud, no telemetry.

Quickstart (Claude Desktop)

bash
npm install -g indian-food-nutrition-mcp

Add to claude_desktop_config.json (Settings → Developer → Edit Config):

json
{  "mcpServers": {    "nutrition": {      "command": "indian-food-nutrition-mcp"    }  }}

Restart Claude Desktop, then just talk:

"Log breakfast: 3 idlis and a small bowl of sambar" "How much protein have I had today?" "Here's a photo of my lunch, log it" "Look at my last week and tell me where my diet is failing"

Tools

ToolWhat it does
search_foodSearch 8,300+ foods (IFCT + USDA), per-100g cal/protein/carb/fat/fiber
log_mealLog items with mandatory qty + household unit; DB-derived macros
get_dayA day's log + totals
get_historyPer-day totals over a range, the AI-coaching context block
edit_entry / delete_entryFix mistakes so history stays honest
fetch_imagePull a food photo from a URL so the model can see and log it

Data and licensing

Code is AGPL-3.0-or-later. Bundled data: IFCT 2017 + USDA SR Legacy (public domain). The INDB cooked-dish dataset (dal, dosa, idli as dishes with serving sizes) is supported by the code but not redistributed until its authors grant a license; generate it locally for personal use with npm run build:indb. Full provenance: DATA_SOURCES.md.

Hosted version (ChatGPT, mobile, zero setup)

This local server works with Claude Desktop today. A hosted version, which works as a ChatGPT connector and syncs across devices, is coming. Open an issue titled "hosted" or watch releases to get in early.

Storage

~/.nutrition-mcp/nutrition.db (SQLite, WAL) + ~/.nutrition-mcp/meals.csv (auto-maintained mirror). Override with NUTRITION_DB_PATH / NUTRITION_CSV_PATH.

Credits

  • Indian Food Composition Tables 2017, National Institute of Nutrition, Hyderabad (via the @nodef/ifct2017 package, AGPL)
  • USDA FoodData Central, SR Legacy
  • Indian Nutrient Databank (Jaacks Lab), code support, data pending license

来源:README.md,提交 94272b1

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分