{
  "name": "io.github.modelcontextprotocol/servers-archived",
  "description": "Anthropic's reference PostgreSQL MCP was the first widely installed Postgres server but is no longer maintained. Anthropic archived the repository on 2025-07-10 at github.com/modelcontextprotocol/servers-archived, and Datadog Security Labs has documented a SQL-injection issue that bypasses the read-only restriction. New installs should use Postgres MCP Pro for tuning workflows or the Supabase MCP for Postgres-on-Supabase. This entry remains so existing users can find the migration path.",
  "status": "active",
  "version": "archived",
  "_meta": {
    "com.top-mcps/lastVerified": "2026-05-29",
    "com.top-mcps/score": {
      "value": 63,
      "rubricVersion": "2026-04",
      "lastComputed": "2026-06-02T13:16:41.469Z",
      "methodology": "https://top-mcps.com/about/methodology"
    },
    "com.top-mcps/stats": {
      "fetchedAt": "2026-06-02T11:55:51.430Z",
      "githubStars": 266,
      "lastCommitAt": "2025-05-28T17:57:12Z",
      "npmWeeklyDownloads": 75720
    }
  },
  "repository": {
    "url": "https://github.com/modelcontextprotocol/servers-archived/tree/main/src/postgres",
    "source": "github"
  },
  "author": {
    "name": "Anthropic (archived 2025-07-10)"
  },
  "packages": [
    {
      "registryType": "npm",
      "registryBaseUrl": "https://registry.npmjs.org",
      "identifier": "@modelcontextprotocol/server-postgres",
      "version": "archived",
      "transport": {
        "type": "stdio"
      },
      "runtimeArguments": [
        {
          "type": "positional",
          "value": "postgresql://user:pass@localhost/db"
        }
      ]
    }
  ],
  "capabilities": {
    "tools": [
      {
        "name": "query",
        "description": "Execute a SELECT-only SQL query and return rows (multi-statement payloads can bypass this restriction — see security notes).",
        "sideEffect": "read",
        "args": [
          {
            "name": "sql",
            "type": "string",
            "required": true
          }
        ]
      },
      {
        "name": "list_tables",
        "description": "List all tables in the connected database.",
        "sideEffect": "read"
      },
      {
        "name": "describe_table",
        "description": "Return the column schema of a table.",
        "sideEffect": "read",
        "args": [
          {
            "name": "table",
            "type": "string",
            "required": true
          }
        ]
      }
    ],
    "security": {
      "scope": "read-only",
      "sandbox": "Server is no longer maintained. The advertised read-only sandbox is bypassable via multi-statement SQL payloads per Datadog Security Labs — rely on database-level GRANT SELECT as the actual guard.",
      "gotchas": [
        "Repo archived on 2025-07-10 — no patches will land for this or any future vulnerability.",
        "The MCP-level read-only flag is bypassable; the DB-level role grant is the only real boundary.",
        "No connection pooling and no per-query timeout; long-running queries hold a connection open."
      ]
    }
  },
  "_links": {
    "html": "https://top-mcps.com/mcp/postgres",
    "markdown": "https://top-mcps.com/mcp/postgres.md",
    "methodology": "https://top-mcps.com/about/methodology"
  }
}
