Postgres MCP
by JaviMaligno
Query, inspect, analyze, and optionally modify PostgreSQL databases through MCP with read-only defaults and data-redaction controls.
Install Postgres MCP
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"javimaligno-postgres-mcp": {
"command": "npx",
"args": [
"@javiagui/postgresql-mcp"
],
"env": {
"POSTGRES_CONNECTIONS": "YOUR_VALUE_HERE",
"POSTGRES_HOST": "YOUR_VALUE_HERE",
"POSTGRES_PORT": "YOUR_VALUE_HERE",
"POSTGRES_USER": "YOUR_VALUE_HERE",
"POSTGRES_PASSWORD": "YOUR_VALUE_HERE",
"POSTGRES_DB": "YOUR_VALUE_HERE",
"POSTGRES_SSLMODE": "YOUR_VALUE_HERE",
"ALLOW_WRITE_OPERATIONS": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
claude mcp add --env POSTGRES_CONNECTIONS=YOUR_VALUE_HERE --env POSTGRES_HOST=YOUR_VALUE_HERE --env POSTGRES_PORT=YOUR_VALUE_HERE --env POSTGRES_USER=YOUR_VALUE_HERE --env POSTGRES_PASSWORD=YOUR_VALUE_HERE --env POSTGRES_DB=YOUR_VALUE_HERE --env POSTGRES_SSLMODE=YOUR_VALUE_HERE --env ALLOW_WRITE_OPERATIONS=YOUR_VALUE_HERE --transport stdio javimaligno-postgres-mcp -- npx @javiagui/postgresql-mcpRun in your terminal. Add --scope project to share it with your team through .mcp.json.
We couldn’t confirm it starts correctly
We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.
npx @javiagui/postgresql-mcpNo response to initialize.
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .
Overview
Use cases
- Explore PostgreSQL schemas and table relationships
- Run read-only SQL investigations
- Inspect query execution plans and table health
- Analyze indexes, constraints, and database structure
- Enable controlled writes for selected connections
Key features
- Read-only SQL queries by default
- Optional INSERT, UPDATE, and DELETE execution
- Schema, table, view, function, index, and constraint inspection
- Query plans and table statistics
- Multiple aliased PostgreSQL connections
- PII detection and column-level result masking
Tools15
What Postgres MCP lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
What it can do
From the 15 tools this server returned when we ran it.
Observed 2026-11-13 in an isolated sandbox. A description of reach, not a security audit.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 14d ago via OSV.dev · @javiagui/postgresql-mcp (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Postgres MCP works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Postgres MCP
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/javimaligno-postgres-mcp)<a href="https://allmcps.com/mcp/javimaligno-postgres-mcp"><img src="https://allmcps.com/api/badge/javimaligno-postgres-mcp?style=directory" alt="Postgres MCP on AllMCPs" /></a>