Enterprise PostgreSQL MCP secured by Aegis Zero-Trust to block unauthorized SQL injections.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"postgres": {
"env": {
"DATABASE_URI": "postgresql://username:password@localhost:5432/dbname"
},
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI",
"crystaldba/postgres-mcp",
"--access-mode=unrestricted"
],
"command": "docker"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This is the mathematically secured distribution of crystaldba/postgres-mcp, designed for Enterprise Production environments (SOC2/HIPAA).
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'postgres-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked postgres-mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in data
Query and manage PostgreSQL databases directly from AI assistants
Manage Supabase projects — databases, auth, storage, and edge functions
Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
MCP Security Weekly
Get CVE alerts and security updates for io.github.Yash-0620/postgres-mcp-secured and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
This is the mathematically secured distribution of crystaldba/postgres-mcp, designed for Enterprise Production environments (SOC2/HIPAA).
⚠️ Security Warning: Exposing raw PostgreSQL MCP servers directly to LLMs presents a critical prompt-injection liability.
This distribution embeds the Aegis Ed25519 Edge Proxy directly into the Docker pipeline. It intercepts the JSON-RPC payload and mathematically blocks unauthorized DROP, DELETE, and ALTER commands in <2ms before they ever reach the database connection.
docker-compose up -d
All MCP traffic must now be routed through http://localhost:8080 with a valid X-Aegis-IBCT signature.
⚖️ Open-Source Attribution: This repository is an independent, mathematically hardened distribution of the official CrystalDBA Postgres MCP Server. It is maintained by the Aegis Security Protocol team to provide a SOC2/HIPAA-compliant deployment pathway for enterprise environments.
Postgres MCP Pro is an open source Model Context Protocol (MCP) server built to support you and your AI agents throughout the entire development process—from initial coding, through testing and deployment, and to production tuning and maintenance.
Postgres MCP Pro does much more than wrap a database connection.
Features include:
Postgres MCP Pro supports both the Standard Input/Output (stdio) and Server-Sent Events (SSE) transports, for flexibility in different environments.
For additional background on why we built Postgres MCP Pro, see our launch blog post.
From Unusable to Lightning Fast