# PG Bloat Detective

> PG Bloat Detective is an open-source MCP server. Read-only Postgres bloat verdicts: blockers, timelines, REINDEX proof. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/r69shabh/pg-bloat-detective
- **MCP Registry name:** io.github.r69shabh/pg-bloat-detective
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add pg-bloat-detective -- uvx pg-bloat-detective
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "pg-bloat-detective": {
      "command": "uvx",
      "args": [
        "pg-bloat-detective"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "pg-bloat-detective": {
      "command": "uvx",
      "args": [
        "pg-bloat-detective"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "pg-bloat-detective": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "pg-bloat-detective"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "pg-bloat-detective": {
      "command": "uvx",
      "args": [
        "pg-bloat-detective"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "pg-bloat-detective": {
      "command": "uvx",
      "args": [
        "pg-bloat-detective"
      ]
    }
  }
}
```

## FAQ

### Is PG Bloat Detective free?

Yes. PG Bloat Detective is open source, so you can use and self-host it for free.

### How do I add PG Bloat Detective to Claude Code?

Run this command in your terminal: claude mcp add pg-bloat-detective -- uvx pg-bloat-detective

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/pg-bloat-detective
