Repository navigation
sqlguardllm 0.4.0a1
Pre-release
Pre-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 extrasqlguardllm[mcp]) gives any MCP client the toolslist_tables,describe_table,explain_queryandquery. Queries go throughGuard.enforce()and run in a read-only transaction with a timeout, always rolled back, returning at mostmax_rowsrows; 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, indocs/MCP.mdandexamples/mcp/(#31, #32).