🥗 Kitchen MCP Server
A Model Context Protocol (MCP) server focused on food, nutrition, and recipe suggestions. This project allows you to query ingredients, get nutritional information, and receive recipe recommendations using the open MCP standard, making it compatible with Claude Desktop and other MCP clients.
Features
Query foods and their nutritional information.
Search for foods by nutritional criteria (protein, fat, calories).
List available ingredients.
Get all available recipes.
Get recipe suggestions based on nutrition.
Find recipes by ingredients.
Suggest recipes by diet type (vegan, keto, etc.) and calories.
Suggest substitutes for a given ingredient.
Suggest necessary kitchen utensils for a recipe.
Recommend foods or recipes based on your mood and optionally the season.
All endpoints follow the MCP protocol and are compatible with Claude Desktop and other MCP clients.
Project Structure
src/mcp-server.js: Main MCP server implementation (Node.js).src/utils.js: Utility functions (e.g., Levenshtein distance).data/: Contains JSON and CSV files with food and recipe data.
Requirements
Node.js 18 or higher
npm
Installation
Clone the repository:
git clone https://github.com/paulabaal12/kitchen-mcp.git cd kitchen-mcpInstall dependencies:
npm installMake sure your data files (
ingredientes_unificados.json,recetas_unificadas.json) are present in thesrc/data/directory.
Usage
Running the MCP Server
To start the server for use with Claude Desktop:
Claude Desktop Configuration
Add the following to your claude_desktop_config.json:
Adjust the path if your project is in a different location.
Example: Get Recipes by Ingredients
Prompt in Claude Desktop:
Sample MCP Tool Call (Direct Format):
Sample MCP Tool Call (Generic Format):
Sample Response:
Example Recipe: Creole Cream Cheesecake With Caramel-Apple Topping
Ingredients:
Graham cracker crumbs, sugar, butter, cream cheese, eggs, apples, honey, cinnamon, cardamom, ginger, vanilla, lemon.
Preparation:
Prepare the crust and bake.
Mix and bake the cheesecake filling.
Make the caramel-apple topping in a pan.
Chill the cheesecake, then top with apples before serving.
Approximate Calories:
~7,700 calories for the whole cheesecake (about 480–640 per slice).
MCP Tools (Endpoints)
The following MCP tools are available:
Name | Description |
| Get all available foods. |
| Find a specific food by name. |
| Search foods by nutritional criteria (minProtein, maxFat, maxCalories). |
| Get list of available ingredients. |
| Get recipe suggestions based on nutritional content. |
| Get all available recipes. |
| Find recipes by specific ingredients. |
| Suggest recipes by diet type (vegan, keto, etc). Optionally filter by calories. |
| Suggest substitutes for a given ingredient (e.g., orange juice). |
| Suggest necessary kitchen utensils for a given recipe (by name). |
| Recommends foods or recipes based on mood and optionally season (e.g., happy + summer). |
Example: Recommend by Mood and Season
Prompt:
Sample MCP Tool Call (Direct Format):
Sample MCP Tool Call (Generic Format):
Sample Response:
If you add a
season(e.g.,"season": "autumn"), the recommendations will also consider seasonal foods.You can set
typetofoodorrecipe(default is recipe).
Example: Suggest Utensils for a Recipe
Prompt:
Sample MCP Tool Call (Direct Format):
Sample MCP Tool Call (Generic Format):
Sample Response:
Visual Examples with Claude Desktop
Example: Recipe search by ingredients or diet
Recipe search using ingredients in Claude Desktop.
Example: Recommendation by mood
Food recommendation based on mood in Claude Desktop.
Example: Utensil suggestion
Automatic utensil suggestion for a recipe in Claude Desktop.
Example: Ingredient substitution
Ingredient substitution suggestion in Claude Desktop