DBA Checkup

v0.2.0
io.github.vickm26/dba-checkup-mcp Checked 1 day ago Published 1 day ago

Read-only PostgreSQL and Oracle health checks for AI assistants: fixed DBA checks, no free-form SQL.

Values you need

VariableWhat it is
DBA_CHECKUP_DATABASE_URLrequired secret Read-only monitoring login: postgres://user:pass@host:5432/db or oracle://user:pass@host:1521/SERVICE
DBA_CHECKUP_QUERY_TEXToptional masked (default), full or off: how much statement text to show
DBA_CHECKUP_ALLOW_EXPLAINoptional 1 to enable explain_query (PostgreSQL, plans only)

npm (npx) discovery passed

Requires Node.js 18+

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

For AI agents

  1. Ask the user for: DBA_CHECKUP_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: health_report, overview, active_sessions, blocking_locks, top_queries, storage, index_health, maintenance, ….
  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