MCP PostgreSQL Ops
Read-only PostgreSQL monitoring and analysis through natural-language MCP tools, covering performance, bloat, locks, schemas, VACUUM, and replication.
Install MCP PostgreSQL Ops
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"mcp-postgresql-ops": {
"command": "uvx",
"args": [
"--python",
"3.12",
"mcp-postgresql-ops"
],
"env": {
"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"
}
}
}
}
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_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 --transport stdio mcp-postgresql-ops -- uvx --python 3.12 mcp-postgresql-opsRun in your terminal. Add --scope project to share it with your team through .mcp.json.
We couldn’t confirm it starts correctly
We hit an unexpected error while testing this listing automatically.
uvx --python 3.12 mcp-postgresql-opsRate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'
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
- Inspect active connections and blocking locks
- Find slow PostgreSQL queries
- Analyze table and database bloat
- Review VACUUM and autovacuum needs
- Explore schemas and table relationships
Key features
- Read-only PostgreSQL monitoring
- Performance and slow-query analysis
- Bloat, capacity, and maintenance inspection
- Lock, connection, and deadlock monitoring
- Schema and relationship discovery
- Replication, WAL, and version-aware I/O metrics
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 8d ago via OSV.dev · mcp-postgresql-ops (PyPI)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How MCP PostgreSQL Ops 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 MCP PostgreSQL Ops
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/mcp-postgresql-ops)<a href="https://allmcps.com/mcp/mcp-postgresql-ops"><img src="https://allmcps.com/api/badge/mcp-postgresql-ops?style=directory" alt="MCP PostgreSQL Ops on AllMCPs" /></a>