Production gone in nine seconds.
# cursor agent, cleaning up stale rows
WITH cleanup AS (
DELETE FROM users
RETURNING *
)
SELECT count(*) FROM cleanup;production: gone
Midplane sits in front of your Postgres as an MCP server and decides what each query can do — parser-level, audited, denied before it runs.
# cursor agent, cleaning up stale rows
WITH cleanup AS (
DELETE FROM users
RETURNING *
)
SELECT count(*) FROM cleanup;# same agent, same query
WITH cleanup AS (
DELETE FROM users
RETURNING *
)
SELECT count(*) FROM cleanup;Pick a query an agent might run. Flip a table's access level. Watch the policy decide — live, right here.
tap a value to change it · guardrails still apply
DELETE FROM users WHERE id = 42;
Writes to users aren’t allowed — users resolves to read. Flip it to read + write on the left to permit this exact statement.
Every decision is written to an append-only audit log before the query runs.
The full policy model →Table access decides whether a read runs. Masking is the layer underneath — it decides what each column returns, redacting sensitive values before they ever leave Postgres.
SELECT id, country, email,
phone, ssn
FROM users
LIMIT 50;| id | country | email • | phone • | ssn • |
|---|---|---|---|---|
| 1042 | US | s••••@••••.com | +1 ••• ••• ••42 | •••-••-••81 |
| 1043 | DE | m•••@••••••.io | +1 ••• ••• ••07 | •••-••-••07 |
| 1044 | GB | j•@•••••.dev | +1 ••• ••• ••88 | •••-••-••88 |
Where your data lives, who can decrypt it, how agents get in — and how you'd leave.
Every query on the record before it runs — denials included.
How it works →EU or US, chosen once. Your data never moves.
Your keys, your rows — no path between accounts.
Least privilege per agent, revoked in one click.
Any MCP client, OAuth sign-in, nothing to install.
Connect your agent →The whole product, MIT, on your infrastructure.
Concepts, the policy model, masking, audit, self-host — the full reference, from the cloud quickstart.
midplane.ai/docs →the sourceMIT-licensed, top to bottom. Audit every line, or self-host the full product on your own infrastructure.
github.com/midplaneai →the cloudPaste a database URL, get an MCP endpoint, point your agent at it. One project and one seat, free — no credit card.
Start free →Rolling this out to a team, or want it in front of production first? Talk to the founders →