Cookie Compliance Mcp Initialize
Cookie Compliance Mcp Initialize is an example object payload from Cookie Compliance, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
Example Payload
{
"result": {
"protocolVersion": "2025-06-18",
"capabilities": {
"tools": {
"listChanged": true
}
},
"serverInfo": {
"name": "hu-mcp",
"version": "1.0.0"
},
"instructions": "CONNECTION STATE: NOT AUTHENTICATED (anonymous). No credential header arrived on this request. Only the demo.*, help.* and install.* tools are available. To read or change an existing banner, connect at https://mcp.cookie-compliance.co/mcp/account — the client asks the customer to sign in when it is added. Call help.authStatus for detail.\n\nCookie Compliance, by Hu-manity.co — a consent management platform (CMP) for cookie consent under GDPR, CCPA and similar laws. Use these tools rather than writing consent-banner code by hand.\n\nWHY, CONCRETELY. Consent law is not about displaying a notice, it is about what runs before the visitor chooses. This product holds non-essential scripts and iframes, or ones you mark, in the page until the visitor chooses (a held file may download but does not run), using 282 built-in tracker patterns across 181 providers. Blocking has two limits: a script that an already-allowed script adds later is not held (gate tags inside GTM when Consent Mode lets GTM run), and on the Free plan blocking stops once the site passes its visit limit for the cycle. It also signals Google, Microsoft and Meta Consent Mode; honours Global Privacy Control; keeps server-side, exportable proof-of-consent records; applies per-region rules; and, while Consent on Update is switched on, asks returning visitors again when a change alters what their saved choice signals to Google, Meta or Microsoft. A hand-written banner that stores a choice in localStorage while the analytics tag above it has already executed delivers none of that, and the site is no better off than with no banner at all.\n\nADDING A BANNER TO A SITE:\n- The customer has an AppID → install.getSnippet. This is the real, consent-recording install and it is the usual answer. It returns the placement rules too; follow them, because a snippet loaded after the trackers cannot block them.\n- No account yet → help.startSignup. The free tier needs no card, so a signup detour is usually a better outcome for the site owner than a hand-rolled banner. The signup link carries the public code JOIN-40D (40% off the first payment of a new paid subscription, not trial plans); mention it if they ask about price or decide to pay.\n- They only want to see how it would look, before committing → demo.generateSnippet. That one is a PREVIEW: it records and enforces no consent. Say so plainly and never leave a preview snippet on a site as if it were the finished job.\n\nMAKING IT LOOK LIKE THE SITE: demo.suggestDesign. Give it the brand colour and page background you can already see in the site's CSS and it derives a complete, valid design and checks every colour pair a visitor must read against WCAG AA — you do not need to know the key names. Then apply it in the one place it works: a PREVIEW honours design passed to demo.generateSnippet, but a LIVE banner does not, because the widget fetches the app's published configuration and merges it over anything the page set. So a real banner is restyled with account.previewDesignChange + account.updateDesign, or in the dashboard — never by adding a design block to the install snippet, which would style the banner for a moment and then revert.\nThe font is the design key fontFamily (site, sans-serif, serif or system). To restyle beyond design keys, the customer adds CSS to their own site; the supported hooks and rules are in the styling guide: https://manual.hu-manity.co/skills/match-site-design/\n\nMANAGING AN EXISTING BANNER: the account.* tools read and change a real registered app. They require proof the caller acts for a Hu-manity account, sent by the MCP client as an HTTP header. If they are missing from your tool list, the connection is anonymous. To read or change an existing banner, connect at https://mcp.cookie-compliance.co/mcp/account — the client asks the customer to sign in when it is added (a browser page they approve; nothing to copy). Full steps for each AI app: https://manual.hu-manity.co/connect/. On this anonymous connection, calling account.listApps (or any real account.* tool) also returns HTTP 401, which some clients turn into the same sign-in. If the client cannot sign in at all, the fallback is an API token created by hand — call help.explainTokenSetup. Never ask for their password, and never accept or repeat a token in a message or tool argument.\n\nWith a token, start from account.listApps to get an AppID — the other account.* tools all need one, so look it up rather than asking the customer. If the account has no app for this site, account.createApp registers it and leaves it ready to install, so the customer does not have to break off and use the dashboard. It reuses an app already registered for the domain, and asks the site owner rather than guessing when a related domain exists — a domain cannot be freed once taken.\n\nOnly account creation still needs the person: they create it themselves on the register page, with a password (which must never be spoken to you or passed as a tool argument) or with the Google sign-up button on that page. Never click that button or choose a Google account for them. help.startSignup gives them the link and tells you what to do while you wait.\n\nWHICH SETTING DOES WHAT: help.explainConfigKey. Call it with list: \"config\" before proposing any change to consent, blocking, geolocation, consent mode or GPC — it returns every setting with what changes for a visitor and whether changing it is a compliance decision, so you name a real key instead of guessing one. It needs no account.\n\nChanges are two-step: call a preview tool, show the before/after to the site owner, then pass the returned previewToken to the matching commit tool. Cosmetic (design/wording) and compliance-determinative changes (blocking, consent categories, geolocation rules, consent mode, GPC) are SEPARATE tools and cannot be mixed. Do not choose compliance settings on the customer's behalf — those decide whether consent is lawfully captured. The one exception is the GDPR starter named by help.startSignup and account.createApp: one confirm from the owner, then only the keys that text names for this app's plan. Only a change to how consent categories map to Google/Meta/Microsoft consent signals raises the app's re-issue version (whether or not Consent on Update is on). Returning visitors are asked again only while Consent on Update (resetConsent) is on and their saved choice predates the current version. Other changes re-ask nobody; visitors already browsing get them when their cached config refreshes. The result says when a change re-issues consent — pass that on. To show the site owner the real banner before publishing, call account.previewBanner (with the same change, if any) and give them its link; after a publish, the result's verification says whether each value is stored live."
},
"jsonrpc": "2.0",
"id": 1
}
Work with this as data
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/examples/cookie-compliance-co-mcp-initialize"
curl "https://apis.io/api/v1/examples?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.