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 execution of SELECT/WITH queries and schema exploration (listing schemas, tables, columns).

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables read-only interaction with PostgreSQL databases, allowing natural language queries for listing schemas, tables, describing columns, and executing SELECT/WITH statements.
    MIT
  • Why this server?

    Allows read-only querying and schema exploration of a PostgreSQL database, with enforced read-only transactions, statement timeout, and row limits.

    A
    license
    Not graded
    quality
    D
    maintenance
    A zero-config, read-only PostgreSQL MCP server that enforces read-only access at the database level using READ ONLY transactions, allowing AI agents to safely explore schemas and run SELECT queries without risk of mutation.
    11 npm
    MIT
  • Why this server?

    Allows querying a PostgreSQL database using natural language, providing tools to list tables, describe schemas, and execute read-only SELECT queries.

    A
    license
    Not graded
    quality
    D
    maintenance
    A read-only natural-language database agent that exposes PostgreSQL schema-discovery and SELECT tools via MCP, enabling users to query databases in plain English.
    MIT
  • Why this server?

    Provides read-only inspection of a PostgreSQL database (content_saas) containing channel configurations, posting schedules, publication attempts, and error logs for a neuro auto-posting service. Tools allow listing channels, viewing channel setup, summarizing outcomes, and retrieving publication details or failures.

    A
    license
    Not graded
    quality
    D
    maintenance
    Read-only MCP server for inspecting a neuro auto-posting service's publication pipeline. Allows operators to query channels, publications, errors, and configuration via natural language.
    MIT
  • Why this server?

    Provides tools for interacting with PostgreSQL databases, enabling AI assistants to perform database operations such as listing tables, describing schemas, executing SELECT queries, and more through a standardized MCP interface.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to securely interact with PostgreSQL databases through a standardized MCP interface, supporting SQL queries, schema inspection, and database management.
    MIT
  • Why this server?

    Allows querying PostgreSQL databases using natural language, with automatic schema introspection, SQL generation, safety validation, and structured JSON results.

    A
    license
    Not graded
    quality
    C
    maintenance
    Ask your database questions in plain English. Connects PostgreSQL databases to MCP clients and answers with real, structured data instead of guesses.
    MIT
  • Why this server?

    Provides tools to query sample data (days of the week and postal codes) from a PostgreSQL database, including listing all records and searching by specific fields such as city or postal code.

    A
    license
    Not graded
    quality
    D
    maintenance
    A simple MCP server providing dummy data tools for days of the week and postal codes, with Streamable HTTP transport and optional API key authentication.
    ISC
  • Why this server?

    Provides tools for interacting with a self-hosted PostgreSQL instance, including schema discovery, relation introspection, arbitrary read-only SQL queries, and transactional write commands with human approval.

    A
    license
    Not graded
    quality
    D
    maintenance
    A Python MCP 2.0 server for self-hosted PostgreSQL instances, providing schema/relation discovery, SQL query and controlled transactional execution tools with security features like read-only transactions, role hardening guidance, and optional human approval for write commands.
    MIT
  • Why this server?

    Allows executing read-only SELECT queries against a PostgreSQL database.

    A
    license
    Not graded
    quality
    D
    maintenance
    A read-only MCP server for querying PostgreSQL databases. It exposes a tool that runs SELECT queries and returns results to the agent.
    MIT
  • Why this server?

    Provides read-only PostgreSQL schema introspection via MCP, including tables, columns, primary keys, foreign keys, and indexes, with security enforced by a least-privilege database role.

    A
    license
    Not graded
    quality
    D
    maintenance
    Provides a read-only PostgreSQL MCP server with schema introspection. Enforces least-privilege database roles to prevent any writes, even from malicious SQL.
    MIT
  • Why this server?

    Allows querying and interacting with PostgreSQL databases, providing read-only queries by default, transaction management, and optional write/DDL support.

    A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server for safely querying PostgreSQL from an LLM, with read-only default mode, multi-connection aliases, and session-enforced safety.
    7 npm
    MIT
  • Why this server?

    Provides read-only access to a PostgreSQL database with SQL guardrails, row-level security, and masked views to protect sensitive data.

    A
    license
    Not graded
    quality
    D
    maintenance
    Provides read-only access to PostgreSQL databases via MCP, enforcing least-privilege roles, row-level security, masked views, and SQL AST guardrails to prevent data leakage and unauthorized operations, enabling AI agents to safely query sensitive production data.
    MIT
  • Why this server?

    Provides read-only SQL query tools for PostgreSQL, allowing execution of parameterized queries with row caps and timeouts, returning results as JSON.

    A
    license
    Not graded
    quality
    D
    maintenance
    Exposes read-only PostgreSQL queries as typed MCP tools, enabling natural-language data analysis while keeping raw tables hidden and enforcing safety limits.
    MIT
  • Why this server?

    Provides read-only access to PostgreSQL databases, with tools for running safe queries, listing tables, describing table structures, fetching schema DDL, and generating read-only roles.

    A
    license
    Not graded
    quality
    D
    maintenance
    A read-only MCP server for PostgreSQL that serves multiple databases from one process, enforcing read-only access via PostgreSQL grants rather than SQL string matching, and supports both local stdio and remote HTTP transports.
    Apache 2.0
  • Why this server?

    Query PostgreSQL databases, inspect schemas, and explain query plans from an AI assistant.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to query PostgreSQL, inspect schemas, and explain queries, designed for local and development databases with read-only safety by default.
    49 npm
    MIT
  • Why this server?

    Provides tools for interacting with a private Cloud SQL PostgreSQL database, enabling AI agents to perform CRUD operations on catering CRM data including client profiles, bookings, orders, and menus.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables secure, natural language access to private Cloud SQL PostgreSQL data for catering CRM management, exposing database CRUD operations as MCP tools via Cloud Run.
    32 npm
    MIT
  • Why this server?

    Provides persistent, versioned, audited long-term memory storage for AI agents using PostgreSQL, with tools to create, revise, archive, search, and manage memory records.

    A
    license
    Not graded
    quality
    D
    maintenance
    MCP server providing layered, PostgreSQL-backed long-term memory for AI agents with versioned, audited writes and sensitive candidate filtering. Agents persist only explicitly requested facts, preferences, and project context via MCP tools.
    Apache 2.0
  • Why this server?

    Allows connecting to PostgreSQL databases, providing natural language querying via SQL, vector search with pgvector, and knowledge graph traversal based on the database catalog.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables natural language querying of PostgreSQL via MCP, combining SQL, vector search, and knowledge graph with automatic routing and token-aware curation.
    Apache 2.0
  • Why this server?

    Provides tools to retrieve customer profiles, semantically search interaction history using pgvector, and obtain exact purchase summaries with audit logs from a PostgreSQL database.

    A
    license
    Not graded
    quality
    D
    maintenance
    MCP server for securely connecting LLMs to customer data, providing customer profile retrieval, semantic search of interaction history, and exact financial summaries via SQL aggregation, with audit logging and prompt injection protection.
    MIT
  • Why this server?

    Provides a local review/approval layer for PostgreSQL MCP interactions, trapping destructive tool calls such as writes, deletes, and SQL mutations and holding them for commit or discard via a local dashboard.

    A
    license
    Not graded
    quality
    D
    maintenance
    A local-first stdio proxy for MCP servers that traps destructive tool calls and holds them for manual commit or discard, preventing accidental mutations.
    AGPL 3.0
  • Why this server?

    Provides a read-only interface to PostgreSQL databases, allowing agents to execute SELECT queries safely by parsing SQL statements to prevent write operations.

    A
    license
    Not graded
    quality
    C
    maintenance
    A read-only Postgres MCP server that parses SQL to block write statements and prevents bypasses by refusing connections with write privileges.
    30 PyPI
    MIT
  • Why this server?

    Provides a tool to query a read-only PostgreSQL database, enabling the agent to retrieve data from a sample commerce dataset using SELECT statements.

    A
    license
    Not graded
    quality
    C
    maintenance
    An MCP server exposing three tools — a read-only PostgreSQL commerce database, a live weather API, and a calculator — behind a real MCP protocol client/server boundary. It enables natural-language questions that combine database and weather data, with real-time streaming of tool calls and model error recovery.
    MIT
  • Why this server?

    Provides read-only PostgreSQL operations and DBA diagnostics, including tools for analyzing slow queries, explaining plans, index health, table bloat, lock waits, connections, replication lag, and configuration checks.

    A
    license
    Not graded
    quality
    C
    maintenance
    Read-only PostgreSQL ops/DBA server for the Model Context Protocol, providing diagnostics like slow queries, index health, lock waits, replication lag, and configuration tuning advice.
    MIT
  • Why this server?

    Provides tools and resources for managing users in a PostgreSQL database, including creating, updating, and deleting user records, listing all users, and retrieving a single user profile by ID.

    A
    license
    Not graded
    quality
    C
    maintenance
    A playground MCP server that demonstrates exposing tools and resources to AI agents, enabling them to manage a simple user database with create and read operations.
    ISC
  • Why this server?

    Provides persistent storage for conversation history and semantic memories, using PostgreSQL with the PGVector extension for vector-based search.

    A
    license
    Not graded
    quality
    D
    maintenance
    Provides persistent history and semantic memory for llama-server, enabling cross-session recall and memory management through MCP tools.
    MIT
  • Why this server?

    Allows querying manufacturing equipment observation values stored in PostgreSQL, including retrieving original rows by UDI or other conditions and failure data samples.

  • Why this server?

    Provides read-only tools for exploring and querying a PostgreSQL database, including listing tables, describing table schemas, and running safely limited SELECT queries.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables read-only, SELECT-only querying of any Postgres database through MCP-compatible clients like Claude, with schema introspection and guarded SQL execution.
    MIT
  • Why this server?

    Provides credential-isolated access to PostgreSQL databases, allowing execution of read-only and gated write SQL queries through a secure, tunneling-based connection.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to run SQL queries on PostgreSQL databases through a credential-isolated proxy, with read-only queries by default and write operations requiring explicit confirmation.
    Apache 2.0
  • Why this server?

    Provides guarded read-only access to a PostgreSQL database, enabling safe querying, table listing, and schema inspection without modifying data.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables an AI assistant to run guarded, read-only SQL queries against a Postgres database with enforced limits and validation.
    MIT
  • Why this server?

    Provides tools for managing personal expenses, including registering and storing expense records in a PostgreSQL database.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables conversational expense tracking via Telegram, allowing natural language registration, querying, and summarization of expenses, with persistence in PostgreSQL and support for multiple LLM providers.
    MIT