QueryPilot runs on your own machine — the client starts it, so there is no endpoint to ping. 74 installs a week from pypi. Last commit 22 Oct 2026.
Safe SQL gateway for AI agents: SELECT-only validation, access policies, masking, audit trail, evals
Today is the operative word: we check QueryPilot every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add querypilot -e 'QUERYPILOT_DATABASE_URL=<QUERYPILOT_DATABASE_URL>' -- uvx querypilot
{
"mcpServers": {
"querypilot": {
"command": "uvx",
"args": [
"querypilot"
],
"env": {
"QUERYPILOT_DATABASE_URL": "<QUERYPILOT_DATABASE_URL>"
}
}
}
}
[mcp_servers.querypilot]
command = "uvx"
args = ["querypilot"]
env = { QUERYPILOT_DATABASE_URL = "<QUERYPILOT_DATABASE_URL>" }
{
"mcpServers": {
"querypilot": {
"command": "uvx",
"args": [
"querypilot"
],
"env": {
"QUERYPILOT_DATABASE_URL": "<QUERYPILOT_DATABASE_URL>"
}
}
}
}
{
"servers": {
"querypilot": {
"type": "stdio",
"command": "uvx",
"args": [
"querypilot"
],
"env": {
"QUERYPILOT_DATABASE_URL": "<QUERYPILOT_DATABASE_URL>"
}
}
}
}
Put your own value in place of
<QUERYPILOT_DATABASE_URL> (SQLAlchemy-style database connection URL, e.g. sqlite:///demo.db or postgresql://user:pass@host:5432/db. Equivalent to --database-url).
The author’s registry entry marks it as required.
Optional settings from the registry entry, left out of the block above:
QUERYPILOT_DIALECT (SQL dialect for the connector. Equivalent to --dialect), QUERYPILOT_MAX_ROWS (Maximum rows returned per query. Equivalent to --max-rows), QUERYPILOT_TIMEOUT_SECONDS (Query execution timeout in seconds. Equivalent to --timeout-seconds), QUERYPILOT_ACCESS_POLICY_JSON (JSON-encoded AccessPolicy (blocked_columns, allowed_columns, row_filters, masking_rules) enforced before execution. Equivalent to --access-policy-json), QUERYPILOT_MCP_TRANSPORT (MCP transport used by `querypilot mcp`. Equivalent to --transport. Most MCP clients should leave this at stdio; streamable-http is for clients that speak Streamable HTTP directly).
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Safe, read-only database access for AI agents. 5 databases, batch queries, SQLGlot.
Governed, read-only Postgres access for AI agents: SQL safety, RLS, budgets, tamper-evident audit.
A gateway between AI agents and Postgres: table access, masking at the source, approvals and audit.
Fail-closed, read-only PostgreSQL and MongoDB access for AI agents over MCP.
Governed read-only warehouse access for agents: SQL guard, row policies, PII pseudonyms, audit log.
Guard AI agents' PostgreSQL/MySQL access via MCP: SQL audit, auth, masking, write approval
MySQL migration and query safety review for AI agents: locks, table copies, data loss, injection.
Answers built from our own checks of this server.