MCP Database Doctor

v0.1.3
io.github.petrovicistefan/mcp-database-doctor Checked 7 hours ago Published 14 days ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_query

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

ParameterTypeDescription
sql *string

check_migration

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

ParameterTypeDescription
sql *string

suggest_indexes

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

ParameterTypeDescription
sql *string
existingIndexesarray

explain_plan

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

ParameterTypeDescription
plan *string

health_report

Aggregate diagnostics over supplied artifacts, not live database health.

ParameterTypeDescription
migrationsarray
plansarray
queriesarray