Agentโ™ฅ๏ธŽAge
Catalog

Midplane

Official

by midplaneai ยท TypeScript

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

ai.midplane/midplane MCP Server

The ai.midplane/midplane server is a Postgres Model Context Protocol (MCP) server that provides safe-by-default SQL guardrails for AI agents. It sits between an MCP client (e.g., Claude, Cursor) and a Postgres database, enforcing per-table access policy, auditing statements, and masking PII.

๐Ÿ› ๏ธ Key Features

  • AST-checked queries using a real SQL AST (not a regex blocklist)
  • Declarative per-table access policy enforcement
  • SQL rewriting to ensure masked columns never leave the database unencrypted
  • Audit log row recorded before query execution
  • Writes held for human approval

๐Ÿš€ Use Cases

  • Controlling which tables an AI agent can access in Postgres
  • Reducing risk from agent-generated SQL queries via AST validation
  • Maintaining traceability of database interactions through auditing
  • Handling sensitive fields by masking PII at the source

โšก Developer Benefits

  • Policy enforcement on the SQL AST
  • Clear separation between the AI agent and database access
  • Self-hostable deployment under MIT licensing

โš ๏ธ Limitations

  • Only described as a Postgres-focused MCP server; no other database targets are listed

Topics

ai-agentsai-safetyaudit-logclaudecursordatabase-securityguardrailsllmmcpmodel-context-protocolopen-corepostgrespostgresqlself-hostedsql

Related servers

More in Security