PostgreSQL (hardened, read-only)
io.github.Eszetael/postgres-mcp-hardened
About PostgreSQL (hardened, read-only)
PostgreSQL (hardened, read-only) is an MCP server published by the GitHub account Eszetael. Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.
It runs on your own machine: your AI client starts it from the npm package postgres-mcp-hardened at version 0.1.10.
It asks for one secret: DATABASE_URL. Give it a key with the least access that still works.
Version 0.1.10 was published on 4 September 2026, and the source code is public, so you can read it before installing.
Written from the registry entry. 9 automated checks on the registry entry and the package code: 6 pass, 1 warn, 0 fail, 2 info. How we check.
What it asks for
| Variable | Required | Secret | Description |
|---|---|---|---|
DATABASE_URL | Yes | Yes | Connection string for the role the server connects as. Use a role that cannot write — the server refuses writes twice, but a read-only role is the layer that does not depend on us being correct. `--print-setup-sql` prints the SQL that creates one. |
MCP_STATEMENT_TIMEOUT | No | No | Server-side statement timeout, e.g. `5s`. A question that would pin the database is cancelled by PostgreSQL, not by hope. |
MCP_ALLOW_TABLES | No | No | Comma-separated allowlist. A table off the list is refused by name, and hiding it inside a CTE, a view or a join does not help. |
MCP_AUDIT_LOG | No | No | Path to the tamper-evident audit log. Entries are chained by hash and survive a restart; `--verify-audit` checks the chain against an off-host anchor. |
MCP_ADDR | No | No | Address to bind, default 127.0.0.1:8080. |
Checks
| Check | Result | Detail |
|---|---|---|
| Source repository linked | Pass | https://github.com/Eszetael/postgres-mcp-hardened |
| Version pinned | Pass | Every package has an explicit version |
| Secrets requested | Info | Asks for 1 secret: DATABASE_URL |
| Known package registry | Pass | All packages come from npm, PyPI, OCI, NuGet or MCPB |
| Namespace ownership | Info | Name verified via GitHub account Eszetael |
| Registry text aimed at the AI | Pass | Description and settings contain no hidden characters or instructions to the AI |
| Install scripts | Warn | Runs at install: postinstall: node scripts/postinstall.js |
| Code red flags | Pass | Read 7 files in postgres-mcp-hardened@0.1.10: no obfuscation, encoded execution, credential reads or data-collection endpoints found |
| Text aimed at the AI | Pass | No hidden characters or instructions to the AI in 7 files, including comments and the README |
Popularity & health: 61 / 100
Worked out from public numbers and our own checks, not from user reviews or ratings. It says how used and how looked-after a server is, not whether it is safe.
0 forks, 1 merged pull requests. Sources: GitHub, npm, PyPI (pypistats.org) and Hacker News (Algolia), fetched 2026-10-31.
What people say
No Hacker News threads link to its source code.
Look further: search Reddit, search Hacker News, read its GitHub issues. These are not reviews we checked.
Facts
| Registry name | io.github.Eszetael/postgres-mcp-hardened |
|---|---|
| Publisher | GitHub account Eszetael |
| How the name is verified | Name verified via GitHub account Eszetael. The registry ties the name prefix to that account or domain; it does not check the code. |
| Type | Local: runs on your machine from a package |
| Packages | npm postgres-mcp-hardened 0.1.10 (stdio)oci ghcr.io/eszetael/postgres-mcp-hardened:0.1.10 no version given (streamable-http) |
| Version | 0.1.10 |
| Published | |
| Last updated | |
| Source repository | https://github.com/Eszetael/postgres-mcp-hardened |
| Website | https://github.com/Eszetael/postgres-mcp-hardened |
| Category | Databases & data (assigned by keyword rule, not by hand) |
Related servers in Databases & data
- LogCarver4/4Read-only MCP server that finds deleted SQL Server rows from the…
- pgport7/7Read-only SQL queries against a PostgreSQL database.
- codeDB Lens4/4Read-only health checks and data questions for SQL Server and…
- DB Explorer7/7Read-only SQL for PostgreSQL, MySQL and SQLite: schema, safe…
- Universal DB (read-only)4/4Read-only, guarded SQL access for AI agents: PostgreSQL, MySQL,…
Faucet7/7SQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL…