Migratorxpress Mcp

io.github.arpe-io由 GitHub 账号 arpe-io 发布v0.1.6更新于 Oct 24, 2026

MCP server for MigratorXpress — cross-platform database migration with parallel transfer

已验证STDIO仅桌面数据库开发者工具

概览

AI 生成的概览

本地 MCP 服务器,让 AI 助手预览、校验并执行 MigratorXpress 数据库迁移命令,支持 Oracle、PostgreSQL、SQL Server 与 Netezza 之间的迁移。

可以做什么
预览并执行 MigratorXpress 迁移命令,执行前需确认标志,预览中许可证文本会被遮蔽。校验认证文件并检查其中是否存在指定 auth_id 条目。列出支持的源库与目标库、任务、迁移库模式、加载模式和外键模式。根据源库与目标库类型建议完整的迁移任务顺序及示例命令。报告 MigratorXpress 版本与能力。
适用场景
适合在使用 MigratorXpress 规划或执行跨平台数据库迁移时,让助手生成命令、检查认证文件,并按翻译、建表、传输、比对和复制约束等步骤推进。
运行要求
以 Python 包形式通过 stdio 在本机运行,使用 pip 安装。需要 MigratorXpress 可执行文件,通过 MIGRATORXPRESS_PATH 指定;缺少时服务器仅以预览模式运行。可选配置 MIGRATORXPRESS_TIMEOUT、MIGRATORXPRESS_LOG_DIR 和 LOG_LEVEL。预览与执行需要含 auth ID 的 MigratorXpress 认证文件。
安装前请注意
execute_command 会对源库和目标库执行真实迁移,可能写入或更改数据,且必须将确认参数设为 true。认证文件包含数据库凭据并作为参数传入,执行日志会写入 MIGRATORXPRESS_LOG_DIR。预览会遮蔽许可证文本,但确认执行前仍应检查命令。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Migratorxpress Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MigratorXpress MCP Server

[PyPI] [License: MIT] [MCP Registry]

A Model Context Protocol (MCP) server for MigratorXpress, enabling database migration between heterogeneous database systems through AI assistants.

MigratorXpress supports migrating from Oracle, PostgreSQL, SQL Server, and Netezza to PostgreSQL or SQL Server targets.

Installation

bash
pip install -e .

Or install dependencies directly:

bash
pip install -r requirements.txt

Configuration

Environment Variables

VariableDefaultDescription
MIGRATORXPRESS_PATH./MigratorXpressPath to MigratorXpress binary
MIGRATORXPRESS_TIMEOUT3600Command execution timeout in seconds
MIGRATORXPRESS_LOG_DIR./logsDirectory for execution logs
LOG_LEVELINFOServer logging level

Copy .env.example to .env and adjust values:

bash
cp .env.example .env

Claude Code Configuration

Add to your Claude Code MCP settings:

json
{  "mcpServers": {    "migratorxpress": {      "command": "python",      "args": ["-m", "src.server"],      "cwd": "/path/to/migratorxpress-mcp",      "env": {        "MIGRATORXPRESS_PATH": "/path/to/MigratorXpress"      }    }  }}

Tools

1. preview_command

Build and preview a MigratorXpress CLI command without executing it. License text is automatically masked in the display output.

Required parameters: auth_file, source_db_auth_id, source_db_name, target_db_auth_id, target_db_name, migration_db_auth_id

2. execute_command

Execute a previously previewed command. Requires confirmation: true as a safety mechanism.

3. validate_auth_file

Validate that an authentication file exists, is valid JSON, and optionally check for specific auth_id entries.

4. list_capabilities

List supported source/target databases, tasks, migration DB modes, load modes, and FK modes.

5. suggest_workflow

Given a source database type, target database type, and optional constraint flag, suggest the full sequence of migration tasks with example commands.

6. get_version

Report MigratorXpress version and capabilities.

Workflow Example

A typical migration from Oracle to PostgreSQL:

Step 1: translate  — Translate Oracle DDL to PostgreSQL-compatible DDLStep 2: create     — Create target tables from translated DDLStep 3: transfer   — Transfer data from source to targetStep 4: diff       — Verify row counts match between source and targetStep 5: copy_pk    — Copy primary key constraints        copy_ak    — Copy alternate key (unique) constraints        copy_fk    — Copy foreign key constraints

Or run all steps in a single invocation with --task_list all.

Development

Running Tests

bash
pip install -e ".[dev]"python -m pytest tests/ -v

License

MIT

来源:README.md,提交 c472372

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.6最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分