PG Bloat Detective
Read-only PostgreSQL bloat analysis with blocker evidence, index checks, timelines, reports, and MCP tools.
Install PG Bloat Detective
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"pg-bloat-detective": {
"command": "uvx",
"args": [
"pg-bloat-detective"
]
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
claude mcp add --transport stdio pg-bloat-detective -- uvx pg-bloat-detectiveRun in your terminal. Add --scope project to share it with your team through .mcp.json.
Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.
Overview
Use cases
- Investigate why autovacuum is falling behind on a PostgreSQL table
- Identify the session or slot preventing VACUUM from reclaiming dead tuples
- Find indexes that need REINDEX instead of another VACUUM
- Track bloat findings across repeated PostgreSQL snapshots
- Expose index bloat and scan metrics to Prometheus and Grafana
Key features
- Read-only PostgreSQL collection with a five-second statement timeout
- SQLite timeline storage for repeated snapshots
- Table and index verdicts with PID and query evidence
- Index bloat checks guarded by a configurable size limit
- MCP stdio server with live and timeline-based diagnostics
- Prometheus metrics and HTML, JSON, and dashboard reporting
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 16h ago via OSV.dev · pg-bloat-detective (PyPI)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How PG Bloat Detective 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 PG Bloat Detective
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/pg-bloat-detective)<a href="https://allmcps.com/mcp/pg-bloat-detective"><img src="https://allmcps.com/api/badge/pg-bloat-detective?style=directory" alt="PG Bloat Detective on AllMCPs" /></a>