LogCarverGuard: Free MCP Proxy Limits AI Agents' SQL Server Access
A SQL Server DBA and .NET developer built LogCarverGuard, an early-stage (v0.1) MCP proxy that sits between AI coding agents such as Claude Code or Cursor and a SQL Server database. Each user's API key maps to their own SQL login, and the proxy uses EXECUTE AS so that existing GRANT and DENY permissions still apply without any added privileges. A parser-based guard built on Microsoft's ScriptDom checks every statement, blocking dangerous operations like DROP TABLE, identity switching such as REVERT, and transaction control, while ignoring text inside comments and strings. Batches containing INSERT, UPDATE, or DELETE run in a proxy-owned transaction that rolls back on failure, and all requests are written to a local SQLite audit log.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in