PG Bloat Detective

v0.1.6
io.github.r69shabh/pg-bloat-detective Checked 5 hours ago Published 1 month ago

Read-only Postgres bloat verdicts: blockers, timelines, REINDEX proof.

Values you need

VariableWhat it is
BLOAT_DSNoptional Postgres DSN (read-only enforced: 5s statement timeout, read-only tx) Default: dbname=bloatdemo user=postgres host=localhost port=5433
BLOAT_DBoptional SQLite timeline file written by bloatdetective collect Default: timeline.db

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add pg-bloat-detective -- uvx --from pg-bloat-detective==0.1.6 bloat-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "pg-bloat-detective": {
      "args": [
        "--from",
        "pg-bloat-detective==0.1.6",
        "bloat-mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "pg-bloat-detective": {
      "args": [
        "--from",
        "pg-bloat-detective==0.1.6",
        "bloat-mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "pg-bloat-detective": {
      "args": [
        "--from",
        "pg-bloat-detective==0.1.6",
        "bloat-mcp"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.pg-bloat-detective]
command = "uvx"
args = ["--from", "pg-bloat-detective==0.1.6", "bloat-mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: bloat_check, bloat_collect, bloat_timeline, bloat_blockers, bloat_live_diagnose.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json