AI Open Radar

jmmana/sqlguardllm

Policy-based SQL firewall for LLM SQL

★ 24 License: Apache-2.0 Last commit: 0d Transport: stdio Repository ↗

What it solves

Without it, LLM-written SQL can be manipulated by prompt injection to read unauthorized tables, columns, or rows.

Works with

Install

pip install sqlguardllm
uvx --with "psycopg[binary]" --from "sqlguardllm[mcp]==1.1.0" sqlguardllm mcp --policy policy.yaml --db "$READ_ONLY_URL" --write-db "$WRITE_URL" --ledger ledger.db
pip install langchain-sqlguardllm==0.1.0a2
pip install "sqlguardllm[yaml]"

Security flags

Maintenance

Last commit2026-12-05(0d)
Stars24
Open issues1
LicenseApache-2.0
ArchivedNo
Data fetched2026-12-06

Source excerpt

Verbatim README excerpt, unedited, so you can check the summary above.

The SQL firewall for LLM apps and agents.

Similar projects