You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Safely execute SQL queries against local SQLite database files with parameterized execution, schema introspection, and read-only safeguards.
Features
Read-Only Protection: Blocks DDL/DML write statements (INSERT, UPDATE, DELETE, DROP, ALTER, ATTACH, …) when read_only=True (default). Only a singleSELECT / PRAGMA / EXPLAIN / WITH statement is allowed. Multi-statement scripts and comment-smuggled writes are rejected.
Path Containment: database_path must resolve under an allowlisted directory (allowed_roots or SQLITE_ALLOWED_ROOTS, defaulting to the process cwd) so agents cannot open arbitrary SQLite files on the host.
Parameterized Queries: Prevents SQL injection vulnerabilities by passing tuples/lists of parameters.
Structured JSON Output: Returns structured list of key-value row mappings alongside column schemas and execution time telemetry.
Configurable Limits: Cap maximum returned rows via max_rows (default 100) to protect agent memory.
Parameters
Parameter
Type
Required
Default
Description
database_path
string
Yes
—
Path to the SQLite database file (.db, .sqlite, .sqlite3). Must be under an allowed root.