Skip to content
Grok

Midplane for Grok

ai.midplane/midplane

Safe-by-default SQL guardrails for AI agents: AST-checked queries, per-table policy, audit log.

client:Grok transport:stdio runtime:npm

Install Midplane 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": {
    "midplane": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "midplane"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "MIDPLANE_POLICY_FILE": "<MIDPLANE_POLICY_FILE>",
        "DB_PATH": "<DB_PATH>",
        "MIDPLANE_TELEMETRY": "<MIDPLANE_TELEMETRY>"
      }
    }
  }
}

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

Midplane in other clients