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

Matching MCP tools:

Matching MCP Connectors:

"Postgres" matching MCP servers:

GET /v1/servers – MCP directory API reference
  • 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
    12
    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
    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
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to query PostgreSQL, inspect schemas, and explain queries, designed for local and development databases with read-only safety by default.
    42 npm
    MIT
  • 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
    102 PyPI
    13
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Reviewed Postgres and MySQL business actions for MCP agents, without exposing raw execute_sql.
    3
    Apache 2.0
  • A
    license
    A
    quality
    A
    maintenance
    Explains known developer errors offline and deterministically (CORS, ESM/CommonJS, npm ERESOLVE, Next.js builds, Postgres connection and DATABASE_URL errors). One tool, explain_error; no LLM, no network.
    1
    385 npm
    MIT
  • F
    license
    A
    quality
    A
    maintenance
    Analytical memory for AI agents: a real Postgres your agent connects to over MCP and queries in plain English — GROUP BY, JOIN, aggregate over what it remembered, not just top-k vector recall.
    5
    1
    -
  • A
    license
    A
    quality
    A
    maintenance
    Read-only, PII-masked MCP server for querying data federated through DuckDB — list sources/tables, inspect schemas, and run SQL across Postgres, MySQL, SQLite, Snowflake, BigQuery, Excel, and files, governed per source/table/column by a charter.yaml contract. Snowflake, BigQuery, Excel, and files, governed per source/table/column by a charter.yaml contract.
    6
    195 PyPI
    13
    Apache 2.0
  • A
    license
    A
    quality
    A
    maintenance
    Answers natural-language questions against Postgres, Oracle, Snowflake, Databricks, DuckDB and SQLite via db_read(question) and get_schema(), each separately grantable. The model only proposes SQL — shape, access, dialect and query plan are checked deterministically before any rows are read, and the server refuses rather than returning an unverified answer.
    3
    49
    Apache 2.0
  • A
    license
    A
    quality
    B
    maintenance
    Deploy, run and manage apps on your own self-hosted AppCrane from any MCP client. 62 tools: create an app, push code, deploy to sandbox, check health and logs, provision a managed Postgres, MariaDB, MongoDB or Redis, and promote to production after review. Your instance, your SSO, your data. Repo: https://github.com/gitayg/appcrane-mcp · npm: appcrane-mcp · Site: https://appcrane.dev
    35
    143 npm
    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
    474 npm
    9
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Zero-config data quality monitoring as MCP tools. Profiles a warehouse (Postgres, BigQuery, Snowflake, MySQL, DuckDB), detects anomalies, and gates CI — read-only with the connection resolved server-side, never via the model.
    6
    50 PyPI
    11
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Enables users to store and query their own medical data—labs, medications, diagnoses, wearables, and food logs—in a local Postgres database and interact with it through any MCP client, with deterministic safety checks.
    28
    3
    AGPL 3.0
  • A
    license
    A
    quality
    A
    maintenance
    Enables users to provision, manage, and query AI-native Postgres databases directly from MCP-compatible clients using x402 micropayments. It supports executing SQL, performing REST API interactions via PostgREST, and managing database leases and file storage.
    8
    2,560 npm
    24
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    One config, one CLI that turns your databases (Postgres, MySQL, SQLite, MongoDB) into MCP servers for Claude, GPT, Cursor, and any MCP-compatible agent.
    3
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Persistent memory for AI agents through the Model Context Protocol. MemStack provides tools to store, retrieve, summarize, prune, export, and manage memories using local files, SQLite, Postgres, Redis, or in-memory storage.
    18
    741 npm
    MIT
  • A
    license
    B
    quality
    A
    maintenance
    Local-first, auditable memory for Codex, Claude Code, and MCP clients. It stores scoped user/project memory in SQLite or Postgres, serves read-only recall and inspection tools by default, and supports opt-in governed writeback with review and forget controls.
    8
    635 npm
    18
    MIT