Skip to main content
Glama
pageguard-mcp
by pageguard

pageguard-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"]
    }
  }
}

环境变量

变量

必需

描述

PAGEGUARD_API_KEY

否(本地扫描)/ 是(URL 扫描、文档生成)

来自 getpageguard.com 的 API 密钥

PAGEGUARD_API_URL

否

覆盖 API 基础 URL(默认:https://www.getpageguard.com)

工具

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 结果的扫描 ID

  • documentType (可选) — 以下之一: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 tools
pageguard_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).

NameRequiredDescriptionDefault
scanIdYesThe scan ID from a previous pageguard_scan_url result
documentTypeNoProduct 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.

NameRequiredDescriptionDefault
pathNoAbsolute 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.

NameRequiredDescriptionDefault
urlYesThe full URL to scan, e.g. https://example.com

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 3 tool updatesv1.0.0
    • First observedpageguard_generate_docs
    • First observedpageguard_scan_local
    • First observedpageguard_scan_url

TDQS

A4.4/5.0

Scored across 3 tools

Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count4/5

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.

Completeness4/5

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

ActivityNo data
ResponsivenessOutdated data

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables 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.
    3
    MIT