cn-food-mcp
Provides comprehensive Chinese food nutrition data with tools to search, compare, and filter foods by nutrient values.
README
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"]
}
}
}
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.