Sign in
AI and MCP

Assistants get the same permissions you already have

Two surfaces. Inside the product, natural language becomes SQL against the connected schema. Outside it, two Model Context Protocol endpoints - the control plane, and your Executor inside your network - let assistants inspect, propose and validate with your own permissions, granted once over OAuth. Approving, and changing anything in an environment that requires approval, stays with people.

MCP setup

Natural language to SQL

Generated against your schema

The prompt is turned into SQL for the engine you are browsing. It is not a generic chat answer. The query still has to pass environment RBAC before it runs.

Risk on the output

Generated and pasted SQL go through the same risk checks as a change script: destructive patterns are flagged before execution, not after.

Metered per organisation

AI Mode comes with a monthly allowance of generated queries per organisation, and every generation is recorded in the audit ledger.

Rollback scripts
Generated by engine rules on the Executor, not by an LLM.
MCP equivalent
None: assistants bring their own model. Migratrix validates what they write with change_script_validate instead of generating it.

Two remote endpoints, not a local dump of your database

Run npx migratrix-setup --executor https://<your Executor>/mcp. It finds Claude Code, Claude Desktop, Cursor, Codex, Windsurf and Continue and writes both endpoints into each one's config, without a token. The first call opens the Platform once: you see what the assistant may do in each environment, and allow it.

Endpoint Group Tools
Control plane
mcp.migratrix.com/mcp
context whoami, environment_list, pipeline_list, pipeline_get, executor_status, assistant_policy, notification_list
changes change_script_list, change_script_get, change_script_progress, change_script_logs, change_script_blockers, change_script_risk, change_script_create, change_script_execute, change_script_rollback, change_script_reject, approval_request, approval_queue
gitops git_repo_list, git_repo_status, gitops_changes, gitops_conventions
audit audit_query, audit_verify, audit_change_story, audit_evidence_pack
Your Executor
<Executor>/mcp, inside your network
schema connection_list, engine_info, schema_list_objects, schema_describe, schema_get_ddl, schema_search, schema_dependents, compare_schema, sync_script_generate
data query_run, data_sample, data_profile: one read-only statement at a time, masked where the environment says so
drift drift_monitor_list, drift_events, drift_explain, drift_snapshot_now, drift_acknowledge
changes change_script_validate

Both endpoints also serve /mcp/readonly, with only the tools that change nothing, and accept ?tools=schema,changes to offer just some groups. Tools that change something are marked so the client asks the person before calling them. Live Sync and Conversion Studio stay in the product.

What an assistant is allowed to be

The wider question what any Executor should be allowed to do to a production database has its own page: AI agents and your databases.

Your permissions, never more

The assistant acts as the person who granted it, with the roles they hold in each environment. If they cannot run something on production in the UI, neither can the assistant. There is no service key that bypasses RBAC, and every call is in the audit ledger under that person's name.

Setup is local config, remote runtime

npx migratrix-setup writes both endpoints into the client config; the client then asks for your consent in the Platform (OAuth, no copied tokens). The database still sits behind the Executor; the assistant never receives a connection string, and query rows stay inside your network.

SQL generation is metered

AI Mode in the product comes with a monthly allowance of generated queries per organisation. Rollback SQL is never written by a model: it is generated by engine rules on the Executor.

A short list of nevers, enforced in the server

Whatever the person may do, an assistant never approves, never changes approval rules or permissions, never writes a rollback, and never executes, rolls back or deletes in an environment that requires approval. Tools that change something are marked so the client asks the person first. Administrators set, per environment, whether assistants may do nothing, read or propose, whether rows may be read, and can pause every assistant at once.

Connect an assistant to a non-production workspace first

Setup