Mcp Cookbook

by mikevalstar

162 downloads
Not rated
GitHub

About

MCP server providing AI coding assistants with reusable recipes and procedures for common development tasks

Details

Author
mikevalstar
Downloads
162
Categories
Other

- Provides step-by-step procedures for common development tasks.
- Cookbooks are markdown files stored in a .cookbook/ directory.
- Each cookbook includes YAML frontmatter (name, short code, description) for search.
- Two MCP functions: search_cookbook and read_cookbook.
- Libraries inside a project can have their own cookbooks.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Mcp Cookbook
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install and configure the server by adding its configuration to your MCP client (e.g., Cursor) and setting the COOKBOOK_ROOT environment variable to your project’s cookbook directory. The server provides two MCP functions—search_cookbook and read_cookbook—that let an LLM discover and read cookbook markdown files.

list_cookbooks

List all the cookbooks

search_cookbook

Search to cookbook for reusable tasks and procedures (cookbook recipes)

read_cookbook

Read a cookbook recipe so that it can be followed after reading the recipe; use it to complete the task.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp cookbook": {
            "mcp-cookbook": {
                "command": "npx",
                "args": [
                    "-y",
                    "@mikevalstar/mcp-cookbook"
                ],
                "env": {
                    "COOKBOOK_ROOT": "/Users/username/projects/mcp-cookbook"
                }
            }
        }
    }
}

McpServers

{
    "mcp-cookbook": {
        "command": "npx",
        "args": [
            "-y",
            "@mikevalstar/mcp-cookbook"
        ],
        "env": {
            "COOKBOOK_ROOT": "/Users/username/projects/mcp-cookbook"
        }
    }
}

🍳 MCP Cookbook

An MCP (Model Context Protocol) server that equips AI coding assistants with step-by-step recipes and procedures for common development tasks. From project setup and configuration to deployment patterns, mcp-cookbook provides your AI tools with the knowledge to guide you through standard workflows efficiently.

Perfect for teams wanting consistent, repeatable processes across projects and developers looking to accelerate common development tasks with AI assistance.

Example Usage

Following procedure parserfunc1 : Add a new parser function in the libs folder

See .cookbook/cookbook-1.md for a complete example of a well-structured cookbook that follows the below conventions

More example procedures: _coming soon_

Running

For Cursor:

{
  "mcpServers": {
    "mcp-cookbook": {
      "command": "npx",
      "args": ["-y", "@mikevalstar/mcp-cookbook"],
      "env": {
        "COOKBOOK_ROOT": "/Users/username/projects/mcp-cookbook"
      }
    }
  }
}
{
  "mcpServers": {
    "mcp-cookbook": {
      "command": "node",
      "args": ["/Users/username/projects/mcp-cookbook/build/index.js"],
      "env": {
        "COOKBOOK_ROOT": "/Users/username/projects/mcp-cookbook"
      }
    }
  }
}

Ensure that you set the COOKBOOK_ROOT to your project, or to a global cookbooks folder as it will load the files from there

Use Cases

MCP Cookbook is perfect for standardizing and automating common development workflows. Here are some example procedures that benefit from having structured cookbooks:

Backend Development

- Adding a new API controller - Standardize file structure, routing, validation, and testing patterns
- Setting up email notifications - Configure templates, documentation, example data
- API versioning - Create new API versions, and including the old versions

Frontend Development

- Creating new UI components - Set up component files, stories, tests, and documentation
- Adding Storybook stories - Generate component stories with proper controls and documentation to specification
- Setting up new pages/routes - Create page components, routing configuration, and navigation
- Implementing responsive layouts - Add guidelines for breakpoints as well as css class helpers
- Adding form validation - Describing form validation requirements

Code Quality & Refactoring

- Refactoring components - Describe and set procedures for refactoring from one format to another

Testing & Quality Assurance

- Adding unit tests for new features - Test file structure, mocking patterns, assertion strategies

These cookbooks ensure consistency with your AI editors and enforce more complex rules that can be applied / referenced by the developer(s)

Cookbooks

Cookbooks are markdown files that contain step-by-step procedures and recipes for common development tasks. They are stored in the .cookbook/ of your project directory and follow a specific structure to ensure consistency and discoverability.

Note: Libraries in your project can have their own cookbooks

Writing a Cookbook

Each cookbook is a markdown file with frontmatter that provides metadata about the recipe. Here's how to create one:

1. File Structure

- Place your cookbook in the .cookbook/ directory
- Use a descriptive filename ending in .md

2. Frontmatter

Each cookbook must start with YAML frontmatter containing:

---
name: Descriptive Name of the Recipe
short: shortcode
description: A brief description of what this cookbook accomplishes
---

- name: The full, human-readable title of the cookbook
- short: A short identifier/code for quick reference
- description: A concise explanation of the cookbook's purpose

All of these will be used for searching for cookbooks in your project by your LLM

3. Content Structure

Organize your cookbook content using:

- Clear section headings (##, ###)
- Numbered steps for procedures
- Code blocks for commands and examples
- Bullet points for additional notes or requirements

MCP Functions

The following are the MCP Functions we provide to the LLM

search_cookbook

Searches through all cookbooks found and provides a relevant list of cookbooks (first 50) and returns the name and description

read_cookbook

Provides a single cookbook read to the LLM for it to complete, does not include the frontmatter

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.