Install Postgres (read-only transactions) in Claude Code
npm
claude mcp add postgres-read-only-safe -- npx -y postgres-mcp-safe{
"mcpServers": {
"postgres-read-only-safe": {
"command": "npx",
"args": [
"-y",
"postgres-mcp-safe"
]
}
}
}Docker
claude mcp add postgres-read-only-safe -- docker run -i --rm ghcr.io/poudel0/postgres-mcp-safe:0.1.3{
"mcpServers": {
"postgres-read-only-safe": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/poudel0/postgres-mcp-safe:0.1.3"
]
}
}
}Frequently asked questions
What does the Postgres (read-only transactions) MCP server do?
Drop-in replacement for @modelcontextprotocol/server-postgres that is actually read-only.
Is the Postgres (read-only transactions) MCP server free?
Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.
Does Postgres (read-only transactions) run locally or remotely?
Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.
How do I add Postgres (read-only transactions) to Claude Code?
Run: claude mcp add postgres-read-only-safe -- npx -y postgres-mcp-safe
More databases MCP servers
View allVibeRaven (hosted)
ohad6k/VibeRaven
Runs your Supabase SQL with two users at once to find double bookings; checks RLS, keys, webhooks.
ČSFD
bartholomej/node-csfd-api
Movies, TV series, creators and user ratings from ČSFD.cz, the Czech-Slovak film database
MotherDuck
motherduckdb/agent-skills
Hosted MotherDuck MCP server: explore data, run DuckDB SQL, and build Dives and Flights.
Superset
bintocher/mcp-superset
Apache Superset: dashboards, charts, datasets, SQL Lab, security (users, roles, RLS, groups) and permissions audit, with built-in safety validations.
Ashlr Stack
ashlrai/ashlr-stack
Provision and connect third-party dev services (Supabase, Vercel, and more) from your coding agent.
go Mysql
Zhwt/go-mcp-mysql
MySQL access with a configurable read-only mode and schema inspection.