Listed from the MCP registry; nobody on Odel publishes it.
Chinese chain-restaurant calories and macros for 103 menu items, no API key.
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx foodcalorie-mcp
MCP client config
{
"mcpServers": {
"foodcalorie-china": {
"command": "uvx",
"args": [
"foodcalorie-mcp"
]
}
}
}Chinese food & restaurant-chain nutrition data for AI agents — 6 MCP tools so your agent stops guessing how many calories are in a Luckin coconut latte.
English nutrition data is everywhere — OpenFoodFacts, USDA, MyFitnessPal. Chinese chain-restaurant menu data is not. Ask an agent "how many calories in a Luckin coconut latte?" and it will either hallucinate a number or hand you a US Starbucks value as if it were the same thing.
This server gives your agent the actual data, with source links, and — just as importantly — tells it when a field is missing instead of inventing one.
Four ways in. Pick whichever fits your client.
1. Bundle (closest to one click) — download
foodcalorie-mcp-0.1.3.mcpb
and open it with Claude Desktop. No JSON, no terminal. Needs uv on your machine; the
bundle installs the released package on first run.
2. pip
pip install foodcalorie-mcp
Mirror lag: Aliyun/Tsinghua mirrors can be a few days behind. To get the current version immediately, add
--index-url https://pypi.org/simple.
3. uvx (no install step)
uvx --from foodcalorie-mcp foodcalorie-mcp
4. Docker
docker run -i --rm ghcr.io/jihaochang1/foodcalorie-mcp:0.1.3
The dataset ships inside the image and the server makes no outbound requests, so it runs
correctly with --network none.
{
"mcpServers": {
"foodcalorie": {
"command": "python",
"args": ["-m", "foodcalorie_mcp.server"]
}
}
}
Works with Claude Desktop, Cursor, Cline, WorkBuddy — anything that speaks MCP over stdio.
| Tool | What it does |
|---|---|
search_food_by_name | Primary lookup. Keyword search, Chinese or English, brand-aware (瑞幸, luckin, 蜜雪) |
get_daily_nutrition_summary | Sum a day's intake and show % of daily reference values |
compare_foods | Side-by-side macro comparison across several items |
list_foods_by_category | Browse by category (drinks / fast food / snacks / dairy / fruit…) |
get_health_tip | Short dietary note for a given food |
search_food_by_barcode | Barcode lookup — see caveat below before relying on it |
The free database is keyed on example barcodes (6901234567890-style sequential placeholders), not real EAN codes printed on packaging. So:
search_food_by_name or list_foods_by_category instead.search_food_by_barcode is kept for signature compatibility and for you to load your own mapping into.We put this at the top rather than let you discover it after installing.
Free tier: 103 items, calories/protein/fat/carbs 103/103.
Pro tier: 116 items across 14 Chinese chains — calories 116/116, official source link 116/116, but macros are only present where the official page actually publishes them:
| Field | Coverage |
|---|---|
| Calories · source link · brand · item name | 116 / 116 |
| Protein | 59 / 116 |
| Fat | 61 / 116 |
| Carbs | 54 / 116 |
| Sugar | 15 / 116 |
| Sodium | 4 / 116 |
| Caffeine | 21 / 116 |
| Allergens | 0 — not provided |
If you need "all 20 fields filled on every row", this is not that product — datasets like that are mostly fabricated. If you need "present means real, absent means absent", that is exactly the design premise here.
| Channel | Price | Delivery |
|---|---|---|
| Agensi (overseas, recommended) | $6.99 USD one-time | Instant, auto-delivered → https://www.agensi.io/skills/foodcalorie-pro-data |
| Direct (Alipay / WeChat, China) | ¥29 early bird → ¥49 | Manual, within 12h → https://jihaochang1.github.io/foodcalorie-pro/ |
Details: https://jihaochang1.github.io/foodcalorie-pro/en.html
Both are one-time purchases, not subscriptions. Code is Apache-2.0; the Pro data pack is single-user, non-transferable.
PRs to the official MCP SDK: modelcontextprotocol/python-sdk #3746, typescript-sdk #3076 / #3118.
中国食品营养数据 MCP 服务器 —— 让 AI Agent 查得到、算得准、不瞎猜
🍔 FoodCalorie Pro(¥49 一次性买断,早鸟 ¥29 限时至 2026-11-04) 在免费版 103 条通用食品之外,另含 116 条 / 14 个连锁品牌的菜单数据(肯德基 24、海底捞 20、蜜雪冰城 16、麦当劳 14、星巴克 14、瑞幸 11、喜茶 5、古茗 4…),卡路里 116/116 全覆盖,每条都带官方来源链接。 营养字段按实际覆盖如实标注:蛋白质 59/116、脂肪 61/116、碳水 54/116、糖 15/116、钠 4/116、咖啡因 21/116。不含过敏原数据——不是漏了,是不提供,也明确告诉 agent 不要猜。 👉 查看 Pro 详情与购买
四种方式,选一种即可:
# 1) 一键包:下载 .mcpb 后用 Claude Desktop 打开,无需手写 JSON
# https://github.com/Jihaochang1/foodcalorie-mcp/releases/latest
# 2) pip
pip install foodcalorie-mcp
# 3) uvx(免安装)
uvx --from foodcalorie-mcp foodcalorie-mcp
# 4) Docker(数据内嵌、不联网,可配 --network none)
docker run -i --rm ghcr.io/jihaochang1/foodcalorie-mcp:0.1.3
国内镜像(阿里云/清华)可能滞后几天,要立刻拿到当前版本加
--index-url https://pypi.org/simple。
foodcalorie-mcp
在 .claude/settings.json 或 cursorrules 中添加:
{
"mcpServers": {
"foodcalorie": {
"command": "python",
"args": ["-m", "foodcalorie_mcp.server"]
}
}
}
| 工具 | 描述 | 参数 |
|---|---|---|
search_food_by_barcode | 通过条码查询(⚠️ 见下方「关于条码」) | barcode: string |
search_food_by_name | 通过名称关键词搜索(中英文均可,支持品牌联想) | keyword: string, limit: int |
get_daily_nutrition_summary | 计算每日营养摄入汇总及每日值占比 | items: list[dict] |
get_health_tip | 获取健康饮食建议 | food_name: string |
list_foods_by_category | 按类别列出食品 | category: string?, limit: int |
compare_foods | 多食品营养成分对比 | barcode_list: list[str] |
免费版数据库的键是示例条码(6901234567890 这类连号占位值),不是真实商品包装上的 EAN 条码。因此:
search_food_by_name(名称关键词),或用 list_foods_by_category 按类别浏览。search_food_by_barcode 目前只对内置示例条码有效,保留它是为了兼容工具签名和自建映射(你可以把自己的条码表灌进来覆盖)。我们宁可把这件事写在最前面,也不想你装上之后踩坑才发现。
用户: 蜜雪冰城柠檬水多少卡?
AI: 调用 search_food_by_name(keyword="蜜雪冰城柠檬水")
用户: 我今天喝了可乐、一杯牛奶,还吃了鸡胸肉,算一下总热量
AI: 先 search_food_by_name 定位条目,再调用 get_daily_nutrition_summary(items=[...])
AI: 调用 list_foods_by_category(category="快餐", limit=5)
AI: 调用 compare_foods(barcode_list=["6901234567890", "6921234567896"])
| 字段 | 覆盖 | 说明 |
|---|---|---|
| 热量 | 116/116 | 全部有值 |
| 官方来源链接 | 116/116 | 全部可溯源 |
| 品牌 / 品名 / 规格 | 116/116 | 全部有值 |
| 蛋白质 | 59/116 | 官方页有标注的才录 |
| 脂肪 | 61/116 | 同上 |
| 碳水 | 54/116 | 同上 |
| 糖 | 15/116 | 中国区营养表常不标糖 |
| 钠 | 4/116 | 覆盖率低,别当完整数据用 |
| 咖啡因 | 21/116 | 仅咖啡/茶饮类品牌标注 |
| 过敏原 | 0 | 不提供 |
如果你需要的是「每条 20 个字段全满」的完美数据集,这个产品不适合你——那种数据市面上基本都是编的。如果你要的是「有就是有、没有就说没有」的数据,这是它的设计前提。
| 渠道 | 价格 | 交付 | 适合 |
|---|---|---|---|
| 官网直购(支付宝 / 微信) | ¥29 早鸟(限时至 2026-11-04),之后 ¥49 | 人工发送(通常 12 小时内) | 国内用户 |
| Agensi 平台 | $6.99 USD | 自动交付、平台代扣税,即时下载 | 海外用户(推荐) |
| PayPal | $6.99 USD | 邮件索取收款请求,付完即发 | 海外用户,不想走平台 |
付款后请把订单截图或交易号发给下面的联系方式,换取下载链接(Agensi 购买会自动交付,无需邮件)。
| 一级分类 | 数量 | 代表条目 |
|---|---|---|
| 饮料 | 22 | 可口可乐、元气森林、农夫山泉、瑞幸、喜茶… |
| 快餐 | 11 | 麦当劳、肯德基、汉堡王、沙县、老乡鸡… |
| 零食 | 10 | 乐事、奥利奥、三只松鼠、卫龙… |
| 水果 | 8 | 苹果、香蕉、草莓、猕猴桃… |
| 乳制品 | 7 | 伊利、蒙牛、安慕希、简爱… |
| 肉类 | 6 | 鸡胸肉、牛肉、猪肉、三文鱼… |
| 主食 | 6 | 米饭、面条、饺子、炒饭… |
| 便利店 | 3 | 全家、7-11、罗森便当 |
| 火锅食材 | 3 | 毛肚、肥牛、虾滑 |
| 其他 | 27 | 蛋类、豆制品、海鲜、调味品、速食、甜点… |
「快餐」里的品牌条目是通用参考值(如「汉堡王皇堡」),不是逐 SKU 的官方菜单数据。逐 SKU 的官方数据在 Pro 包里。
git clone https://github.com/Jihaochang1/foodcalorie-mcp
cd foodcalorie-mcp
pip install -e ".[dev]"
pytest tests/
ruff format src/
代码 Apache-2.0。Pro 数据包为单用户、不可转让授权,禁止再分发。
jihaochang1@github.com(购买 / 定制 / 合作)数据能不编就不编,编一次就没人再信了。 🥗
⭐ 觉得有用请给个 Star,这是持续维护唯一的正反馈。