Midplane
MCP server by midplaneai Verified · midplane.ai
Midplane is a gateway between AI agents and Postgres databases. It checks each statement against your policy, masks columns at the source, and keeps an audit log. It is for teams that want agents to read real tables under controls a security reviewer can check.
Install Midplane
Built from the published package, never by AI.
claude mcp add midplane -e MIDPLANE_TOKEN=YOUR_MIDPLANE_TOKEN -- npx -y midplaneRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"midplane": {
"env": {
"MIDPLANE_TOKEN": "YOUR_MIDPLANE_TOKEN"
},
"args": [
"-y",
"midplane"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"midplane": {
"env": {
"MIDPLANE_TOKEN": "YOUR_MIDPLANE_TOKEN"
},
"args": [
"-y",
"midplane"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"midplane": {
"env": {
"MIDPLANE_TOKEN": "YOUR_MIDPLANE_TOKEN"
},
"args": [
"-y",
"midplane"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add midplane --env MIDPLANE_TOKEN=YOUR_MIDPLANE_TOKEN -- npx -y midplane{
"mcpServers": {
"midplane": {
"env": {
"MIDPLANE_TOKEN": "YOUR_MIDPLANE_TOKEN"
},
"args": [
"-y",
"midplane"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add midplane npx -y midplaneGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the midplane block.
About
Midplane is a gateway that sits between AI agents and your Postgres databases. Agents connect to it over MCP. The gateway parses each statement with Postgres' own parser, checks it against your policy, records it, and only then runs it. Table access is denied by default, masks are written into the query itself, and writes can be held for a person's approval.
Once an agent reads a column labeled untrusted, its writes are held and secret tables are closed to it. The gateway runs in your network next to your databases and keeps a hash-chained audit log on its own disk. It is for teams that want agents to read real tables under controls a security reviewer can check. A local mode runs with no account, and Midplane Cloud adds a dashboard, approvals and a query log.
Written from the project's README and checked against it.
Tools it gives your assistant
Table accessDenies access by default and allows it per table.Masking at the sourceApplies hashes, partial values, generalized dates or NULLs before any filter, join or aggregate.GuardrailsRuns one statement at a time, requires a WHERE for writes, and uses read-only transactions with timeouts.ApprovalsHolds writes for a person and binds each approval to the exact statement and row count.ContainmentHolds writes and closes secret tables once an agent reads a column labeled untrusted.Audit logRecords statements on the gateway's disk in a hash chain that can be exported and verified.
What you need
- Node.js 24.16 or newer
- Docker
- An MCP client such as Claude Code
- Midplane Cloud invite for the hosted dashboard
| Setting | Needed | What it is |
|---|---|---|
MIDPLANE_Environment variable, secret | Required | A token from `midplane token`, verified at start and on every call. It stays in this entry, so give it a --ttl (seconds) as long as the entry should work: the default is an hour. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- List our customers with their emails and phone numbers.
- Delete all support tickets.
- Mark ticket 2 as closed.
Good to know
- Midplane Cloud is invite-only for now.
- In local mode nobody can approve held writes, so they are refused.
- Writes without a WHERE are denied.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Midplane
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Compare with Supabase, ArcadeDB MCP Server or DBHub
Midplane: common questions
Does Midplane see my database rows?
The source says the cloud never holds a database credential or sees a row. The gateway runs in your network and opens its connections out to Midplane Cloud and the relay.
How does Midplane protect sensitive columns?
It masks values at the source with hashes, partial values, generalized dates or NULLs. The masks are applied before any filter, join or aggregate sees the raw value.
How is the audit log protected?
The audit log is hash-chained and stored on the gateway's own disk. It can be exported and verified with one command.
How do I install Midplane?
In Claude Code run claude mcp add midplane -e MIDPLANE_TOKEN=YOUR_MIDPLANE_TOKEN -- npx -y midplane. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Midplane the official server?
Midplane is published by midplane.ai from its verified domain in the official MCP Registry.
Is Midplane free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Midplane safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Midplane?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does Midplane work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
