EU Audit Trail

io.github.jellewas由 GitHub 账号 jellewas 发布v0.1.1更新于 Oct 24, 2026

Tamper-evident audit trail MCP server for EU AI Act & GDPR compliance.

发布方自己的服务:audit.domains - Domain Valuation

已验证STDIO仅桌面安全与监控数据与分析

概览

AI 生成的概览

本地 MCP 服务器,用于记录防篡改审计事件、扫描个人数据,并检查欧盟 AI 法案与 GDPR 合规性。

可以做什么
记录审计事件、LLM 推理调用和数据访问事件,每条记录自动进行个人数据扫描与脱敏。按时间范围、类型或会话检索日志,并获取某会话的完整有序轨迹。获取一段时间内的汇总统计和检测到的个人数据类型计数。依据欧盟 AI 法案第 12/19 条和 GDPR 第 30 条运行技术合规检查清单。执行 GDPR 第 17 条删除操作,并校验 HMAC-SHA256 哈希链的完整性。
适用场景
当你需要为欧盟 AI 法案或 GDPR 文档保留本地、防篡改的 AI 活动记录时适用,例如记录高风险系统事件、跟踪推理调用或准备处理活动记录。适合希望在本机留存技术证据而非使用托管日志服务的团队。
运行要求
通过 stdio 作为本地进程运行,从 PyPI 包 eu-audit-mcp 安装(Python)。需要一个 YAML 配置文件,其路径由环境变量 AUDIT_CONFIG 指定。数据保存在本地 SQLite 文件中。未声明身份验证。
安装前请注意
配置文件可能包含用于哈希链的 chain_secret,README 提醒不要提交该文件。删除和日志工具会写入并删除本地审计存储中的数据,应谨慎使用。项目声明其仅为技术检查清单,不构成法律建议。个人数据扫描依赖 Microsoft Presidio,所有数据保留在本地。

安装

在 SourceWeft 中

  1. 打开 控制台中的 EU Audit Trail,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

eu-audit-mcp

Tamper-evident audit trail MCP server for EU AI Act and GDPR compliance. Designed to be integrated into a local desktop application via stdio transport.

Features

  • Tamper-evident logging — HMAC-SHA256 hash chain over all events
  • PII scanning — Automatic detection and redaction via Microsoft Presidio (EU patterns)
  • GDPR erasure — Article 17 right-to-erasure support with audit trail
  • Compliance checks — Technical checklist against EU AI Act Articles 12/19 and GDPR Article 30
  • Local-first — All data stays on your machine in a single SQLite file

Regulatory context

This server implements technical measures for the following EU regulations:

RegulationArticlesWhat it requires
EU AI Act (2024/1689)Art. 12Automatic recording of events (logs) for high-risk AI systems
Art. 19Retention of automatically generated logs for at least 6 months
GDPR (2016/679)Art. 17Right to erasure of personal data ("right to be forgotten")
Art. 30Records of processing activities, including purposes and data categories

The EU AI Act high-risk obligations enter into force on 2 August 2026.

See LEGAL_REFERENCES.md for the full article texts and a detailed mapping of how each tool addresses each requirement.

Disclaimer: This tool provides a technical checklist, not legal advice. Consult qualified legal counsel for compliance decisions.

Quick start

bash
pip install -e ".[dev]"

Run the server (stdio)

bash
python -m eu_audit_mcp.server

MCP client configuration

json
{  "mcpServers": {    "eu-audit": {      "command": "python",      "args": ["-m", "eu_audit_mcp.server"],      "env": {        "AUDIT_CONFIG": "./audit_config.yaml"      }    }  }}

Run tests

bash
pytest tests/

MCP Tools

ToolDescription
log_eventRecord an audit event with automatic PII scanning
log_inferenceLog an LLM inference call (model, tokens, cost)
log_data_accessLog a document/data access event
query_logSearch events by time range, type, session
get_session_traceFull ordered trace of a session
get_statsSummary statistics over a time period
compliance_checkCheck against EU AI Act Art. 12/19 and GDPR Art. 30
execute_erasureGDPR Article 17 right-to-erasure
get_pii_summarySummary of detected PII types (counts only)
verify_chainVerify hash chain integrity

Configuration

Copy the example config and customize:

bash
cp audit_config.example.yaml audit_config.yaml

Set the AUDIT_CONFIG environment variable to point to your config file. Do not commit audit_config.yaml if it contains a chain_secret — it is in .gitignore by default.

Security

See SECURITY.md for the threat model, security measures, and vulnerability reporting.

License

Apache-2.0

来源:README.md,提交 3a22ddf

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Audit 集成