Skip to main content

LogCarverGuard

io.github.caiderek/logcarverguard

v0.1.0Updated Oct 12, 2026stdio · NuGet

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

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add logcarverguard -e 'LOGCARVERGUARD_CONNECTION_STRING=<your-logcarverguard-connection-string>' -- dnx [email protected] --yes

Configuration

6 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • LOGCARVERGUARD_CONNECTION_STRING
    Env var· required· secret
    SQL Server connection string the statements run as. Example: Server=localhost;Database=MyDb;Integrated Security=true;TrustServerCertificate=true
  • LOGCARVERGUARD_READ_ONLY
    Env var· optional
    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
    Env var· optional
    Path of the audit log SQLite file. Defaults to LogCarverGuard/audit.db under the local application data folder.
  • LOGCARVERGUARD_TRUNCATE_ALLOWLIST
    Env var· optional
    Comma-separated schema.table entries where TRUNCATE TABLE is allowed. Empty means all TRUNCATE is blocked.
  • LOGCARVERGUARD_EXEC_WHITELIST
    Env var· optional
    Comma-separated schema.procedure entries that may be run with EXEC. Empty means all EXEC is blocked.
  • LOGCARVERGUARD_ALTER_DROP_COLUMN_ALLOWLIST
    Env var· optional
    Comma-separated schema.table entries where ALTER TABLE ... DROP COLUMN is allowed. Empty means it is blocked.

Listed in the official MCP Registry since Oct 12, 2026. Mirrored daily; last checked Nov 26, 2026.