MCP directory
Q

QueryPilot

by github.com/nickklos10 · v0.1.1 · updated Jul 11, 2026

Safe SQL gateway for AI agents: SELECT-only validation, access policies, masking, audit trail, evals

PyPI

Run it locally

Install the package and point your AI client at it.

PyPI

uvx querypilot==0.1.1

Environment variables

  • QUERYPILOT_DATABASE_URLrequiredsecret

    SQLAlchemy-style database connection URL, e.g. sqlite:///demo.db or postgresql://user:pass@host:5432/db. Equivalent to --database-url.

  • 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.

More MCP servers