PG Bloat Detective MCP
A read-only PostgreSQL bloat analysis tool that identifies table bloat causes, vacuum blockers, and index bloat. It provides verdicts with PID and query evidence, supports timeline snapshots via SQLite, and integrates with Prometheus, Grafana, and a Next.js dashboard. It works on RDS, Neon, Supabase, and self-hosted Postgres 12-17 without writing to production.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Identify why a table is bloated and if VACUUM is blocked
- Detect index bloat requiring REINDEX
- Find idle transactions blocking autovacuum
- Generate HTML reports with bloat evidence
Source and maintenance
- Last repository push
- Latest release
- v0.1.4
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
pg-bloat-detective 0.1.6
{
"version": "0.1.6",
"transport": "stdio",
"identifier": "pg-bloat-detective",
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"environmentVariables": [
{
"name": "BLOAT_DSN",
"default": "dbname=bloatdemo user=postgres host=localhost port=5433",
"description": "Postgres DSN (read-only enforced: 5s statement timeout, read-only tx)"
},
{
"name": "BLOAT_DB",
"default": "timeline.db",
"description": "SQLite timeline file written by bloatdetective collect"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"pg-bloat-detective-mcp": {
"command": "uvx",
"args": [
"pg-bloat-detective==0.1.6"
],
"env": {
"BLOAT_DSN": "<YOUR_BLOAT_DSN>",
"BLOAT_DB": "<YOUR_BLOAT_DB>"
}
}
}
}Cline
{
"mcpServers": {
"pg-bloat-detective-mcp": {
"command": "uvx",
"args": [
"pg-bloat-detective==0.1.6"
],
"env": {
"BLOAT_DSN": "<YOUR_BLOAT_DSN>",
"BLOAT_DB": "<YOUR_BLOAT_DB>"
}
}
}
}VS Code
{
"servers": {
"pg-bloat-detective-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"pg-bloat-detective==0.1.6"
],
"env": {
"BLOAT_DSN": "<YOUR_BLOAT_DSN>",
"BLOAT_DB": "<YOUR_BLOAT_DB>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"pg-bloat-detective-mcp": {
"command": "uvx",
"args": [
"pg-bloat-detective==0.1.6"
],
"env": {
"BLOAT_DSN": "<YOUR_BLOAT_DSN>",
"BLOAT_DB": "<YOUR_BLOAT_DB>"
}
}
}
}Let your agent find its tools
Find servers like PG Bloat Detective MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.