# ConsentStack MCP Server

> **ConsentStack MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to ConsentStack.
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/consentstack-mcp
> MewCP docs:   https://docs.mewcp.com
> All servers:  https://mewcp.com/servers (JSON: https://mewcp.com/api/servers)
> About MewCP:  https://mewcp.com/llms.txt

---

## About

ConsentStack automates website cookie consent management by creating and publishing consent banners, configuring privacy settings, detecting and categorizing tracking scripts, running compliance scans, and reviewing consent analytics and logs for GDPR and other privacy regulations.

---

## Details

- Server ID: `consentstack-mcp`
- Version: 1.0.0
- Tools: 37
- Authentication: OAuth, managed by MewCP
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — ConsentStack has to be in the toolset
first. In order:

1. Add ConsentStack to your toolset at https://mewcp.com/mcp/consentstack-mcp
2. Connect your ConsentStack account (OAuth); MewCP stores the credential and attaches it to each call
3. Add the gateway URL to your client (see Connect below). It signs in with OAuth
   the first time it connects, so there is no key to copy.

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `manage_connections(requests?)` — connection status and account aliases, plus
  links the user opens to add an app or connect an account
- `call_tool(app_maskedId, tool_name, args, alias?)` — execute

If ConsentStack isn't in the toolset or connected yet, `manage_connections` with
app_maskedId `consentstack-mcp` returns a link that adds it and connects an account.

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (37)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `list_sites` _(read)_ — List every team the authenticated user belongs to and the sites in each, with the user's role and each site's plan. Call this first to find the teamSlug and…
- `get_site_overview` _(read)_ — Orientation for one site: plan and full entitlement matrix (which features the plan allows, with upgrade hints for gated ones), MAU usage vs cap, domains and…
- `get_config` _(read)_ — Read the site's consent configuration. view=published (default) returns what is live; view=draft overlays any pending unpublished section drafts. Optionally…
- `update_appearance` _(write)_ — Stage appearance changes (layout, colors, fonts, spacing, customCss, customJs) as a draft. Partial patch: include only fields to change. Nested objects…
- `update_content` _(write)_ — Stage banner and preferences copy changes (titles, descriptions, button labels, links, per-consent-model overrides) as a draft. Partial patch: include only…
- `update_compliance` _(write)_ — Stage compliance changes as a draft: consent categories, regions, consent rules (which consent model applies per category and region), language configuration,…
- `update_settings` _(write)_ — Stage behavior toggle changes as a draft: geoDetectionEnabled, crossDomainConsent, consentTtlDays (1 to 3650 or null), strictFallbackEnabled,…
- `publish_config` _(write)_ — Publish pending config drafts, making them live for real site visitors. IMPORTANT: before calling this, summarize every pending change to the user in plain…
- `discard_draft` _(write)_ — Delete one section's pending draft without publishing it. The live config is unaffected. Confirm with the user before discarding work they may want.
- `list_detected_trackers` _(read)_ — Inventory of trackers the SDK has observed on this site: catalog products (with vendor, default category, the effective category after any manual override,…
- `set_tracker_category` _(write)_ — Categorize a tracker so the SDK gates it behind consent for that category. Target a catalog product by productId (one rule per catalog row of the product: host…
- `clear_tracker_override` _(write)_ — Remove the manual category rules for a catalog product (by productId; whole-host rules on hosts other services share are left alone and reported) or a…
- `set_hostname_policy` _(write)_ — Set a per-hostname policy: ignore (always allow, never gate; for trusted first-party hosts), block (always block regardless of consent), or clear (remove the…
- `create_site` _(write)_ — Create a new site in an existing team on the Basic tier (free, no billing step). Optionally seed the first domain. Returns the site slug and public site key…
- `manage_domains` _(write)_ — Manage the site's domains. Actions: list (all domains with verification status), add, remove, set_primary, check (re-read one domain's verification status).…
- `start_scan` _(write)_ — Scan one of this site's verified domains for consent compliance (EU and US visits, tracker and cookie behavior before and after consent choices). Defaults to…
- `get_scan_result` _(read)_ — Status and structured verdict for a scan started with start_scan: overall score, per-regulation status, and per-region (EU, US) verdict, findings with…
- `get_consent_analytics` _(read)_ — Aggregated consent analytics for a site: KPIs (total events, impressions, consent rate, average time to action), daily or hourly trend, per-category acceptance…
- `get_consent_logs` _(read)_ — Paginated consent decision records for a site, newest first: event type and action, categories chosen, regulation and region, device, page, timing. limit 1 to…
- `get_policy_questions` _(read)_ — The question set for the business profile (document=profile) or one policy: each question's key, kind, label, help, options, when it applies (showIf) and…
- `search_service_catalog` _(read)_ — Find a service by name (Stripe, Mailchimp, HubSpot) to add to a Privacy or Cookie Policy with update_policy_services. Use it for services the site cannot…
- `get_policy_profile` _(read)_ — A site's business profile (legal name, entity type, where it is formed, contacts, processing location, children rule, change notices) and law answers (US…
- `get_policy` _(read)_ — One policy on one site: status, draft and published answers, starting answers when it has not been started, the services list (Privacy and Cookie Policies, as…
- `preview_policy` _(read)_ — Render the policy's saved draft as readable text, exactly as it would publish, or list the questions still unanswered. Show the user the text (or a summary of…
- `list_policies` _(read)_ — Every site in every team you belong to (or one team): whether the business profile is complete, each document's status, version and pending reviews, where each…
- `get_policy_embed` _(read)_ — The paste-ready snippet for the page that should show a policy, with attribution set by the site's plan, its hosted URL, the layout, where to paste it on…
- `update_policy_profile` _(write)_ — Change a site's business profile (answers) and law answers (lawIdentifier). Each is a partial patch merged over what is stored; null clears an optional field…
- `update_policy_answers` _(write)_ — Stage answer changes on one policy's draft. Partial patch: nested objects merge over the current draft, arrays and plain values replace, and null clears an…
- `update_policy_services` _(write)_ — Change which services a Privacy or Cookie Policy names, applied in order: hide or show a listed service, rename it, add a catalog service the site cannot…
- `discard_policy_draft` _(write)_ — Throw away a policy's unpublished draft: back to the published answers, or to not started when it never published. The live policy is unaffected. Confirm with…
- `set_policy_layout` _(write)_ — Choose how an embedded or hosted policy lays out its sections: accordion (each folds into a row visitors expand) or flat (all open). Applies to every pasted…
- `copy_policy_answers` _(write)_ — Copy one site's business profile and every started policy's answers to other sites in the same team. For each destination this replaces its business profile…
- `publish_policies` _(write)_ — Publish one or more policies on a site, making them live on the hosted page and every embed. IMPORTANT: before calling this, show the user the preview (or…
- `resolve_policy_review` _(write)_ — Apply or dismiss one pending review item (listed by get_policy). Applying republishes the policy with the change; for a new-law question, pass the answers by…
- `search_docs` _(read)_ — Keyword-search the ConsentStack documentation. Returns matching pages with title, url, and a snippet. Use get_doc with the doc slug (path after /docs/) to read…
- `get_doc` _(read)_ — Fetch one ConsentStack documentation page as markdown by its slug, e.g. 'developers/javascript-api' or 'concepts/script-blocking'.
- `get_setup_guide` _(read)_ — Platform-specific ConsentStack install guide with this site's real site key already substituted into the snippet. Returns ready-to-paste markdown. Platforms:…

---

## Connect

- URL: https://gateway.mewcp.com/personal/mcp
- Transport: Streamable HTTP (remote). Nothing to install.
- Sign-in: OAuth. On first connect the client opens a browser window to sign in
  to MewCP and approve access. No API key.
- Headless clients (SDKs, servers without a browser) send an API key instead:
  `Authorization: Bearer <API_KEY>`, key from https://mewcp.com/dashboard/api-keys

Agents setting themselves up: follow https://mewcp.com/SKILL.md

Step-by-step guide per client:

- Claude Desktop: https://mewcp.com/mcp/consentstack-mcp/connect/claude
- ChatGPT: https://mewcp.com/mcp/consentstack-mcp/connect/chatgpt
- Grok: https://mewcp.com/mcp/consentstack-mcp/connect/grok
- DeepSeek Harness: https://mewcp.com/mcp/consentstack-mcp/connect/dsh
- Mistral Vibe: https://mewcp.com/mcp/consentstack-mcp/connect/mistral-vibe
- VS Code: https://mewcp.com/mcp/consentstack-mcp/connect/vscode
- Cursor: https://mewcp.com/mcp/consentstack-mcp/connect/cursor
- Codex: https://mewcp.com/mcp/consentstack-mcp/connect/codex
- Claude Code: https://mewcp.com/mcp/consentstack-mcp/connect/claude-code
- OpenCode: https://mewcp.com/mcp/consentstack-mcp/connect/opencode
- OpenClaw: https://mewcp.com/mcp/consentstack-mcp/connect/openclaw
- Antigravity: https://mewcp.com/mcp/consentstack-mcp/connect/antigravity
- Hermes: https://mewcp.com/mcp/consentstack-mcp/connect/hermes
- Kimi Code: https://mewcp.com/mcp/consentstack-mcp/connect/kimi-code
- Grok Build: https://mewcp.com/mcp/consentstack-mcp/connect/grok-build
- Devin Desktop: https://mewcp.com/mcp/consentstack-mcp/connect/devin-desktop
- Zed: https://mewcp.com/mcp/consentstack-mcp/connect/zed
- Muse Code: https://mewcp.com/mcp/consentstack-mcp/connect/muse-code
- Cline: https://mewcp.com/mcp/consentstack-mcp/connect/cline
- Kilo Code: https://mewcp.com/mcp/consentstack-mcp/connect/kilo-code
- Kiro: https://mewcp.com/mcp/consentstack-mcp/connect/kiro
- Junie: https://mewcp.com/mcp/consentstack-mcp/connect/junie
- Amp: https://mewcp.com/mcp/consentstack-mcp/connect/amp
- Qwen Code: https://mewcp.com/mcp/consentstack-mcp/connect/qwen-code
- Goose: https://mewcp.com/mcp/consentstack-mcp/connect/goose
- Python: https://mewcp.com/mcp/consentstack-mcp/connect/python
- TypeScript: https://mewcp.com/mcp/consentstack-mcp/connect/typescript