PostgreSQL MCP Servers & Connectors
PostgreSQL is an advanced open source relational database management system that offers robustness, scalability, and performance.
1942 open-source servers · 3 connectors · postgresql.org ↗
Open-source servers
Code you run yourself, locally or on your own infrastructure.
Built for PostgreSQL (561)
Why this server?
Provides read-only query access to the governed Postgres star schema containing NNDSS and Oregon STI surveillance data, allowing AI assistants to answer questions using the same definitions as the Power BI report while enforcing restrictions on writes and restricted columns.
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to ask natural-language questions about weekly CDC NNDSS chlamydia, gonorrhea, and syphilis case counts and rates by state and week, returning trends, prior-year comparisons, and usual-range checks through validated read-only tools.MITWhy this server?
Connects directly to PostgreSQL databases and provides tools for testing connectivity, listing schemas and tables, describing table columns and primary keys, and executing SQL queries with optional bound parameters. Read-only by default, with optional write mode and SSL/TLS configuration.
AlicenseNot gradedqualityCmaintenanceEnables MCP clients to connect directly to PostgreSQL over the wire protocol, explore schemas, tables, and columns, and run parameterized SQL statements. Queries are read-only by default via read-only transactions, with an opt-in write mode and configurable pooling, timeouts, and row caps.MITWhy this server?
Provides safe, read-only insight into PostgreSQL databases, including schema discovery, guarded SELECT/EXPLAIN queries, query plan summaries, index suggestions, deny-column policies, result redaction, and audit logging.
AlicenseNot gradedqualityCmaintenanceEnables agents to safely inspect a PostgreSQL database read-only: discovering schemas and tables, running guarded SELECT/EXPLAIN queries, and getting plan summaries with index suggestions. Access is constrained by schema allowlists, denied-column redaction, row caps, and a JSON-lines audit trail.MITWhy this server?
Provides read-only access to a PostgreSQL quotation database, enabling tools to compare work item prices, explain cost differences, analyze cost breakdowns, search quotations, and run safe SELECT queries.
AlicenseNot gradedqualityBmaintenanceEnables AI agents to query and compare paint-contracting quotations and estimates, explaining price differences by materials, labor, or profit, summarizing projects, searching work items, and running read-only SQL against the Postgres data.MITWhy this server?
Provides per-session, human-approved access to a PostgreSQL database by leasing exclusive pool roles to approved agent sessions. The gateway is designed to manage database roles (created NOLOGIN, enabled for LOGIN with a fresh SCRAM-SHA-256 verifier and VALID UNTIL during a lease, then returned to NOLOGIN/PASSWORD NULL and backends terminated). The PostgreSQL adapter is described as planned; the current backend is synthetic.
AlicenseNot gradedqualityCmaintenanceEnables AI agent sessions to reach a database through MCP with per-session, human-approved access grants, exclusive leased pool credentials, and revocable, auditable operations. It can be deployed locally or remotely with passkey-verified session administration.Apache 2.0Why this server?
Provides governed read-only access to Postgres databases, with query validation, hidden tables/columns, row limits, timeouts, Row-Level Security binding, and tamper-evident audit logging.
AlicenseNot gradedqualityBmaintenanceGives AI agents read-only access to Postgres with parser-checked queries, hidden tables and columns, row limits and timeouts, caller-bound Row-Level Security, and a tamper-evident audit log.MITWhy this server?
Provides tools for interacting with a PostgreSQL database, including inspecting schema and table metadata, preparing query context, validating SQL, running read-only SELECT queries with limited previews, and returning write/DDL statements for manual execution rather than applying them.
AlicenseNot gradedqualityCmaintenanceEnables AI assistants to inspect PostgreSQL schemas and table metadata, preview SELECT queries with capped rows, and receive write or DDL statements for manual review without execution.MITWhy this server?
Provides tools for querying a PostgreSQL database to answer questions about products, stock levels, sales summaries, orders, and overdue orders, with scoped read access and a guarded write tool for updating order status.
AlicenseNot gradedqualityCmaintenanceEnables Claude and other MCP clients to safely query PostgreSQL data and perform limited order-status updates through scoped bearer tokens, read-only transactions, row caps, and an audit log.MITWhy this server?
Enables read-only querying of a PostgreSQL database: it accepts a single SELECT or WITH ... SELECT statement, runs it inside a read-only transaction, and returns the result rows as JSON objects. It refuses non-read-only statements and database errors are reported as tool errors.
AlicenseNot gradedqualityBmaintenanceEnables an agent to run a single read-only SQL query against a PostgreSQL database and receive the result rows as a JSON array of objects keyed by column name. Statements that aren't one plain SELECT or WITH query are refused before execution, and all failures come back as tool errors.48 npmMITWhy this server?
Provides tools for interacting with PostgreSQL databases, including database health analysis, index tuning, EXPLAIN plan review, schema-aware SQL generation, and safe SQL execution with configurable access modes.
AlicenseNot gradedqualityBmaintenanceEnables AI agents to inspect PostgreSQL health, tune indexes, review and optimize EXPLAIN plans, understand schemas for context-aware SQL, and execute SQL safely with read-only/restricted or unrestricted access modes.MITWhy this server?
Provides tools for interacting with a configured PostgreSQL database, including executing a single SQL statement and inspecting tables, views, schemas, triggers, indexes, sequences, and stored procedures.
AlicenseNot gradedqualityBmaintenanceEnables an agent to execute a single SQL statement and inspect an unfamiliar PostgreSQL database by listing its tables, views, schemas, triggers, indexes, sequences, and stored procedures. Queries run through the psql client against whatever connection string is configured, returning results as JSON row objects.46 npmMITWhy this server?
Provides safe, audited access to PostgreSQL databases through MCP tools for listing schemas and tables, inspecting DDL and table information, running guarded read-only queries, explaining queries, counting and sampling rows, finding columns, and listing roles.
Why this server?
Analyzes PostgreSQL EXPLAIN and EXPLAIN ANALYZE output to identify where query time goes, rank performance problems such as sequential scans, row-estimate errors, disk spills, and nested loops, and compare before/after plans. It works from plan text or JSON without connecting to the database, and can suggest candidate indexes to test.
AlicenseNot gradedqualityBmaintenanceEnables agents to review PostgreSQL EXPLAIN plans and compare before-and-after plans, ranking likely performance problems and suggested fixes without connecting to a database.50 npmMITWhy this server?
Provides tools backed by a private PostgreSQL 16 database for reading the caller's synthetic employee profile, listing up to 20 support requests, and creating support requests, with row-level security and column permissions enforced.
AlicenseNot gradedqualityCmaintenanceEnables authenticated, role-scoped MCP clients to read the caller's synthetic employee profile and support requests, with Operator-only creation of support requests. Access is enforced through Entra roles, fixed parameterised SQL, row-level security, and private PostgreSQL connectivity without arbitrary SQL exposure.MITWhy this server?
Provides read-only access to a PostgreSQL horse-racing database (built with JVData Bridge), offering safe single-SELECT/WITH SQL execution and table schema inspection alongside 50 domain tools for querying races, entries, odds, jockeys/trainers, pace/course trends, pedigrees, training data, and predictive metrics.
AlicenseNot gradedqualityCmaintenanceEnables AI agents to search and analyze Japanese horse-racing data in a PostgreSQL database, including races, entries, odds, jockeys, trainers, pedigrees, training, and predictive metrics. Also provides forecasting knowledge resources and safe read-only custom SQL querying for deeper analysis.Apache 2.0Why this server?
Provides AI-powered database intelligence for PostgreSQL targets: discovers schemas, tables, columns, keys, indexes, and statistics from system catalogues; translates natural language to validated read-only SQL and executes it; analyzes EXPLAIN plans and recommends indexes; monitors database health and ranks slow queries; and detects anomalies using statistical baselines and Isolation Forest.
AlicenseNot gradedqualityCmaintenanceEnables natural-language exploration of PostgreSQL schemas, SQL generation and validation, query performance analysis, index recommendations, and anomaly detection with read-only security controls.MITWhy this server?
Allows an LLM agent to run read-only SQL queries against PostgreSQL, with safety enforced through database roles, row-level security, query validation, execution limits, and audit logging.
AlicenseNot gradedqualityBmaintenanceEnables LLM agents to run read-only SQL against PostgreSQL with safety enforced by the database itself — forced row-level security, signed tenant context, role limits, and fail-closed auditing. Queries stay confined to the rows and columns a principal may read, cannot modify or exhaust the database, and remain audited even when the SQL validator is switched off.MITWhy this server?
Provides read-only exploration and querying of PostgreSQL databases, including listing schemas and tables, describing tables, running guarded SELECT queries, explaining queries, and sampling rows with policy-based masking and audit logging.
AlicenseNot gradedqualityCmaintenanceEnables AI assistants to safely explore and query PostgreSQL databases through read-only SQL validation, sensitive-data masking, and audit logging of every attempt.MITWhy this server?
Provides read-only access to PostgreSQL databases through named profiles, with tools to list schemas and tables, describe table structure, and execute parameterized SELECT/read-only queries with row and result-size limits.
AlicenseNot gradedqualityBmaintenanceEnables agents to inspect PostgreSQL schemas and tables and run parameterized read-only queries across named YAML profiles, with credentials kept out of tool arguments and results.263 npmMITWhy this server?
Provides tools to work with all databases on a PostgreSQL server: list databases, schemas, tables, and extensions; describe tables including geometry and raster metadata; run read-only SQL queries; and, in full mode, execute arbitrary SQL for writes, schema changes, and administration. Automatically detects extensions such as PostGIS to support spatial analysis workflows.
AlicenseNot gradedqualityBmaintenanceEnables Claude to access and manage every database on a PostgreSQL server from one configuration, automatically detecting PostGIS and other extensions. Supports natural-language queries, database administration, and spatial analysis with PostGIS and pgRouting while bounding results and offering read-only or full access modes.MITWhy this server?
Provides tools for safely inspecting PostgreSQL database schemas, searching tables and columns, describing table structures and relationships, executing bounded read-only queries, and generating query execution plans.
AlicenseNot gradedqualityCmaintenanceEnables AI coding assistants to securely inspect PostgreSQL schemas, understand table relationships, search schema metadata, and run bounded read-only queries without exposing database credentials. It also supports query plan inspection to help optimize slow SQL.MITWhy this server?
Enables reconciliation of CSV/XLSX data against data from a read-only PostgreSQL source, using SELECT-only queries with quoted identifiers and parameterized limits.
AlicenseNot gradedqualityBmaintenanceEnables comparing CSV/XLSX, read-only PostgreSQL, or REST datasets to detect missing records, duplicate keys, value or amount mismatches, and schema differences through deterministic MCP tools and a browser workspace.MITWhy this server?
Provides tools for interacting with PostgreSQL databases, including read-only SQL queries, read-write SQL execution, atomic multi-statement batches, column comment management, schema resource discovery, and safe handling of BIGINT and binary results.
AlicenseNot gradedqualityBmaintenanceEnables read-only querying, transactional writes, atomic multi-statement batches with rollback on failure, and bulk column-comment management for Postgres databases, with configurable schema discovery and safe handling of large integers and binary results.375 npmMITWhy this server?
Provides tools for working with PostgreSQL databases: inspecting schemas and likely PII columns, planning referentially complete subsets from root rows, extracting anonymized data into a staging PostgreSQL database, and verifying that PII columns are masked, without exposing source row values to the agent.
AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to inspect PostgreSQL schemas, plan referentially complete subsets from root rows, and extract anonymized staging data without exposing clear production PII. It supports deterministic masking and verification so data-dependent bugs can be reproduced safely.MITWhy this server?
Provides safe, read-only access to PostgreSQL databases, enabling agents to list tables, describe schemas, execute capped read-only queries, and retrieve domain-specific campaign summaries.
AlicenseNot gradedqualityCmaintenanceGives LLM agents safe, read-only access to PostgreSQL so they can explore schemas and answer questions over live data with single-statement validation, row caps, and least-privilege sessions. Tool calls also cover table listing/description, ad-hoc capped queries, and a typed campaign KPI summary.MITWhy this server?
Provides persistent long-term memory storage in PostgreSQL schema `mem`, including memory documents, conversations, graph edges, ideas, todos, ledger entries, and queue records, with idempotent path-based writes and per-user isolation.
AlicenseNot gradedqualityBmaintenanceEnables AI agents and MCP clients to share a persistent, per-user long-term memory store: search prior documents and sessions, gate answers behind context retrieval, and write decisions, ideas, todos, and ledgers backed by PostgreSQL. Exposes a REST mirror alongside the MCP endpoint so any client can connect over Streamable HTTP without a stdio bridge.MITWhy this server?
Provides read-only access to PostgreSQL databases, with MCP tools for listing schemas and tables, describing table columns/types/indexes, and executing single SELECT/WITH queries under YAML-based schema, table, row, and timeout policies.
AlicenseNot gradedqualityBmaintenanceEnables AI agents to query PostgreSQL safely through read-only MCP tools, with YAML-based access policies, row and time limits, SQL validation, and Docker deployment.Apache 2.0Why this server?
Provides OAuth authentication integration with PostgreSQL-backed token storage for the MCP server.
AlicenseNot gradedqualityCmaintenanceEnables developers to build and deploy MCP-compliant Python servers with FastMCP, including example tools, structured logging, configuration, authentication, SSL support, and container/OpenShift deployment.Apache 2.0Why this server?
Provides a safety and policy layer between AI agents and PostgreSQL, allowing agents to execute SQL through role-based AST validation, optimistic concurrency checks, transaction/savepoint handling, post-write invariants, circuit breaking, and hash-chained audit tracing.
AlicenseNot gradedqualityCmaintenanceEnables AI agents to run SQL against PostgreSQL safely through MCP by enforcing AST-based role policies, optimistic concurrency, savepoint rollback, per-session circuit breakers with compensation, and hash-chained audit traces.MITWhy this server?
Provides typed MCP tools for interacting with a PostgreSQL database, including describing tables, selecting rows, counting rows, and performing permitted insert/update/delete operations according to configured read-only and permission settings.
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to inspect and query PostgreSQL databases through typed tools for describing tables, selecting rows, and counting rows, with read-only and permission-controlled write access.MIT