This page is also available in

Home › AI Agent / automation workflows › sqlguardllm

sqlguardllm

jmmana/sqlguardllm

AI Agent / automation workflows Source: GitHubScore 1.43 stars/day (22 total)· First listed Dec 2, 2026

Visit the sqlguardllm website / project page →

Verdict Must be installed and run on a computer;cannot run this environment on a phone;Validates SQL based on policies and syntax trees to prevent prompt injection

What is sqlguardllm

Policy-based SQL firewall designed for LLM Agent and Text-to-SQL scenarios. It validates and rewrites generated SQL statements before execution and provides a read-only MCP server.

Key features

  • Validates SQL based on policies and syntax trees to prevent erroneous queries caused by prompt injection, hallucinations or malicious data
  • Supports 30+ SQL dialects, allows read-only statements, whitelisted table columns, per-user row filtering and row count limits
  • Automatically validates and rewrites generated SQL statements before execution, controlling writes, stored procedures and untrusted data
  • Provides a read-only MCP server and integrates with LangChain/LangGraph as an SQL tool
  • Contains 15 core violation rules, follows semver, and supports Playground and Benchmark testing

Who it is for

Suitable for developers building LLM Agents, Text-to-SQL applications or database tools, especially in scenarios requiring protection of database query security.

Who it is NOT for

Materials do not specify who this is not for.

How to get started

  1. Visit https://github.com/jmmana/sqlguardllm
  2. Install the 1.0.0 stable version via pip, npm or NuGet
  3. Define your SQL policies (tables, columns, row filtering, etc.)
  4. Integrate sqlguardllm for query validation in LangChain or custom Agents

Pricing:Not published

Compiled from public descriptions on the tool's official website / README / launch page. Pricing and user numbers have not been verified; please check the official website. Some sections were drafted with AI assistance. Written in Chinese and English.

Similar alternatives (AI Agent / automation workflows)

Get a “Featured on AI Hot List” badge · Submit a tool

← Back to “AI Agent / automation workflows” · Full hot list · Use-case lists