Leash vs Pg Readonly MCP
Leash is a free MCP server for security. Pg Readonly MCP is an open-source MCP server for databases.
- Leash is best for stop an ai sharing a private file publicly.
- Pg Readonly MCP is best for let an agent explore a production schema safely.
- What it is
- Leash is a free MCP server for security.Pg Readonly MCP is an open-source MCP server for databases.
- Best for
- Stop an AI sharing a private file publiclyLet an agent explore a production schema safely
- Kind
- MCP serverMCP server
- Pricing
- FreeOpen source
- Platforms
- API, CLICLI, self-hosted
- Runs
- RemotelyLocally
- GitHub stars
- 1
- Last commit
- Nov 2026
- Open source
- Good for
- Stop an AI sharing a private file publicly; Review what an assistant read in your accounts; Undo a file move made by an assistantLet an agent explore a production schema safely; Answer data questions with SELECT-only access; Replace a read-only transaction approach with a parser-based guard
What Leash does
Action approval
Approve or block sensitive actions before they run.
Activity history
See what the AI touched, kept for 90 days.
Per-AI access
Give each AI its own rules and disconnect any time.
Supported undo
Restore reversible changes while undo is enabled.
Content checks
Stops items such as passwords in outgoing email.
Connection check
check_connection verifies setup without personal data.
What Pg Readonly MCP does
SQL parsed, not scanned
Builds a syntax tree instead of pattern-matching text.
Single statement only
Multi-statement payloads are refused before reaching the database.
Deep write detection
Walks the whole tree to find writes hidden inside CTEs.
Startup privilege check
Refuses roles with superuser, create or non-SELECT grants.
Row caps and timeout
Limits the cost of legal but heavy queries.
Honest limits
Documents what the guards cannot catch.
Leash vs Pg Readonly MCP: questions
Is Leash or Pg Readonly MCP cheaper?
Both are free. Compare current plans on each official site.
What is the difference between Leash and Pg Readonly MCP?
Leash is a free MCP server for security. Pg Readonly MCP is an open-source MCP server for databases.