MCP directory
L

LogCarverGuard

by github.com/caiderek · v0.1.0 · updated Oct 12, 2026

Guardrail for AI agents on SQL Server: statement blocking, optional read-only mode and an audit log.

NuGet

Run it locally

Install the package and point your AI client at it.

NuGet

dnx LogCarverGuard.Local --yes

Environment variables

  • LOGCARVERGUARD_CONNECTION_STRINGrequiredsecret

    SQL Server connection string the statements run as. Example: Server=localhost;Database=MyDb;Integrated Security=true;TrustServerCertificate=true

  • LOGCARVERGUARD_READ_ONLY

    Set to true to allow queries only (SELECT without INTO; remote sources such as OPENQUERY are blocked). Leave unset for the default guard rules.

  • LOGCARVERGUARD_AUDIT_DB_PATH

    Path of the audit log SQLite file. Defaults to LogCarverGuard/audit.db under the local application data folder.

  • LOGCARVERGUARD_TRUNCATE_ALLOWLIST

    Comma-separated schema.table entries where TRUNCATE TABLE is allowed. Empty means all TRUNCATE is blocked.

  • LOGCARVERGUARD_EXEC_WHITELIST

    Comma-separated schema.procedure entries that may be run with EXEC. Empty means all EXEC is blocked.

  • LOGCARVERGUARD_ALTER_DROP_COLUMN_ALLOWLIST

    Comma-separated schema.table entries where ALTER TABLE ... DROP COLUMN is allowed. Empty means it is blocked.

More from github.com/caiderek

More MCP servers