SQLGuardLLM
● Activeio.github.jmmana/sqlguardllm
Policy-based SQL firewall and read-only database tools for LLM agents.
Connect this server
One click to install, or copy the config below. Suits: Claude Desktop · Cursor.
Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):
{
"mcpServers": {
"sqlguardllm": {
"command": "uvx",
"args": [
"--with",
"sqlguardllm[mcp]==1.1.0",
"sqlguardllm",
"mcp",
"--policy",
"<policy>",
"--context"
],
"env": {
"DATABASE_URL": "<your DATABASE_URL>"
}
}
}
}claude mcp add --env DATABASE_URL='<your DATABASE_URL>' --transport stdio sqlguardllm -- uvx --with 'sqlguardllm[mcp]==1.1.0' sqlguardllm mcp --policy '<policy>' --contextcodex mcp add sqlguardllm --env DATABASE_URL='<your DATABASE_URL>' -- uvx --with 'sqlguardllm[mcp]==1.1.0' sqlguardllm mcp --policy '<policy>' --contextcode --add-mcp '{"name":"sqlguardllm","type":"stdio","command":"uvx","args":["--with","sqlguardllm[mcp]==1.1.0","sqlguardllm","mcp","--policy","<policy>","--context"],"env":{"DATABASE_URL":"<your DATABASE_URL>"}}'Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.
- DATABASE_URLrequiredsecretSQLAlchemy URL for a least-privilege read-only database account
A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.
Is it safe? Is it maintained?
Serverdex check: Dec 5, 2026Looks healthy: SQLGuardLLM is maintained, open source.
- Maintained
- Active
- Last commit 5 days ago (Nov 30, 2026), 9 open issues.
- Official registry
- Active
- Published as io.github.jmmana/sqlguardllm in the official MCP registry, version 1.1.0.
- Source
- Open source, Apache-2.0
- Public repository under the Apache-2.0 licence, 9 stars, 1 forks.
- Runs
- On your machine
- A local PyPI package started by your client; it can reach whatever your user account can.
- Credentials
- 1 required
- Declared environment variables: DATABASE_URL. They stay on your machine; the config on this page shows where each goes.
- Owner
- Unclaimed
- Nobody has claimed this page yet; the data above comes from the registry, GitHub and the live check.
Facts only: last commit and licence from GitHub, the entry's status from the official registry, credentials from the live check. Not a code audit — run the security scan on the endpoint yourself.
Report Card
How the grade works →Grade A · Production-ready
Maintenance & production-readiness — 80/100 from the six repository signals below. A comparable rollup, not a code audit.
- Recent commits+30/30
Last commit 5 days ago.
- Open licence+15/15
Apache-2.0 on GitHub.
- Documentation+15/15
The repository ships a README.
- Adoption0/20
9 GitHub stars.
- Registry status+12/12
Active in the official MCP registry.
- Product surface+8/8
Has a homepage or a published package/endpoint.
Own this server? Add the grade badge — it links back here
<a href="https://serverdex.io/server/io-github-jmmana-sqlguardllm?utm_source=report-badge"><img src="https://serverdex.io/server/io-github-jmmana-sqlguardllm/report-badge.svg" alt="SQLGuardLLM — Serverdex Report Card A" height="22"></a>Compare every server's grade on best-maintained MCP servers.
On GitHub
read Nov 30, 2026Pythonai-agentsai-safetyai-securitydatabaseguardrailsllmllm-securitymcpmcp-servermodel-context-protocolnl2sqlprompt-injectionpythonrow-level-securitysecuritysqlsql-firewallsqlglottext-to-sql
From the README
The SQL firewall for LLM apps. Your model writes SQL. sqlguardllm makes sure it can only read what it's allowed to read: one read-only statement, allowlisted tables and columns, row-level filters per user, and a row limit, in any of the 32 dialects sqlglot speaks. English · Español [!NOTE] Status: alpha. 0.5.0a8 is on PyPI (pip install sqlguardllm, import sqlguardllm), with the rules of docs/DESIGN.md, optional complexity limits and a 148-case development corpus. The API may still change before 1.0; violation codes are stable. ⭐ Star the repo to follow along, and tell us what you think in Discussions. Full documentation: https://jmmana.github.io/sqlguardllm/ 🔌 MCP server Run the local stdio server with your MCP client. MCP setup guide · Server manifest Track directory submissions. Install Python 3.10+: the engine itself, inside your process. Node.js / TypeScript 18+: runs the embedded engine (no Python, no server) or talks to sqlguardllm serve. .NET 8 or 10: runs the embedded engine (no Python, no server) or talks to sqlguardllm serve. The server is optional for Node.js and .NET: their packages carry the engine and run it locally (SqlGuard.local / SqlGuard.CreateLocalAsync). Run it, in another terminal (Python 3.10+), when several services share one policy or your platform has no embedded engine.…
Read the full README on GitHub →Alternatives to SQLGuardLLM
All SQLGuardLLM alternatives →Best Databases servers →Compare side by side →The most-starred Databases servers in the index, with their live-check result.
| Server | Stars | Last push | Live check |
|---|---|---|---|
| Dbx | 31,377 | Nov 2026 | Local / not checked |
| MCP Toolbox for Databases | 17,062 | Dec 2026 | Local / not checked |
| MCP Toolbox for Databases | 17,062 | Dec 2026 | Local / not checked |
| Finance Database | 9,702 | Nov 2026 | Working |
| DBHub | 4,064 | Dec 2026 | Local / not checked |
SQLGuardLLM: questions people ask
- Is SQLGuardLLM a remote or a local MCP server?
- According to its entry in the official MCP registry, SQLGuardLLM ships as a local package (PyPI) that your client starts on your machine.
- Does SQLGuardLLM need an API key?
- Its registry entry declares one required environment variable: DATABASE_URL. The config on this page shows where each goes.
- Is SQLGuardLLM safe to use?
- Looks healthy: SQLGuardLLM is maintained, open source. In detail — maintained: Active; official registry: Active; source: Open source, Apache-2.0; runs: On your machine; credentials: 1 required. Serverdex check of Dec 5, 2026. This is a reading of the repository, the registry entry and the live check, not a code audit; run the Serverdex security scan on the endpoint before trusting it with real data.
- Is SQLGuardLLM still maintained?
- Active: the repository's last commit 5 days ago. Last push Nov 30, 2026, 9 GitHub stars, Apache-2.0 licence. Read from GitHub on Nov 30, 2026.
- How do I add SQLGuardLLM to Claude, Cursor or VS Code?
- Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
More from jmmana
All 2 servers by jmmana →More Databases servers
Browse all Databases →AdoMcp
Production-ready
Database MCP server for schema discovery, comments, and SQL queries.
Multigres
Production-ready
Postgres diagnostics and cluster operations for Multigres clusters.
Fiscal MCP
Production-ready
Valida NF-e, NFC-e e NFS-e offline, com schema XSD oficial e sem certificado.
sw-postgres-mcp
Well-maintained
Safe-write Postgres MCP server with preview-before-execute writes and rollback safety.
Job-o-Matic
Production-ready
Local career database your AI keeps current and writes résumés from.
ServiceNow MCP Server
Production-ready
ServiceNow MCP server: Table API, CMDB, schema, aggregates, update sets and four Agent Skills.
Add the badge to your site
Show visitors that SQLGuardLLM is listed here — it’s also the link we check for a free listing.
HTML — for your website
<a href="https://serverdex.io/server/io-github-jmmana-sqlguardllm?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="SQLGuardLLM — listed on Serverdex" width="123" height="40" loading="lazy"></a>Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.
Markdown — for your README
[](https://serverdex.io/server/io-github-jmmana-sqlguardllm?utm_source=badge)Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.
Install buttons — for your README
[](https://serverdex.io/install/cursor/io-github-jmmana-sqlguardllm) [](https://serverdex.io/install/vscode/io-github-jmmana-sqlguardllm) [](https://serverdex.io/install/claude-code/io-github-jmmana-sqlguardllm)One click opens Cursor or VS Code with this server's config prefilled; the Claude Code button lands on the one-line command. The links point at Serverdex, so when your config changes the buttons keep working.
Install buttons — HTML for your docs
<a href="https://serverdex.io/install/cursor/io-github-jmmana-sqlguardllm"><img src="https://serverdex.io/brand/install-cursor.svg" alt="Add to Cursor — via Serverdex" width="140" height="28"></a>
<a href="https://serverdex.io/install/vscode/io-github-jmmana-sqlguardllm"><img src="https://serverdex.io/brand/install-vscode.svg" alt="Add to VS Code — via Serverdex" width="147" height="28"></a>
<a href="https://serverdex.io/install/claude-code/io-github-jmmana-sqlguardllm"><img src="https://serverdex.io/brand/install-claude-code.svg" alt="Open in Claude Code — via Serverdex" width="180" height="28"></a>Same buttons as plain links for a docs page or website.
Prefer a live badge with the score, stars and live check? Score badge (links to a page that explains the number and back to this listing).