Skip to main content
Glama

PostgreSQL MCP Servers & Connectors

PostgreSQL is an advanced open source relational database management system that offers robustness, scalability, and performance.

1942 open-source servers · 1 connector · postgresql.org ↗

Open-source servers

Code you run yourself, locally or on your own infrastructure.

Built for PostgreSQL (561)

  • Why this server?

    Provides tools for architecting, scaffolding, and validating PostgreSQL-backed systems using the wpostgresql library.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to architect and scaffold high-performance PostgreSQL-backed systems using the wpostgresql library, with tools for pattern search, connection validation, and project generation.
    MIT
  • Why this server?

    Stores an audit log of every MCP tool invocation in PostgreSQL, and provides tools for generating usage charts and exporting the audit trail as CSV.

  • Why this server?

    Provides tools for inspecting a PostgreSQL database schema, listing and describing tables, exploring foreign key relationships, running read-only queries with safe transaction handling, generating execution plans, and—when explicitly permitted—executing data modifications and DDL statements.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables agents to inspect PostgreSQL schemas, run read-only queries and explain plans, and, when explicitly permitted, execute writes and DDL on a per-project database with layered safety controls.
    MIT
  • Why this server?

    Provides access to a multi-tenant PostgreSQL database, with tools such as listing documents while tenant isolation is enforced by row-level security policies in the database.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables MCP access to multi-tenant PostgreSQL data where tenant isolation is enforced by row-level security instead of application-layer filters, removing the need for per-handler tenant checks and service-role keys on the request path.
    MIT
  • Why this server?

    Supports PostgreSQL + pgvector as a storage backend, enabling scalable multi-worker architectures with HNSW cosine search, GIN tsvector, and SKIP LOCKED job queues.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables self-hosted ingestion of arbitrary documents with local chunking and embedding, plus explainable hybrid vector and lexical search over REST and MCP. Provides read-only MCP tools for searching documents, retrieving chunks, and listing collections.
    MIT
  • Why this server?

    Provides tools for interacting with PostgreSQL databases in a multi-tenant setup, including listing tenants, exploring schemas, running read-only queries, and executing writes or DDL statements.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables natural-language access to multi-tenant PostgreSQL databases through MCP, allowing agents to discover tenants, explore schemas, and run read-only or write queries with separate tools for safety.
    ISC
  • Why this server?

    Provides read-only access to PostgreSQL databases, enabling safe schema exploration, table/view inspection, sample row retrieval, query drafting, and EXPLAIN plan analysis without write risk.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to safely explore PostgreSQL schemas, inspect sample rows, draft queries, and read EXPLAIN plans through a read-only enforced interface for MCP clients.
    MIT
  • Why this server?

    Provides tools for interacting with PostgreSQL databases, including SQL query execution, schema and table management, index analysis, query plan analysis, user and role management, permission inspection, and database monitoring.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to interact with PostgreSQL databases over HTTP/JSON-RPC, supporting SQL queries, schema introspection, table/index analysis, EXPLAIN query planning, role and privilege inspection, and database monitoring.
    MIT
  • Why this server?

    Provides a read-only SQL query tool (`sql_read`) against a PostgreSQL database using a dedicated read-only role and READ ONLY transaction, allowing agents to run SELECT queries while writes are blocked at the database level.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables centralized proxy and orchestration of MCP servers, providing unified tool discovery, authentication, and secure request routing. It adds a human-in-the-loop approval gate for high-risk actions and audit logging.
    Apache 2.0
  • Why this server?

    Provides semantic vector search across technical documentation, runbooks, and known issues stored in a PostgreSQL database with pgvector.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI assistants to securely triage SuperOffice CRM support cases by retrieving tickets, running database diagnostics, searching knowledge bases, and orchestrating cross-system incident investigations.
    MIT
  • Why this server?

    Uses PostgreSQL (with the pgvector extension) as its backing store: a resettable schema, document storage with authorized create/read/update/soft-delete, revision history, typed links and backlinks, fixed compartment authorization, and PostgreSQL full-text search with weighted per-chunk vectors and bounded keyset pagination for search and recall results.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables agents to store, recall, and manage persistent memory documents through MCP tools, with authenticated context tokens and hybrid lexical/vector search.
    MIT
  • Why this server?

    Provides security-first query auditing and validation for PostgreSQL databases, intercepting destructive commands, preventing unbounded DELETE/UPDATE operations, detecting stacked queries and SQL injection probes, and enforcing read-only policies before agent-generated SQL reaches the database.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to safely query PostgreSQL by intercepting and auditing every generated SQL statement before it reaches the database, blocking destructive commands like DROP/TRUNCATE, unbounded DELETE/UPDATE statements, stacked queries, and SQL injection probes. It exposes tools for validating query safety and enforcing a strict read-only (SELECT/EXPLAIN) policy.
    MIT
  • Why this server?

    Manage local PostgreSQL clusters: start and stop servers with pg_ctl, inspect running and stopped clusters, configure data directory, port, user, bin directory, and log file, view server logs, execute SQL through a read-only console with optional write mode, and query databases with PostgreSQL's own error reporting.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables an AI agent to manage local development environments over MCP by starting, stopping, and restarting applications and processes, reading logs with cursors, and inspecting or freeing listening ports. Exposes a fixed set of id- and port-based tools, so the agent can operate registered processes without running arbitrary commands.
    MIT
  • Why this server?

    Provides read-only tools to search and retrieve customer and order data from PostgreSQL, with tenant isolation, PII masking, and source references.

    A
    license
    Not graded
    quality
    C
    maintenance
    Provides read-only tools to search customers, orders, and business documents across PostgreSQL, JSON CRM, and Markdown sources, with tenant isolation, PII masking, and auditable access.
    Apache 2.0
  • Why this server?

    Provides task management backed by a PostgreSQL database, enabling tasks to be created, listed, retrieved, updated, and deleted.

  • Why this server?

    Provides access to enterprise systems of record backed by PostgreSQL, enabling secure parametric ledger queries with ABAC tenant isolation, secret masking, and cryptographic provenance.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to securely interact with enterprise systems of record through MCP, with harmonic coherence telemetry, phase-lock analysis, and governance controls that ensure deterministic, non-destructive operations.
    Apache 2.0
  • Why this server?

    Provides tools for interacting with an Azure Database for PostgreSQL flexible server, including listing databases and tables, executing read queries, inserting or updating records, creating or dropping tables, and retrieving server configuration and parameter values.

  • Why this server?

    Provides read-only access to a PostgreSQL database, allowing agents to run validated SELECT queries with timeouts and PII masking.

  • Why this server?

    Provides tools for interacting with a PostgreSQL database, including listing tables, describing table schemas, and running read-only SQL queries with configurable result limits and statement timeouts.

  • Why this server?

    Provides tools for interacting with PostgreSQL databases, including connection management, parameterized queries and statements, table listing and introspection, table statistics, schema initialization, database backup, and CRUD/search operations over a host/VM/network/user inventory.

  • Why this server?

    Provides natural-language access to PostgreSQL databases, enabling AI agents to query data, explore schemas, generate reports, and analyze business information through the Devart MCP server.

    F
    license
    Not graded
    quality
    B
    maintenance
    Enables AI clients to interact with PostgreSQL databases through natural language, translating requests into structured queries and returning results via a secure self-hosted server.
    -
  • Why this server?

    Provides PostgreSQL database administration capabilities for AI clients, allowing a read-only connection to a single database over stdio, connection checks via doctor, and command reference for managing PostgreSQL instances.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI clients to serve and query a PostgreSQL database read-only over MCP, with connection diagnostics and command reference.
    Apache 2.0
  • Why this server?

    Provides read-only tools for querying inventory data, retrieving SKU status, and searching indexed documents via pgvector. The MCP server exposes inventory schema and safe SQL/RAG capabilities against a PostgreSQL backend.

    A
    license
    Not graded
    quality
    B
    maintenance
    Exposes three read-only tools over stdio — guarded SQL querying, SKU status lookup, and document retrieval — plus a schema resource. This lets MCP clients such as Claude Code answer stock and policy questions without any write access.
    MIT
  • Why this server?

    Provides a RAG knowledge base backed by PostgreSQL with pgvector, enabling document ingestion and semantic search using cosine similarity.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables users to ingest documents into a PostgreSQL/pgvector knowledge base, run semantic search over them, and get grounded answers through a retrieval-augmented generation pipeline backed by a free LLM. It also lets clients spin up specialized AI agents on demand and exposes knowledge-base stats and configuration as resources for tutoring workflows.
    Apache 2.0
  • Why this server?

    Provides tools for inspecting and managing PostgreSQL clusters through an Autobase Console, including reading cluster status, PostgreSQL versions, parameters, and extensions, listing backups (which triggers an Ansible task), and creating or updating PostgreSQL clusters (e.g. PostgreSQL 17 with Patroni and primary/replica nodes) using saved SSH key references.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables read-only access to Autobase Console projects, clusters, environments, operations, PostgreSQL versions, and extensions through configurable MCP tools. Supports paginated listing and filtering, with limited redacted operation logs and no write or arbitrary execution tools.
    MIT
  • Why this server?

    Provides tools for querying a PostgreSQL database read-only, including asking business questions in Arabic or English, listing tables, describing tables, and running validated SQL.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables MCP clients to ask bilingual data questions, inspect database tables and schemas, and execute validated read-only SQL through exposed tools.
    MIT
  • Why this server?

    Provides policy-governed, read-only query access to a PostgreSQL database, exposing tools to list and describe allowlisted tables and to run a single validated single-table SELECT, with table/column allowlists, row limits, per-table predicates, PII masking, READ ONLY transactions with timeouts, and an audit log of every allow and deny.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to query a Postgres database read-only through a policy layer rather than a raw connection string. Enforces table and column allowlists, row limits, mandatory predicates, PII masking and append-only audit logging, while refusing writes, joins, subqueries and unlisted functions.
    MIT
  • Why this server?

    Provides read-only access to a PostgreSQL database, enabling listing tables, retrieving schema details (columns, types, keys), and running safe SQL queries with row limits.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables Claude to translate natural-language business questions into safe, read-only SQL queries by exposing tools for listing tables, inspecting schemas, and executing row-capped SELECT statements against PostgreSQL.
    MIT
  • Why this server?

    Integrates with a LobeChat PostgreSQL database to look up files by ID or name, enabling document processing workflows to retrieve source files from the chat platform.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables creating and editing Microsoft Word (.docx) documents on Linux: native OMML formulas, tables, headers/footers, track changes, comments, footnotes, and document protection. Files are loaded from S3-compatible storage or URLs and saved results come back as HTTPS links with a sha256 checksum.
    MIT
  • Why this server?

    Provides tools for interacting with a PostgreSQL sales database (Kopi Lereng). The MCP server exposes describe_schema to inspect tables and columns, check_sql to validate SQL queries against a safe allowlist, and run_sql to execute read-only SELECT queries with row limits and return result rows.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables MCP clients such as Claude Desktop or Cursor to inspect a coffee-shop sales database schema, validate SQL, and run guarded read-only queries. It supports natural-language questions by exposing tools for schema description, SQL checking, and safe query execution.
    MIT