Skip to content
InfratoApp
InfratoApp / Resources / MCP servers / postgres-mcp-hardened

postgres-mcp-hardened

postgres-mcp-hardened is an MCP server, listed under databases. It reaches postgres and postgresql. It needs MCP_BEARER_TOKEN to authenticate. Its repository has 3 GitHub stars and is licensed under MIT; we last read it on 2026-10-23.

This repository provides a secure read-only PostgreSQL MCP server implemented in Rust, serving as a hardened alternative to the deprecated @modelcontextprotocol/server-postgres.

Install

Read from postgres-mcp-hardened’s own README, close to verbatim -- not written by us, and not guessed.

npx postgres-mcp-hardened --validate "SELECT * FROM orders WHERE id = 1"

What it reaches, and what it needs

Reaches
postgres, postgresql
Credential
MCP_BEARER_TOKEN

Maintenance

Stars
3
State
listed
Licence
MIT
From the repository

Secure read-only PostgreSQL MCP server in Rust — a hardened alternative to the deprecated @modelcontextprotocol/server-postgres.

postgres-mcp-hardened compared with similar servers

postgres-mcp-hardened compared with the closest alternatives, by services reached, credentials, stars, last update and licence
ServerReachesNeedsStarsLast updateLicence
postgres-mcp-hardened (this page)postgres, postgresqlMCP_BEARER_TOKEN32026-10-18MIT
Easy-Postgres-MCPpostgres, postgresql(2 shared)None listed132025-06-15—
dbhubmysql, postgres, sqlite(1 shared)None listed3,7022026-10-21MIT
mcp-alchemymysql, postgresql, sqlite(1 shared)None listed4222026-10-15MPL-2.0
tiger-clipostgres(1 shared)None listed1262026-10-24Apache-2.0
pluggedin-appnext, nextauth, pluggedin, postgres, redis(1 shared)NEXTAUTH_SECRET, NEXT_SERVER_ACTIONS_ENCRYPTION_KEY, PLUGGEDIN_API_KEY, POSTGRES_PASSWORD, REDIS_PASSWORD1032026-10-21MIT

Ranked by services in common with postgres-mcp-hardened, then by stars. Figures are from each repository when we last read it.

Common questions about postgres-mcp-hardened

What does postgres-mcp-hardened do?
This repository provides a secure read-only PostgreSQL MCP server implemented in Rust, serving as a hardened alternative to the deprecated @modelcontextprotocol/server-postgres.
How do I install postgres-mcp-hardened?
Its own README gives this command: npx postgres-mcp-hardened --validate "SELECT * FROM orders WHERE id = 1". Run it where your MCP client can launch the server, and check the README for any settings it asks for.
What does postgres-mcp-hardened connect to, and what does it need?
It reaches postgres and postgresql. The credentials we found in its source are MCP_BEARER_TOKEN.
Is postgres-mcp-hardened official and is it maintained?
We found nothing naming it as a vendor’s official server. Its repository has 3 GitHub stars and its state in our directory is listed. Its last commit we recorded was on 2026-10-18.
What licence does postgres-mcp-hardened use?
The repository declares the MIT licence.

More MCP servers for databases

All databases entries →

Learn this on Infrato