PG Bloat Detective
v0.1.6Read-only Postgres bloat verdicts: blockers, timelines, REINDEX proof.
Values you need
| Variable | What it is | |
|---|---|---|
BLOAT_DSN | optional | Postgres DSN (read-only enforced: 5s statement timeout, read-only tx) Default: dbname=bloatdemo user=postgres host=localhost port=5433 |
BLOAT_DB | optional | 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-mcpAdd 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: bloat_check, bloat_collect, bloat_timeline, bloat_blockers, bloat_live_diagnose.
- 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