indian-food-nutrition-mcp
An MCP server that lets you log meals through Claude (and soon ChatGPT) in plain language, using India's official food composition data (IFCT 2017) plus USDA, enabling accurate calorie and macro tracking for Indian dishes with household units and photo logging.
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 wrong 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_historyreturns 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)
npm install -g indian-food-nutrition-mcp
Add to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"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
| Tool | What it does |
|---|---|
search_food |
Search 8,300+ foods (IFCT + USDA), per-100g cal/protein/carb/fat/fiber |
log_meal |
Log items with mandatory qty + household unit; DB-derived macros |
get_day |
A day's log + totals |
get_history |
Per-day totals over a range, the AI-coaching context block |
edit_entry / delete_entry |
Fix mistakes so history stays honest |
fetch_image |
Pull 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/ifct2017package, AGPL) - USDA FoodData Central, SR Legacy
- Indian Nutrient Databank (Jaacks Lab), code support, data pending license
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。