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 query PostgreSQL databases with tools for running SELECT queries, listing tables, describing schemas, sampling data, counting rows, and searching columns across the database.
FlicenseAqualityCmaintenanceRead-only MCP server that enables AI tools like Claude and Cursor to query the Avanti Fellows PostgreSQL database, providing schema inspection, data sampling, and SELECT query execution capabilities.61-Why this server?
Enables querying of PostgreSQL databases, schema inspection, and retrieval of DDL with built-in read-only protection. It provides tools for connecting to databases, executing SQL queries, listing schemas, and fetching complete DDL structures.
AlicenseAqualityDmaintenanceEnables AI assistants to query PostgreSQL databases, inspect schemas, and retrieve complete DDL with built-in read-only protection. It supports multiple database connections and allows for secure database interaction and exploration via the Model Context Protocol.524 npm1MITWhy this server?
Connects to any PostgreSQL database, allowing schema exploration, SQL query execution, and performance analysis through natural conversation.
AlicenseAqualityDmaintenanceConnects Claude to any PostgreSQL database, enabling schema exploration, query execution, and performance analysis through natural conversation.76 npm1MITWhy this server?
Serves as the MCP server's sovereign persistence store: immutable, content-deduped prose blobs (deduplicated via a sha256 expression index), container/tree facts, and per-save transaction history are all held in PostgreSQL tables, so reads and writes of node bodies, notes, and history are backed by a Postgres database. A bundled PostgreSQL also powers the desktop sidecar backend.
AlicenseAqualityBmaintenanceProvides MCP tools to read, write, append, and edit prose sections of nodes, backed by an in-memory or substrate-direct (Urania) backend.41Apache 2.0Why this server?
Provides read-only access to PostgreSQL databases over SSH, allowing agents to query tables, describe schemas, list tables, and check database health metrics such as connection counts and locks.
Why this server?
Allows querying and inspecting PostgreSQL databases with read-only operations by default, and optional write and maintenance operations, using MCP tools such as execute_query, execute_dml_ddl_dcl_tcl, and schema/table introspection.
AlicenseAqualityCmaintenanceLocal MCP server for safe querying and inspecting PostgreSQL databases, with write and maintenance operations disabled by default.81MITWhy this server?
Provides tools for querying, describing, listing tables, schemas, constraints, indexes, views, functions, explaining queries, and getting table statistics for PostgreSQL databases.
AlicenseBqualityCmaintenanceA Model Context Protocol (MCP) server that provides secure database access to PostgreSQL through Kysely ORM, enabling Claude Desktop to interact with PostgreSQL databases using natural language.101ISCWhy this server?
Provides tools to directly interact with PostgreSQL databases, including creating tables, listing tables, describing tables, and executing arbitrary SQL queries.
AlicenseAqualityDmaintenanceA secure MCP server that lets AI assistants directly interact with PostgreSQL databases via tools like create_table, list_tables, and execute_sql, plus a web configurator for managing connections.41MITWhy this server?
Provides tools for executing SQL queries, obtaining query execution plans, and inspecting table schemas in a PostgreSQL database.
AlicenseAqualityCmaintenanceExposes PostgreSQL query execution, EXPLAIN, and schema inspection tools to MCP-compatible clients like Claude Desktop.31MITWhy this server?
Enables agents to search for, audit, and install AI agent skills and MCP servers related to PostgreSQL, with security grades and quality scores.
AlicenseAqualityCmaintenanceEnables AI agents to search, audit, and install open-source AI skills and MCP servers with security grading and quality scoring, directly from MCP clients.331 npm1MITWhy this server?
Provides read-only access to a PostgreSQL database, enabling AI assistants to list schemas and tables, inspect table structures, and run SELECT queries to answer questions about the data.
AlicenseAqualityBmaintenanceLets AI assistants like Cursor and Claude safely explore your database and answer questions about your data in plain English.41MITWhy this server?
Provides tools for connecting to and interacting with PostgreSQL databases, including running SQL queries, describing table schemas, listing configured databases, and testing connections, with enforced read-only access where configured.
AlicenseAqualityBmaintenanceEnables AI assistants to run SQL queries against PostgreSQL databases through the psql CLI, with support for multiple configured databases and enforced read-only guarantees.41MITWhy this server?
Provides read-only querying, schema exploration, execution plan inspection, and SQL diagnostics for PostgreSQL databases.
AlicenseAqualityCmaintenanceEnables AI agents to explore PostgreSQL schemas, run read-only queries, inspect execution plans, and receive evidence-backed SQL diagnostics with reproducible optimization benchmarks over local stdio.51MITWhy this server?
Provides a security-hardened gateway for querying PostgreSQL databases, enforcing read-only access, PII masking, rate limits, and human-approved write operations via expiring tokens.
AlicenseAqualityBmaintenanceEnables AI agents to query PostgreSQL databases securely with read-only defaults, PII masking, rate limiting, and human-approved, expiring mutation tokens.91Apache 2.0Why this server?
Provides read-only access to PostgreSQL databases, enabling agents to inspect schemas, tables, views, columns, keys, indexes, sample rows, and query plans; run SELECT queries in the analyst profile; and compare schemas across multiple stands.
AlicenseAqualityBmaintenanceGives agents read-only access to PostgreSQL databases, enabling them to inspect schemas, sample rows, compare stands, view query plans, and run read-only SQL through a single entry point.61MITWhy this server?
Provides bounded, read-only access to a PostgreSQL database, enabling AI assistants to explore schemas, execute SQL queries, inspect query plans, test hypothetical indexes, find slow queries, and check database health while keeping results compact and respecting read-only mode.
AlicenseAqualityBmaintenanceEnables AI assistants to explore a PostgreSQL database, run bounded read-only SQL, inspect query plans, test hypothetical indexes, find slow queries, and check database health with compact CSV output.101MITWhy this server?
Enables AI assistants to connect to and safely explore, query, and analyze PostGIS/PostgreSQL spatial databases. It provides spatial tools for distance searches, nearest-neighbor queries, buffering, spatial joins, aggregation, and map rendering of query results.
AlicenseAqualityBmaintenanceEnables AI assistants to safely explore, query, and analyze PostGIS or Oracle Spatial databases using spatial tools in plain language, with results rendered as maps directly in chat.141MITWhy this server?
Provides PostgreSQL diagnostics and cluster management for Multigres clusters, including schema and object inspection, read-only SQL execution, query plans with hypothetical indexes, top-query analysis, index advice, health checks, cluster status, backup operations, and node log reading.
AlicenseAqualityBmaintenancePostgres diagnostics and cluster operations for Multigres clusters.91Apache 2.0Why this server?
Enables spawning isolated MicroVM sandboxes with an optional embedded PostgreSQL instance and returns a PostgreSQL connection URL, allowing AI agents to run database-backed tasks in a sandboxed environment.
AlicenseBqualityBmaintenanceEnables AI coding agents to execute shell commands and compile or run code snippets inside sub-6ms hardware-isolated KVM MicroVM sandboxes instead of the local machine. It also lets agents spawn, list, hibernate, wake, and destroy sandboxes — optionally bundled with an embedded PostgreSQL database — behind an SSRF/metadata firewall with Base64-escaped code delivery.751,696 npm1Apache 2.0Why this server?
Provides tools for exploring and querying a PostgreSQL database, including executing read-only SQL queries, listing tables, and obtaining schema information for specific tables.
AlicenseBqualityDmaintenanceA server implementing the Model Context Protocol (MCP) for Cursor that allows using a PostgreSQL database as storage for model contexts, enabling secure database exploration and querying.10ISCWhy this server?
Provides comprehensive PostgreSQL database management including health monitoring, index tuning, query plan analysis, schema intelligence, and configurable SQL execution with support for both development and production environments.
AlicenseBqualityDmaintenanceEnables comprehensive PostgreSQL database management including index tuning, query plan analysis, health monitoring, schema-aware SQL generation, and safe SQL execution with configurable access control for both development and production environments.9MITWhy this server?
Provides comprehensive PostgreSQL database management tools including schema inspection, SQL execution, query explanation with EXPLAIN plans, index tuning recommendations, workload analysis, and database health checks with support for pg_stat_statements and hypopg extensions.
AlicenseBqualityDmaintenanceEnables interaction with PostgreSQL databases through comprehensive database management tools including index tuning, query execution plans, health checks, schema intelligence, and safe SQL execution with configurable read-only mode for production use.35MITWhy this server?
Provides a comprehensive set of tools for interactive PostgreSQL data exploration and automation, including schema discovery, read-only query previews, execution of stored procedures and functions, and managed data insertion.
AlicenseAqualityCmaintenanceA Python-based MCP server for interactive PostgreSQL data exploration, schema discovery, and safe SQL execution with support for stored procedures. It also enables automation through external HTTP API requests and local bash script execution on Fedora and Linux systems.19MITWhy this server?
Provides tools for database health analysis, index tuning, query planning, schema intelligence, and safe SQL execution for PostgreSQL databases.
AlicenseAqualityDmaintenanceA Postgres MCP server with index tuning, explain plans, health checks, and safe sql execution.10MITWhy this server?
Provides tools for database migration from various source systems (Oracle, SQL Server, Netezza, PostgreSQL) to PostgreSQL or SQL Server, using the MigratorXpress engine.
AlicenseAqualityDmaintenanceThis MCP server enables database migration between heterogeneous systems (Oracle, PostgreSQL, SQL Server, Netezza to PostgreSQL or SQL Server) through AI assistants by providing tools for command preview, execution, validation, and workflow suggestions.6MITWhy this server?
Provides tools for managing and analyzing PostgreSQL databases, including schema exploration, query execution, performance analysis, and database health monitoring.
AlicenseAqualityDmaintenanceProvides PostgreSQL database management and analysis via MCP, enabling schema exploration, query execution, performance monitoring, and database health checks.3640 npmMITWhy this server?
Allows interaction with a PostgreSQL database, providing tools for query execution, schema inspection, CRUD operations, and security features.
AlicenseAqualityNot gradedmaintenanceEnables Claude to interact with a local PostgreSQL database through SQL queries, schema inspection, and CRUD operations.8MITWhy this server?
Provides tools for database health analysis, index tuning, query plan optimization, schema intelligence, and safe SQL execution for PostgreSQL databases.
AlicenseAqualityCmaintenanceA Postgres MCP server with index tuning, explain plans, health checks, and safe SQL execution.9MITWhy this server?
Provides tools for executing parameterized SQL queries, catalog discovery, CRUD operations, and connection management with TLS support for PostgreSQL databases.
AlicenseAqualityDmaintenanceProvides a governed command plane for MCP agents to manage PostgreSQL databases, SSH sessions, and HTTP APIs with encrypted credential storage and prescriptive workflows.3MITWhy this server?
Allows querying a PostgreSQL database using natural language, with results returned as structured XML.
AlicenseAqualityDmaintenanceEnables natural language querying of PostgreSQL databases under read-only mode, returning results as structured XML.1MIT