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 · 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.

    A
    license
    A
    quality
    C
    maintenance
    Enables 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.
    3
    MIT
  • Why 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.

    A
    license
    A
    quality
    C
    maintenance
    Provides 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.
    2
    6 npm
    MIT
  • Why 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.

    A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    4
    MIT
  • Why 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.

    A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    4
    MIT
  • Why 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.

  • Why 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.

    A
    license
    A
    quality
    C
    maintenance
    Enables 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.
    6
    MIT
  • Why 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.

  • Why 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.

  • Why 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.

    A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    1
    MIT
  • Why 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.

    A
    license
    A
    quality
    B
    maintenance
    MCP 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.0
    12
    Apache 2.0
  • Why 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.

    A
    license
    B
    quality
    B
    maintenance
    It 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.
    6
    MIT
  • Why 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.

    A
    license
    A
    quality
    B
    maintenance
    Enables Claude to query a PostgreSQL database read-only with table allow-lists, row limits, statement timeouts, and an audit log of every query.
    4
    MIT
  • Why 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.

    A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    3
    MIT
  • Why 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.

    A
    license
    A
    quality
    B
    maintenance
    Enables MCP clients to recall validated retrieval paths at question start and record cited paths after grounded answers, so agents can reuse prior search trajectories without caching answers.
    3
    MIT
  • 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.

    A
    license
    B
    quality
    B
    maintenance
    Enables 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.
    7
    MIT
  • Why 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.

    A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    3
    MIT
  • Why 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.

    A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    10
    MIT
  • Why 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.

    A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to register PostgreSQL connections on demand, explore schemas, run read-only queries, and require approval for writes.
    12
    486 npm
    MIT
  • 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.

    A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    6
    MIT
  • Why 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.

    A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    50
    MIT
  • Why 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.

  • Why 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.

    A
    license
    B
    quality
    C
    maintenance
    Enables 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.
    14
    MIT
  • Why 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.

    A
    license
    A
    quality
    C
    maintenance
    Enables 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.
    12
    MIT
  • Why 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.

    A
    license
    Not graded
    quality
    D
    maintenance
    Serves 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.
    16
    Apache 2.0
  • Why this server?

    Provides tools to interact with PostgreSQL databases, executing validated SQL queries, schema inspection, transaction management, and more.

    F
    license
    B
    quality
    C
    maintenance
    Provides a secure, schema-aware PostgreSQL database agent for LLMs, enabling natural language queries and validated SQL execution with strong security guardrails.
    8
    5
    -
  • 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.

    F
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to interact with PostgreSQL databases through natural language, with schema-aware query generation and enterprise safety controls.
    18
    2
    -
  • 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.

    A
    license
    Not graded
    quality
    F
    maintenance
    This 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/).
    1
    MIT
  • Why 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.

    F
    license
    A
    quality
    Not graded
    maintenance
    Enables 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.
    11
    144 npm
    1
    -
  • 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.

    F
    license
    B
    quality
    D
    maintenance
    Enables 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.
    24
    1
    -
  • Why this server?

    Provides persistent storage for study tasks, quiz results, and conversation history, enabling management of study tasks through MCP tools.