{
  "markdown": "# Cookwith MCP Server\n\nAn MCP (Model Context Protocol) server that provides AI-powered recipe generation and transformation tools using Cookwith's advanced culinary AI.\n\n## Features\n\n- **Recipe Generation**: Create custom recipes from natural language descriptions\n- **Recipe Transformation**: Modify existing recipes based on dietary needs, serving sizes, or other requirements\n- **Dietary Support**: Handle allergies, dietary restrictions, and nutritional goals\n- **Smart Adaptations**: Adjust for calories, protein targets, and serving counts\n\n## Installation\n\n### Via MCP Registry\n\n```bash\nnpx @modelcontextprotocol/create-server install @cookwith/mcp-server\n```\n\n### Via npm\n\n```bash\nnpm install -g @cookwith/mcp-server\n```\n\n### For Claude Desktop\n\nAdd to your Claude Desktop configuration:\n\n**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`\n**Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"cookwith\": {\n      \"command\": \"npx\",\n      \"args\": [\"@cookwith/mcp-server\"]\n    }\n  }\n}\n```\n\n## Available Tools\n\n### `generate_recipe`\n\nGenerate a new recipe based on natural language instructions.\n\n**Parameters:**\n- `prompt` (string, required): Natural language description of the desired recipe\n- `dietaryRestrictions` (array): Dietary restrictions (e.g., vegetarian, vegan, gluten-free)\n- `allergies` (array): Ingredients to avoid due to allergies\n- `dislikes` (array): Foods the user doesn't like\n- `calories` (string): Target calories per serving\n- `protein` (string): Target protein in grams per serving\n- `servings` (number): Number of servings (1-20, default: 4)\n\n**Example:**\n```javascript\n{\n  \"prompt\": \"A healthy pasta dish with lots of vegetables\",\n  \"dietaryRestrictions\": [\"vegetarian\"],\n  \"calories\": \"500\",\n  \"servings\": 2\n}\n```\n\n### `transform_recipe`\n\nTransform or modify an existing recipe based on instructions.\n\n**Parameters:**\n- `recipe` (object, required): The recipe to transform\n  - `title` (string): Recipe title\n  - `description` (string): Recipe description\n  - `ingredients` (array): List of ingredients\n  - `instructions` (array): Cooking instructions\n  - `servings` (number): Number of servings\n  - Additional optional fields for nutrition, timing, etc.\n- `instructions` (string, required): How to transform the recipe\n- `calories` (string): New target calories per serving\n- `protein` (string): New target protein per serving\n- `servings` (number): New number of servings\n\n**Example:**\n```javascript\n{\n  \"recipe\": {\n    \"title\": \"Classic Spaghetti Carbonara\",\n    \"description\": \"Traditional Italian pasta dish\",\n    \"ingredients\": [\"400g spaghetti\", \"200g guanciale\", \"4 eggs\", \"100g pecorino\"],\n    \"instructions\": [\"Cook pasta\", \"Fry guanciale\", \"Mix eggs and cheese\", \"Combine\"],\n    \"servings\": 4\n  },\n  \"instructions\": \"Make it vegetarian and reduce calories\",\n  \"calories\": \"400\"\n}\n```\n\n## Usage Examples\n\n### With Claude\n\nOnce configured, you can use natural language to interact with the tools:\n\n```\n\"Generate a healthy dinner recipe for 2 people with chicken and vegetables, around 500 calories per serving\"\n\n\"Transform this pasta recipe to be gluten-free and dairy-free\"\n```\n\n### Programmatic Usage\n\n```javascript\nimport { Client } from '@modelcontextprotocol/sdk';\n\nconst client = new Client({\n  name: 'my-app',\n  version: '1.0.0'\n});\n\nawait client.connect('npx', ['@cookwith/mcp-server']);\n\n// Generate a recipe\nconst result = await client.callTool('generate_recipe', {\n  prompt: 'Quick and healthy breakfast',\n  calories: '350',\n  servings: 1\n});\n```\n\n## Development\n\n### Building from Source\n\n```bash\ngit clone https://github.com/blaideinc/cookwith-mcp\ncd cookwith-mcp\nnpm install\nnpm run build\n```\n\n### Running Locally\n\n```bash\nnpm start\n```\n\n### Testing\n\n```bash\nnpm test\n```\n\n## API Endpoint\n\nThe MCP server can also be accessed via HTTP at:\n- Production: `https://cookwith.co/api/mcp`\n- Development: `http://localhost:3000/api/mcp`\n\n## License\n\nMIT\n\n## Support\n\n- GitHub Issues: [https://github.com/blaideinc/cookwith-mcp/issues](https://github.com/blaideinc/cookwith-mcp/issues)\n- Website: [https://cookwith.co](https://cookwith.co)\n\n## About Cookwith\n\nCookwith is an AI-powered cooking platform that generates personalized recipes based on your preferences, dietary restrictions, and taste profile. Learn more at [cookwith.co](https://cookwith.co).",
  "bytes": 4368,
  "sha": "9245b1ac4837ca5f1e4b0220be64465e54ba0762108e2c7542d4c4047710ab7f",
  "repo_slug": "blaideinc/cookwith-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_jkakar_cookwith_mcp_cc4998f6/readme"
}