cn-food-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cn-food-mcp compare nutrition for 鸡蛋 and 牛奶"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cn-food-mcp
MCP server for Chinese food nutrition data. Provides ~1725 foods with 25 nutrients per 100g.
Usage
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"cn-food": {
"command": "npx",
"args": ["-y", "cn-food-mcp"]
}
}
}Cursor
Add to Cursor MCP settings:
{
"mcpServers": {
"cn-food": {
"command": "npx",
"args": ["-y", "cn-food-mcp"]
}
}
}Related MCP server: nutrition-mcp-server
Tools
list_nutrients
List all available nutrient fields with Chinese/English names and units.
Parameters: none
Example: {}
{
"per_100g": true,
"nutrients": [
{ "field": "energy", "name_cn": "能量", "name_en": "Energy", "unit": "kcal" },
{ "field": "protein", "name_cn": "蛋白质", "name_en": "Protein", "unit": "g" },
{ "field": "carbohydrate", "name_cn": "糖类", "name_en": "Carbohydrate", "unit": "g" },
{ "field": "fat", "name_cn": "脂肪", "name_en": "Fat", "unit": "g" },
{ "field": "vitamin_a", "name_cn": "维生素A", "name_en": "Vitamin A", "unit": "μg" },
{ "field": "calcium", "name_cn": "钙", "name_en": "Calcium", "unit": "mg" },
"... (25 nutrients total)"
]
}search_food
Search foods by name.
Parameters:
query(string) — Food name keyword
Example: { "query": "豆腐" }
{
"count": 20,
"foods": [
{
"id": 285,
"name": "豆腐",
"energy_kcal": 81,
"protein_g": 8.1,
"fat_g": 3.7,
"carbohydrate_g": 3.8
},
{
"id": 286,
"name": "豆腐(北)",
"energy_kcal": 98,
"protein_g": 12.2,
"fat_g": 4.8,
"carbohydrate_g": 1.5
}
]
}get_nutrition
Get full nutrition data for a food by ID (from search_food).
Parameters:
food_id(number) — Food ID
Example: { "food_id": 579 }
{
"id": 579,
"name": "鸡蛋(白皮)",
"energy": 138,
"protein": 12.7,
"carbohydrate": 1.5,
"fat": 9,
"water": 75.8,
"fiber": 0,
"ash": 1,
"vitamin_a": 310,
"carotene": 0,
"retinol_equivalent": 310,
"vitamin_b1": 0.09,
"vitamin_b2": 0.31,
"niacin": 0.2,
"vitamin_c": 0,
"vitamin_e": 1.23,
"potassium": 98,
"sodium": 94.7,
"calcium": 48,
"magnesium": 14,
"iron": 2,
"manganese": 0.03,
"zinc": 1,
"copper": 0.06,
"phosphorus": 176,
"selenium": 16.55,
"unit": 100
}compare_foods
Compare nutrition of 2-5 foods side by side.
Parameters:
food_ids(number[]) — Array of 2-5 food IDs
Example: { "food_ids": [579, 580, 586] }
{
"unit": 100,
"foods": [
{ "id": 579, "name": "鸡蛋(白皮)", "energy": 138, "protein": 12.7, "fat": 9, "..." : "..." },
{ "id": 580, "name": "鸡蛋(红皮)", "energy": 156, "protein": 12.8, "fat": 11.1, "..." : "..." },
{ "id": 586, "name": "鸡蛋黄", "energy": 328, "protein": 15.2, "fat": 28.2, "..." : "..." }
]
}filter_by_nutrient
Filter foods by nutrient range.
Parameters:
nutrient(string) — One of:energy,protein,carbohydrate,fat,water,fiber,ash,vitamin_a,carotene,retinol_equivalent,vitamin_b1,vitamin_b2,niacin,vitamin_c,vitamin_e,potassium,sodium,calcium,magnesium,iron,manganese,zinc,copper,phosphorus,seleniummin(number, optional) — Minimum value (inclusive)max(number, optional) — Maximum value (inclusive)limit(number, optional) — Max results, default 20sort("asc"|"desc", optional) — Sort order, default"desc"
Example: { "nutrient": "protein", "min": 30, "sort": "desc", "limit": 3 }
{
"nutrient": "protein",
"count": 3,
"foods": [
{ "id": 875, "name": "骆驼掌", "protein": 72.8 },
{ "id": 899, "name": "曼氏无针乌贼", "protein": 65.3 },
{ "id": 959, "name": "墨鱼(干)", "protein": 65.3 }
]
}License
MIT
Available Tools
5 toolscompare_foodsA
对比多个食物的营养成分(每100g),提供2-5个食物ID
Inputs: food_ids (required).
filter_by_nutrientA
按营养素范围筛选食物,如查找高蛋白、低脂肪的食物
Inputs: nutrient (required), max, min, sort, +1 more.
get_nutritionA
获取某个食物的完整营养成分(每100g),需提供食物ID(通过 search_food 获取)
Inputs: food_id (required).
list_nutrientsA
列出所有可查询的营养素字段名、中英文名称和单位
Inputs: no named parameters.
search_foodA
按名称搜索中国食物,返回匹配的食物列表(含ID、名称、主要营养素摘要)
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct role: listing nutrient metadata, searching by name, retrieving full details, comparing multiple foods, and filtering by nutrient criteria. There is no meaningful overlap between them.
All tool names follow a consistent snake_case verb-first pattern (list_, search_, get_, compare_, filter_by_). Although filter_by_nutrient uses a preposition, it remains predictable and aligned with the others.
With 5 tools, the server is well-scoped for a food nutrition lookup domain. Each tool addresses a distinct user need without unnecessary redundancy.
The tool surface covers the full read-only workflow: discovering available nutrients, finding foods by name or nutrient criteria, getting detailed data, and comparing foods. There are no obvious dead ends or missing operations for the stated purpose.
Maintenance
Related MCP Connectors
Food and nutrition data: search, macros, and comparisons
Search foods, compare nutrients, and look up the full USDA FoodData Central database.
Nutrition facts for 24,000+ menu items of 100+ Japanese restaurant chains (kcal, PFC, salt, vitamins), each with the chain's source document. Search items, total a meal, and request missing chains.
Resolve Japanese food names to nutrition facts. All 2,538 foods from Japan's official tables.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides intelligent access to the USDA nutrition database through AI assistants, enabling users to search foods, compare nutritional content, find foods high in specific nutrients, and query authoritative nutrition data across 7,146+ food items through natural language.1-
- AlicenseAqualityDmaintenanceEnables natural language access to USDA's FoodData Central database with 1M+ foods, supporting search, nutrition facts, food comparison, and daily value calculations.8MIT
- AlicenseBqualityDmaintenanceProvides tools to search Korean food nutrition data from the Ministry of Food and Drug Safety (MFDS) database, enabling natural language queries for food composition details.227 npm6ISC
- FlicenseNot gradedqualityCmaintenanceProvides access to Taiwan packaged food and chain restaurant nutritional information, including search, nutrition calculation, and draft creation for new data.-