Midplane vs Pg Readonly MCP
Midplane is an open-source MCP server for databases. Pg Readonly MCP is an open-source MCP server for databases.
- Midplane is best for give an agent read access to a production postgres without exposing pii.
- Pg Readonly MCP is best for let an agent explore a production schema safely.
- What it is
- Midplane is an open-source MCP server for databases.Pg Readonly MCP is an open-source MCP server for databases.
- Best for
- Give an agent read access to a production Postgres without exposing PIILet an agent explore a production schema safely
- Kind
- MCP serverMCP server
- Pricing
- Open sourceOpen source
- Platforms
- CLI, self-hostedCLI, self-hosted
- Runs
- LocallyLocally
- GitHub stars
- 5
- Last commit
- Nov 2026
- License
- MIT
- Open source
- Good for
- Give an agent read access to a production Postgres without exposing PII; Require human sign-off on writes made by an AI agent; Keep a verifiable record of every query an agent ranLet an agent explore a production schema safely; Answer data questions with SELECT-only access; Replace a read-only transaction approach with a parser-based guard
What Midplane does
Policy-checked statements
Each SQL statement is parsed and checked before it runs.
Table access grants
Agents only reach the tables you allow.
Masking at the source
Sensitive columns are masked before results reach the agent.
Write approvals
Writes can be held until a person approves them.
Containment
Restricts what an agent can do after it reads untrusted content.
Hash-chained audit log
Stored on the gateway's disk and verifiable with midplane audit verify.
What Pg Readonly MCP does
SQL parsed, not scanned
Builds a syntax tree instead of pattern-matching text.
Single statement only
Multi-statement payloads are refused before reaching the database.
Deep write detection
Walks the whole tree to find writes hidden inside CTEs.
Startup privilege check
Refuses roles with superuser, create or non-SELECT grants.
Row caps and timeout
Limits the cost of legal but heavy queries.
Honest limits
Documents what the guards cannot catch.
Midplane vs Pg Readonly MCP: questions
Is Midplane or Pg Readonly MCP cheaper?
Both are open source. Compare current plans on each official site.
What is the difference between Midplane and Pg Readonly MCP?
Midplane is an open-source MCP server for databases. Pg Readonly MCP is an open-source MCP server for databases.