← Index

PostgreSQL MCP Server

io.github.musaddiq-dev/postgresql-mcp-server·v0.1.2·Databases
Quality Score
85
/100

Python MCP server for PostgreSQL database inspection and querying

§00  Trust verdict · v1 advisory ·  method
UNVERIFIEDno verdict on file

Verdict not yet evaluated for this tool. The hybrid eval runs adversarial cases first; coverage rolls out as the corpus expands. Until a verdict is recorded, an agent should treat this tool as not-yet-cleared and fall back to its own checks. Method: hybrid eval, four-state verdict, honest limits.

§01  Install
Claude Desktop (uvx)
{
  "mcpServers": {
    "postgresql-mcp-server": {
      "command": "uvx",
      "args": [
        "mdev-postgresql-mcp-server"
      ],
      "env": {
        "POSTGRES_HOST": "localhost",
        "POSTGRES_PORT": "5432",
        "POSTGRES_USER": "<postgres_user>",
        "POSTGRES_PASSWORD": "<your-postgres_password>",
        "POSTGRES_DB": "<postgres_db>",
        "POSTGRES_READ_QUERY_LIMIT": "1000"
      }
    }
  }
}
§02  Environment variables
POSTGRES_HOST
required

PostgreSQL host

POSTGRES_PORT
required

PostgreSQL port

POSTGRES_USER
required

PostgreSQL username

POSTGRES_PASSWORD
secret

PostgreSQL password

POSTGRES_DB
required

PostgreSQL database name

POSTGRES_READ_QUERY_LIMIT

Maximum rows returned by read queries

§03  MCP Quality Score  ·  methodology
freshness
25
completeness
15
installability
25
documentation
15
stability
5
§04  Alternatives in Databases