Safety layer between AI agents and databases
FreeAbout Safety layer between AI agents and databases
faz is an open-source safety layer designed to sit between AI agents and databases, ensuring every query is inspected before execution. It provides a multi-database interface via MCP (Model Context Protocol) and REST API, supporting 14 database types. Every query passes through a five-stage safety pipeline: prompt guard, role-based access control (RBAC), abstract syntax tree (AST) analysis, injection detection, and guardrails. faz offers four MCP tools: list_databases, describe_table, query, and federated_query. Administrators can define granular permissions per table and user, including read, write, append, and full access. The tool logs all actions and returns either query results or a blocked response with a clear explanation. Setup is quick via pip and a command-line wizard.
Key Features
Pros & Cons
- Comprehensive safety pipeline inspects all queries before execution
- Easy setup with pip and CLI wizards
- Supports a wide range of database types (14 databases)
- Integrates seamlessly with MCP-compatible agents like Claude and Cursor
- Clear blocked query explanations help debugging
- Open source with permissive license
- Relatively new project with small community (7 stars on GitHub as of data collection)
- Limited documentation beyond the README
- Requires manual configuration of database connections and permissions