Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 84
  • 7 stars
  • 358 a week
  • MIT
  • Updated

Install Midplane

Built from the published package, never by AI.

claude mcp add midplane -e MIDPLANE_TOKEN=YOUR_MIDPLANE_TOKEN -- npx -y midplane

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Midplane in Claude Code

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
SettingNeededWhat it is
MIDPLANE_TOKENEnvironment variable, secretRequiredA 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

A

No 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 →
Supabase supabase
97

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.

AAA Local and remote 172k/wk
ArcadeDB MCP Server ArcadeData
94

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.

AAA Local 1.3k
DBHubbytebase
94

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.

AAA Local 343k/wk
MCP Toolbox for Databasesgoogleapis
94

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.

AAA Local 17k
MCP Toolbox for Databasesgoogleapis
94

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.

AAA Local 17k
mongodb-mcp-servermongodb-js
94

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.

AAA Local 203k/wk

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.

Midplane Install

Add to stack

Loading.