L'Agora
MCPLocal

PostgreSQL (hardened, read-only)

io.github.Eszetael/postgres-mcp-hardened

Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.

No review yet · 0 questions Write a reviewAsk the authorFollow this entry

Is this your project? Claim this entry to answer questions, hear about reviews and appear as the author.

All projects by Eszetael

Repository
github.com/Eszetael/postgres-mcp-hardened
Website
github.com/Eszetael/postgres-mcp-hardened
Version
0.1.12
Author
Eszetael (namespace verified by the registry)
Source
Official MCP registry (updated Nov 24, 2026)

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Questions for the author

No question yet.

Sign in to ask the author a question. The author has not claimed this entry yet: they will only be told if they claim it. Other members can answer.

Continue with GoogleGet a link by email

How to install it

Variables to fill in: DATABASE_URL, MCP_STATEMENT_TIMEOUT, MCP_ALLOW_TABLES, MCP_AUDIT_LOG.

On your machine

Claude Code

The server runs on your machine (npm package). In a terminal:

claude mcp add postgres-mcp-hardened -e DATABASE_URL=YOUR_DATABASE_URL -e MCP_STATEMENT_TIMEOUT=YOUR_MCP_STATEMENT_TIMEOUT -e MCP_ALLOW_TABLES=YOUR_MCP_ALLOW_TABLES -e MCP_AUDIT_LOG=YOUR_MCP_AUDIT_LOG -- npx -y [email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "postgres-mcp-hardened": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DATABASE_URL": "YOUR_DATABASE_URL",
        "MCP_STATEMENT_TIMEOUT": "YOUR_MCP_STATEMENT_TIMEOUT",
        "MCP_ALLOW_TABLES": "YOUR_MCP_ALLOW_TABLES",
        "MCP_AUDIT_LOG": "YOUR_MCP_AUDIT_LOG"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "postgres-mcp-hardened": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DATABASE_URL": "YOUR_DATABASE_URL",
        "MCP_STATEMENT_TIMEOUT": "YOUR_MCP_STATEMENT_TIMEOUT",
        "MCP_ALLOW_TABLES": "YOUR_MCP_ALLOW_TABLES",
        "MCP_AUDIT_LOG": "YOUR_MCP_AUDIT_LOG"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "postgres-mcp-hardened": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DATABASE_URL": "YOUR_DATABASE_URL",
        "MCP_STATEMENT_TIMEOUT": "YOUR_MCP_STATEMENT_TIMEOUT",
        "MCP_ALLOW_TABLES": "YOUR_MCP_ALLOW_TABLES",
        "MCP_AUDIT_LOG": "YOUR_MCP_AUDIT_LOG"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Cite this entry

For an article or comparison, use this permanent link and include the test date. The description comes from its source; reviews belong to members. A successful test is not a security audit.

PostgreSQL (hardened, read-only) · L’Agora

[PostgreSQL (hardened, read-only) — L’Agora](https://lagora.dev/en/entry/io.github.eszetael/postgres-mcp-hardened)

Sources, methodology and limitations

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.Eszetael/postgres-mcp-hardened on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.Eszetael/postgres-mcp-hardened on L’Agora](https://lagora.dev/badge/io.github.eszetael/postgres-mcp-hardened.svg?lang=en)](https://lagora.dev/en/entry/io.github.eszetael/postgres-mcp-hardened)

HTML

<a href="https://lagora.dev/en/entry/io.github.eszetael/postgres-mcp-hardened"><img src="https://lagora.dev/badge/io.github.eszetael/postgres-mcp-hardened.svg?lang=en" alt="io.github.Eszetael/postgres-mcp-hardened on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

Report this entry