pgsql-mcp-server
A Model Context Protocol (MCP) tool server that connects to a PostgreSQL database (via DSN) and exposes MCP-callable tools to introspect schema (schemas/tables/columns/indexes/foreign keys) and run SQL for DQL/DML/DDL/DCL operations within transactions (as described).
Score Breakdown
⚙ Agent Friendliness
🔒 Security
Security is largely dependent on PostgreSQL credentials provided via DSN and on network-level deployment controls. No explicit MCP-server authentication, authorization, query allowlisting, audit logging, or secret-handling/redaction guidance is described. TLS is not explicitly mandated for the Postgres connection in the provided content.
⚡ Reliability
Best When
Used by trusted operators/agents in a secured network environment to perform controlled database inspection and SQL execution through MCP.
Avoid When
Avoid exposing this server to untrusted networks or users, especially for DML/DDL/DCL, unless you implement strong authorization, query allowlisting, and monitoring.
Use Cases
- • Schema exploration for PostgreSQL (e.g., listing tables/columns/indexes/foreign keys) via MCP tooling
- • Agent-assisted query generation and execution against a Postgres database
- • Administrative SQL execution (DDL/DCL) in controlled environments
- • Debugging and testing database interactions using an MCP inspector
Not For
- • Internet-facing, public deployments without additional network and credential hardening
- • Untrusted users directly invoking DML/DDL/DCL without strict allowlisting and auditing
- • Workloads requiring automatic paging/search over large result sets (pagination/limits not described)
Interface
Authentication
README describes passing a PostgreSQL DSN via CLI. No additional server-side authentication/authorization mechanism is described in the provided content.
Pricing
No pricing information provided; appears to be a self-hosted open-source tool server.
Agent Metadata
Known Gotchas
- ⚠ Tools allow running DML/DDL/DCL; agents may produce destructive statements unless you constrain/allowlist queries.
- ⚠ Pagination/row limits are not described; large SELECT results may be heavy.
- ⚠ Idempotency is not documented; retries could repeat non-idempotent statements.
Alternatives
Full Evaluation Report
Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for pgsql-mcp-server.
AI-powered analysis · PDF + markdown · Delivered within 30 minutes
Package Brief
Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.
Delivered within 10 minutes
Score Monitoring
Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.
Continuous monitoring
Scores are editorial opinions as of 2026-04-04.