Skip to main content
Glama
113,137 servers. Updated
20 Best PostgreSQL MCP Servers: compared and ranked, October 2026Ranked from 1,524 matching servers on stars, growth, downloads and maintenance. Updated .

Matching MCP tools:

Matching MCP Connectors:

  • A
    license
    A
    quality
    A
    maintenance
    Enables AI assistants to run SQL queries against PostgreSQL databases through the psql CLI, with support for multiple configured databases and enforced read-only guarantees.
    4
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Provides an AI agent with read-only PostgreSQL access, enabling schema browsing, foreign-key exploration, column search across tables, capped SELECT queries, and offline data dictionary export while rejecting write operations.
    9
    4 npm
    MIT
  • F
    license
    A
    quality
    C
    maintenance
    Read-only MCP server that enables AI tools like Claude and Cursor to query the Avanti Fellows PostgreSQL database, providing schema inspection, data sampling, and SELECT query execution capabilities.
    6
    1
    -
  • A
    license
    A
    quality
    D
    maintenance
    MCP server for PostgreSQL that enables safe read-only database queries, table schema inspection, and query execution planning.
    6
    18 npm
    BSD 3-Clause
  • A
    license
    A
    quality
    C
    maintenance
    Local MCP server for safe querying and inspecting PostgreSQL databases, with write and maintenance operations disabled by default.
    8
    18 npm
    1
    ISC
  • A
    license
    A
    quality
    A
    maintenance
    Query and manage PostgreSQL databases from Claude Code, Cursor, and any MCP client, with read-only by default and built-in schema introspection, EXPLAIN, and performance diagnostics.
    23
    2,165 npm
    10
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI agents to investigate a legacy ERP's PostgreSQL database through read-only queries, apply writes and multi-statement atomic transactions behind static and in-transaction guardrails, and snapshot tables before destructive changes. Row limits, sequence-integrity checks, and optional JSON audit logging keep every call bounded, reversible, and traceable.
    4
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables read-only exploration of PostgreSQL databases, allowing schema inspection and safe SELECT queries without data mutation.
    8
    Apache 2.0
  • A
    license
    A
    quality
    C
    maintenance
    Enables local coding agents to safely inspect and query PostgreSQL databases — listing schemas, tables, and columns and running capped SELECT statements across multiple configured environments — while the server itself holds the database credential so the LLM never sees it.
    5
    92 npm
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    MCP server with 14 tools for PostgreSQL database operations. Query databases, explore schemas, analyze tables, with SQL injection prevention and read-only mode by default.
    14
    12
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    A self-hostable PostgreSQL MCP server for exploring database schemas and running guarded read/write queries with selectable access modes (readonly, readwrite, admin), plus a dry-run confirm workflow for safety.
    14
    1
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Provides PostgreSQL database management and analysis via MCP, enabling schema exploration, query execution, performance monitoring, and database health checks.
    36
    8 npm
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables Claude to interact with a local PostgreSQL database through SQL queries, schema inspection, and CRUD operations.
    8
    178 npm
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    MCP server for PostgreSQL, providing schema discovery, catalog introspection, read-only querying, and optional safe write operations to AI assistants.
    8
    30 npm
    PolyForm Noncommercial 1.0.0
  • A
    license
    A
    quality
    D
    maintenance
    A production-oriented MCP server for PostgreSQL that exposes database operations like query execution, schema introspection, and table metadata to MCP clients such as Claude Desktop and VS Code.
    6
    9 npm
    2
    MIT