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
How it works

From your database to the first answer.

  1. Run the gateway next to your database.

    On your laptop to try it, on a server for the team. It holds the database password, tests each connection and reads the catalog: table names and types, never a value.

    Gatewaysprod-eu-1 · your network
    • mainReachableCatalog read: 6 tables, 1 view
    • billingReachableCatalog read: 4 tables
  2. Choose what agents may read.

    A new policy denies everything. Open the tables you want, review the columns that look like personal data, and choose which changes wait for a person.

    Policy for mainPublished
    • public.usersReademail hashed, phone partly hidden
    • public.accountsRead + write
    • public.ordersRead + write
    • public.support_ticketsReadbody is untrusted
    • public.api_keysReadsecret table
    • Other tablesDeny
    • Row changesHold
    • Schema changesDeny
  3. Connect your assistant.

    Add the gateway’s URL and sign in, then pick the databases it may use. No database password changes hands.

  4. Ask in plain words.

    Anyone on the team asks, and the assistant writes the SQL. Midplane checks every statement before it runs and hides sensitive fields inside the query.

    ChatGPT · Priya Shahmain

    “Who signed up today?”

    The assistant sends
    SELECT name, email, phoneFROM usersWHERE created_at >= current_date;
    nameemail hashedphone partial
    Lena Fischer9f2c41d0e7b3a85c…••••••••0142
    Omar Haddad1b7e09c4f2d6e5a1…••••••••7731
    Mei Tanakac3a58f7e21b940d7…••••••••2208
    Fields hidden3 rows · 41 ms
  5. Approve the risky changes.

    Row changes wait for a person, who sees the statement and how many rows it touches. The OK covers that exact statement, once.

    Held for approvalFrom: Cursor
    UPDATE orders
    SET status = 'refunded'
    WHERE id = 4821;
    Affects 1 row
  6. See every query, and why.

    Each statement is logged before it reaches the database, with who sent it and what was decided. Values are replaced by default.

    Query logMidplane Cloud
    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.
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.

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.

MIT-licensed gatewayExportable logsEU or US regionsPublished adversarial testsSecurity docsSource on GitHub
Pricing

Start alone. Bring the team.

Local

Open source (MIT)

Free

  • One gateway
  • Local policy file
  • Local query log

Team

Founding team price

$290/month

1 production database, unlimited team members

Everything in Local, plus:

  • A hosted URL that Claude and ChatGPT can reach
  • Team approvals
  • Shared rules
  • Audit view
  • SSO

We set it up with you on a 30-minute call.

30-day money-back guarantee. If it’s not right for your team, email us within 30 days for a full refund.

Book a call to startReady now? Start for $290/month

Billed monthly in USD. Cancel anytime. Taxes may apply.

Enterprise

On request

Custom

  • Self-hosted dashboards
  • Custom terms