CookieTrue for AI agents
Connect Claude or any MCP client to your CookieTrue account. Ask about consent rates, read the consent log, start cookie scans and change banner settings in plain language.
What you can ask
- Which of my websites has the lowest consent rate this month, and why might that be?
- Scan example.com again and tell me what I still need to fix.
- Add my privacy policy link https://example.com/privacy to the banner on example.com.
- Show the last 20 consent choices from Germany on example.com.
Set up in 2 minutes
In CookieTrue open Account → AI agents and API keys, name the key and create it. It is shown once, so copy it. Below, replace ctk_your_key with it.
2 Choose your tool
Claude Code in the terminal is the quickest. Claude Desktop connects through a small bridge.
- Claude Code: run this command in your terminal.
claude mcp add --transport http cookietrue https://app.cookietrue.com/api/mcp --header "Authorization: Bearer ctk_your_key"
- Start Claude Code and type
/mcp. cookietrue should show as connected. - Claude Desktop: open Settings → Developer → Edit Config and add this to
claude_desktop_config.json(needs Node.js). Restart Claude.{ "mcpServers": { "cookietrue": { "command": "npx", "args": [ "-y", "mcp-remote", "https://app.cookietrue.com/api/mcp", "--header", "Authorization:${COOKIETRUE_AUTH}" ], "env": { "COOKIETRUE_AUTH": "Bearer ctk_your_key" } } } }
OpenAI Codex CLI reads MCP servers from its config file and takes the key from an environment variable.
- Put your key in an environment variable, for example in
~/.zshrc, and open a new terminal.export COOKIETRUE_API_KEY="ctk_your_key"
- Open
~/.codex/config.tomland add:[mcp_servers.cookietrue] url = "https://app.cookietrue.com/api/mcp" bearer_token_env_var = "COOKIETRUE_API_KEY"
- Start
codexand type/mcpto check that cookietrue is listed.
ChatGPT connects to remote MCP servers as custom connectors.
- In ChatGPT open Settings → Connectors → Advanced and turn on Developer mode (available on paid plans).
- Choose Create, name it CookieTrue and enter the server address:
https://app.cookietrue.com/api/mcp
- ChatGPT asks for sign-in with OAuth. CookieTrue uses API keys for now, so this connection works as soon as we add OAuth sign-in. Until then use one of the other tools on this page.
We are adding OAuth sign-in for ChatGPT. Want it sooner? Write to [email protected].
Google Antigravity keeps MCP servers in a raw config you can edit from the agent panel.
- Open the agent panel, click the … menu and choose MCP Servers, then Manage MCP Servers → View raw config.
- Add CookieTrue to
mcp_config.json:{ "mcpServers": { "cookietrue": { "serverUrl": "https://app.cookietrue.com/api/mcp", "headers": { "Authorization": "Bearer ctk_your_key" } } } } - Save, then press Refresh in the MCP Servers list. cookietrue shows its tools.
Menu names can differ slightly between versions of Antigravity.
Cursor reads MCP servers from a JSON file in your home folder or in a project.
- Open Settings → Tools & MCP → New MCP Server. This opens
~/.cursor/mcp.json. - Add CookieTrue:
{ "mcpServers": { "cookietrue": { "url": "https://app.cookietrue.com/api/mcp", "headers": { "Authorization": "Bearer ctk_your_key" } } } } - Save. In the same settings page switch cookietrue on and check for a green dot.
VS Code with GitHub Copilot Chat in agent mode supports MCP servers.
- In your project create
.vscode/mcp.json(or run MCP: Add Server from the Command Palette and choose HTTP). - Add CookieTrue:
{ "servers": { "cookietrue": { "type": "http", "url": "https://app.cookietrue.com/api/mcp", "headers": { "Authorization": "Bearer ctk_your_key" } } } } - Click Start above the server entry, open Copilot Chat, switch to Agent mode and check that the CookieTrue tools are listed.
Do not commit this file with a real key. Use VS Code's input variables or keep it in your user settings.
3 Ask
Start with "List my CookieTrue websites". Your assistant now has the tools below.
Tools your assistant gets
Each tool uses the same rules as the dashboard, so roles and plan limits apply.
list_websitesSee every website you can access with its role, plan, banner status and scan score.get_websiteOpen one website: banner settings, install status and plan.get_statisticsConsent rate, change against the period before, rates per cookie category, top countries and a daily series.list_consentsRead the consent log, filtered by choice, country or date.get_latest_scanThe newest cookie scan: score, trackers found and what to fix.start_scanStart a new scan (editor role or higher).update_banner_settingsChange banner settings, for example the privacy policy link (editor role or higher).
Built to be safe
What a key can do
- Read the websites you can access.
- Read statistics and the consent log, without IP addresses.
- Start scans and change banner settings if your role allows it.
What a key cannot do
- Delete websites or consent data.
- Manage people, your account or billing.
- Work after you delete it: that stops it at once.
Frequently asked questions
What is MCP?
The Model Context Protocol is an open standard that lets AI assistants such as Claude use tools in other products. Connect CookieTrue once and you can ask the assistant about your websites in plain language.
Is it safe? Can an agent delete my websites?
No. A key acts with your own access rights and cannot delete websites, manage people, change your account or touch billing. You can delete a key at any time and it stops working at once.
Does it cost extra?
No. API keys and the MCP server are included in every plan, including Free.
What can it see?
Only the websites you can open in your account, including websites shared with you. Consent log entries never include IP addresses.
Which assistants work with it?
Any assistant or tool that supports remote MCP servers over HTTP with a bearer token, for example Claude Code, Claude Desktop and other MCP clients.
Put the right banner in front of every visitor.
Two minutes to set up, then it looks after itself: monthly scans, new laws applied for you, proof of every choice.
- Free plan, no card needed
- Works on any website
- Cancel any time