Postgres MCP Server: 4 Options Compared, Read-Only and Remote | MCP Hunter

Postgres MCP Server: 4 Options Compared, Read-Only and Remote

Four Postgres MCP servers compared: the archived reference server, Postgres MCP Pro, Supabase and Neon. How each runs, what it can write, and what the two hosted endpoints returned when we called them on 30 November 2026.

MCP Hunter team 7 min read

A Postgres MCP server lets an AI client read your schema and run SQL against your database. There is no single official one any more: the reference server from the MCP project was archived [1], and the choice is now between a server you run yourself next to the database and a hosted server run by your Postgres provider.

This page compares four of them: the archived reference server, Postgres MCP Pro, Supabase and Neon. Every feature claim is taken from each project's own README or docs as read on 30 November 2026 [1][2][3][4], and the two hosted endpoints were called with curl on the same day, using the requests in test an MCP server with curl.

TL;DR:

  • Any Postgres, run it yourself: Postgres MCP Pro. It runs over stdio or HTTP, and its restricted mode keeps every query in a read-only transaction [2].
  • On Supabase: the hosted server at mcp.supabase.com/mcp, with read_only=true on the URL to drop the tools that change data [3].
  • On Neon: the hosted server at mcp.neon.tech/mcp, with readonly=true on the URL. On 30 November 2026 that cut its published tool list from 143 tools to 60 [4].
  • The reference server (@modelcontextprotocol/server-postgres) still installs, but it sits in the archived repository and has one tool, query [1].

The four options side by side

Server Runs as Works with Can it write? Read-only how
Reference PostgreSQL server [1] stdio (npx or Docker) Any Postgres No Always: every query runs in a READ ONLY transaction
Postgres MCP Pro [2] stdio, SSE or Streamable HTTP Any Postgres Yes, in unrestricted mode --access-mode=restricted
Supabase MCP [3] Hosted HTTP, OAuth Supabase projects Yes, by default read_only=true on the URL
Neon MCP [4] Hosted HTTP, OAuth or API key Neon projects Yes, by default readonly=true on the URL, or untick "Allow writes" when signing in

The split that matters most is the first column. A stdio server runs on your machine with a connection string you give it, so it reaches any database your machine reaches, including localhost. A hosted server runs on the provider's side and reaches only that provider's projects, but there is nothing to install and sign-in is OAuth.

The reference PostgreSQL server (archived)

The MCP project's own Postgres server is listed under "Archived" in the servers repository, and its code lives on in servers-archived [1]. It does one thing: a query tool that takes a sql string, and "all queries are executed within a READ ONLY transaction" [1]. It also publishes each table's columns and types as a resource.

Install it with npx -y @modelcontextprotocol/server-postgres postgresql://localhost/mydb, or the mcp/postgres Docker image [1]. It is the smallest possible setup, and the README is still the clearest example of the pattern. Archived means nobody is maintaining it, so the newer options below are the ones to start a project on.

Postgres MCP Pro

Postgres MCP Pro, from Crystal DBA, works with any Postgres and goes past running queries. Its README lists nine tools [2]:

list_schemas, list_objects, get_object_details, execute_sql, explain_query, get_top_queries, analyze_workload_indexes, analyze_query_indexes, analyze_db_health

The extra tools are database work: index recommendations for your slow queries, EXPLAIN plans with hypothetical indexes, and health checks for vacuum, cache hit rate and connections [2].

It has two access modes. Unrestricted "allows full read/write access to modify data and schema" and is meant for development. Restricted "limits operations to read-only transactions and imposes constraints on resource utilization (presently only execution time)" and is meant for production [2]. You pick one with --access-mode.

It runs over stdio by default and can also serve SSE or Streamable HTTP, so several clients can share one copy. Its README warns that "the SSE and Streamable HTTP transports have no authentication" [2]: if you serve it over HTTP, put it behind something that does.

Supabase MCP

Supabase runs a hosted server at https://mcp.supabase.com/mcp [3]. It goes past SQL into the rest of a Supabase project: tables, config and data, with the full tool list on supabase.com/mcp [3]. Two URL parameters narrow it, and the README's own example uses both:

https://mcp.supabase.com/mcp?project_ref=<project-ref>&read_only=true&features=database,docs

project_ref scopes it to one project and drops account-level tools. read_only=true "excludes mutating tools" [3]. Supabase also asks you to read its security best practices page before connecting [3].

A local Supabase CLI install serves the same server at http://localhost:54321/mcp, with "a limited subset of tools and no OAuth 2.1" [3].

What it returned on 30 November 2026. An initialize POST with no token got a 401 in 284 ms, carrying:

www-authenticate: Bearer resource_metadata="https://mcp.supabase.com/.well-known/oauth-protected-resource/mcp"

That metadata named https://api.supabase.com as the authorization server and listed 13 scopes, from database:read and database:write to storage:write. A 401 with that header is the server answering correctly: it is up and asking you to sign in. What the header should contain is in protected resource metadata.

Neon MCP

Neon runs a hosted server at https://mcp.neon.tech/mcp, with OAuth or a Neon API key [4]. It covers the Neon API as well as SQL: projects, branches, migrations, roles, databases and compute.

Read-only works two ways. Connect to the plain URL and untick Allow writes on the sign-in page, or put readonly=true on the URL, which fixes the grant so the sign-in page cannot widen it [4]. In read-only mode run_sql stays and runs each query in a READ ONLY transaction, and run_sql_transaction goes away [4].

What it returned on 30 November 2026. An initialize POST with no token got a 401 in 601 ms, with resource_metadata="https://mcp.neon.tech/.well-known/oauth-protected-resource/mcp" in its WWW-Authenticate header. The metadata named https://mcp.neon.tech as its own authorization server.

Neon also publishes its tool list without sign-in at https://mcp.neon.tech/api/list-tools [4]. On the same day it listed 143 tools for the default URL and 60 with readonly=true. Database tools such as run_sql, describe_table_schema and explain_sql_statement are in both. Most of the 83 that drop out create, update or delete something: delete_project, create_branch, run_sql_transaction, create_postgres_role.

143 tools is a lot of schema for a client to load on every turn. If you only need SQL, Neon's category parameter narrows the list further, and its README's own install URL uses it [4].

How to choose

  • Your database is not on Supabase or Neon: Postgres MCP Pro, in restricted mode unless you want the agent to change data.
  • It is on Supabase or Neon: the provider's hosted server. Nothing to run, OAuth sign-in, and a URL parameter for read-only.
  • You want the least possible surface: the reference server's single read-only query tool, accepting that nobody maintains it.

Whichever you pick, connecting it to production with write access is a decision about your data, not about MCP. Start read-only and widen it when you have a reason.

Next: compare data servers by what they returned

Postgres is one kind of data server. For more, data MCP servers ranks the data and API servers launched on MCP Hunter by community vote, and each listing carries a dated record of what the server returned when we connected to it, or no such claim if we could not.

To check a remote server yourself, paste its URL into our MCP connection test. It sends the same initialize and tools/list requests as above from our network, and a server that wants sign-in comes back as a 401 with its metadata, the same as Supabase and Neon did here. For the wider checklist before you install anything, see how to vet an MCP server.

Sources

  1. Reference PostgreSQL server, modelcontextprotocol/servers-archived, and the Archived list in modelcontextprotocol/servers
  2. Postgres MCP Pro, crystaldba/postgres-mcp
  3. Supabase MCP Server, supabase-community/supabase-mcp
  4. Neon MCP Server, neondatabase/mcp-server-neon