LocalFree

Postgres (read-only transactions) MCP server

Poudel0/postgres-mcp-safe

Drop-in replacement for @modelcontextprotocol/server-postgres that is actually read-only.

1 GitHub stars1,941 npm downloads / month

Install Postgres (read-only transactions) in Claude Code

npm

Claude Code
claude mcp add postgres-read-only-safe -- npx -y postgres-mcp-safe
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "postgres-read-only-safe": {
      "command": "npx",
      "args": [
        "-y",
        "postgres-mcp-safe"
      ]
    }
  }
}

Docker

Claude Code
claude mcp add postgres-read-only-safe -- docker run -i --rm ghcr.io/poudel0/postgres-mcp-safe:0.1.3
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "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 all