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 整合