loading…
Search for a command to run...
loading…
An MCP server that enables AI-powered recipe generation and transformation using natural language, supporting dietary restrictions, allergies, and nutritional g
An MCP server that enables AI-powered recipe generation and transformation using natural language, supporting dietary restrictions, allergies, and nutritional goals.
An MCP (Model Context Protocol) server that provides AI-powered recipe generation and transformation tools using Cookwith's advanced culinary AI.
npx @modelcontextprotocol/create-server install @cookwith/mcp-server
npm install -g @cookwith/mcp-server
Add to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"cookwith": {
"command": "npx",
"args": ["@cookwith/mcp-server"]
}
}
}
generate_recipeGenerate a new recipe based on natural language instructions.
Parameters:
prompt (string, required): Natural language description of the desired recipedietaryRestrictions (array): Dietary restrictions (e.g., vegetarian, vegan, gluten-free)allergies (array): Ingredients to avoid due to allergiesdislikes (array): Foods the user doesn't likecalories (string): Target calories per servingprotein (string): Target protein in grams per servingservings (number): Number of servings (1-20, default: 4)Example:
{
"prompt": "A healthy pasta dish with lots of vegetables",
"dietaryRestrictions": ["vegetarian"],
"calories": "500",
"servings": 2
}
transform_recipeTransform or modify an existing recipe based on instructions.
Parameters:
recipe (object, required): The recipe to transformtitle (string): Recipe titledescription (string): Recipe descriptioningredients (array): List of ingredientsinstructions (array): Cooking instructionsservings (number): Number of servingsinstructions (string, required): How to transform the recipecalories (string): New target calories per servingprotein (string): New target protein per servingservings (number): New number of servingsExample:
{
"recipe": {
"title": "Classic Spaghetti Carbonara",
"description": "Traditional Italian pasta dish",
"ingredients": ["400g spaghetti", "200g guanciale", "4 eggs", "100g pecorino"],
"instructions": ["Cook pasta", "Fry guanciale", "Mix eggs and cheese", "Combine"],
"servings": 4
},
"instructions": "Make it vegetarian and reduce calories",
"calories": "400"
}
Once configured, you can use natural language to interact with the tools:
"Generate a healthy dinner recipe for 2 people with chicken and vegetables, around 500 calories per serving"
"Transform this pasta recipe to be gluten-free and dairy-free"
import { Client } from '@modelcontextprotocol/sdk';
const client = new Client({
name: 'my-app',
version: '1.0.0'
});
await client.connect('npx', ['@cookwith/mcp-server']);
// Generate a recipe
const result = await client.callTool('generate_recipe', {
prompt: 'Quick and healthy breakfast',
calories: '350',
servings: 1
});
git clone https://github.com/blaideinc/cookwith-mcp
cd cookwith-mcp
npm install
npm run build
npm start
npm test
The MCP server can also be accessed via HTTP at:
https://cookwith.co/api/mcphttp://localhost:3000/api/mcpMIT
Cookwith is an AI-powered cooking platform that generates personalized recipes based on your preferences, dietary restrictions, and taste profile. Learn more at cookwith.co.
Выполни в терминале:
claude mcp add cookwith-mcp -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.