Mcp Cookbook
@mikevalstar
MCP server providing AI coding assistants with reusable recipes and procedures for common development tasks
Overview
What is Mcp Cookbook?
Mcp Cookbook is an MCP server that equips AI coding assistants with step-by-step recipes and procedures for common development tasks, from project setup to deployment patterns. It is intended for teams wanting consistent processes and developers accelerating tasks with AI assistance.
How to use Mcp Cookbook?
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.
Key features of Mcp Cookbook
- 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_cookbookandread_cookbook. - Libraries inside a project can have their own cookbooks.
Use cases of Mcp Cookbook
- Standardizing backend API controller creation, email notification setup, or API versioning.
- Frontend tasks like creating UI components, adding Storybook stories, or setting up pages/routes.
- Code quality and refactoring procedures, such as component refactoring.
- Adding unit tests for new features with consistent test structure.
FAQ from Mcp Cookbook
What are cookbooks?
Cookbooks are markdown files with YAML frontmatter that contain step-by-step procedures and recipes for common development tasks. They are stored in the .cookbook/ directory.
How do I write a cookbook?
Create a markdown file in the .cookbook/ directory with frontmatter including name, short, and description. Organize content using section headings, numbered steps, code blocks, and bullet points.
How do I configure the server?
Set the environment variable COOKBOOK_ROOT to the path of your project’s cookbook folder. Example configurations for Cursor (using npx or local node) are provided in the README.
What MCP functions are available?
Two functions: search_cookbook searches all cookbooks and returns their name and description; read_cookbook provides a single cookbook’s full content to the LLM.
Where are cookbooks stored?
Cookbooks are stored in the .cookbook/ directory of your project. Libraries within a project can also have their own cookbooks.