cookwith-mcp
An MCP server that enables AI-powered recipe generation and transformation using natural language, supporting dietary restrictions, allergies, and nutritional goals.
README
Cookwith MCP Server
An MCP (Model Context Protocol) server that provides AI-powered recipe generation and transformation tools using Cookwith's advanced culinary AI.
Features
- Recipe Generation: Create custom recipes from natural language descriptions
- Recipe Transformation: Modify existing recipes based on dietary needs, serving sizes, or other requirements
- Dietary Support: Handle allergies, dietary restrictions, and nutritional goals
- Smart Adaptations: Adjust for calories, protein targets, and serving counts
Installation
Via MCP Registry
npx @modelcontextprotocol/create-server install @cookwith/mcp-server
Via npm
npm install -g @cookwith/mcp-server
For Claude Desktop
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"]
}
}
}
Available Tools
generate_recipe
Generate 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_recipe
Transform 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 servings- Additional optional fields for nutrition, timing, etc.
instructions(string, required): How to transform the recipecalories(string): New target calories per servingprotein(string): New target protein per servingservings(number): New number of servings
Example:
{
"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"
}
Usage Examples
With Claude
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"
Programmatic Usage
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
});
Development
Building from Source
git clone https://github.com/blaideinc/cookwith-mcp
cd cookwith-mcp
npm install
npm run build
Running Locally
npm start
Testing
npm test
API Endpoint
The MCP server can also be accessed via HTTP at:
- Production:
https://cookwith.co/api/mcp - Development:
http://localhost:3000/api/mcp
License
MIT
Support
- GitHub Issues: https://github.com/blaideinc/cookwith-mcp/issues
- Website: https://cookwith.co
About Cookwith
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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。