Skip to content

sqlguardllm 0.4.0a1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Nov 12:36
· 72 commits to main since this release

An MCP server: any MCP client (Claude Desktop, Cursor, VS Code, agents) gets a database tool that can't do harm. Install it with pip install "sqlguardllm[mcp]".

Added

  • MCP server: sqlguardllm mcp --policy FILE [--role NAME] [--db URL] [--context JSON|@file] [--language es] [--timeout SECONDS] (optional extra sqlguardllm[mcp]) gives any MCP client the tools list_tables, describe_table, explain_query and query. Queries go through Guard.enforce() and run in a read-only transaction with a timeout, always rolled back, returning at most max_rows rows; violations come back as tool errors the model can act on. The context and the database URL never appear in tool output or logs. Setup for Claude Desktop, Cursor and VS Code, and a demo database, in docs/MCP.md and examples/mcp/ (#31, #32).