Labsco
MCP SERVER

MCP Migration Advisor

by Dmitriusan

Read a schema migration before it runs — which statements take an ACCESS EXCLUSIVE lock, which ones lose data, and what the safe alternative is.

Data Platform: Pipelines, Warehousing, BI & GovernanceVerified
Summary
The migration review that usually happens after the outage.

An ALTER TABLE that takes an exclusive lock reads exactly like one that does not, right up until production stops. Scoring the file first — and getting the reverse DDL and the conflicting changeSet with it — moves that discovery to before the deploy.

What it is

An MCP server for database migration risk analysis. It parses Flyway `V__*.sql` and `R__*.sql` files and Liquibase XML and YAML changelogs natively, extracting changeSets rather than pattern-matching raw text, and works across database types rather than PostgreSQL alone.

What you get
  • A SQL migration analysed for lock risks, data loss potential and unsafe patterns
  • Liquibase XML and YAML changelogs analysed the same way, with changeSets extracted
  • A combined risk score from 0 to 100, aggregating lock severity and data loss potential
  • Reverse DDL generated to undo a migration, with warnings on the operations that cannot be reversed
  • Structural conflicts detected between two migrations — same-table modifications, same-column changes
  • A specific safe alternative attached to every risk it reports
Requirements

Node — run it with `npx mcp-migration-advisor`, or install globally with npm. The analysis is static: the tools read migration files and changelogs, not a live database. A paid Pro tier is advertised for exportable HTML and PDF reports, though the README's purchase link is still a placeholder.

Setup effort

One command — npx -y mcp-migration-advisor