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 · 4 connectors · postgresql.org ↗

Open-source servers

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

Built for PostgreSQL (542)

  • Why this server?

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

  • Why this server?

    Provides governed, read-only access to PostgreSQL databases, with schema and table allowlists, SQL validation, row and statement time limits, and audit events.

    A
    license
    Not graded
    quality
    D
    maintenance
    Provides governed, read-only PostgreSQL access for AI agents via MCP. Enforces schema/table allowlists, query limits, and audit events.
    1
    MIT
  • Why this server?

    Enables execution of database queries against PostgreSQL databases through RDBMS connections

    F
    license
    B
    quality
    D
    maintenance
    Enables remote command execution via SSH and database queries through PostgreSQL connections. Supports classifier training orchestration with configurable SSH profiles for AI-assisted infrastructure management.
    3
    -
  • Why this server?

    Provides capabilities to execute read-only PostgreSQL queries and perform schema searches using vector recall and keyword retrieval.

    F
    license
    A
    quality
    D
    maintenance
    A general-purpose MCP server providing time-related utilities such as fetching current time, Unix timestamps, and formatting services. It supports both local stdio and remote SSE communication modes for versatile AI client integration.
    3
    -
  • Why this server?

    Provides tools to interact with a PostgreSQL database, allowing users to execute SELECT queries, inspect table schemas, and list available tables.

    F
    license
    A
    quality
    Not graded
    maintenance
    An MCP server designed to interact with the RifaExpress backend via PostgreSQL database queries and REST API integrations. It enables users to manage core entities like companies, users, and plans while providing tools for database schema inspection and health monitoring.
    8
    -
  • Why this server?

    Provides tools for accessing PostgreSQL database metadata, including listing tables and other database objects.

    A
    license
    C
    quality
    D
    maintenance
    Enables querying PostgreSQL database metadata including table lists and schema information through the MCP protocol. Supports stdio transport for Cursor/IDE integration as well as HTTP transport with health check endpoints.
    2
    MIT
  • Why this server?

    Provides tools for inspecting and querying a PostgreSQL database, including listing tables, retrieving schema, and executing read-only SQL queries.

    F
    license
    A
    quality
    D
    maintenance
    Enables AI agents to inspect and query PostgreSQL databases safely, with features like listing tables, retrieving schemas, and running read-only SQL queries.
    3
    -
  • Why this server?

    Allows AI agents to execute SQL queries, inspect schemas, and analyze query performance on one or more PostgreSQL databases registered as named projects.

    F
    license
    A
    quality
    D
    maintenance
    Enables AI agents to read and optionally write to PostgreSQL databases through a multi-project setup with schema inspection, query execution, and performance analysis tools.
    5
    -
  • Why this server?

    Provides a read-only interface to PostgreSQL databases, allowing schema exploration, table description, DDL retrieval, index and relationship inspection, and safe read-only SQL queries.

    F
    license
    A
    quality
    D
    maintenance
    Read-only PostgreSQL database MCP server for safely exploring schema, tables, relationships, and sample data without modification.
    10
    -
  • Why this server?

    Allows inspecting database schemas and running read-only SQL queries on a PostgreSQL database.

  • Why this server?

    Provides PostgreSQL-backed stores for MCP durable tasks and sessions, including schema SQL, terminal-state protection, TTL enforcement, and atomic session extension.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables serving a remote Model Context Protocol endpoint by exposing tools, prompts, and resources with customizable authorization and hooks, allowing AI models to interact with your application through a standardized JSON-RPC interface.
    862 npm
    Business Source 1.1
  • Why this server?

    Provides tools for safely interacting with PostgreSQL databases: select, insert, update, delete operations on tables, with injection-safe filtering and ordering, including vector KNN search.

  • Why this server?

    Provides tools for read-only exploration of a PostgreSQL database, including listing schemas and tables, describing table structure, sampling rows, and running bounded SQL queries.

    F
    license
    A
    quality
    D
    maintenance
    Enables read-only exploration of a Postgres database using natural language, with multiple safety layers to prevent any modifications.
    5
    -
  • Why this server?

    Allows querying and exploring a PostgreSQL database in read-only mode, providing tools to get schema and execute SELECT queries.

    F
    license
    A
    quality
    D
    maintenance
    Enables safe read-only exploration and querying of a PostgreSQL database, listing tables and executing SELECT statements.
    2
    -
  • Why this server?

    Provides a stdio transport bridge to pREST's HTTP MCP endpoint, enabling MCP clients to interact with PostgreSQL databases for querying and schema operations via pREST.

    A
    license
    Not graded
    quality
    C
    maintenance
    Bridges MCP clients that require stdio to a running pREST HTTP MCP endpoint, enabling database interaction via natural language.
    MIT
  • Why this server?

    Provides tools for interacting with PostgreSQL databases, including schema exploration, safe SQL execution, EXPLAIN, health checks, and index recommendations.

  • Why this server?

    Provides read-only access to PostgreSQL databases, allowing exploration of schemas, tables, views, stored procedures, indexes, foreign keys, and execution of SELECT queries.

    F
    license
    A
    quality
    D
    maintenance
    A read-only MCP server for SQL Server and PostgreSQL that enables exploring and querying databases (schemas, tables, views, procedures, indexes, foreign keys) and running arbitrary SELECT queries.
    37
    -
  • Why this server?

    Allows retrieving database schema information from a PostgreSQL database using the information_schema, providing agents with structural context about tables and columns.

  • Why this server?

    Provides read-only tools for querying a PostgreSQL database containing service orders and client data, allowing natural language queries to be translated into safe SQL.

    F
    license
    A
    quality
    B
    maintenance
    MCP server that allows natural language queries in Portuguese to a PostgreSQL database using Ollama, ensuring read-only access with parameterized SQL and strict safety policies.
    24
    -
  • Why this server?

    Provides semantic search over notes stored in a PostgreSQL database using pgvector, with tools to search indexed note chunks and list distinct note source files.

    F
    license
    A
    quality
    D
    maintenance
    Provides SQL-backed semantic search over indexed notes using pgvector, exposing tools to search and list note sources via natural language.
    2
    -
  • Why this server?

    Provides read-only PostgreSQL schema inspection, allowing exploration of schemas, tables, indexes, sizes, sample data, and query plans.

    F
    license
    A
    quality
    D
    maintenance
    Enables read-only PostgreSQL schema exploration through natural language, including tables, indexes, sizes, sample rows, and query plans, with structural safeguards against writes.
    7
    -
  • Why this server?

    Provides expense and income tracking by storing transactions in a PostgreSQL database, with tools for adding, listing, summarizing, editing, and deleting expenses, and adding credits.

    F
    license
    B
    quality
    C
    maintenance
    Enables managing expenses and credits through natural language, with tools for adding, listing, summarizing, editing, and deleting transactions stored in PostgreSQL.
    6
    -
  • Why this server?

    Provides tools for inspecting a PostgreSQL database schema and executing read-only SQL queries, with optional natural-language to SQL generation.

    F
    license
    A
    quality
    C
    maintenance
    Enables read-only access to a PostgreSQL database, allowing users to inspect schema, generate SQL from natural language, and execute read-only queries via MCP.
    5
    -
  • Why this server?

    Enables natural language interaction with PostgreSQL databases, allowing users to query data, inspect schemas, and generate SQL with safety features such as read-only enforcement and result validation.

  • Why this server?

    Provides tools for managing data stored in a PostgreSQL database, including schema-driven CRUD, row- and field-level RBAC, immutable audit logging, and per-identity MCP tool surfaces.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to safely operate on PostgreSQL data through typed MCP tools with per-identity RBAC, guardrails, and immutable audit logging.
    74 npm
    MIT
  • Why this server?

    Runs a CIM (IEC 61970-301) operational data store on PostgreSQL + PostGIS + pgRouting, which the server queries directly for SQL-backed tools: equipment lookup and description, topology tracing (downstream/upstream, path finding, isolation, tie options, connectivity), spatial queries (equipment near a point, nearest substation, area impact, feeder geometry), telemetry (latest readings, measurement history, load profiles, peak load, limit exceedances, data quality), and governance (model change history, feeder validation). Any Postgres 16+ with PostGIS 3.4+ and pgRouting 3.4+ can run the schema, and study results are written to a `studies` schema.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to simulate and analyze distribution power grids, including power-flow, DER hosting-capacity, voltage, fault, and time-series studies, plus SQL-based topology and telemetry queries on public utility network models.
    Apache 2.0
  • Why this server?

    Provides tools for managing PostgreSQL database connections, executing read-only queries, explaining query plans, and exploring database schema.

    A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server for PostgreSQL databases that enables AI agents to connect, query, and explore multiple databases with schema discovery and extension context.
    542
    MIT
  • Why this server?

    Enables querying and analyzing PostgreSQL databases through SQL execution, table schema inspection, and sample data retrieval with optional write operations support

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables LLMs to query and analyze PostgreSQL databases through a controlled interface. Supports SQL query execution, table schema inspection, and optional write operations with safety controls.
    600 npm
    178
    MIT
  • Why this server?

    Uses PostgreSQL with pgvector extension as a vector database for storing and searching document embeddings generated from various file formats including Markdown, PDF, and PowerPoint files.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables retrieval-augmented generation (RAG) by indexing and searching through documents (Markdown, text, PowerPoint, PDF) using vector embeddings with multilingual-e5-large model and PostgreSQL pgvector. Supports contextual chunk retrieval and incremental indexing for efficient document management.
    71
    MIT
  • Why this server?

    Provides offline schema intelligence and analysis for PostgreSQL, including schema exploration, SQL query validation, query plan analysis, migration safety checks, linting, vacuum health monitoring, and query statistics from captured snapshots.

    A
    license
    Not graded
    quality
    B
    maintenance
    Gives AI coding assistants, IDEs, and CI full PostgreSQL schema intelligence from an offline snapshot, enabling linting, query validation, migration safety analysis, and foreign key graph exploration without ever exposing database credentials.
    36
    BSD 2-Clause "Simplified"