Skip to content
Claude Code

Midplane for Claude Code

ai.midplane/midplane

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

client:Claude Code transport:stdio runtime:npm

Install Midplane in Claude Code

run in your project directory

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

claude mcp add midplane -e DATABASE_URL=<DATABASE_URL> -e MIDPLANE_POLICY_FILE=<MIDPLANE_POLICY_FILE> -e DB_PATH=<DB_PATH> -e MIDPLANE_TELEMETRY=<MIDPLANE_TELEMETRY> -- npx -y midplane

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

Midplane in other clients