Skip to content
MCP server

LogCarverGuard

Guardrail for AI agents on SQL Server: statement blocking, optional read-only mode and…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.0
Listing updated
4 days ago

About LogCarverGuard

LogCarverGuard is an open-source MCP server for databases. It runs locally on your machine and is started by your AI client.

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

Install

Run in a terminal

claude mcp add logcarverguard --env LOGCARVERGUARD_CONNECTION_STRING='<LOGCARVERGUARD_CONNECTION_STRING>' -- dnx LogCarverGuard.Local --yes

Add to claude_desktop_config.json

{
  "mcpServers": {
    "logcarverguard": {
      "command": "dnx",
      "args": [
        "LogCarverGuard.Local",
        "--yes"
      ],
      "env": {
        "LOGCARVERGUARD_CONNECTION_STRING": "<LOGCARVERGUARD_CONNECTION_STRING>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "logcarverguard": {
      "command": "dnx",
      "args": [
        "LogCarverGuard.Local",
        "--yes"
      ],
      "env": {
        "LOGCARVERGUARD_CONNECTION_STRING": "<LOGCARVERGUARD_CONNECTION_STRING>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "logcarverguard": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "LogCarverGuard.Local",
        "--yes"
      ],
      "env": {
        "LOGCARVERGUARD_CONNECTION_STRING": "<LOGCARVERGUARD_CONNECTION_STRING>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "logcarverguard": {
      "command": "dnx",
      "args": [
        "LogCarverGuard.Local",
        "--yes"
      ],
      "env": {
        "LOGCARVERGUARD_CONNECTION_STRING": "<LOGCARVERGUARD_CONNECTION_STRING>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "logcarverguard": {
      "command": "dnx",
      "args": [
        "LogCarverGuard.Local",
        "--yes"
      ],
      "env": {
        "LOGCARVERGUARD_CONNECTION_STRING": "<LOGCARVERGUARD_CONNECTION_STRING>"
      }
    }
  }
}

Configuration

  • LOGCARVERGUARD_CONNECTION_STRINGSQL Server connection string the statements run as. Example: Server=localhost;Database=MyDb;Integrated Security=true;TrustServerCertificate=trueRequired
  • LOGCARVERGUARD_READ_ONLYSet 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_PATHPath of the audit log SQLite file. Defaults to LogCarverGuard/audit.db under the local application data folder.
  • LOGCARVERGUARD_TRUNCATE_ALLOWLISTComma-separated schema.table entries where TRUNCATE TABLE is allowed. Empty means all TRUNCATE is blocked.
  • LOGCARVERGUARD_EXEC_WHITELISTComma-separated schema.procedure entries that may be run with EXEC. Empty means all EXEC is blocked.
  • LOGCARVERGUARD_ALTER_DROP_COLUMN_ALLOWLISTComma-separated schema.table entries where ALTER TABLE ... DROP COLUMN is allowed. Empty means it is blocked.

Pricing

Open source

LogCarverGuard FAQ

Is LogCarverGuard free?

Yes. LogCarverGuard is open source, so you can use and self-host it for free.

How do I add LogCarverGuard to Claude Code?

Run this command in your terminal: claude mcp add logcarverguard --env LOGCARVERGUARD_CONNECTION_STRING='<LOGCARVERGUARD_CONNECTION_STRING>' -- dnx LogCarverGuard.Local --yes

What are the best alternatives to LogCarverGuard?

The closest alternatives to LogCarverGuard are Midplane, PlatypusDB, Lorebase, Sovaria and model2data studio.

Alternatives to LogCarverGuard

  1. Midplane

    MCP server

    Postgres gateway for AI agents with table grants, column masking and approval for writes

    Runs locally
    • Open source
    • 5 GitHub stars
    • Databases
  2. PlatypusDB

    MCP server

    Gives MCP clients access to your PlatypusDB database connections, scoped per agent

    Runs locally
    • Open source
    • Databases
  3. Lorebase

    MCP server

    Lets agents read and change a governed, versioned Postgres knowledge graph

    Runs locally
    • Open source
    • Knowledge and memory
  4. Sovaria

    MCP server

    Manage a Sovaria backend (Postgres, auth, storage, functions) from an AI assistant

    Not checked yet
    • 4 tools
    • Remote
    • Freemium
    • Databases
  5. Generate realistic connected test data, dbt projects and dashboards from a schema

    • Remote
    • Freemium
    • Databases
  6. semlayer

    MCP server

    Infers a semantic layer from your data warehouse and serves it to agents

    Runs locally
    • Free
    • Databases