hs-sql-agent is an HTTP MCP server for governed SQL access. It connects MCP clients to PostgreSQL, MySQL, SQL Server, Oracle, SQLite, and Firebird while keeping authentication, access policy, SQL validation, and mutation approval on the server side.
01 MCP client
02 MCP key scope
03 SQL compiler
04 Policy & capability checks
05 Database
What the server owns
The compiler boundary
Generated SQL is parsed and validated before execution. hs-sql-agent checks the capabilities needed to preserve the statement’s semantics and compiles provider-specific SQL only after the request has passed its source, target, and policy boundaries.
Unsupported syntax or semantics are rejected instead of being silently rewritten into something that merely looks equivalent.