The MCP gateway for PostgresMIT-licensed gatewayBacked by Y Combinator

Ask your production database anything. Break nothing.

Your whole team can ask production questions, not just the engineers who know SQL.

Midplane sits between your AI assistant and Postgres. Every statement is checked before it runs: dangerous queries are blocked, sensitive fields are hidden, and your data never leaves your network.

Works with Claude, ChatGPT, Cursor, VS Code and any MCP client

CheckpointPick a request
The assistant sends
DELETE FROM users;
blocked

A delete with no WHERE clause would empty the table. It never reaches Postgres.

What Midplane catches

Stopped at the gate.

  1. Updates and deletes without a WHERE clauseOne missing filter would change every row. It never reaches Postgres.blocked
  2. Dropped tables and schema changesYour AI can’t restructure your database by accident.blocked
  3. Writes hidden inside read-looking queriesMidplane reads the whole statement, so a delete tucked inside a SELECT is caught.blocked
  4. Prompt injection planted in your dataAfter your AI reads text an outsider wrote, secret tables close and its changes wait for a person.contained
  5. Sensitive fields, even when the AI filters or sorts by themIt can’t work out an email or an SSN one question at a time.masked
Where your data stays

Rows and passwords never leave your network.

OutsideYour AI assistantClaude, ChatGPT, Cursor, VS Code. Connects over MCP. Holds no database password.
Your network: laptop or your cloud, no open ports
GatewayMidplaneHolds the database password. Checks each statement against policy, records it in its audit log, then runs it with its own database role.
DatabaseYour PostgresYour rows stay here. Results go only to your assistant.
Midplane Cloud receives

Query metadata. Decisions. The text of changes waiting for approval.

It never receives

Your rows. Your database passwords.

The relay

Passes encrypted traffic it cannot read. Outbound connection only.

Approvals

One statement. One agent. Once.

Let AI make changes without letting it run loose. Risky writes are held, you see how many rows they touch, and your approval covers that exact statement and nothing after it.

Held for approvalFrom: Cursor
UPDATE orders
SET status = 'refunded'
WHERE id = 4821;
Affects 1 row
Setup

Three steps to the first query.

  1. Run the gateway next to your databaseOne command, or a template for AWS, Fly.io, Render or Kubernetes.
  2. Add its URL to your assistantPaste it into Claude, ChatGPT or Cursor and sign in. No database password changes hands.
  3. Set the rulesTables are closed by default. Open the ones you want, pick the fields to hide, and choose which changes need a person.
Security

If it can’t be parsed, it doesn’t run.

Postgres’s own parser

Midplane reads SQL the way your database does, and denies any statement it can’t fully parse.

Masking inside the query

Emails are hashed, phone numbers partly hidden, dates generalized, before the result exists.

Untrusted input, contained

Once an agent reads outside text, it loses access to secret tables and its changes need a person.

Logged before it runs

Every query is recorded with the reason for its decision. Values are replaced by default.

Midplane Cloud's query log. Cursor's delete on accounts waits for your OK, ChatGPT's read of users came back with fields hidden, and Claude's read of the secret api_keys table is blocked: it touched a table labeled secret after the agent had read untrusted content. Statements show with their values replaced, and each was logged before it reached the database.
Midplane Cloud’s query log: a change waiting for an OK, a read with fields hidden, and a blocked read with the reason why. Statements arrive with their values replaced.
MIT-licensed gatewayExportable logsEU or US regionsPublished adversarial testsSecurity docsSource on GitHub
Plans

Start alone. Bring the team.

Local

Free and open source
  • A single gateway
  • A local policy file
  • A local query log
  • Risky changes are refused
Read the setup guide

Midplane Cloud

For teams
  • Team approvals and SSO
  • Shared rules and an audit view
  • A URL Claude and ChatGPT can reach
  • Gateway and data stay in your network

Need the dashboards inside your own walls too? Self-hosted dashboards are available for enterprise deals on request.

Share the questions. Keep the password.

Or book 15 minutes with the founders

Get access

Which AI will query your database?

Pick all that apply (optional).

Where does your Postgres database run?

Pick one (optional).

We use your details only to reply. Privacy policy