Skip to main content

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

Project description

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

pip install -e .

Or install dependencies directly:

pip install -r requirements.txt

Configuration

Environment Variables

Variable Default Description
MIGRATORXPRESS_PATH ./MigratorXpress Path to MigratorXpress binary
MIGRATORXPRESS_TIMEOUT 3600 Command execution timeout in seconds
MIGRATORXPRESS_LOG_DIR ./logs Directory for execution logs
LOG_LEVEL INFO Server logging level

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

cp .env.example .env

Claude Code Configuration

Add to your Claude Code MCP settings:

{
  "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 DDL
Step 2: create     — Create target tables from translated DDL
Step 3: transfer   — Transfer data from source to target
Step 4: diff       — Verify row counts match between source and target
Step 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

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

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

migratorxpress_mcp-0.1.4.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

migratorxpress_mcp-0.1.4-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file migratorxpress_mcp-0.1.4.tar.gz.

File metadata

  • Download URL: migratorxpress_mcp-0.1.4.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for migratorxpress_mcp-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4bcca1d90b44b918b6d8f8e877564d514a2325a4187d028b054fd4ae4c8018b5
MD5 b0e75d1594739938cdaad84ac32415d9
BLAKE2b-256 c5d7079d824cea578e08128dda0a0b979fce0de64aac9c5544a54c7e00017388

See more details on using hashes here.

Provenance

The following attestation bundles were made for migratorxpress_mcp-0.1.4.tar.gz:

Publisher: publish.yml on arpe-io/migratorxpress-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file migratorxpress_mcp-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for migratorxpress_mcp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 da03c7c04c96e42357144fe8f5a2aa452490b32ee3aa4b36fadcd33fd1acee64
MD5 cb22b694ecb0f426957f2e36d720358a
BLAKE2b-256 3fbc7de2f063ec5d70ca26bceee6425acf50b5bc11a9eb76432fbbba4cd02b49

See more details on using hashes here.

Provenance

The following attestation bundles were made for migratorxpress_mcp-0.1.4-py3-none-any.whl:

Publisher: publish.yml on arpe-io/migratorxpress-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page