Skip to content

Alternatives to pgleash

MCP servers that do a similar job to pgleash, ranked by how closely they match what it does. pgleash is an open-source MCP server for databases.

Top 13 alternatives

  1. Pgmoat

    MCP server

    Read-only Postgres access for agents: SQL parsing, hidden columns, row limits, audit log

    Runs locally
    • Open source
    • Databases
  2. Pg Readonly MCP

    MCP server

    Read-only Postgres access for agents that parses SQL and refuses write-capable roles

    Runs locally
    • Open source
    • Databases
  3. pgbrake

    MCP server

    Local Postgres guard for AI agents that holds risky SQL for approval and can undo writes

    Runs locally
    • Open source
    • Databases
  4. Lokra

    MCP server

    Postgres gate for AI agents with row locks, masking and approved writes

    Runs locally
    • 6 tools
    • Open source
    • Databases
  5. Orion Gate

    MCP server

    Open-source SQL firewall that sits between AI agents and production databases

    • 3 tools
    • Remote
    • Open source
    • Databases
  6. Read-only PostgreSQL access for AI agents, with SQL validation, timeouts and an audit

    Not checked yet
    • 10 tools
    • Remote
    • Open source
    • 3 GitHub stars
    • Databases
  7. Safedb MCP

    MCP server

    Read-only, policy-guarded database access for AI agents over MCP

    Runs locally
    • 6 tools
    • Open source
    • 9 GitHub stars
    • Databases
  8. mcpolyglot

    MCP server

    Turns existing Postgres, MySQL, SQLite, MongoDB or OpenAPI sources into guarded MCP

    Not checked yet
    • 11 tools
    • Open source
    • 1 GitHub star
    • Databases
  9. Mcpg

    MCP server

    PostgreSQL MCP server with 279 tools for queries, tuning and ops, read-only by default

    Runs locally
    • Open source
    • 15 GitHub stars
    • Databases
  10. PostgreSQL

    MCP server

    MCP server giving AI clients read-first access to PostgreSQL databases

    Runs locally
    • 6 tools
    • Open source
    • 25 GitHub stars
    • Databases
  11. MCP Postgres

    MCP server

    MCP server giving AI clients safe, governed access to PostgreSQL schemas and queries

    Runs locally
    • 21 tools
    • Open source
    • Databases
  12. pgops

    MCP server

    MCP server giving AI assistants guarded PostgreSQL access: queries, migrations, EXPLAIN

    Runs locally
    • 15 tools
    • Open source
    • Databases

pgleash alternatives: questions

What are the best alternatives to pgleash?

The closest alternatives to pgleash are Pgmoat, Pg Readonly MCP, Postgres Secured (Aegis Zero-Trust), pgbrake and Lokra.

Is there a free alternative to pgleash?

Yes. Pgmoat, Pg Readonly MCP, Postgres Secured (Aegis Zero-Trust) have a free or open-source option.

Compare head to head