Skip to main content
Glama

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

Related MCP server: @mealmastery/mcp-server

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 recipe

  • dietaryRestrictions (array): Dietary restrictions (e.g., vegetarian, vegan, gluten-free)

  • allergies (array): Ingredients to avoid due to allergies

  • dislikes (array): Foods the user doesn't like

  • calories (string): Target calories per serving

  • protein (string): Target protein in grams per serving

  • servings (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 transform

    • title (string): Recipe title

    • description (string): Recipe description

    • ingredients (array): List of ingredients

    • instructions (array): Cooking instructions

    • servings (number): Number of servings

    • Additional optional fields for nutrition, timing, etc.

  • instructions (string, required): How to transform the recipe

  • calories (string): New target calories per serving

  • protein (string): New target protein per serving

  • servings (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

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.

Available Tools

2 tools
generate_recipeC

Generate a new recipe based on natural language instructions

Inputs: prompt (required), dietaryRestrictions, allergies, calories, +2 more.

transform_recipeB

Transform or modify an existing recipe

Inputs: recipe (required), instructions (required), calories, protein, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 2 tools

    Disambiguation5/5

    Both tools have clearly distinct purposes: generate_recipe creates new recipes from instructions, while transform_recipe modifies existing ones. No overlap or ambiguity.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern: generate_recipe and transform_recipe, with clear and predictable naming.

    Tool Count2/5

    Only 2 tools for a cooking assistant is too few; typical CRUD operations like list, get, delete are missing, making the surface feel thin.

    Completeness2/5

    The tool set lacks basic operations such as listing, searching, or deleting recipes, leaving significant gaps in expected functionality for a recipe management server.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that transforms AI assistants into personal chefs by providing recipe recommendations and meal planning features based on the HowToCook repository.
      5
      6,244 npm
      800
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for MealMastery AI meal planning that enables users to manage meal plans, recipes, and grocery lists through natural language conversation with AI agents like Claude.
      57 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server that provides cooking recipe lookup, classification, and weekly meal planning based on dietary restrictions and allergies.
      5
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server for AI-powered recipe generation and transformation, enabling users to create custom recipes from natural language descriptions and modify existing ones to meet dietary and nutritional goals.
      2
      61 npm
      1
      MIT