Secure Privacy MCP Server
Enables AI agents to install GDPR-compliant cookie consent banners on websites with a single command, handling domain registration, template assignment, and script injection.
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:
- Registers a domain with Secure Privacy
- Assigns templates - Fetches and assigns all available cookie banner templates (design + functional)
- Generates the script tag - Creates the integration code for your website
- 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:
"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
-
Install the mcp-remote proxy:
npm install -g mcp-remote -
Open Claude Desktop and go to Settings > Developer > Edit Config
-
Add this configuration:
{ "mcpServers": { "secure-privacy": { "command": "npx", "args": [ "mcp-remote", "https://mcp.secureprivacy.ai/sse" ] } } } -
Restart Claude Desktop
-
Start using it! Ask Claude: "Add a cookie banner to my website"
GitHub Copilot (VS Code)
-
Install the mcp-remote package globally:
npm install -g mcp-remote -
Open VS Code Settings (JSON) and add the MCP configuration:
{ "github.copilot.chat.mcp.servers": { "secure-privacy": { "command": "npx", "args": [ "mcp-remote", "https://mcp.secureprivacy.ai/sse" ] } } } -
Restart VS Code
-
Use Copilot Chat and ask: "Add Secure Privacy cookie banner to my site"
Cursor
-
Install the mcp-remote proxy:
npm install -g mcp-remote -
Open Cursor Settings and navigate to the MCP configuration
-
Add the Secure Privacy MCP server:
{ "mcpServers": { "secure-privacy": { "command": "npx", "args": [ "mcp-remote", "https://mcp.secureprivacy.ai/sse" ] } } } -
Restart Cursor
-
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-remoteis 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:
Or use the command line:
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:
- Go to https://playground.ai.cloudflare.com/
- Enter your deployed MCP server URL (
mcp.secureprivacy.ai/sse) - Use your MCP tools directly from the playground
Need Help?
For additional support:
- Secure Privacy Support: Contact support
- Documentation: Browse our docs
- Email: support@secureprivacy.ai
License
See LICENSE file for details.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。