Skip to main content
Glama

PostgreSQL MCP Servers

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

1942 open-source servers · 0 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 access to PostgreSQL databases, allowing AI tools to run read-only SQL queries, list tables and views, describe table schemas, and explain query plans with enforced transaction-level read-only safety and result limits.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI tools to query a PostgreSQL database, read its schema, list and describe tables, and explain queries while enforcing read-only transactions, row and byte limits, and timeouts.
    1
    MIT
  • Why this server?

    Enables interaction with PostgreSQL databases, allowing users to list tables, retrieve schemas, and execute read-only SQL queries against PostgreSQL databases.

    A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables interaction with PostgreSQL databases to list tables, retrieve schemas, and execute read-only SQL queries.
    MIT
  • Why this server?

    Stores event log data imported from datasets, with configurable database credentials for connecting to the PostgreSQL instance

    A
    license
    Not graded
    quality
    D
    maintenance
    A tool that integrates process mining capabilities with Claude AI, allowing users to analyze event log data from PostgreSQL databases through natural language interfaces in Claude Desktop or Cursor.
    MIT
  • Why this server?

    Provides read-only access to PostgreSQL databases, allowing inspection of database schemas and execution of read-only SQL queries within READ ONLY transactions.

    A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that provides read-only access to PostgreSQL databases, enabling LLMs to inspect database schemas and execute read-only queries.
    MIT
  • Why this server?

    Provides tools for executing read-only SQL queries and accessing database resources including table listings and schema information for PostgreSQL databases

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables interaction with PostgreSQL databases through both HTTP and stdio transports. Supports executing read-only SQL queries, listing tables, and retrieving schema information with stateful session management.
    MIT
  • Why this server?

    Provides comprehensive PostgreSQL database management capabilities including query execution, schema management (DDL), data manipulation (DML), user management (DCL), and database maintenance operations like VACUUM, backups, and connection management.

    A
    license
    Not graded
    quality
    F
    maintenance
    Enables natural language interaction with PostgreSQL databases, supporting query execution, schema management, data operations, user management, and database maintenance with secure remote access via HTTP/SSE transport.
    MIT
  • Why this server?

    Enables AI assistants to safely query PostgreSQL databases through read-only operations, including schema discovery, table inspection, SQL query execution, and query performance analysis using EXPLAIN plans.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to safely interact with PostgreSQL databases through read-only operations, providing schema discovery, table inspection, and query execution capabilities with structured context awareness.
    MIT
  • Why this server?

    Enables safe PostgreSQL database interaction with tools for schema exploration, query execution, performance analysis, data quality checks, and maintenance operations. Supports both read-only and read-write modes with built-in safety features including SQL injection prevention, rate limiting, and query timeouts.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to safely explore, analyze, and maintain PostgreSQL databases with read-only mode by default, SQL injection prevention, query performance analysis, and optional write operations.
    67 npm
    Apache 2.0
  • Why this server?

    Provides user name resolution, team management, and calendar insights tools with a PostgreSQL backend, enabling fuzzy user search, team hierarchy navigation, meeting analysis, and calendar health assessments.

  • Why this server?

    Provides AI-driven database administration, monitoring, and querying capabilities for PostgreSQL databases, with support for extensions like citext, HypoPG, ltree, pgcrypto, pg_cron, pg_stat_kcache, pgvector, and PostGIS.

    A
    license
    Not graded
    quality
    C
    maintenance
    Provides AI-driven PostgreSQL database management with secure OAuth 2.1 authentication, enabling users to administer, monitor, and query databases with support for extensions like pgvector, PostGIS, and pg_cron.
    144 npm
    -
  • Why this server?

    Provides comprehensive database access with 36 tools for querying, managing schemas, tables, indexes, views, sequences, JSONB operations, stored procedures, and other PostgreSQL-specific features. Supports both read-only and write operations with security controls, SSL/TLS connections, and connection pooling.

    A
    license
    Not graded
    quality
    D
    maintenance
    Provides comprehensive PostgreSQL database access with 36 tools for querying, managing schemas, JSONB operations, and database administration. Includes security features like query validation, rate limiting, SSL/TLS support, and optional write operations.
    MIT
  • Why this server?

    Provides persistent storage and management of personal expense data, enabling tools to store, edit, delete, and query financial records with database transactions for expense tracking and reporting.

    F
    license
    C
    quality
    D
    maintenance
    Enables AI assistants to manage personal finances by storing, analyzing, and exporting expense data using a persistent PostgreSQL database. Supports adding/editing expenses, generating spending summaries, detecting top categories, and creating monthly reports.
    12
    -
  • Why this server?

    Provides read-only access to PostgreSQL databases with tools for executing SELECT queries, listing tables, describing table schemas, and running common database information queries. Includes security features that block all write operations (INSERT, UPDATE, DELETE, DROP).

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables secure read-only access to PostgreSQL databases through SELECT queries only, with tools for exploring schemas, listing tables, and executing common queries while preventing any data modification operations.
    MIT
  • Why this server?

    Provides read-only access to PostgreSQL databases with tools for listing tables, viewing table structures and statistics, and executing SELECT queries with security protections against write operations.

    A
    license
    Not graded
    quality
    D
    maintenance
    Provides read-only access to PostgreSQL databases, enabling users to list tables, view table structures and statistics, and execute SELECT queries safely through natural language.
    MIT
  • Why this server?

    Provides tools for executing read-only SQL queries, listing database tables, and retrieving schema information from PostgreSQL databases through both HTTP and stdio transports.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables interaction with PostgreSQL databases through both HTTP and Stdio transports, supporting read-only SQL queries, table listing, and schema inspection. Features stateful session management for HTTP transport and flexible deployment options including Docker support.
    MIT
  • Why this server?

    Enables AI agents to interact with PostgreSQL databases, allowing them to execute SQL queries, discover schemas and table structures, and retrieve data samples while maintaining security through read-only modes and schema restrictions.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to query, explore, and analyze PostgreSQL databases through the Model Context Protocol. It provides robust security features including read-only mode, schema restrictions, and query timeouts for safe data interaction.
    MIT
  • Why this server?

    Provides tools for connecting to and interacting with PostgreSQL databases, allowing users to list databases and tables, inspect schemas, and execute SQL queries with configurable permission modes (safe, write, or full).

    A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server for interacting with MSSQL and PostgreSQL databases, offering tools for schema exploration and SQL execution. It features configurable query modes for safety and supports advanced authentication methods like Windows Auth and SSL.
    8 npm
    MIT
  • Why this server?

    Provides read-only access to PostgreSQL databases, enabling the inspection of table schemas and the execution of read-only SQL queries.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables LLMs to interact with PostgreSQL databases by providing tools to inspect table schemas and execute read-only SQL queries. It ensures data safety by running all operations within read-only transactions.
    MIT
  • Why this server?

    Provides comprehensive tools for PostgreSQL database management, including health analysis, index tuning, query plan optimization, schema intelligence, and safe SQL execution.

    A
    license
    Not graded
    quality
    Not graded
    maintenance
    An open-source MCP server that provides AI agents with advanced PostgreSQL capabilities including index tuning, query plan optimization, and comprehensive database health analysis. It supports safe SQL execution through configurable access modes and offers both stdio and SSE transport options for various development environments.
    MIT
  • Why this server?

    Provides read-only access to PostgreSQL databases, enabling users to inspect database schemas and execute read-only SQL queries.

    A
    license
    Not graded
    quality
    D
    maintenance
    Provides read-only access to PostgreSQL databases, allowing LLMs to inspect table schemas and execute SQL queries. It ensures data safety by running all operations within read-only transactions.
    MIT
  • Why this server?

    Provides generic database access capabilities for PostgreSQL databases, enabling AI agents to execute SQL queries, manage table schemas, and store business insights through a dedicated memo table.

    A
    license
    Not graded
    quality
    D
    maintenance
    Provides LLMs with full PostgreSQL database access, including tools for query execution, schema management, and data export. It also features a dedicated insights system for storing business memos and supports both local stdio and remote HTTP transport.
    MIT
  • Why this server?

    Enables read-only SQL query execution against PostgreSQL databases, providing tools for safe data retrieval with automatic row limits and SQL injection prevention.

    A
    license
    Not graded
    quality
    D
    maintenance
    A production-ready MCP server that enables safe, read-only SQL SELECT queries against PostgreSQL databases with built-in security validation. It features connection pooling, automatic row limits, and structured logging to ensure secure and reliable database interactions.
    MIT
  • Why this server?

    Allows interaction with multiple PostgreSQL databases through a single MCP server, providing capabilities to execute SQL queries, list available databases and tables, and retrieve detailed table schema information with support for connection pooling and read-only safety.

    A
    license
    Not graded
    quality
    D
    maintenance
    A PostgreSQL MCP server that enables querying and managing multiple databases through a single configuration file without needing separate server instances. It provides tools for executing SQL queries, listing databases, and inspecting table schemas with built-in support for read-only transactions and connection pooling.
    ISC
  • Why this server?

    Enables AI agents to interact with PostgreSQL databases, providing schema intelligence (table/column exploration with comment extraction, catalog views), query execution with configurable access levels (readonly to unrestricted), and DBA tooling including index analysis, table statistics, bloat detection, and database health monitoring.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to interact with PostgreSQL databases through schema intelligence, query execution, and DBA tooling including index analysis and health monitoring. Features configurable access levels and audit logging for secure database operations.
    MIT
  • Why this server?

    Provides read-only PostgreSQL analytics tools including query plan analysis, slow queries, index usage, table bloat estimation, vacuum status, connection stats, lock waits, and size summaries.

    A
    license
    Not graded
    quality
    D
    maintenance
    Read-only PostgreSQL analytics MCP server — query plans, slow queries, index usage, table bloat, vacuum status. No DDL/DML/writes. Curated by Archimedes Market with a verified Trust Report.
    MIT
  • Why this server?

    Provides comprehensive PostgreSQL database operations through a standardized JSON-RPC interface, including query execution, schema inspection, performance analysis, backup, index creation, and administrative tasks.

    A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server for PostgreSQL that enables database operations like querying, schema inspection, performance analysis, and administration through a JSON-RPC 2.0 interface.
    MIT
  • Why this server?

    Provides tools for executing SQL queries, managing databases and schemas, listing tables, describing table structures, and more, with fine-grained access control and security auditing.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to interact with PostgreSQL databases through MCP, supporting multi-database and schema access with security controls like read-only mode and SQL auditing.
    MIT
  • Why this server?

    Allows interaction with a PostgreSQL database, providing tools for listing cases, retrieving case details, and adding notes to cases.

    A
    license
    Not graded
    quality
    D
    maintenance
    A Node/Express + PostgreSQL MCP server that exposes database-backed tools (list_cases, get_case, add_note) to AI clients, secured with bearer-token authentication.
    MIT
  • Why this server?

    Provides tools for querying, describing, and modifying PostgreSQL databases, including read-only queries, table management, and inserts.

  • Why this server?

    Provides tools for managing PostgreSQL database connections, transactions, queries, cursors, COPY operations, server-side cursors, large objects, and other database operations through the psycopg2 adapter.

    A
    license
    Not graded
    quality
    D
    maintenance
    MCP server that exposes PostgreSQL database operations via psycopg2, including connection management, query execution, and transaction control.
    MIT