PostgreSQL MCP Servers & Connectors
PostgreSQL is an advanced open source relational database management system that offers robustness, scalability, and performance.
1942 open-source servers · 2 connectors · postgresql.org ↗
Open-source servers
Code you run yourself, locally or on your own infrastructure.
Built for PostgreSQL (542)
Why this server?
Provides read-only access to a PostgreSQL database: tools to list available tables/views, describe a table's columns, and run ad-hoc single-statement SELECT/WITH/TABLE/VALUES/EXPLAIN queries, with row capping, column masking, statement timeouts, and a JSON-lines audit log of every call.
AlicenseAqualityCmaintenanceEnables Claude to answer questions from PostgreSQL databases using read-only SQL queries, with row caps, column masking, and an audit log while preventing data changes.3MITWhy this server?
Provides read-only access to a PostgreSQL view to list due follow-ups, including days overdue, and summarize due follow-ups by channel.
AlicenseAqualityCmaintenanceProvides read-only, MCP-based access to due follow-ups stored in a Postgres view, letting an assistant list overdue follow-ups with days overdue and count them per channel without any write path to the database.26 npmMITWhy this server?
Provides read-only access to PostgreSQL databases for schema discovery and SQL querying, including listing tables and views, describing columns, keys, constraints, and indexes, running parameterized SELECT queries with limits and masking, and explaining query plans with index hints.
AlicenseAqualityBmaintenanceEnables AI assistants to discover allowed PostgreSQL schemas, run parameterized SELECT queries, and inspect query plans safely through parser-checked read-only transactions, timeouts, row caps, and role-based access controls.4MITWhy this server?
Provides tools for interacting with PostgreSQL databases: read-only queries, table listing, relation descriptions, and connection information by default; readwrite mode adds single write statements and all-or-nothing multi-statement transactions with dry-run support.
AlicenseAqualityBmaintenanceEnables MCP clients to inspect and query a shared PostgreSQL database safely, running one read-only statement per call with bounded rows and timeouts. Write tools appear only when explicitly enabled, and the database connection is supplied through the environment rather than command-line arguments.4MITWhy this server?
Provides tools for managing managed PostgreSQL clusters through tport.cloud, including listing and retrieving clusters, ordering new clusters, configuring allow lists, and deleting clusters.
AlicenseBqualityCmaintenanceEnables ordering and managing servers, managed PostgreSQL clusters, and free DNS zones and records through tport.cloud's scoped API, along with plan and billing lookups.20189 npmMITWhy this server?
Provides read-only access to PostgreSQL databases for schema discovery, safe analytical SQL queries, row sampling, and execution plan inspection, including schema allow-listing and query guardrails.
AlicenseAqualityCmaintenanceEnables MCP clients to explore PostgreSQL schemas, run guarded read-only queries with row limits, and inspect execution plans without executing them. It prevents writes and DDL while exposing schema discovery tools, a schema overview resource, and a guided analysis prompt.6MITWhy this server?
Provides tools for querying and exploring independent PostgreSQL databases, including schema discovery, table listing, SQL execution, and query explanation with read-only access controls.
AlicenseAqualityCmaintenanceEnables Claude to discover PostgreSQL schemas and run validated, read-only analytical SQL across independent databases through MCP tools with bounded results.5MITWhy this server?
Provides read-only tools for querying a personal finance ledger stored in a PostgreSQL database, enabling retrieval of category totals, transaction lookups, monthly budget summaries, and per-category spending over date ranges or budget months.
AlicenseBqualityBmaintenanceEnables read-only querying of a Postgres-backed personal finance ledger through MCP tools over stdio.4MITWhy this server?
Provides a validated, row-capped, read-only SQL query tool for executing SELECT statements against PostgreSQL, with read-only transactions and a least-privilege role.
AlicenseAqualityBmaintenanceEnables secure, read-only PostgreSQL queries, sandboxed file reads within a confined directory tree, and host CPU, memory, and disk metrics over stdio. It exposes these capabilities through narrowly scoped tools with strict validation and fail-closed guardrails.1MITWhy this server?
Provides typed MCP tools for interacting with PostgreSQL databases: running reviewed SQL with typed parameters, executing free SQL under the calling login's grants, reading data in read-only transactions, enforcing row/byte limits, rolling back oversized writes, and applying PostgreSQL permissions, row-level security, and column privileges.
AlicenseAqualityBmaintenanceMCP server for PostgreSQL with typed tools (list, describe, read, aggregate, insert, update, delete), catalog SQL served as named tools, and free SQL that runs under the grants of each login. Each caller is limited to its own tools, databases and tables, and start checks refuse unsafe setups, such as a superuser login with free SQL on. Serves stdio and Streamable HTTP. Written in Go, Apache-2.012Apache 2.0Why this server?
Provides leave-management functionality backed by PostgreSQL, including checking employee leave balances, submitting and reviewing leave requests, retrieving employee leave dates, checking date availability, and listing leave requests.
AlicenseBqualityBmaintenanceIt enables MCP-compatible clients to check employee balances, submit and review leave requests, query leave dates and date availability, list requests, and access policy and balance resources backed by PostgreSQL.6MITWhy this server?
Provides read-only query tools for a PostgreSQL database, letting Claude list allow-listed tables and views, describe their columns, keys and comments, run a single SELECT (row-limited and timeout-bounded, with a truncated flag), and view EXPLAIN plans — all guarded by a SQL parser, read-only transactions and an audit log.
AlicenseAqualityBmaintenanceEnables Claude to query a PostgreSQL database read-only with table allow-lists, row limits, statement timeouts, and an audit log of every query.4MITWhy this server?
Provides read-only access to a PostgreSQL database, exposing tools to list allow-listed tables, describe table schemas, and run SELECT/WITH queries with row limits, statement timeouts, and audit logging.
AlicenseAqualityBmaintenanceEnables Claude to run validated, read-only SELECT queries against PostgreSQL while refusing non-approved tables and unsafe statements, capping returned rows, and recording every call in a JSONL audit log.3MITWhy this server?
Allows storing and sharing ragtrail paths across a team in a PostgreSQL database. The MCP server can use a PostgreSQL database URL instead of a local file, and PostgresStore is also usable directly from Python.
Why this server?
Provides read-only PostgreSQL performance diagnostics, including EXPLAIN ANALYZE plan analysis, slow-query inspection via pg_stat_statements, table health checks, unused and redundant index detection, active query monitoring, and database overview metrics.
AlicenseBqualityBmaintenanceEnables AI agents and MCP clients to diagnose PostgreSQL performance read-only by analyzing EXPLAIN plans, slow queries, active sessions, and index/table health with rule-based findings and concrete fixes.7MITWhy this server?
Provides read-only access to allow-listed PostgreSQL tables, with tools to list tables, describe schemas, and run guarded SELECT queries under row limits, timeouts, and audit logging.
AlicenseAqualityBmaintenanceEnables LLM agents to inspect PostgreSQL schemas and run guarded, SELECT-only queries with table allow-lists, read-only transactions, timeouts, row/byte caps, and JSONL auditing.3MITWhy this server?
Runs read-only, parameterized SQL queries against a PostgreSQL call center database (materialized views) to answer KPI questions: average wait/handling time (TME/TMA) per period, CSAT by operator, repeat contacts, abandonment rate, hourly/weekday volume heatmaps, operator rankings, volume forecasts, and company comparisons, plus listing available companies and queues with data coverage.
AlicenseAqualityBmaintenanceEnables LLMs to query call center KPIs such as TME, TMA, CSAT, repeat calls, abandonment, heat maps, and volume forecasts from a read-only PostgreSQL database using validated, read-only tools instead of model-generated SQL.10MITWhy this server?
Provides tools for interacting with PostgreSQL databases, including on-demand connection registration, schema and table exploration, read-only query execution, execution plan explanation, and controlled write operations.
Why this server?
Provides read-only MCP tools to inventory and inspect PostgreSQL instances, collect their configuration, evaluate compliance against a baseline, correlate findings with CMDB, backup, and network-discovery data, and propose prioritized remediation plans.
AlicenseAqualityBmaintenanceEnables an AI agent to audit a fleet of PostgreSQL and Oracle databases against a single compliance baseline, cross-check configuration with CMDB inventory, backup logs and network discovery, and produce prioritized, human-validated remediation proposals without ever modifying anything.6MITWhy this server?
Provides AI agents with safe, read-only-by-default access to PostgreSQL databases (versions 9.6 through 19), including schema exploration (tables, views, functions, DDL, dependencies, relationships), guarded SQL queries and EXPLAIN plans with server-side limits, SQL validation, performance and maintenance inspection, and per-connection access controls with human approval for protected or production databases and an audit log of every operation.
AlicenseAqualityBmaintenanceEnables AI agents to safely explore PostgreSQL schemas, run guarded read-only queries, inspect plans and performance, and perform approved writes across PostgreSQL 9.6–19 with human approval for production changes.50MITWhy this server?
Provides read-only PostgreSQL database inspection and query analysis: lists tables with approximate row counts, describes table columns, primary keys, and indexes, explains SELECT queries without executing them, suggests indexes based on explain plans, and reports table/index size and scan statistics.
AlicenseAqualityBmaintenanceA read-only PostgreSQL explainer MCP server (TypeScript) that explains queries, describes tables, and suggests indexes — it can never write to the database.6MITWhy this server?
Provides database administration and diagnostics tools for PostgreSQL, including table/index size inspection, health checks, lock and slow-query analysis, query plans, table profiles, read-only SELECTs, and guarded preview/apply/script-based deletion workflows.
AlicenseBqualityCmaintenanceEnables database administrators and AI clients to inspect PostgreSQL and MS SQL Server instances, diagnose performance bottlenecks, analyze locks and slow queries, and safely preview, apply, or script row deletions with safeguards. It also maps 1C:Enterprise table names to configuration objects for more understandable analysis.14MITWhy this server?
Provides tools for interacting with PostgreSQL databases: exploring schemas, tables, indexes, and roles; running scoped reads and SELECT queries; explaining query plans; inspecting active queries and database statistics; and, when enabled, performing governed inserts, updates, deletes, index creation, table drops, and other admin operations with safety controls and approval gates.
AlicenseAqualityCmaintenanceEnables AI agents to explore PostgreSQL schemas, run read-only SQL, inspect query plans and live database diagnostics, and optionally perform governed inserts, updates, and admin operations. Ships with layered access modes, schema allowlists, row caps, secret redaction, and human-approved destructive actions so changes stay safe by default.12MITWhy this server?
Allows AI agents to execute SQL queries (SELECT, DML, DDL), analyze tables, retrieve query plans, and explore database schemas and tables on AnalyticDB PostgreSQL instances.

AnalyticDB PostgreSQL MCPofficial
AlicenseNot gradedqualityDmaintenanceServes as a universal interface between AI Agents and AnalyticDB PostgreSQL databases, enabling metadata retrieval and SQL execution, with additional capabilities for knowledge graph and LLM memory management.16Apache 2.0Why this server?
Provides tools to interact with PostgreSQL databases, executing validated SQL queries, schema inspection, transaction management, and more.
FlicenseBqualityCmaintenanceProvides a secure, schema-aware PostgreSQL database agent for LLMs, enabling natural language queries and validated SQL execution with strong security guardrails.85-Why this server?
Provides tools to query, aggregate, insert, update, delete, and manage PostgreSQL databases using natural language, with schema-aware generation and safety controls.
FlicenseAqualityCmaintenanceEnables AI assistants to interact with PostgreSQL databases through natural language, with schema-aware query generation and enterprise safety controls.182-Why this server?
Provides read-only access to PostgreSQL databases, allowing querying of tables and columns through SQL SELECT statements. The server exposes PostgreSQL data as relational SQL models that can be retrieved through natural language queries.
AlicenseNot gradedqualityFmaintenanceThis read-only MCP Server allows you to connect to PostgreSQL data from Claude Desktop through CData JDBC Drivers. For full CRUD support, check out the first managed MCP platform: CData Connect AI (https://www.cdata.com/ai/).1MITWhy this server?
Provides comprehensive PostgreSQL database management capabilities including query execution, schema management, transaction handling, user administration, permissions management, performance monitoring, and database maintenance operations.
FlicenseAqualityNot gradedmaintenanceEnables comprehensive PostgreSQL database management through natural language including queries, schema operations, user management, and administrative tasks. Features enterprise-grade connection pooling, transaction support, and full database administration capabilities.11144 npm1-Why this server?
Integrates with a PostgreSQL database equipped with pgvector and Apache AGE to provide long-term episodic, semantic, procedural, and strategic memory storage and retrieval through vector similarity search and graph-based relationships.
FlicenseBqualityDmaintenanceEnables persistent memory for AI systems by providing tools for episodic, semantic, and procedural data storage through a vector-and-graph-enhanced database. It allows models to maintain long-term continuity using similarity search, thematic clustering, and identity tracking.241-Why this server?
Provides persistent storage for study tasks, quiz results, and conversation history, enabling management of study tasks through MCP tools.
FlicenseAqualityDmaintenanceExposes course documents as searchable resources and provides tools for reading, study task management, and source-grounded quiz prompts. Supports hybrid retrieval and integration with DeepSeek-based agents.51-