getcookies-mcp
OfficialConfigures Google Consent Mode v2 (Advanced or Basic) for the cookie banner so Google tags respect visitor consent choices.
Supports holding back Hotjar tracking until visitors consent and keeping it off after Reject all.
Supports holding back Meta Pixel tracking until visitors consent and keeping it off after Reject all.
Supports holding back TikTok tracking until visitors consent and keeping it off after Reject all.
getcookies-mcp
Set up a cookie consent banner from Claude, and prove that "Reject all" really rejects.
getcookies-mcp is the official MCP server for GetCookies, a cookie
consent platform (CMP). Your AI assistant can add a website, scan its cookies,
configure a GDPR/CCPA banner with Google Consent Mode v2, hand you the one-line install code,
check that it is live and run a Reject all test, in one conversation.
"Add example.com to GetCookies, scan it, set up a bottom-right banner with Google Consent Mode and give me the install code."
Quick start (2 minutes)
Create a free GetCookies account and a personal access token at getcookies.co/connect-claude. Tokens work on every plan, including Free.
Add the server to your client.
Claude Code
claude mcp add getcookies -e GETCOOKIE_API_KEY=gcpat_... -- npx -y getcookies-mcpClaude Desktop (claude_desktop_config.json), Cursor (~/.cursor/mcp.json) and other
clients that use the mcpServers format:
{
"mcpServers": {
"getcookies": {
"command": "npx",
"args": ["-y", "getcookies-mcp"],
"env": { "GETCOOKIE_API_KEY": "gcpat_..." }
}
}
}Restart the client, then ask: "Which GetCookies account am I connected to?"
Requires Node.js 18 or later. The server runs locally over stdio and talks only to
api.getcookies.co.
Related MCP server: Secure Privacy MCP Server
Things to ask
"Add shop.example.com to GetCookies and scan it. Which cookies are marketing?"
"Set up a banner that holds back Meta, TikTok and Hotjar until visitors agree, with Consent Mode v2 in Advanced mode, and give me the install code."
"Is the banner installed on example.com yet?"
"Run the Reject all test on https://example.com and tell me what still fires."
"How many visitors accepted or rejected cookies on example.com last month?"
"Show me the last 20 consent records for example.com."
Tools
Tool | What it does | Changes data |
| Shows the account the token belongs to (use it to check the setup) | |
| Your websites and their install state | |
| Adds a website and returns its | Yes |
| Starts a cookie scan | Yes |
| Follows a scan to completion | |
| Cookies the scan found, with categories | |
| Sets the category of a detected cookie | Yes |
| Reads the banner configuration | |
| Changes the banner: text, position, Reject all, regional rules, Consent Mode (Advanced or Basic), automatic tracker blocking. Only the fields you pass change | Yes |
| The one-line install code for | |
| Checks that the banner script is live on the site | |
| Loads any URL, clicks Reject all and lists the trackers and cookies that still fire, next to what fires before consent | |
| Accept and reject rates over time | |
| Consent records for an audit trail |
No tool deletes anything.
What the banner does
Known trackers (Meta Pixel, TikTok, LinkedIn, Hotjar, Microsoft Clarity and about 20 more) wait until the visitor agrees and stay off after Reject all. On by default for new sites, on every plan.
Google Consent Mode v2 (Advanced or Basic) on every plan, including Free.
Reject all is as prominent as Accept all, and can't be hidden under EU and UK rules.
GDPR or US opt-out rules by visitor region; Global Privacy Control honoured.
Every choice logged with the button clicked, banner version and page.
Flat pricing: Free for 1 site, then EUR 9, 29 or 79 a month for 3, 5 or up to 50 sites. No pageview limits. See getcookies.co/pricing.
Security
A token can manage sites, scans and banners only. It cannot change passwords, billing, teams
or other tokens, cannot delete anything, and can be revoked at any time at
getcookies.co/connect-claude. Keep it in the client's
env block, not in prompts.
Limits
The Reject all test takes 30 to 60 seconds and runs at most 5 times per hour.
Scans per month and pages per scan follow your GetCookies plan (Free: 3 scans of up to 50 pages).
The tools set up and check a banner; they don't give legal advice or certify that a site is compliant.
Troubleshooting
"GETCOOKIE_API_KEY is required": the client did not pass the token. Put it in the server's
envblock and restart the client.401 errors: the token was revoked or mistyped. Create a new one at getcookies.co/connect-claude.
"enterprise API key (olc_)": the server needs a personal access token starting with
gcpat_.The banner doesn't show after install: ask Claude to run
verify_install; the install code must be the first script in<head>.
Configuration
Variable | Required | Default |
| Yes: a personal access token starting with | |
| No |
|
Upgrading from getcookie-mcp
This package was published as getcookie-mcp up to version 1.1.0. That name is deprecated:
replace getcookie-mcp with getcookies-mcp in your client configuration. The token and
GETCOOKIE_API_KEY stay the same, and a global install still provides a getcookie-mcp command
so existing setups keep working.
Links
Support: support@getcookies.co
MIT licensed. Made by Getia AS, Oslo.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Set up GDPR and CCPA cookie consent: create a site, publish a banner, scan and categorize trackers.
Cookie consent for GDPR/CCPA: scan sites for trackers, configure consent banners, get install code.
Manage ConsentEase consent banners and cookie inventories from your coding agent.
Manage cookie banners, run cookie scans and check GDPR/CCPA compliance from your AI assistant.
Related MCP Servers
AlicenseAqualityBmaintenanceExposes the Cookie Munch Developer API as MCP tools, enabling AI assistants to manage sites, read consent analytics, and drive privacy operations.58886 npmMIT- FlicenseNot gradedqualityDmaintenanceEnables AI agents to install GDPR-compliant cookie consent banners on websites with a single command, handling domain registration, template assignment, and script injection.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients such as Claude to manage Google Ads accounts through the Google Ads API, including performance reporting, keyword planning, search and P-MAX campaign creation, status changes, and budget updates.MIT
- AlicenseAqualityBmaintenanceEnables auditing one or many websites from an EU address for cookie consent behavior, returning per-domain rows on the consent platform, first-layer reject availability, trackers and tracking cookies before consent and after reject, and Global Privacy Control response. Runs the work on Apify and hands back the dataset rows through a single tool.1298 npmMIT