howtocook mcp
Turn your AI assistant into a personal chef that helps plan your daily meals!
Turn your AI assistant into a personal chef that helps plan your daily meals!
English | 简体中文
Turn your AI assistant into a personal chef that helps plan your daily meals!
An MCP (Model Context Protocol) server based on Anduin2017/HowToCook, allowing AI assistants to recommend recipes, plan meals, and solve the age-old question of "what should I eat today?"
Data Source: Anduin2017/HowToCook ⭐ Don't forget to star the repo if you haven't already!
This server works with all AI assistants and clients that support the MCP protocol, including but not limited to:
This MCP server provides the following culinary tools:
git clone https://github.com/worryzyy/howtocook-mcp.git
cd howtocook-mcp-server
npm install
npm run build
npm start
npm i -g howtocook-mcp
first, otherwise Failed to create client
will appearThen add the MCP server configuration in Cursor settings:
{
"mcpServers": {
"howtocook-mcp": {
"command": "npx",
"args": ["-y", "howtocook-mcp"]
}
}
}
{
"mcpServers": {
"howtocook-mcp": {
"command": "node",
"args": ["yourpathhowtocook-mcpbuildindex.js"]
}
}
}
For other clients supporting the MCP protocol, refer to their respective documentation. Generally, you'll need to specify:
howtocook-mcp
Command: npx -y howtocook-mcp
Restart the client to activate the culinary magic ✨
Here are example prompts for using these tools in MCP clients:
No parameters needed, just summon the culinary encyclopedia!
Please use the howtocook MCP service to query all recipes
Please use the howtocook MCP service to query seafood recipes
Parameters:
category
: Recipe category (seafood, breakfast, meat dishes, staple foods, etc.)Please use the howtocook MCP service to recommend a weekly meal plan for 3 people. We don't eat cilantro and are allergic to shrimp.
Parameters:
allergies
: List of allergens, e.g., ["garlic", "shrimp"]avoidItems
: Dietary restrictions, e.g., ["green onion", "ginger"]peopleCount
: Number of diners (1-10)Please use the howtocook MCP service to recommend a dinner menu for 4 people
Parameters:
peopleCount
: Number of diners (1-10)npm install -g howtocook-mcp
Forks and Pull Requests are welcome! Let's improve this culinary assistant together!
MIT License - Feel free to use, just like sharing your favorite recipes!
? The feast is about to begin, is your appetite ready?
[
{
"description": "获取所有菜谱",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"random_string": {
"description": "可选的随机字符串参数,无实际作用",
"type": "string"
}
},
"type": "object"
},
"name": "mcp_howtocook_getAllRecipes"
},
{
"description": "根据分类查询菜谱,可选分类有: 水产, 早餐, 调味料, 甜品, 饮品, 荤菜, 半成品, 汤羹, 主食, 素菜",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"category": {
"description": "菜谱分类名称,如水产、早餐、荤菜、主食等",
"enum": [
"水产",
"早餐",
"调味料",
"甜品",
"饮品",
"荤菜",
"半成品",
"汤羹",
"主食",
"素菜"
],
"type": "string"
}
},
"required": [
"category"
],
"type": "object"
},
"name": "mcp_howtocook_getRecipesByCategory"
},
{
"description": "根据用户的忌口、过敏原、人数智能推荐菜谱,创建一周的膳食计划以及大致的购物清单",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"allergies": {
"description": "过敏原列表,如["大蒜", "虾"]",
"items": {
"type": "string"
},
"type": "array"
},
"avoidItems": {
"description": "忌口食材列表,如["葱", "姜"]",
"items": {
"type": "string"
},
"type": "array"
},
"peopleCount": {
"description": "用餐人数,1-10之间的整数",
"maximum": 10,
"minimum": 1,
"type": "integer"
}
},
"required": [
"peopleCount"
],
"type": "object"
},
"name": "mcp_howtocook_recommendMeals"
},
{
"description": "不知道吃什么?根据人数直接推荐适合的菜品组合",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"peopleCount": {
"description": "用餐人数,1-10之间的整数,会根据人数推荐合适数量的菜品",
"maximum": 10,
"minimum": 1,
"type": "integer"
}
},
"required": [
"peopleCount"
],
"type": "object"
},
"name": "mcp_howtocook_whatToEat"
}
]