Best PostgreSQL MCP Servers
PostgreSQL is an advanced open source relational database management system that offers robustness, scalability, and performance.
Why this server?
Execute SQL queries, list tables, describe schema, and manage data in PostgreSQL databases.
AlicenseAqualityCmaintenanceConnect any AI to PostgreSQL, MySQL, or SQL Server — 24 dialect-aware tools for query, schema, optimization, and more.423241MITWhy this server?
Provides safe query execution, schema discovery, intent validation, and session memory for PostgreSQL databases.

Bollard MCPofficial
AlicenseAqualityBmaintenanceEnables safe, AI-driven database interactions with schema discovery, intent validation, and session memory, supporting multiple databases.142AGPL 3.0Why this server?
Detects and redacts PostgreSQL connection strings and credentials in text.

classifinder-mcpofficial
AlicenseAqualityBmaintenanceEnables AI agents to scan text for leaked secrets and prompt injection markers, and redact them before reaching an LLM.21MITWhy this server?
Provides tools for querying PostgreSQL CVEs, version status, upgrade paths, and exploits for any PostgreSQL version.
AlicenseAqualityBmaintenanceQuery CVEs, yanked releases, known exploits, and upgrade paths for any PostgreSQL version directly from your AI assistant.308Apache 2.0Why this server?
Enables natural language querying and analysis of PostgreSQL databases, returning markdown reports with tables and charts.
Why this server?
Provides database management capabilities for OpenSIPS tables, enabling CRUD operations on subscribers, dispatchers, dynamic routing, permissions, call center, load balancer, dialplan, and accounting data stored in PostgreSQL.

OpenSIPS MCP Serverofficial
AlicenseBqualityDmaintenanceAI-powered control plane for OpenSIPS SIP servers, enabling natural-language operations and CLI-based management for configuration, migration, monitoring, and diagnostics.10010Apache 2.0Why this server?
Adds PostgreSQL database to an endpoint's context as ctx.POSTGRESQL.

openserverless-mcpofficial
AlicenseAqualityBmaintenanceAn MCP server for OpenServerless that exposes action tools for creating, invoking, and managing API endpoints with integrated services like S3, PostgreSQL, Redis, and Milvus.81Apache 2.0Why this server?
Enables direct SQL queries on PostgreSQL tables using the postgresql() table function.
Why this server?
Provides tools for setting up, validating, and interacting with PostgreSQL databases as the backend for RESTForge projects, including schema introspection and endpoint generation from database tables.
AlicenseAqualityCmaintenanceMCP server that exposes RESTForge capabilities to AI agents, enabling them to set up, configure, generate code, and manage RESTForge projects through natural language.2944MIT