MCP Database Doctor
v0.1.3Offline 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.
| Parameter | Type | Description |
|---|---|---|
sql * | string |
check_migration
Review PostgreSQL migration SQL for destructive operations, lock/rewrite risks and transaction conflicts. Does not execute.
| Parameter | Type | Description |
|---|---|---|
sql * | string |
suggest_indexes
Conservative index candidates for single unquoted table queries. Requires EXPLAIN validation; never applies DDL.
| Parameter | Type | Description |
|---|---|---|
sql * | string | |
existingIndexes | array |
explain_plan
Interpret a supplied PostgreSQL EXPLAIN FORMAT JSON plan. Does not run EXPLAIN ANALYZE.
| Parameter | Type | Description |
|---|---|---|
plan * | string |
health_report
Aggregate diagnostics over supplied artifacts, not live database health.
| Parameter | Type | Description |
|---|---|---|
migrations | array | |
plans | array | |
queries | array |