MCP tools reference
- Written for
- + Written for
- Deprecated
- + Deprecated
- Applies to
- + Applies to
MCP tools reference
Every tool registered by @cookiemunch/mcp — registerTools in packages/mcp/src/tools.ts, plus registerConfigTools in packages/mcp/src/tools-config.ts for the structured config tools. Each tool wraps one @cookiemunch/sdk call (or a short read-patch-write sequence against sites.getConfig/putConfig) and returns its JSON result as the tool's text content. SDK errors are caught and returned as an isError result instead of crashing the session. See MCP setup for how to connect a client.
Every tool acts on the org tied to the configured API key — none accepts an orgId. Admin tools (invite_member, set_member_role, remove_member, issue_api_key) require an unscoped key, exactly like the REST routes they call.
Sites & install
Tool | Purpose | Args |
|---|---|---|
| Identity tied to the API key: orgId, plan, key prefix. | — |
| List all sites (cbids) in your org. | — |
| Create a site. cbid is auto-generated if omitted. |
|
| Delete a site and its config. |
|
| Get a site's full banner/consent config. |
|
| Upsert (merge) a site's config. |
|
| Verify domain control (dns / meta / file challenge). Required to unlock export + receipts. |
|
| Extract theme colors/fonts from a site's homepage. |
|
| Get the exact |
|
Consent & privacy
Tool | Purpose | Args |
|---|---|---|
| Aggregated per-day consent stats. |
|
| Recent anonymised consent records. |
|
| Export a site's consent log as raw CSV. |
|
| Signed consent receipt for one record. |
|
| Irreversibly crypto-erase a subject's records by stamp. |
|
| Export a subject's records (access/portability). |
|
| Save/update an end-user's purpose → boolean map. |
|
| List configurable consent purposes for your org. | — |
DSAR
Tool | Purpose | Args |
|---|---|---|
| List all DSARs for your org. | — |
| Open a new DSAR. |
|
| Move a DSAR to a new status. |
|
Governance: vendors & RoPA
Tool | Purpose | Args |
|---|---|---|
| Vendors with computed risk scores. | — |
| Register a vendor; risk score computed server-side. |
|
| List Records of Processing Activities. | — |
| Create a RoPA entry. |
|
Cookies & scanning
Tool | Purpose | Args |
|---|---|---|
| Cookies discovered on a site, with categories. |
|
| Trigger a cookie scan. |
|
| Status/result of the most recent scan. |
|
| A/B banner experiment results per variant. |
|
v2 banner flow editing
Tool | Purpose | Args |
|---|---|---|
| Get a site's v2 flow (views, categories) + lint issues. |
|
| Apply a batch of ops ( |
|
| Wholesale-replace a site's flow with a full v2 config. |
|
Structured v1 config (non-flow domains)
Each fetches the current config, patches only its own slice, and PUTs — safe to call repeatedly without clobbering unrelated settings.
Tool | Purpose | Args |
|---|---|---|
| Script-blocking mode. |
|
| Banner mode per country/region, first-match-wins. |
|
| i18n: default culture, auto-detect, per-locale copy. |
|
| Google Consent Mode signals. |
|
| A/B banner experiment. |
|
| Re-prompt policy. |
|
| v1 banner type/layout/theme/copy. |
|
Org, members & keys
Tool | Purpose | Args |
|---|---|---|
| List org members. | — |
| Invite by email. |
|
| Change a member's role. Owner's role can't change. |
|
| Remove a member. Owner can't be removed. |
|
| List keys (secrets never returned). | — |
| Issue a new key; secret returned once. | — |
| Usage/quota summary (domains, seats, monthlyEvents). | — |
Webhooks
Tool | Purpose | Args |
|---|---|---|
| List webhook subscriptions. | — |
| Create a subscription; response includes the signing secret once. |
|
| Delete a subscription. |
|
See Webhooks & events for the full event catalog.
Brand kits
Tool | Purpose | Args |
|---|---|---|
| List reusable brand kits. | — |
| Create a brand kit. |
|
| Delete a brand kit (must belong to your org). |
|
Banner library
Tool | Purpose | Args |
|---|---|---|
| List reusable banner designs. | — |
| Create a design. |
|
| Get a design by id. |
|
| Update name and/or config. |
|
| Delete (fails if still assigned to sites). |
|
| Set which sites use a design. |
|
| Publish a design live to its assigned sites. |
|
Example session
User: Create a site for shop.example.com, install it, and open a GDPR
access request for [email protected].
Agent calls: create_site({ domain: "shop.example.com" })
-> get_install_snippet({ cbid: "site_9f01ab" })
-> create_dsar({ type: "access", subjectEmail: "[email protected]", regulation: "gdpr" })Every tool above is a thin wrapper over the identically-named SDK method — if a tool's exact behavior is ambiguous, its underlying client.* call is the source of truth.