# MCP Database Doctor (npm · mcp-database-doctor)

Offline PostgreSQL query, migration and EXPLAIN diagnostics for AI agents.

- Trust score: 75/100 (medium)
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-10-16

## Components

- npm · `mcp-database-doctor`: 75/100 (this document), [markdown](https://verifymcp.io/servers/petrovicistefan-mcp-database-doctor/mcp-database-doctor.md), [page](https://verifymcp.io/servers/petrovicistefan-mcp-database-doctor/mcp-database-doctor)

## Channel facts

- Registry: `npm`
- Package: `mcp-database-doctor`
- Version: `0.1.1`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-10-16.

- **Supply Chain Security**: 98/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - 31 of 93 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to petrovicistefan/mcp-database-doctor).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 7 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 60/100
  - AI-judged instruction clarity (fair).
  - Tool/resource definitions use about 191 tokens (~38/item across 5 items; 5 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 67/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 0% of tool parameters carry a description.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 5 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 5 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### How do I install the MCP Database Doctor server?

MCP Database Doctor runs locally as an npm package, launched with npx -y mcp-database-doctor. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add petrovicistefan-mcp-database-doctor -- npx -y mcp-database-doctor
```

### Cursor

```json
{
  "mcpServers": {
    "petrovicistefan-mcp-database-doctor": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-database-doctor"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "petrovicistefan-mcp-database-doctor": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-database-doctor"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add petrovicistefan-mcp-database-doctor -- npx -y mcp-database-doctor
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "petrovicistefan-mcp-database-doctor": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "mcp-database-doctor"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add petrovicistefan-mcp-database-doctor --command npx --arg -y --arg mcp-database-doctor
```

### Hermes

```yaml
mcp_servers:
  petrovicistefan-mcp-database-doctor:
    command: "npx"
    args: ["-y", "mcp-database-doctor"]
```

### Netclaw

```json
{
  "McpServers": {
    "petrovicistefan-mcp-database-doctor": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "mcp-database-doctor"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add petrovicistefan-mcp-database-doctor -t stdio -c npx -a -y mcp-database-doctor
```

### Other

```json
{
  "mcpServers": {
    "petrovicistefan-mcp-database-doctor": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-database-doctor"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-10-14 (score 75, +26)

- [security improvement] Injection markers: unverified → pass
- [security] First check of Judged manipulation: pass
- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [functional improvement] Tool coverage: unverified → 100
- [functional improvement] MCP protocol: unverified → pass
- [functional] First check of Tool coverage: 0
- [functional] First check of Schema quality: fail
- [functional] First check of Schema quality: fair
- [functional] First check of Destructive annotations: pass
- [functional] First check of Schema quality: pass

### 2026-10-13 (score 49, 0)

- [functional regression] Security disclosure: unverified → fail

### 2026-10-12 (score 49)

First indexed and scored.

## MCP tools (5)

### `analyze_query` (~33 tokens)

Offline PostgreSQL SQL heuristics. No execution; no finding is not proof of safety.

Input parameters:

- `sql` (string, required)

### `check_migration` (~37 tokens)

Review PostgreSQL migration SQL for destructive operations, lock/rewrite risks and transaction conflicts. Does not execute.

Input parameters:

- `sql` (string, required)

### `suggest_indexes` (~44 tokens)

Conservative index candidates for single unquoted table queries. Requires EXPLAIN validation; never applies DDL.

Input parameters:

- `existingIndexes` (array)
- `sql` (string, required)

### `explain_plan` (~37 tokens)

Interpret a supplied PostgreSQL EXPLAIN FORMAT JSON plan. Does not run EXPLAIN ANALYZE.

Input parameters:

- `plan` (string, required)

### `health_report` (~40 tokens)

Aggregate diagnostics over supplied artifacts, not live database health.

Input parameters:

- `migrations` (array)
- `plans` (array)
- `queries` (array)

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/petrovicistefan-mcp-database-doctor/mcp-database-doctor#diagnostics

## Score history

- 2026-10-16: 75
- 2026-10-15: 75
- 2026-10-14: 75
- 2026-10-13: 49
- 2026-10-12: 49

## Common questions

### What is the MCP Database Doctor server?

MCP Database Doctor is listed in the public MCP registry as io.github.petrovicistefan/mcp-database-doctor. Offline PostgreSQL query, migration and EXPLAIN diagnostics for AI agents. This page covers its npm package (mcp-database-doctor).

### Is the MCP Database Doctor server safe to use?

MCP Database Doctor scores 75 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 16 October 2026. It declares no install or post-install scripts. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the MCP Database Doctor server expose?

MCP Database Doctor exposes 5 tools: analyze_query, check_migration, suggest_indexes, explain_plan, health_report. Their descriptions and schemas cost roughly 191 tokens of context every time the server is loaded.

### Is the MCP Database Doctor server still maintained?

MCP Database Doctor is still listed as active in the MCP registry. We last reached this channel on 16 October 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the MCP Database Doctor server under?

MCP Database Doctor declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

## Links

- npm package: https://www.npmjs.com/package/mcp-database-doctor
- Socket report: https://socket.dev/npm/package/mcp-database-doctor
- Repository: https://github.com/petrovicistefan/mcp-database-doctor
- Changelog RSS feed: https://verifymcp.io/servers/petrovicistefan-mcp-database-doctor/mcp-database-doctor.xml
- Changelog JSON feed: https://verifymcp.io/servers/petrovicistefan-mcp-database-doctor/mcp-database-doctor.json
- HTML version of this page: https://verifymcp.io/servers/petrovicistefan-mcp-database-doctor/mcp-database-doctor
