Mmcp.market

MCP Database Doctor MCP server

by petrovicistefan·io.github.petrovicistefan/mcp-database-doctor·v0.1.1

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

A92/100grade A
What users say
No reviews yet
Be the first
Safety scan
A92/100

full report

Adoption
New

0 stars

Reviews

Write one

Nobody has reviewed MCP Database Doctor yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

MCP Database Doctor tools (5)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • analyze_query

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

  • check_migration

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

  • explain_plan

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

  • health_report

    Aggregate diagnostics over supplied artifacts, not live database health.

  • suggest_indexes

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

Public scan report

scanner v0.1.10 · 2026-10-09 · same rubric, same numbers if you re-run it

no findings
  • Code scan9 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 0 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 92/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

Install MCP Database Doctor in Claude Code, Cursor or VS Code

Runs npx -y mcp-database-doctor on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add mcp-database-doctor -- npx -y mcp-database-doctor
Add to Cursor

What the publisher says

From the MCP Database Doctor repository's README, as published. We do not edit it. Read it on GitHub

MCP Database Doctor

Offline PostgreSQL diagnostics for AI coding agents. Review SQL, risky migrations, candidate indexes and supplied EXPLAIN JSON plans without database credentials or executing statements.

Status: 0.1.0 MVP. Static rules are heuristic: norulestriggered does not mean safe, performant or valid PostgreSQL. No telemetry, remote analysis, credentials or automatic fixes.

Install in your AI client

Works with any MCP client over stdio; no account or API key needed for the local server.

Claude Code

claude mcp add database-doctor -- npx -y mcp-database-doctor

Codex CLI

codex mcp add database-doctor -- npx -y mcp-database-doctor

Claude Desktop, Cursor, Windsurf, Cline, Gemini CLI — add to the client's MCP config (claudedesktopconfig.json, ~/.cursor/mcp.json, ~/.codeium/windsurf/mcp_config.json, Cline MCP settings, ~/.gemini/settings.json):

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

VS Code / GitHub Copilot — .vscode/mcp.json:

{
  "servers": {
    "database-doctor": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-database-doctor"
      ]
    }
  }
}

Zed — settings.json:

{
  "context_servers": {
    "database-doctor": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-database-doctor"
      ]
    }
  }
}

Tools

Reports include code, severity, message, recommendation, and statement numbers for SQL. No synthetic database health score.

Development

Node.js >=22.18 (Node 24 recommended).

npm install
npm run check
npm test
npm run build
npm run test:integration
npm pack --dry-run

Core tests run without installed dependencies using Node's native TypeScript stripping. Vitest integration tests exercise the official MCP client over stdio after build. CI runs both. Generate and commit a package-lock.json after the first successful dependency installation; current checkout does not include one because npm access was blocked in the implementation environment.

Claude Code / Cursor

Build locally first. Copy examples/mcp.json into your client's MCP configuration and replace the absolute checkout path:

{
  "mcpServers": {
    "database-doctor": {
      "command": "node",
      "args": ["/absolute/path/mcp-database-doctor/dist/server.js"]
    }
  }
}

Claude Code CLI alternative:

claude mcp add database-doctor -- node /absolute/path/mcp-database-doctor/dist/server.js

Launch with npx -y mcp-database-doctor.

Suggested agent instruction: "Before proposing database changes, call checkmigration. Review slow queries with analyzequery and supplied EXPLAIN JSON. Treat index DDL as candidates requiring workload validation."

Examples

check_migration({"sql":"BEGIN; CREATE INDEX CONCURRENTLY ON users(email); COMMIT;"}) identifies an invalid transaction context.

analyzequery({"sql":"SELECT FROM users OFFSET 50000"}) flags projection and deep pagination.

explain_plan({"plan":"[{\"Plan\":{\"Node Type\":\"Seq Scan\",\"Plan Rows\":20000}}]"}) flags a scan for review; it does not claim an index is necessarily better.

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

MCP Database Doctor: common questions

Is MCP Database Doctor MCP server safe?
Yes, by our scan: it is graded A (92/100). Read the MCP Database Doctor safety report
How do I install MCP Database Doctor?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does MCP Database Doctor need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is MCP Database Doctor maintained?
The last commit was 4 days ago (2026-10-09). The latest release is v0.1.1.
What can I use instead of MCP Database Doctor?
Servers from other publishers that do the same job: DBHub MCP server, PostgreSQL MCP Server and Read Only Local Postgres MCP server. Compare all MCP Database Doctor alternatives.

Alternatives to MCP Database Doctor

Same job from other publishers: the closest match first, then the best rated.

All MCP Database Doctor alternatives →
  • DBHub
    Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
    A
  • PostgreSQL MCP Server
    PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants
    B
  • Read Only Local Postgres
    MCP server for read-only PostgreSQL database queries in Claude Desktop
    A
  • Dbmcp
    Database MCP server for MySQL, MariaDB, PostgreSQL & SQLite with PII redaction and write-prevention
    B
  • DB Connect MCP
    Multi-database MCP server for PostgreSQL, MySQL, and ClickHouse
    B

More from petrovicistefan →