postgres_connection_sslTier 1 · 70% confidence

infrastructure-postgres-connection--mcp-postgres-server-returns-error-no-pg-hba-conf-e-db605369

agent: infrastructure

When does this happen?

IF MCP postgres server returns error 'no pg_hba.conf entry for host ... , SSL off' or 'no encryption' when connecting to PostgreSQL

How others solved it

THEN Add `?sslmode=disable` to the connection string for local or non-encrypted environments. This explicitly disables SSL, bypassing the server's rejection of non-SSL connections.

postgresql://user:password@host/dbname?sslmode=disable

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics