DPIA MCP精简版
用于数据保护影响评估(DPIA)代码分析的轻量级MCP服务器。无机器学习依赖-使用模式匹配和静态GDPR知识库。
特性
- 6个DPIA工具 -隐私合规的完整工具包
- 无ML依赖关系 -快速启动,小图像(约200MB对约3GB)
- 挪威语和英语 -全面的双语支持
- Datatilsynet方法论 -遵循挪威DPA指南
- 符合GDPR第35条 -所有必需的DPIA部分
工具
| 工具 | 说明 |
|---|---|
analyze_codebase_for_dpia | 个人数据模式扫描码,第三方服务 |
assess_processing_risk | 计算风险矩阵(可能性x严重性x敏感性) |
check_gdpr_compliance | 生成GDPR第35条合规检查表 |
generate_dpia_template | 创建完整的DPIA文档模板 |
recommend_safeguards | 获取技术/组织措施建议 |
search_documentation | 搜索GDPR文章和Datatilsynet指南 |
快速开始
Docker HTTP服务器(推荐)
docker compose up -d服务器在上运行 http://localhost:8020/mcp
本地HTTP服务器
pip install -e .
python -m dpia_mcp_lite.server本地标准(替代)
pip install -e .
TRANSPORT=stdio python -m dpia_mcp_lite.serverMCP配置
VS代码(mcp.json)-HTTP
{
"mcpServers": {
"dpia-mcp-lite": {
"url": "http://localhost:8020/mcp"
}
}
}克劳德桌面(stdio)
{
"mcpServers": {
"dpia-mcp-lite": {
"command": "python",
"args": ["-m", "dpia_mcp_lite.server"]
}
}
}示例用法
分析代码库
Use the analyze_codebase_for_dpia tool to scan /path/to/project for personal data handling评估风险
Use assess_processing_risk with these risks:
- Unauthorized access to user emails
- Data breach exposing health records
- Third-party analytics tracking without consent生成DPIA
Generate a DPIA template for "Customer Portal" in Norwegian环境变量
| 变量 | 默认值 | 描述 |
|---|---|---|
TRANSPORT | http | 运输方式: http 或 stdio |
HTTP_PORT | 3000 | HTTP服务器端口(内部,Docker映射到8020) |
与完整版本的比较
| 特性 | dpia mcp精简版 | dpia代码评估mcp |
|---|---|---|
| 图像大小 | ~200MB | ~3GB |
| 构建时间 | ~30秒 | ~45分钟 |
| 搜索 | 关键字 | 语义(ML) |
| 依赖关系 | 7 | 15+ |
| 工具 | 6 | 7 |
许可证
麻省理工学院
