Skip to main content
Glama
90,731 servers. Updated
20 Best PostgreSQL MCP Servers: compared and ranked, September 2026Ranked from 1,237 matching servers on stars, growth, downloads and maintenance. Updated .

Matching MCP tools:

Matching MCP Connectors:

"PostgreSQL" matching MCP servers:

GET /v1/servers – MCP directory API reference
  • A
    license
    B
    quality
    A
    maintenance
    A production-grade Model Context Protocol server for PostgreSQL. Lets AI agents safely inspect, query, operate, and tune a Postgres database — over 100 tools spanning catalog introspection, query intelligence, natural-language SQL, structural diffs, hybrid search, graph queries, data movement, live ops, and more.
    186
    10
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Enables AI assistants to interact with PostgreSQL databases through natural language, with schema-aware query generation and enterprise safety controls.
    18
    161 npm
    2
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    A drop-in Model Context Protocol (MCP) server that lets an AI agent query PostgreSQL — read-only, enforced at the database level, with real SQL validation, timeouts, cost limits, OAuth 2.1, and an audit trail.
    10
    3
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Read-only SQL across PostgreSQL, MySQL, S3-compatible buckets and folders of Parquet, CSV and JSON files — and one query can join across all of them, federated in-process by DuckDB. Sources are given as connection strings at startup, and no tool writes: they are absent rather than disabled.
    2
    24
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Blocks unsafe PostgreSQL migrations before an AI agent writes or runs them. check_before_apply returns a pass/fail gate; reads the real Postgres parser, classifies the lock each statement takes, checks 112 safety rules. Runs offline, no database required.
    7
    822 npm
    7
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    MCP server for Hydra ETL: lets AI assistants write declarative YAML ETL pipelines (CSV, Parquet, PostgreSQL, MySQL, MongoDB, APIs) and validate them before any data is read or written.
    17
    2
    AGPL 3.0
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to create and manage BasicDeploy containers with PostgreSQL, S3 storage, and public URLs, including deploying apps, running commands, viewing logs, and sharing containers.
    18
    34 npm
    MIT
  • A
    license
    A
    quality
    A
    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
    10
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Query CVEs, yanked releases, known exploits, and upgrade paths for any PostgreSQL version directly from your AI assistant.
    8
    Apache 2.0
  • A
    license
    A
    quality
    A
    maintenance
    Read-only JDBC MCP server for PostgreSQL, Oracle, and SQL Server: safe SQL access for AI agents (Claude Code, Cursor, Copilot) with schema discovery, query validation, execution plans, benchmarking, and index/statistics tools
    49
    Apache 2.0
  • A
    license
    A
    quality
    C
    maintenance
    Connect any AI to PostgreSQL, MySQL, or SQL Server — 24 dialect-aware tools for query, schema, optimization, and more.
    23
    26 npm
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    A read-only PostgreSQL MCP server for AI coding agents that exposes database schema and sample data as tools, with LLM-powered semantic search enriched by a user-authored semantic layer.
    4
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Governed PostgreSQL DBA operations — slow-query, bloat, and blocking-lock RCA, index management, vacuum/analyze, and replication lag, with unbypassable audit logging (MCP + CLI), budget/runaway guards, dry-run, and undo/rollback.
    35
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Enables MCP-capable agents to operate PostgreSQL and PgBouncer clusters on Kubernetes—covering discovery, pooling, tuning, backups/PITR, DR, and lifecycle—with safe-by-default read-only mode and granular opt-in security controls.
    9
    376 npm
    1
    MIT
  • A
    license
    B
    quality
    B
    maintenance
    MCP server for Sqemo, a web-based ERD tool with team naming standards. 34 tools: read/edit entities, attributes, and relationships; generate physical names from a shared glossary and naming rules; SQL (7 dialects) and DBML import/export; ERD lint, diff, and ALTER generation.
    36
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Enables AI assistants to interact with multiple SQL databases (PostgreSQL, MySQL, SQL Server, SQLite, Trino) through MCP, reusing existing DBeaver connections for queries, schema management, and transactions, with SSH tunneling and read-only mode support.
    22
    147 npm
    MIT
  • A
    license
    B
    quality
    A
    maintenance
    Dual-memory MCP system with PostgreSQL 17 + pgvector + NVIDIA NIM embeddings. 11 tools: search, save, profile, health, auto-repair, stats, tune, dedup, checkpoint, maintenance. Sparse Selective Caching (SSC) with 4-phase progressive retrieval. Bilingual EN/ES.
    37
    3
    MIT
  • A
    license
    C
    quality
    A
    maintenance
    Enables reading Tesla vehicle data from a TeslaMate PostgreSQL database, including status, trips, charging, efficiency, weather integration, and more, via 38 tools for MCP-compatible clients like Claude Code.
    38
    MIT