eu-audit-mcp
eu-audit-mcp
防篡改审计追踪 MCP 服务器,用于欧盟 AI 法案和 GDPR 合规。设计为通过 stdio 传输集成到本地桌面应用程序中。
功能
防篡改日志记录 — 所有事件的 HMAC-SHA256 哈希链
PII 扫描 — 通过 Microsoft Presidio(欧盟模式)自动检测和编辑
GDPR 擦除 — 第 17 条擦除权支持,附带审计追踪
合规检查 — 针对欧盟 AI 法案第 12/19 条和 GDPR 第 30 条的技术清单
本地优先 — 所有数据保留在您的机器上,存储于单个 SQLite 文件中
Related MCP server: mcp-witness
监管背景
此服务器为以下欧盟法规实施技术措施:
法规 | 条款 | 要求内容 |
欧盟 AI 法案 (2024/1689) | 高风险 AI 系统自动记录事件(日志) | |
自动生成的日志至少保留 6 个月 | ||
GDPR (2016/679) | 个人数据的擦除权(“被遗忘权”) | |
处理活动记录,包括目的和数据类别 |
欧盟 AI 法案高风险义务于 2026 年 8 月 2 日 生效。
请参阅 LEGAL_REFERENCES.md 获取完整的条款文本以及每个工具如何满足每项要求的详细映射。
免责声明: 此工具提供技术清单,而非法律建议。请咨询合格的法律顾问以做出合规决策。
快速开始
pip install -e ".[dev]"运行服务器(stdio)
python -m eu_audit_mcp.serverMCP 客户端配置
{
"mcpServers": {
"eu-audit": {
"command": "python",
"args": ["-m", "eu_audit_mcp.server"],
"env": {
"AUDIT_CONFIG": "./audit_config.yaml"
}
}
}
}运行测试
pytest tests/MCP 工具
工具 | 描述 |
| 记录审计事件,自动进行 PII 扫描 |
| 记录 LLM 推理调用(模型、令牌、成本) |
| 记录文档/数据访问事件 |
| 按时间范围、类型、会话搜索事件 |
| 获取会话的完整有序追踪 |
| 获取一段时间内的汇总统计信息 |
| 检查是否符合欧盟 AI 法案第 12/19 条和 GDPR 第 30 条 |
| GDPR 第 17 条擦除权 |
| 检测到的 PII 类型摘要(仅计数) |
| 验证哈希链完整性 |
配置
复制示例配置并进行自定义:
cp audit_config.example.yaml audit_config.yaml设置 AUDIT_CONFIG 环境变量以指向您的配置文件。如果 audit_config.yaml 包含 chain_secret,请勿提交 — 默认情况下它位于 .gitignore 中。
安全
请参阅 SECURITY.md 了解威胁模型、安全措施和漏洞报告。
许可证
Apache-2.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
AI governance MCP server for EU AI Act compliance and jurisdiction verification
Tamper-evident SHA-256 hash-chained decision notary for EU AI Act, NIST AI RMF & SOC2.
Hosted MCP server for pre-action AI governance verdicts, model routing, and evidence verification.
41EU AI Act risk classifier, TARIC code validator, and 3-way freight reconciliation MCP server.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for AI compliance auditing. Scores agent outputs for hallucination liability under the EU AI Act, issues verifiable compliance stamps, and tracks audit history by agent.MIT
- AlicenseNot gradedqualityDmaintenanceCryptographic proof of every AI decision. An immutable, verifiable audit trail MCP server.1MIT
- AlicenseAqualityDmaintenanceTamper-evident audit logging for AI decisions. Three tools (record_decision, verify_decision, list_decisions) write to a regulator-grade ledger built on AWS S3 Object Lock with 7-year retention. Designed for EU AI Act Article 12 and FCA SS1/23 evidence requirements. Try zero-config: npx audit-ledger-mcp boots in sandbox mode against a public hosted tenant.353 npm1Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server providing immutable audit logging, policy enforcement, and compliance reporting for AI agent workflows, enabling regulatory compliance and chain integrity verification.1MIT