Skip to main content
Glama
jellewas

eu-audit-mcp

by jellewas

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)

第 12 条

高风险 AI 系统自动记录事件(日志)

第 19 条

自动生成的日志至少保留 6 个月

GDPR (2016/679)

第 17 条

个人数据的擦除权(“被遗忘权”)

第 30 条

处理活动记录,包括目的和数据类别

欧盟 AI 法案高风险义务于 2026 年 8 月 2 日 生效。

请参阅 LEGAL_REFERENCES.md 获取完整的条款文本以及每个工具如何满足每项要求的详细映射。

免责声明: 此工具提供技术清单,而非法律建议。请咨询合格的法律顾问以做出合规决策。

快速开始

pip install -e ".[dev]"

运行服务器(stdio)

python -m eu_audit_mcp.server

MCP 客户端配置

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

运行测试

pytest tests/

MCP 工具

工具

描述

log_event

记录审计事件,自动进行 PII 扫描

log_inference

记录 LLM 推理调用(模型、令牌、成本)

log_data_access

记录文档/数据访问事件

query_log

按时间范围、类型、会话搜索事件

get_session_trace

获取会话的完整有序追踪

get_stats

获取一段时间内的汇总统计信息

compliance_check

检查是否符合欧盟 AI 法案第 12/19 条和 GDPR 第 30 条

execute_erasure

GDPR 第 17 条擦除权

get_pii_summary

检测到的 PII 类型摘要(仅计数)

verify_chain

验证哈希链完整性

配置

复制示例配置并进行自定义:

cp audit_config.example.yaml audit_config.yaml

设置 AUDIT_CONFIG 环境变量以指向您的配置文件。如果 audit_config.yaml 包含 chain_secret,请勿提交 — 默认情况下它位于 .gitignore 中。

安全

请参阅 SECURITY.md 了解威胁模型、安全措施和漏洞报告。

许可证

Apache-2.0

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
2Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    MCP 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
  • A
    license
    A
    quality
    B
    maintenance
    Tamper-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.
    3
    65
    1
    Apache 2.0
  • A
    license
    -
    quality
    C
    maintenance
    MCP server providing immutable audit logging, policy enforcement, and compliance reporting for AI agent workflows, enabling regulatory compliance and chain integrity verification.
    MIT

View all related MCP servers

Related MCP Connectors

  • A paid remote MCP for AI SDK data query MCP, built to return verdicts, receipts, usage logs, and aud

  • A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready

  • A paid remote MCP for HyperFrames, built to return verdicts, receipts, usage logs, and audit-ready J

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jellewas/eu-audit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server