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] --yesConfiguration
6 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.
LOGCARVERGUARD_CONNECTION_STRINGEnv var· required· secretSQL Server connection string the statements run as. Example: Server=localhost;Database=MyDb;Integrated Security=true;TrustServerCertificate=trueLOGCARVERGUARD_READ_ONLYEnv var· optionalSet 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_PATHEnv var· optionalPath of the audit log SQLite file. Defaults to LogCarverGuard/audit.db under the local application data folder.LOGCARVERGUARD_TRUNCATE_ALLOWLISTEnv var· optionalComma-separated schema.table entries where TRUNCATE TABLE is allowed. Empty means all TRUNCATE is blocked.LOGCARVERGUARD_EXEC_WHITELISTEnv var· optionalComma-separated schema.procedure entries that may be run with EXEC. Empty means all EXEC is blocked.LOGCARVERGUARD_ALTER_DROP_COLUMN_ALLOWLISTEnv var· optionalComma-separated schema.table entries where ALTER TABLE ... DROP COLUMN is allowed. Empty means it is blocked.
Links
Listed in the official MCP Registry since Oct 12, 2026. Mirrored daily; last checked Nov 26, 2026.