1. Conduid
  2. Data
  3. Safe Postgres
MCP server · Data

Safe Postgres

Safety-first, read-only PostgreSQL MCP server. Read-only isn't a regex — it's enforced by Postgres itself (READ ONLY transactions, statement timeouts, row caps). One npx command to give AI agents safe access to your database.

37Low

Scored a month ago · breakdown

About Safe Postgres

Safe Postgres is an MCP server published by samuel-cabral in the Data category: safety-first, read-only PostgreSQL MCP server. Read-only isn't a regex — it's enforced by Postgres itself (READ ONLY transactions, statement timeouts, row caps). One npx command to give AI agents safe access to your database.

Recent commit activity is the strongest signal that reported issues will get attention.

Install

Claude Code
claude mcp add safe-postgres -- npx -y safe-postgres-mcp
npx
npx -y safe-postgres-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (5)

describe_tableFull description of one table/view: columns (type, nullability, default), primary key, foreign keys, and indexes.

Parameters not published.

explain_queryReturn the query plan via `EXPLAIN (FORMAT JSON)` **without** running the query. `ANALYZE`/`ANALYSE` is rejected (it would execute the target), and the statement is sent as a prepared statement inside a `READ ONLY` transaction. Inspect cost/joins/index usage before paying for the query.

Parameters not published.

list_schemasList all non-system schemas with their owner.

Parameters not published.

list_tablesList tables, views, and materialized views in a schema with **approximate** row counts (from planner stats — fast, no full scan) and on-disk size.

Parameters not published.

queryRun a single read-only SQL statement inside a `READ ONLY` transaction. A `LIMIT` is injected if you omit one; returns rows, field types, and a `truncated` flag.

Parameters not published.

Ask AI

✦

Ask AI about Safe Postgres

Powered by Claude · Grounded in docs

I know everything about Safe Postgres. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

6 checks have not been run yet.

Questions

About Safe Postgres

How do I install Safe Postgres?

Run claude mcp add safe-postgres -- npx -y safe-postgres-mcp, then add the server to your MCP client's configuration.

Is Safe Postgres safe to use with an AI agent?

Its trust score is 37 out of 100 (low). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Safe Postgres still maintained?

Yes — the last commit was 2 months ago. The repository has 0 stars and 0 forks.