Skip to content
Grok

QueryPilot for Grok

io.github.nickklos10/querypilot

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

client:Grok transport:stdio runtime:pypi

Install QueryPilot in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "querypilot": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "querypilot"
      ],
      "env": {
        "QUERYPILOT_DATABASE_URL": "<QUERYPILOT_DATABASE_URL>",
        "QUERYPILOT_DIALECT": "<QUERYPILOT_DIALECT>",
        "QUERYPILOT_MAX_ROWS": "<QUERYPILOT_MAX_ROWS>",
        "QUERYPILOT_TIMEOUT_SECONDS": "<QUERYPILOT_TIMEOUT_SECONDS>",
        "QUERYPILOT_ACCESS_POLICY_JSON": "<QUERYPILOT_ACCESS_POLICY_JSON>",
        "QUERYPILOT_MCP_TRANSPORT": "<QUERYPILOT_MCP_TRANSPORT>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

QueryPilot in other clients