MCP Server
Overview
Section titled “Overview”The Secure Privacy MCP Server is 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?
Section titled “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
Section titled “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
Section titled “Available Tools”install_secure_privacy_banner
Section titled “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
Section titled “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
Section titled “Installation”Claude Desktop
Section titled “Claude Desktop”-
Install the mcp-remote proxy:
Terminal window 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)
Section titled “GitHub Copilot (VS Code)”-
Install the mcp-remote package globally:
Terminal window 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
Section titled “Cursor”-
Install the mcp-remote proxy:
Terminal window 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
Section titled “Troubleshooting”Connection Issues
Section titled “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
Section titled “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
Section titled “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.
Need Help?
Section titled “Need Help?”For additional support:
- Secure Privacy Support: Contact support
- Documentation: Browse our docs
- Email: [email protected]