npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mikevalstar/mcp-cookbook

v0.2.0

Published

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

Readme

🍳 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