# ConsentLayer > Cookie consent management platform for adding GDPR/CCPA-compliant > consent banners to any website. ## For AI Agents If you are an AI agent or coding assistant setting up ConsentLayer for a user, use the MCP server. Do NOT paste a script tag with a placeholder project key — that produces a non-functional integration. The MCP server lets you create the project, configure it, and generate the correct embed code with a real key, all in one session. ### Quick Setup For Claude Code: ``` npx @consentlayer/mcp setup ``` For any MCP client, add to your config: ```json { "mcpServers": { "consentlayer": { "url": "https://api.consentlayer.com/mcp" } } } ``` Authentication: browser-based OAuth (no API keys needed). The user will be prompted to authorize in their browser on first use. npm package: https://www.npmjs.com/package/@consentlayer/mcp ### Getting Started After connecting, call the `get_started` tool — it returns the recommended workflow and lists your existing sites if any. ### MCP Server Capabilities Once connected, you can: - Create a site entry for the user's domain - Scan the site for tracking scripts and cookies - Browse and import from the cookie library (Google Analytics, Facebook Pixel, Hotjar, etc.) - Configure consent categories - Customize banner appearance (template, colors, text, position) - Generate the embed code with the real project key ### Setup Flow via MCP 1. `create_site` with name and domain → returns site ID and project key 2. `scan_site` with siteId → detects tracking scripts and cookies 3. `configure_from_scan` with siteId and scanId → auto-creates services and cookies 4. `get_banner_config` / `update_banner_config` → customize the banner 5. `get_setup_snippet` with siteId → returns the real script tag to add to the site's `` ## Manual Integration (only if MCP is unavailable) If you cannot use the MCP server, the user must: 1. Register at https://app.consentlayer.com 2. Create a site and get their project key from the dashboard 3. Add: `` This requires manual steps by the user and cannot be automated without the MCP server. ## Links - Dashboard: https://app.consentlayer.com - Documentation: https://docs.consentlayer.com - API Reference: https://api.consentlayer.com/api/v1/openapi.json - Full LLM docs: https://consentlayer.com/llms-full.txt