Skip to main content
Midplane puts a safety layer between your agent and your Postgres database. Stand it up two ways: Cloud (hosted, fastest) or self-host (your own infrastructure, one Docker command). Either way, by the end you’ll have a protected MCP endpoint.
1

Sign up

Go to app.midplane.ai and create an account with email and password, or Google.
2

Choose a region

Pick EU or US — it sets where your credentials and audit log live.
Your region is immutable — chosen once at sign-up, and every project inherits it. Pick the jurisdiction your data needs to stay in.
3

Connect Postgres

Every account starts with an empty Default project — an MCP endpoint fronting one or more databases. Click Connect Postgres and paste a connection string. Give Midplane a scoped, least-privilege role, not a superuser DSN. Pick a default access level and leave it at read to stay read-only; grant writes per table later.No database handy? Click Try the sample database to load a hosted, read-only demo Postgres in one click and watch an agent query through Midplane.
4

Connect your agent

Your project has a stable HTTPS endpoint, https://{eu|us}.midplane.ai/mcp. Paste it into your agent’s MCP config — you connect over tokenless OAuth (register, sign in once, no secret to copy), and Cursor, Claude Code, and Claude Desktop all connect the standard way. See connect your agent.
For CI or headless callers, mint a machine token instead — that token is a secret, shown only once. See tokens.

Try it

Ask your agent to list the tables in your database — an allowed read that goes straight through. Now ask it to change a single row in one of those tables. The agent issues a bounded UPDATE … WHERE, and Midplane denies it before it runs: under the table_access rule, writes deny by default — even a one-row, surgical change — until you grant read_write on that table. Nothing is modified, and the attempt is audited. Open the audit log in the dashboard: both events are there — the allowed read and the denied write, each tagged with the rule that decided it, and the denial recorded before the query would have run. See the audit trail.

Next steps

Connect your agent

Verified MCP configs for Cursor, Claude Code, and Claude Desktop.

Write a policy

Grant the reads and writes your agent actually needs.

Cloud vs self-host

Which to run, and how they compare.