scribase
MCP

An MCP server for Postgres, with governance built in

Search for an MCP server for Postgres today and the official one is gone: @modelcontextprotocol/server-postgres was deprecated with no vendor-maintained replacement, unlike GitHub, Slack or Redis. Every live option is a community fork (Postgres MCP Pro, DBHub), a vendor-specific server (Supabase, Neon), or a hosted one. They mostly agree on one piece of advice — connect with a read-only role, never a superuser — and mostly stop there.

Last checked November 30, 2026.

The landscape today

The official MCP server for Postgres was deprecated and never replaced by a vendor-maintained one, so what shows up in a search is a mix of community forks offering read/write SQL plus database-admin features (index tuning, health checks), tools scoped to read-only querying and schema exploration, and the first-party servers from Supabase and Neon aimed at their own hosted databases.

"Connect read-only" protects one thing, not the one that matters most

A read-only database role stops an agent from writing data through that connection, which is real and worth doing. It does not stop the production-wipe pattern seen in public incidents this year, because those used an agent's normal deploy or admin credential doing its real job (Terraform, a migration tool), not a stray SQL connection. It also does not touch the other common gap: a public table shipped with row level security off, which a read-only query happily returns in full.

What the Scribase MCP server adds on top

The hosted endpoint is https://api.scribase.com/mcp, no install, bearer token or MCP OAuth (your editor opens the consent page). Every session gets its own scratch database for schema tools, destroyed when the session ends. Schema changes are proved before they ship: schema_apply only accepts a schema policy_test has already proved on a scratch branch, including deliberately broken policy variants the tests must catch. Mutations need confirm: true. Destructive production calls from a non-admin token wait for a named human approver instead of running or being flatly refused.

Claude Codebash
claude mcp add --transport http scribase https://api.scribase.com/mcp

Sources: Scribase docs: Tokens and safety

FAQ

Questions people ask

Is there still an official MCP server for Postgres?

@modelcontextprotocol/server-postgres, the original reference server, is deprecated with no vendor-maintained successor — unlike GitHub, Slack or Redis, Postgres never got one. Every current option is either a community fork, a database-specific hosted server, or one from a Postgres provider like Supabase, Neon or Scribase.

Is a read-only MCP connection to Postgres safe for production?

It is safer than read-write for the specific risk of an agent writing bad data through that connection, which is the right default for ad hoc querying. It does not protect against an agent's separate deploy or admin credentials running a destructive operation (the pattern behind several public production-database incidents), and it does not stop a row level security gap, since a read-only connection still returns every row of an unprotected table.

What should a governed Postgres MCP server actually enforce?

At minimum: least-privilege, expiring tokens per agent; RLS proven (not just assumed) before a schema change ships; mutations that require explicit confirmation; and an approval step — a named human, not a flag — before a destructive call reaches production. Scribase's MCP server does all four.

Does connecting an MCP server to Postgres mean pasting a database password into my editor config?

With Scribase, no — the hosted MCP endpoint uses MCP OAuth (your editor opens a consent page) or scribase login, so an agent token never touches a config file as a plaintext secret. A local stdio server still reads SCRIBASE_API_URL and SCRIBASE_ACCESS_TOKEN from the environment, never a database password directly.