io.github.secureprivacy/secure-privacy-mcp

安全与合规

by secureprivacy

可自动为网站集成符合 GDPR 要求的 cookie consent banner 的 MCP 服务器。

什么是 io.github.secureprivacy/secure-privacy-mcp

可自动为网站集成符合 GDPR 要求的 cookie consent banner 的 MCP 服务器。

README

Secure Privacy MCP Server

A remote Model Context Protocol (MCP) server that enables AI agents like Claude Desktop, GitHub Copilot, and Cursor to automatically integrate GDPR-compliant cookie consent banners into websites with a single command.

Built on Cloudflare Workers, this MCP server provides a one-click solution for implementing Secure Privacy's cookie consent management platform, handling domain registration, template assignment, and script injection seamlessly.

What is MCP?

The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to external tools and data sources. It allows AI agents to perform actions on your behalf, making complex multi-step workflows as simple as a single conversational request.

Key Features

  • One-Click Installation: Fully automate cookie banner deployment with a single AI command
  • GDPR Compliant: Automatically configure compliant consent management
  • Multiple Consent Modes: Support for Google Consent Mode (GCM), Microsoft UET, Meta, and more
  • Template Management: Auto-assign all available cookie banner templates
  • No API Key Required: Users don't need to provide any credentials
  • AI Agent Compatible: Works with Claude Desktop, GitHub Copilot, Cursor, and other MCP clients

Available Tools

install_secure_privacy_banner

Fully install Secure Privacy cookie banner on a website in one step. This is the primary tool that orchestrates the entire installation process.

What it does:

  1. Registers a domain with Secure Privacy
  2. Assigns templates - Fetches and assigns all available cookie banner templates (design + functional)
  3. Generates the script tag - Creates the integration code for your website
  4. Configures consent modes - Sets up Google Consent Mode (GCM), Microsoft UET, Meta, and more

Response includes:

  • Domain URL registered
  • Domain ID for tracking
  • Number of templates assigned
  • Script tag for integration
  • Confirmation of GDPR compliance

Example Usage

Simply ask your AI agent in natural language:

code
"Add a cookie banner to my website"
"Make my site GDPR compliant"
"Install Secure Privacy on my website"
"I need cookie consent management"

The AI will automatically use the Secure Privacy MCP to set everything up and provide you with the script tag to add to your website.

Installation

Claude Desktop

  1. Install the mcp-remote proxy:

    bash
    npm install -g mcp-remote
    
  2. Open Claude Desktop and go to Settings > Developer > Edit Config

  3. Add this configuration:

    json
    {
      "mcpServers": {
        "secure-privacy": {
          "command": "npx",
          "args": [
            "mcp-remote",
            "https://mcp.secureprivacy.ai/sse"
          ]
        }
      }
    }
    
  4. Restart Claude Desktop

  5. Start using it! Ask Claude: "Add a cookie banner to my website"

GitHub Copilot (VS Code)

  1. Install the mcp-remote package globally:

    bash
    npm install -g mcp-remote
    
  2. Open VS Code Settings (JSON) and add the MCP configuration:

    json
    {
      "github.copilot.chat.mcp.servers": {
        "secure-privacy": {
          "command": "npx",
          "args": [
            "mcp-remote",
            "https://mcp.secureprivacy.ai/sse"
          ]
        }
      }
    }
    
  3. Restart VS Code

  4. Use Copilot Chat and ask: "Add Secure Privacy cookie banner to my site"

Cursor

  1. Install the mcp-remote proxy:

    bash
    npm install -g mcp-remote
    
  2. Open Cursor Settings and navigate to the MCP configuration

  3. Add the Secure Privacy MCP server:

    json
    {
      "mcpServers": {
        "secure-privacy": {
          "command": "npx",
          "args": [
            "mcp-remote",
            "https://mcp.secureprivacy.ai/sse"
          ]
        }
      }
    }
    
  4. Restart Cursor

  5. Chat with the AI and request: "Install cookie consent on my website"

Troubleshooting

Connection Issues

If the MCP server doesn't appear in your AI client:

  • Verify the URL is correct: https://mcp.secureprivacy.ai/sse
  • Restart your AI client after updating the configuration
  • Check that mcp-remote is properly installed by running: npm list -g mcp-remote
  • Make sure you have an active internet connection

MCP Not Showing Up

  • Ensure the configuration file syntax is correct (valid JSON)
  • Check for typos in the server URL
  • Try reinstalling mcp-remote: npm install -g mcp-remote
  • Verify your AI client supports MCP (check version requirements)

Script Already Exists

If you see a message that the script is already present, that's normal! The MCP automatically detects existing Secure Privacy installations and won't duplicate the script tag.

Development

Get Started

Deploy to Cloudflare Workers:

Deploy to Workers

Or use the command line:

bash
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless

Customizing the MCP Server

To add your own tools to the MCP server, define each tool inside the init() method of src/index.ts using this.server.tool(...).

Testing with Cloudflare AI Playground

You can test your MCP server from the Cloudflare AI Playground:

  1. Go to https://playground.ai.cloudflare.com/
  2. Enter your deployed MCP server URL (mcp.secureprivacy.ai/sse)
  3. Use your MCP tools directly from the playground

Need Help?

For additional support:

License

See LICENSE file for details.

常见问题

io.github.secureprivacy/secure-privacy-mcp 是什么?

可自动为网站集成符合 GDPR 要求的 cookie consent banner 的 MCP 服务器。

相关 Skills

安全专家

by alirezarezvani

Universal
热门

覆盖威胁建模、漏洞评估、安全架构设计、代码审计与渗透测试,内置 STRIDE、OWASP、加密模式和安全扫描流程,适合系统设计评审与上线前安全排查。

安全专家把威胁建模、漏洞分析到渗透测试串成一套流程,内置 STRIDE 与 OWASP 指南,做安全设计和排查更省心。

安全与合规
未扫描9.0k

安全运营

by alirezarezvani

Universal
热门

覆盖应用安全、漏洞管理与合规审计,支持代码/依赖扫描、CVE 评估、Secrets 检测和安全自动化,适合做安全基线落地、漏洞响应、审计检查与安全开发治理。

应用安全、漏洞管理和合规检查一套打通,还能自动化扫描与响应,帮团队更早发现并收敛风险。

安全与合规
未扫描9.0k

安全审计

by alirezarezvani

Universal
热门

安装前审计 Claude Code Skill 的代码执行、Prompt 注入和依赖供应链风险,支持本地目录或 Git 仓库扫描,输出 PASS/WARN/FAIL 结论及修复建议

把代码审查、漏洞扫描和合规检查串成一条线,帮团队更早发现风险,做安全治理更省心。

安全与合规
未扫描9.0k

相关 MCP Server

搜索和分析 Sentry 错误报告,辅助调试。

把零散的 Sentry 错误报告变成可检索线索,帮你在海量报错里更快定位线上故障,排障调试明显省时。

安全与合规
616

为 AI agents 提供安全层:拦截 prompt injection、识别伪造 packages,并扫描漏洞风险。

给 AI Agent 补上关键安全层,能拦截 prompt 注入、识别伪造包并扫描漏洞风险,把防护前置更省心。

安全与合规
92

强化安全性的 NotebookLM MCP,集成 post-quantum encryption,提升数据防护能力。

安全与合规
47

评论