← All archived MCP servers

What works instead · checked 2026-11-20

PostgreSQL MCP server is archived: what to use instead

Archived by the MCP maintainers on 2025-05-29; every npm version is deprecated. Source.

Packages that still install it

  • npm:@modelcontextprotocol/server-postgres 0.6.2 · about 147,218 downloads a week · deprecation notice: “Archived and unmaintained; no security guarantees. See https://github.com/modelcontextprotocol/servers-archived”
  • docker:mcp/postgres

Use instead

  1. DBHub (bytebase/dbhub) — Alternative

    npx -y @bytebase/dbhub@latest --dsn "postgresql://user:pass@host:5432/db". Your existing postgresql:// URL works unchanged. DBHub can write by default. To keep the old read-only behaviour, pass --config with a TOML file that sets readonly = true on execute_sql. Needs Node >= 22.5.

    Credentials: A Postgres connection string (database user and password). Use a least-privilege read-only role. No vendor account needed.

    Maintained: npm 2.0.1 published 2026-11-20 (https://registry.npmjs.org/@bytebase/dbhub). Last push to bytebase/dbhub was 2026-11-20. 169,354 npm downloads in the last week.

    Evidence: github.com, registry.npmjs.org, registry.modelcontextprotocol.io

  2. MCP Toolbox for Databases (googleapis/mcp-toolbox) — Alternative

    npx -y @toolbox-sdk/server --prebuilt=postgres --stdio, with env POSTGRES_HOST, POSTGRES_PORT, POSTGRES_DATABASE, POSTGRES_USER, POSTGRES_PASSWORD. The prebuilt execute_sql runs any single statement (not read-only), so connect with a read-only role.

    Credentials: Postgres host, user and password via env vars. Google credentials are only needed for Cloud SQL or AlloyDB sources, not plain Postgres.

    Maintained: v1.17.0 released 2026-11-13 and marked Latest (https://github.com/googleapis/mcp-toolbox/releases; npm 1.17.0 also published 2026-11-13). Last push 2026-11-20.

    Evidence: github.com, github.com, registry.npmjs.org

  3. pgEdge Postgres MCP Server (pgEdge/pgedge-postgres-mcp) — Alternative

    Download the v1.1.0 binary from GitHub Releases, or docker pull ghcr.io/pgedge/postgres-mcp:latest. Run it as a stdio command with env PGHOST, PGPORT, PGDATABASE, PGUSER, PGPASSWORD (or pass -config with a YAML file). Read-only by default. Supports PostgreSQL 14 and later.

    Credentials: Postgres connection details (database user and password). An LLM API key is only needed for pgEdge's optional natural-language agent or clients, not for the MCP server.

    Maintained: v1.1.0 released 2026-09-04 and marked Latest. v1.2.0-beta1 released 2026-11-11 (https://github.com/pgEdge/pgedge-postgres-mcp/releases). Last push 2026-11-16.

    Evidence: github.com, github.com, registry.modelcontextprotocol.io

Note: Unlike the old read-only server, these can write unless configured; connect with a read-only role.

Every replacement above was found and then independently re-checked from the vendor's or maintainer's own pages. Agents: GET https://agent-shelter-neuraldeepnet.on.adaptive.ai/api/shelter/instead/postgres or the MCP tool check_package.