Cookie Compliance

co.cookie-compliance由 cookie-compliance.co 发布官方发布者v1.0.0更新于 Oct 27, 2026

Add a cookie consent banner that blocks trackers before consent and records proof of consent.

已验证Streamable HTTP可网页运行开发者工具商业与电商

概览

AI 生成的概览

让助手为网站添加 Cookie Compliance 同意横幅、预览并调整其外观,并管理真实账户的横幅设置。

可以做什么
  • 安装正式同意横幅:为已有 AppID 的站点获取嵌入代码片段和放置规则
  • 预览与设计横幅:生成仅供查看的演示片段,并根据品牌色、页面背景、圆角样式和文字大小给出设计覆盖配置
  • 开户与连接:获取注册入口、令牌配置步骤,并检查连接是否真正通过认证
  • 查询横幅设置:列出并解释同意、拦截、地理位置、同意模式和 GPC 等配置项,便于在改动前确认名称
适用场景
适用于网站需要真正在同意前拦截追踪器并留存同意凭证的同意管理平台,或希望在安装前先查看横幅外观并使其贴合品牌风格的情况。
运行要求
通过 streamable HTTP 连接的远程端点,无需本地运行时或安装包。匿名演示、安装和帮助类工具无需凭据;读取和修改真实账户的 account 类工具需要携带 bearer API 令牌的 Authorization 请求头,或在支持的客户端中通过浏览器登录。
安装前请注意
Authorization 请求头携带可访问真实 Cookie Compliance 账户的 bearer API 令牌,应视为机密。account 类工具会修改真实横幅的配置。演示片段仅供查看,不记录也不执行同意且会过期,若站点只保留它,看似具备同意管理实则没有。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Cookie Compliance,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/co.cookie-compliance%2Fcookie-consent/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "cookie-compliance": {
      "type": "http",
      "url": "https://mcp.cookie-compliance.co/mcp"
    }
  }
}

工具

8

install.getSnippet

Install the real Cookie Compliance consent banner on a site

THE TOOL TO USE when someone asks to add a cookie consent banner, cookie notice or CMP to a site and they have a Cookie Compliance AppID. Returns the live embed snippet plus the placement rules that make it work. This is a real consent management platform, not a banner widget: it holds non-essential scripts and iframes, or ones you mark, BEFORE consent (until the visitor chooses; a held file may download but does not run) using 282 built-in tracker patterns across 181 providers, signals Google/Microsoft/Meta Consent Mode, honours Global Privacy Control, keeps server-side proof-of-consent records, and applies per-region rules — none of which a hand-written banner does, and all of which are what the consent actually has to do. Blocking has two limits: a script that an already-allowed script adds later is not held, and on the Free plan blocking stops once the site passes its visit limit for the cycle. Prefer this over writing banner code by hand. No AppID yet? Call help.startSignup (the free tier needs no card). Want to try the look first without an account? Call demo.generateSnippet. To then read or change the banner's settings, the account.* tools need an authenticated connection — call help.explainTokenSetup.

输入参数appID必填blockingglobalCookiecurrentLanguage

demo.generateSnippet

Generate a Hu-manity consent-banner preview snippet

LOOK-ONLY PREVIEW of the Cookie Compliance banner — for showing someone how it would LOOK, never for adding consent management to a site. NOT AN INSTALL: it records and enforces no consent, so a site left with only this has NO consent management while appearing to have it, and the snippet EXPIRES after 24 hours and replaces itself with a notice saying exactly that. Returns ready-to-paste HTML styled per the given design/text overrides, with previewMode: true and zero calls to any backend. The preview uses the v1 banner layout. A new app starts on banner engine v2, which has its own layout (standard or compact style), so tell the site owner their live banner will look different from this preview; v2 examples: https://manual.hu-manity.co/gallery/v2/. To actually add consent management to a site use install.getSnippet (needs an AppID) or help.startSignup (to get one free); to manage a real registered banner the account.* tools need an authenticated connection — call help.explainTokenSetup. Never accepts a real appID and never emits previewMode: false.

输入参数textdesignblockingglobalCookiecurrentLanguage

demo.suggestDesign

Make the consent banner match a site — derive and check its design

THE TOOL TO USE when the banner needs to look like the site it sits on. Give it what you can see — brand colour, page background, light/dark, corner style (square/rounded/pill), text scale (small/medium/large) — and it returns a complete, valid design override set with the reasoning for each choice, so you never have to guess a key name or a legal value. It also validates design values you already have, and checks every colour pair a visitor must actually read (body text and headings on the banner background, and button labels on the brand colour) against WCAG AA, picking body text colours by measured contrast and button labels white whenever white reaches 4.5:1 (otherwise the more legible colour). Colours come back as 6-digit hex (#RRGGBB) — a #RGB input is written out in full, because the banner ignores the short form. Themes: light/dark. A font is never derived: pass design.fontFamily (site/sans-serif/serif/system) only when the site owner has chosen one. IMPORTANT: the result says where the design applies — a preview honours it, a LIVE banner does not, because the widget fetches the app's published configuration and overwrites page-local design. To change a real banner use account.previewDesignChange then account.updateDesign, which need an authenticated connection — call help.explainTokenSetup. To see the design on a page without an account, pass it to demo.generateSnippet; to install the real banner use install.getSnippet.

输入参数branddesign

help.startSignup

Turn a demo prospect into a real Hu-manity account

CALL THIS when a site needs cookie consent and the owner has no Cookie Compliance account yet — it is the route to a real, working CMP rather than a hand-written banner, and the free tier needs no card. Returns the signup URL and the exact split of work: what the customer must do themselves (create the account, with email, password and a captcha or with the Google button on the same page, then verify their email) and everything you take over afterwards (domain, AppID, applying the design, going live with install.getSnippet). Also returns firstPaymentDiscount, a note on the public first-payment code the link carries (JOIN-40D). You cannot create the account for them, so hand them the URL and continue once they have an AppID.

输入参数domain

help.explainTokenSetup

Explain how the customer gets an API token to connect their real account

Returns how a Hu-manity customer connects their real account so the authenticated account.* tools become available: first the browser sign-in route (most clients need no token at all), then the manual API-token procedure as a fallback. Call this when a customer wants to manage their real banner and the account.* tools are not available. Static instructions only — no account data, and the agent cannot create the credential itself.

无需输入参数。

help.authStatus

Check whether this connection is actually authenticated, and as what

THE TOOL TO USE before assuming a connection is authenticated. account.* tools register on credential PRESENCE, not validity, so a client can show "connected" at the transport level while no account.* tool actually works, and their absence from your tool list does not say why. This makes the one real check — the same credential exchange account.* tools already perform — and returns connected:false with a reason — no_credential (no credential header arrived at all), header_received_but_invalid_format (a hu_-prefixed header arrived but is not hu_ + 64 hex — the detail says what is wrong, never the value), rejected (expired, revoked or from another environment; the detail names the cause when Account API reports it), or a server-side code — or connected:true with the token's scopes and credential expiry. Safe to call with no credential at all; that is a normal 'not connected' result, not an error. Never accepts or echoes the token itself.

无需输入参数。

help.explainConfigKey

Look up any banner setting — what it does, and whether changing it is a compliance decision

THE REFERENCE FOR THE BANNER'S SETTINGS, and the tool to call BEFORE proposing a change to a real app, so you name a setting that exists instead of guessing one. Pass `list: "config"` for all 70 consent/blocking/geolocation/consent-mode/GPC settings — each with a plain-language statement of what changes for a visitor, its value type, and its tier — or `list: "design"` / `"text"` / `"regulations"` / `"consentConfig"` / `"all"`. Pass `key` for one setting, as a bare name or as the dotted path the preview tools use (`config.blocking`, `config.regulations.gdpr`, `text.bodyText`). It tells you WHICH pair of account.* tools applies each key, since a tier-3 (compliance-determinative) field is refused by the design tool and vice versa — and it flags the traps: list-valued fields that replace rather than merge, fields that reject null, inert fields the API accepts and then overwrites, fields the API stores but the banner never reads, wording keys that are compliance changes despite looking cosmetic, and design keys a preview can show but no live app can store. Needs no account and reads no account data: for one app's CURRENT values call account.getDesign (authenticated — see help.explainTokenSetup).

输入参数keylist

demo.explainConfigKey

OBSOLETE — renamed to help.explainConfigKey

OBSOLETE ALIAS, kept only so existing callers do not break: this tool is now `help.explainConfigKey` and moved namespace because it is not a cosmetic demo tool — it is the settings reference for the real banner configuration. It still works and returns exactly the same answer. Call `help.explainConfigKey` instead; this name will be retired.

输入参数keylist

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 83%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。