SQLGuardLLM MCP
A policy-based SQL firewall for LLM agents that validates and rewrites generated SQL before execution. It parses the SQL syntax tree to enforce read-only access, allowlisted tables and columns, per-user row filters, and row limits across 30+ dialects, preventing SQL injection and unauthorized data access.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Validate SQL written by AI agents before execution
- Rewrite queries to enforce read-only access
- Apply per-user row-level security filters
- Prevent SQL injection in Text-to-SQL applications
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
sqlguardllm 0.5.0a8
{
"version": "0.5.0a8",
"transport": "stdio",
"identifier": "sqlguardllm",
"runtimeHint": "uvx",
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"packageArguments": [
{
"type": "positional",
"value": "mcp"
},
{
"name": "--policy",
"type": "named",
"format": "filepath",
"isRequired": true,
"description": "Absolute path to a trusted policy file"
},
{
"name": "--context",
"type": "named",
"description": "Trusted context JSON or @file for row filters"
}
],
"runtimeArguments": [
{
"name": "--with",
"type": "named",
"value": "sqlguardllm[mcp]==0.5.0a8"
}
],
"environmentVariables": [
{
"name": "DATABASE_URL",
"isRequired": true,
"description": "SQLAlchemy URL for a least-privilege read-only database account"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"sqlguardllm-mcp": {
"command": "uvx",
"args": [
"sqlguardllm==0.5.0a8",
"mcp"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}Cline
{
"mcpServers": {
"sqlguardllm-mcp": {
"command": "uvx",
"args": [
"sqlguardllm==0.5.0a8",
"mcp"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}VS Code
{
"servers": {
"sqlguardllm-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"sqlguardllm==0.5.0a8",
"mcp"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"sqlguardllm-mcp": {
"command": "uvx",
"args": [
"sqlguardllm==0.5.0a8",
"mcp"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}Let your agent find its tools
Find servers like SQLGuardLLM MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.