pg-checkup

v0.1.0
io.github.pgcheckup/pg-checkup Checked 2 days ago Published 7 days ago

Read-only PostgreSQL checkups for your AI assistant.

Values you need

VariableWhat it is
DATABASE_URLrequired secret Connection string of a statistics-only login (pg-checkup role prints the SQL to create one). Read from the environment; never sent through the chat.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add pg-checkup -e 'DATABASE_URL=<DATABASE_URL>' -- npx -y pg-checkup-mcp@0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "pg-checkup": {
      "args": [
        "-y",
        "pg-checkup-mcp@0.1.0"
      ],
      "command": "npx",
      "env": {
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "pg-checkup": {
      "args": [
        "-y",
        "pg-checkup-mcp@0.1.0"
      ],
      "command": "npx",
      "env": {
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "DATABASE_URL",
      "id": "database-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "pg-checkup": {
      "args": [
        "-y",
        "pg-checkup-mcp@0.1.0"
      ],
      "command": "npx",
      "env": {
        "DATABASE_URL": "${input:database-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.pg-checkup]
command = "npx"
args = ["-y", "pg-checkup-mcp@0.1.0"]
env = { "DATABASE_URL" = "<DATABASE_URL>" }

For AI agents

  1. Ask the user for: DATABASE_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: checkup, show_checkup, explain_finding, handoff, compare_checkups, monitoring_role_sql, schedule_ci.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json