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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cookiemunch/mcp

v0.24.0

Published

Model Context Protocol server for the Cookie Munch Developer API

Readme

@cookiemunch/mcp

A Model Context Protocol server that exposes the Cookie Munch Developer API (the /v1 surface) as MCP tools, built on top of @cookiemunch/sdk. Point an MCP client (Claude Desktop, Claude Code, …) at it and an assistant can manage sites, read consent analytics, and drive privacy operations on your behalf.

How it authenticates

The server reads an API key from the environment and derives your organization from it server-side — you never pass an orgId.

| Env var | Required | Default | | --- | --- | --- | | COOKIEMUNCH_API_KEY | yes | — | | COOKIEMUNCH_BASE_URL | no | https://api.cookiemunch.net |

Generate a key from the dashboard (it looks like fck_…).

Tools

| Tool | Description | | --- | --- | | whoami | Identity tied to the API key (orgId, plan, key prefix). | | list_sites | List all sites (cbids) in your org. | | create_site | Create a site (cbid auto-generated if omitted). | | get_site_config | Get a site's banner/consent config. | | update_site_config | Upsert (merge) a site's config. | | get_consent_stats | Aggregated per-day consent statistics. | | get_consent_log | Recent anonymised consent records. | | list_dsar | List Data Subject Access Requests. | | create_dsar | Open a new DSAR. | | advance_dsar | Move a DSAR to a new status. | | list_vendors | Vendors with computed risk scores. | | list_ropa | Records of Processing Activities. | | get_rights_page, update_rights_page, patch_rights_page, preview_rights_page | Read, replace, change or dry-run the hosted rights page draft. Pass baseUpdatedAt so a newer save is a conflict, not overwritten. | | publish_rights_page, get_published_rights_page, list_rights_page_versions, rollback_rights_page | Publish (live at once), read the live page and its history, roll back. A rollback replaces the draft; pass baseUpdatedAt to both. | | list_rights_page_domains, add_rights_page_domain, verify_rights_page_domain, remove_rights_page_domain | Serve the rights page on your own hostname. | | create_rights_link | A signed, single-use rights-page link for a signed-in person. | | get_mail_provider, set_mail_provider, test_mail_provider, remove_mail_provider | Your own email provider for rights-request mail. |

The full list, with every argument, is on cookiemunch.net/docs/mcp-tools.

Client configuration

Claude Desktop / Claude Code

Add to your MCP servers config (claude_desktop_config.json, or via claude mcp add):

{
  "mcpServers": {
    "cookiemunch": {
      "command": "npx",
      "args": ["-y", "@cookiemunch/mcp"],
      "env": {
        "COOKIEMUNCH_API_KEY": "fck_your_key_here"
      }
    }
  }
}

Or, from a local checkout after pnpm --filter @cookiemunch/mcp build:

{
  "mcpServers": {
    "cookiemunch": {
      "command": "node",
      "args": ["/absolute/path/to/packages/mcp/dist/bin.js"],
      "env": {
        "COOKIEMUNCH_API_KEY": "fck_your_key_here"
      }
    }
  }
}

Programmatic use

import { createCookieMunchMcp } from '@cookiemunch/mcp';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';

const server = createCookieMunchMcp({ apiKey: process.env.COOKIEMUNCH_API_KEY!, baseUrl: 'https://api.cookiemunch.net' });
await server.connect(new StdioServerTransport());