pageguard-mcp
Officialpageguard-mcp
MCP (Model Context Protocol) 服务器,将 PageGuard 隐私合规性扫描作为工具提供给 AI 编码助手。适用于 Claude Code、Cursor、Windsurf、ChatGPT 以及任何兼容 MCP 的环境。
功能特点
本地扫描 — 从项目的
package.json、配置文件和.env文件中检测跟踪技术、Cookie 和第三方数据收集。无需 API 密钥,无需网络请求。URL 扫描 — 扫描实时网站的隐私合规性问题,包括风险评分和合规差距分析。
文档生成 — 根据检测到的技术生成 AI 编写的法律文档(隐私政策、服务条款、Cookie 政策等)。
Related MCP server: Sekrd Security Scanner
安装
Claude Code
添加到项目的 .mcp.json 或全局 MCP 配置中:
{
"mcpServers": {
"pageguard": {
"command": "npx",
"args": ["pageguard-mcp"]
}
}
}Cursor
添加到 Cursor 设置 > MCP Servers:
{
"mcpServers": {
"pageguard": {
"command": "npx",
"args": ["pageguard-mcp"]
}
}
}Windsurf
添加到您的 MCP 配置中:
{
"mcpServers": {
"pageguard": {
"command": "npx",
"args": ["pageguard-mcp"]
}
}
}环境变量
变量 | 必需 | 描述 |
| 否(本地扫描)/ 是(URL 扫描、文档生成) | 来自 getpageguard.com 的 API 密钥 |
| 否 | 覆盖 API 基础 URL(默认: |
工具
pageguard_scan_local
扫描本地项目目录以查找与隐私相关的技术。
输入:
path(可选) — 项目目录的绝对路径。默认为当前工作目录。
输出: 包含检测到的技术、数据类型、Cookie 和第三方处理器的 ComplianceReport JSON。
pageguard_scan_url
扫描实时网站 URL 以查找隐私合规性问题。
输入:
url(必需) — 要扫描的完整 URL,例如https://example.com
输出: 包含风险评分、检测到的技术和合规差距的 ComplianceReport JSON。
pageguard_generate_docs
为已扫描的网站生成 AI 编写的法律合规文档。
输入:
scanId(必需) — 来自先前pageguard_scan_url结果的扫描 IDdocumentType(可选) — 以下之一:single($29),bundle($49),addon_security($19),addon_a11y($19),addon_schema($19),app_bundle($39),submission_guide($19)。默认为bundle。
输出: 生成的文档内容。
定价
扫描是免费的。文档生成需要积分:
隐私文档 ($29) — 隐私政策 + 服务条款 + Cookie 政策
全套修复 ($49) — 所有文档 + 安全指南 + 无障碍报告 + Schema 标记
应用包 ($39) — 隐私文档 + 应用商店提交指南
附加组件 (每个 $19) — 安全指南、无障碍报告、Schema 标记、提交指南
批量包 — 5 个 $79,15 个 $149,50 个 $349
在 getpageguard.com/#pricing 获取 API 密钥。
许可证
MIT
Available Tools
3 toolspageguard_generate_docsA
Generate AI-written legal compliance documents (privacy policy, terms of service, cookie policy, etc.) for a previously scanned site. Requires a scanId from a prior URL scan and a PAGEGUARD_API_KEY with available credits. Document types: 'single' ($29 — privacy + terms + cookie), 'bundle' ($49 — everything), 'addon_security' ($19), 'addon_a11y' ($19), 'addon_schema' ($19), 'app_bundle' ($39), 'submission_guide' ($19).
| Name | Required | Description | Default |
|---|---|---|---|
| scanId | Yes | The scan ID from a previous pageguard_scan_url result | |
| documentType | No | Product type to generate. One of: single, bundle, addon_security, addon_a11y, addon_schema, app_bundle, submission_guide. Defaults to 'bundle'. |
pageguard_scan_localA
Scan a local project directory for privacy-relevant technologies by checking package.json dependencies, config files, and .env files against known tracking/analytics signatures. No API key or network access needed. Returns a ComplianceReport with detected technologies, data types collected, cookies, and third-party processors.
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to the project directory. Defaults to the current working directory. |
pageguard_scan_urlA
Scan a live website URL for privacy compliance issues. Detects tracking technologies, cookies, third-party data collection, and compliance gaps by analyzing the actual deployed site. Returns a ComplianceReport with risk score, detected technologies, and compliance gaps. Optionally uses PAGEGUARD_API_KEY env var for authenticated requests.
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The full URL to scan, e.g. https://example.com |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
3 tool updates
v1.0.0- First observed
pageguard_generate_docs - First observed
pageguard_scan_local - First observed
pageguard_scan_url
TDQS
Scored across 3 tools
The three tools serve distinctly different purposes: scan_local analyzes codebase dependencies, scan_url analyzes live websites, and generate_docs produces legal documents from scan results. No functional overlap exists between them.
All tools follow a consistent pageguard_verb_noun snake_case pattern. The scanning tools use parallel naming (scan_local, scan_url) to distinguish targets, while generate_docs clearly indicates its document creation purpose.
Three tools is appropriate for this focused domain, covering the essential scan-local, scan-production, and generate-documentation workflow. While functional, the surface is minimal and could benefit from supporting tools like get_scan or list_documents.
The core workflow is covered: dual scanning capabilities and document generation. Minor gaps exist in document lifecycle management (no retrieval of previous scans or generated documents), but agents can work with immediate return values.
Maintenance
Related MCP Connectors
Manage cookie banners, run cookie scans and check GDPR/CCPA compliance from your AI assistant.
Compliance & security scan for your app: secrets, exposed files, headers, privacy, AI-disclosure.
Cookie consent scanner: GDPR, CCPA, GCMv2. PASS/FAIL compliance checklists with fix recommendations.
Deep security scans of repos you own from your editor: dependency CVEs, SAST, git-history secrets.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThe only Multi-LLM Compliance Engine (GPT-4o + Claude + DeepSeek). Auto-fix GDPR/LGPD risks and more 15 frameworks. code.guard.eu4 npm1MIT

Sekrd Security Scannerofficial
AlicenseAqualityDmaintenanceEnables deep security auditing of web applications directly from AI IDEs including Cursor and Claude Code. Scans URLs for vulnerabilities, returns security scores with SHIP/BLOCK verdicts, and provides specific fix prompts for remediation.3MIT- FlicenseNot gradedqualityBmaintenanceAutomated AI pull request code review, zero-day secret leak scanner, SQL injection detector, and 1-click suggested diff fixes for Claude Desktop & Cursor IDE.-
- AlicenseAqualityBmaintenanceEnables AI coding agents to generate LGPD-compliant cookie banners by detecting trackers in local projects, and to scan published sites for privacy violations, returning actionable results.18447 npmApache 2.0