Skip to content

Audit Trail

Chris edited this page Jul 17, 2026 · 115 revisions

Secure Your Audit Trail

Tools Resources Prompts
OAuth Code Mode

Value Proposition Maintain rigorous compliance and comprehensive system visibility. Secure your database operations with reliable audit trails that systematically capture critical actions. Read the full value proposition.

⚙️ Configuration & Compliance Enforcement

Establish strong data governance and regulatory compliance. Enable detailed monitoring to capture pre-mutation snapshots and maintain complete operational visibility.

Configure by passing the following flags during server initialization:

  • --audit-log <path>: Enables the audit log and specifies the file path (e.g., --audit-log /var/log/mcp-audit.jsonl).
  • --audit-backup: Enables pre-mutation snapshots for DDL changes.
  • --audit-reads: Includes read-scope tool calls (like SELECTs) in the audit log.
  • --audit-redact: Automatically redacts sensitive parameters from the JSONL output.
  • --audit-log-max-size: Maximum size for the audit log file (reaching this maximum triggers automatic log rotation).
  • --audit-backup-data: Includes sample data in pre-mutation snapshots.
  • --audit-backup-max-size: Maximum table size in bytes for data capture.

See the Configuration guide for all audit options, including sizes and redaction rules.

  • Resourcesmysql://audit resource details
  • Code Mode — Native isolated-vm sandbox
  • Tools — Full tool list with scope groups

MySQL MCP Documentation

Unlock autonomous database orchestration with an enterprise-grade MySQL MCP server. Featuring blazing-fast sandboxed Code Mode, uncompromising schema enforcement, and seamless ecosystem integrations to power secure, intelligent AI workflows.

🏠 Home


Launch Your Setup


Connect Ecosystem Tools


Enforce Security & Compliance


Scale Your Operations


Explore External Links

Clone this wiki locally