arpeio-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| *_LOG_DIR | No | Per-tool log directory | |
| *_TIMEOUT | No | Per-tool execution timeout (seconds) | |
| LOG_LEVEL | No | Logging level (DEBUG/INFO/WARNING/ERROR) | |
| FASTBCP_PATH | No | Path to FastBCP binary | |
| LAKEXPRESS_PATH | No | Path to LakeXpress binary | |
| FASTBCP_DIR_PATH | No | FastBCP directory for LakeXpress | |
| FASTTRANSFER_PATH | No | Path to FastTransfer binary | |
| MIGRATORXPRESS_PATH | No | Path to MigratorXpress binary | |
| FASTTRANSFER_DIR_PATH | No | FastTransfer directory for MigratorXpress |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
arpeio-mcp provides four high-performance data tools for database export, transfer, lake pipelines, and cross-platform migration. Each tool wraps a native CLI binary with parallel execution support. It also documents the Arpe ADBC drivers (ArpeMSSQL, ArpePGSQL, ArpeOracle, ArpeNetezza, ArpeTeradata, ArpeDb2), the native drivers behind the adbc_* connection types of FastBCP and FastTransfer.
Tool Selection
Choose the right tool based on what the user wants to accomplish:
Goal | Tool | Notes |
Export DB table/query to files (CSV, Parquet, JSON, etc.) | FastBCP | Outputs to local disk or cloud storage (S3, Azure, GCS, OneLake) |
Transfer data from one database to another | FastTransfer | Direct DB-to-DB, no intermediate files |
Pipeline from DB to a cloud lakehouse as Parquet | LakeXpress | Targets: Snowflake, Databricks, Fabric, BigQuery, Redshift, MotherDuck, Glue, DuckLake |
Migrate schema + data across database platforms | MigratorXpress | Handles DDL translation, PK/FK/AK copy, and parallel data transfer |
Read / bulk-load a database as Apache Arrow from code | Arpe ADBC drivers | Libraries, not CLIs: call |
Important relationships:
LakeXpress uses FastBCP internally for extraction — do NOT suggest both for the same task.
MigratorXpress uses FastTransfer internally for data movement — do NOT suggest both for the same task.
When the user's intent is unclear, call
arpe_quick_startwith a description of their use case.When the user asks "what changed in version X", call
arpe_release_noteswith the product name instead of guessing.
Parallelism Methods
All tools support parallel extraction/transfer. Choose the method based on the source database and available key columns:
Method | When to use | Key required? |
Ntile | Numeric key column with roughly uniform distribution | Yes (numeric) |
DataDriven | Date column or non-uniformly distributed key; pre-computes partitions from distinct values | Yes (any type) |
PhysLoc | SQL Server only; splits by physical page location | No |
Ctid | PostgreSQL only; splits by physical tuple ID | No |
Rowid | Oracle only; splits by physical ROWID | No |
RangeId | Numeric key with known min/max range | Yes (numeric) |
Random | No suitable key; approximate distribution via modulo | Yes (numeric) |
NZDataSlice | Netezza only; uses native data slicing | No |
Timepartition | FastBCP 0.30+, FastTransfer 0.18+; partitions by time column (FastTransfer key: tuple such as | Yes (datetime) |
DBPartition | FastBCP 1.3+, FastTransfer 0.18+; one chunk per native table partition (SQL Server, PostgreSQL, Oracle, MySQL, Teradata; FastBCP 1.7+ and FastTransfer 1.0+ also Db2 for LUW through | No |
Physical | FastBCP 1.4+, FastTransfer 1.0+; physical row location, resolved to PhysLoc / Ctid / Rowid / NZDataSlice from the connection type (SQL Server, PostgreSQL, Oracle, Netezza only), and in FastBCP to Pages for the backup types | No |
Default recommendations:
Numeric primary key exists → Ntile
Date/timestamp key exists → DataDriven
SQL Server, no key → PhysLoc
PostgreSQL, no key → Ctid
Oracle, no key → Rowid
FastBCP 1.4+ and FastTransfer 1.0+: use Physical instead of PhysLoc / Ctid / Rowid / NZDataSlice, which are deprecated there (removed in 2.0). FastBCP < 1.4 and FastTransfer < 1.0 only know the engine-specific names.
When unsure, call
{product}_infowith action='parallelism' for FastBCP/FastTransfer.
--paralleldegree Convention
The --paralleldegree (or degree) parameter controls how many parallel threads are used:
0 = use all available CPU cores
Positive integer (e.g. 8) = use exactly that many threads
Negative integer (e.g. -2) = use cores / abs(value). On a 16-core machine, -2 means 8 threads; -4 means 4 threads. Useful to leave headroom for other processes.
--merge Flag
The --merge flag controls whether parallel output files are merged:
merge=true: Slower, but produces a single output file. Use when the downstream consumer expects one file.
merge=false (default): Faster, produces N files (one per parallel thread). Better when the downstream system can import multiple files in parallel (e.g. Spark, Snowflake COPY INTO, bulk loaders).
Arpe ADBC drivers
Native, licence-gated ADBC drivers (Linux x64, Windows x64) that speak each database's wire protocol directly (no ODBC or vendor client) and stream Apache Arrow both ways. Always use the commercial names below; load them by load name from any ADBC driver manager.
Driver | Database | Load name | Latest | FastBCP type |
ArpeMSSQL | SQL Server, Azure SQL, Fabric |
| 0.8.2 |
|
ArpePGSQL | PostgreSQL and compatibles |
| 0.5.4 |
|
ArpeOracle | Oracle, Oracle Cloud ADB |
| 0.4.7 |
|
ArpeNetezza | IBM Netezza / Cloud NPS |
| 0.3.11 |
|
ArpeTeradata | Teradata |
| 0.3.8 |
|
ArpeDb2 | IBM Db2 (LUW, Db2 for i) |
| 0.4.2 |
|
Call adbc_info for URIs, install commands and licence setup, and arpe_release_notes with the load name for a driver's release history. Docs: https://adbc-drivers-docs.arpe.io/
FastBCP ADBC connection types
FastBCP 1.x adds ADBC connection types that read through the Arpe ADBC drivers: adbc_mssql (ArpeMSSQL, 1.0+), adbc_pgsql (ArpePGSQL, 1.1+), adbc_oracle (ArpeOracle, 1.2+), adbc_netezza (ArpeNetezza, 1.3+), adbc_teradata (ArpeTeradata, 1.4+) and adbc_db2 (ArpeDb2, 1.7+, IBM Db2 with no IBM client). They only write Parquet output; use the native type (mssql, pgsql, oraodp, nzsql, teradata) for CSV, JSON and the other formats. Parallelism methods follow the native type (Physical on SQL Server, PostgreSQL, Oracle and Netezza; no Physical on Teradata or Db2). adbc_db2 takes host[:port] (port 50000 by default) and requires the database name; it offers None, Random, DataDriven, RangeId, Ntile, Timepartition and DBPartition (range-partitioned Db2 for LUW tables). adbc_teradata and adbc_db2 refuse trusted authentication.
FastBCP backup connection types
FastBCP reads tables straight from backups, without restoring them and without a database server: backup_mssql (1.5+, SQL Server .bak files: full, striped, differential from 1.6.7, encrypted or TDE from 1.6.6) and backup_rman (1.6+, Oracle RMAN backup sets: full, incremental from 1.6.8). server is the directory of the backup files and database names the files (names or patterns separated by ;; backup_rman 1.6.8+ also paths and **). No login: backup_mssql takes the certificate's private key file in user (and its password) for encrypted backups; backup_rman takes no credentials. Parquet output only; parallel methods None and Physical (resolved to Pages) only; give schema + table, or a query limited to SELECT * | col1, col2, ... FROM [schema.]table (backup_rman: [[container.]owner.]table).
FastBCP 1.7+ accepts connection types, parallel methods and the other enumerated values in any case. Use the spellings listed in the tool schemas: the MCP always emits the canonical spelling, which FastBCP < 1.7 requires.
LakeXpress 0.4.0+ notes
The metadata-database subcommand was renamed from
logdbtolxdb(e.g.lxdb init,lxdb drop,lxdb release-locks). Legacylogdb_*command types are still accepted bylakexpress_preview_commandand route to the newlxdbsubcommands automatically.The auth-id flag was renamed from
--log_db_auth_idto--lxdb_auth_id. The MCP emits the new flag for all commands regardless of which legacy alias was requested.Teradata is a supported source database as of 0.4.0.
Amazon Redshift is a supported publish target as of 0.4.0. Use
--publish_method internalfor COPY into Redshift tables, orexternalfor Spectrum-style external tables sitting on S3.
LakeXpress 0.6 notes
A license file is required from 0.6.0, also for the free 30-day trial: without one every command except
--helpand--versionexits 13. LakeXpress reads it fromLAKEXPRESS_LICENSE,--license(text),--license_file(path),~/.lakexpress/license.lic,%APPDATA%\LakeXpress\license.licor./license.lic. Pass a path withlicense_file, notlicense. The same file licenses the FastBCP bundled inengine/(1.6.8 in LakeXpress 0.6.5 to 0.6.9).Exit codes (0.6.2+): 40 some tables failed (resume), 41 every table failed, 44 no table matched, 45 no run to resume or publish, 46 publishing failed, 47 export and publishing both had failures, 34 FastBCP older than 1.4.0. From 0.6.8, 43 when the export job of a table cannot be created. Before 0.6.9, a run of more than 100 tables with
n_jobsabove 1 exports every table but reports those beyond 100 as failed and exits 40: upgrade to 0.6.9.ADBC extraction (0.6.3+) is the default for SQL Server, PostgreSQL and Teradata sources; Oracle uses it only on request. It is set in the credentials file, not on the command line:
"use_adbc": trueorfalsenext tods_typeof the source entry. Some Parquet types differ between ADBC and the native driver.Oracle to Snowflake (0.6.5+): set
"use_adbc": trueon the source, and useunbounded_number_typeonconfig_createforNUMBERcolumns without precision:decimal(default,NUMBER(38,18), rounded beyond 18 decimal places),varchar(every digit kept) ordecimal_strict(the export fails on a value that does not fit; needs ADBC).Oracle source, large tables: a table above
large_table_thresholdis split withRowid, which needsSELECT_CATALOG_ROLEon the source user: FastBCP reads the extents of the table fromDBA_EXTENTS,DBA_SEGMENTSandDBA_OBJECTSto build theROWIDranges (SELECTon these three views is enough). Without it the table fails with "The user must have SELECT_CATALOG_ROLE" (ORA-00942). To do without the role, setfastbcp_table_configtoSCHEMA.TABLE:None::1or to a key-based method. Tables below the threshold and syncs withfastbcp_p1 do not need the role. Up to 0.6.8 an incremental table is read by a single thread unless a key-based method is set, and does not need the role; 0.6.9+ splits it withRowidlike a full export, so an incremental sync that worked without the role fails on its large tables after the upgrade: grant the role or setNone::1first.Large incremental tables (0.6.9+): a table above
large_table_thresholdset withincremental_tableis split between thefastbcp_pthreads like a full export (Ctidon PostgreSQL,Physlocon SQL Server,Rowidon Oracle), for the baseline and for the increments. Up to 0.6.8 it is read by a single thread unless a key-based method is set. A run of such a table holds one file per thread, and some can be empty. Setfastbcp_table_configtoSCHEMA.TABLE:None::1to keep a single thread for a table.Snowflake time zone (0.6.6+): every Snowflake session is opened with
TIMEZONE = 'UTC', so timestamps without a time zone keep the source wall clock. Tables loaded by an earlier version keep their shifted values until they are published again.Incremental with a publish target (0.6.8+): the watermark of a table moves when the table is published, not when it is exported, so a run that was exported but not published is read again from the source. With
sync[export]thensync[publish], two exports with no publish in between overlap: publish the latest run, assync[publish]does by default. Use 0.6.8+ for incrementalappend,upsertordelete_insertinto Snowflake.
MigratorXpress 0.8 and FastTransfer 0.18.2 notes
A license file is required from MigratorXpress 0.8.0, also for the free 30-day trial: without one every command except
--helpand--versionexits 13. It is read fromMIGRATORXPRESS_LICENSE,--license(text),--license_file(path),~/.migratorxpress/license.lic,%APPDATA%\MigratorXpress\license.licor./license.lic. A license issued from 2026-10-26 also licenses the FastTransfer bundled inengine/(0.18.1 in MigratorXpress 0.8.0 to 0.8.2), sofasttransfer_dir_pathcan be omitted.FastTransfer 0.18.2+ has no trial mode: without a license it exits 99. It reads
--license(license_path), elseFastTransfer.licin the current directory, then next to the binary.with_xid(MigratorXpress 0.8.0+): Oracle and Netezza tables are now always transferred.with_xid=trueskips a table whose maxROWID/CREATEXIDis unchanged since the last run and whose target holds rows.without_xidis deprecated and ignored from 0.8.0.Diff (0.8.2+): a table that could not be compared fails the
diffstep, and the run exits 40 or 41. A table that merely differs does not fail the run.
FastTransfer 1.0 notes
ADBC connection types (1.0+):
adbc_mssql,adbc_pgsql,adbc_oracle,adbc_netezza,adbc_db2(Db2 for LUW) andadbc_teradataare source and target types backed by the Arpe ADBC drivers bundled in FastTransfer (ArpeMSSQL 0.8.2, ArpePGSQL 0.5.4, ArpeOracle 0.4.7, ArpeNetezza 0.3.11, ArpeDb2 0.4.2, ArpeTeradata 0.3.8 in 1.0.0). ADBC is needed on both ends: anadbc_*source with anadbc_*target, never mixed with a native type (the run is refused before anything is truncated). Windows x64 and Linux x64 only. So Db2 is a target only from anadbc_*source, Db2 to a native-only target (MySQL...) goes throughodbc, and file imports (duckdbstream) use a native target.When to use them: when the user asks for ADBC, when Db2 is one end and the other end is one of the six engines, or when the table is known to hit a limitation of the native pair (below, e.g. the column types named there). Otherwise keep the native types, and when both ends are ADBC engines and the native pair has a limitation, mention it and the
adbc_*alternative, which needs the ADBC driver block in the license.ADBC rules: the license file must also hold the ARPE ADBC DRIVER block (exit code 99 without it); the target table must exist, and the target schema and table are matched in their exact stored case (
ORDERSon Oracle, Db2 and Teradata;orderson PostgreSQL);use_work_tablesis refused andbatch_sizehas no effect; trusted authentication is not available on Netezza; aconnect_stringis in the driver's vocabulary (uri=...), not ADO.NET keywords. Time zone offsets arrive as the same instant in UTC.Physical (1.0+) replaces Ctid / Rowid / Physloc / NZDataSlice, which log a deprecation warning. On SQL Server it now requires schema and table (a query alone is refused; a query next to them filters the table) and should only be used on data that is not being written. Through an
odbcsource to SQL Server only the deprecatedPhyslocworks.use_work_tables: before 1.0, with anmsbulkorpgcopytarget, the merge fails, nothing is loaded and the exit code is still 0. Do not use it there. From 1.0 a failed merge fails the run.Ntile / DataDriven: before 1.0,
Ntileon a date or timestamp key andNtile/DataDrivenon a key holding NULLs left rows out without an error; fixed in 1.0.RangeIdandRandomnever transfer the rows whose key is NULL.Known limitations in 1.0: a native
pgcopytarget fed from a source that is notpgcopywrites some values wrong without an error (fractional seconds oftime/timestamp,timestamptzshifted,byteaas text): usepgcopytopgcopyoradbc_*on both ends for such columns. A native PostgreSQL source intoorabulkfails on adatecolumn: useadbc_pgsqltoadbc_oracle. An Oracle--querywithFROM t PARTITION (P1)now fails at parse time: filter on the partition key instead.Exit codes: 99 = no or invalid license (or no ADBC driver block for an
adbc_*run), 100 = license expired.
Parallelism in LakeXpress
LakeXpress does NOT accept --parallelmethod, --parallelkey, or --paralleldegree flags directly. Instead, configure parallelism through config create parameters:
--fastbcp_p <degree>— global parallel degree for all tables.--fastbcp_table_config 'schema.table:method:key:degree;...'— per-table parallelism override. Example:'dbo.orders:Timepartition:o_orderdate:16;dbo.lineitem:Ntile:l_orderkey:8'.
Do NOT invent LakeXpress CLI flags. Always use lakexpress_preview_command to build the correct command.
Recommended Workflow
Always follow this sequence when building a command:
Get guidance (optional) — call
{product}_infowith action='workflow' to get database-specific tips and the recommended command sequence.Preview — call the
preview_*tool to build and review the exact CLI command with passwords masked. If no parallelism method is specified, one is auto-suggested based on the source database type. Never skip this step.Execute — only after the user has reviewed the preview, call the
execute_*tool withconfirmation=true.
If the user's intent is unclear or they are new to arpe.io tools, start with arpe_quick_start to determine which tool and workflow to recommend.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| fastbcp_preview_exportA | Build and preview a FastBCP export command WITHOUT executing it. Shows the exact CLI command with passwords masked. If no parallelism method is specified, one is auto-suggested based on the source database type. Does NOT test connectivity or execute the export. After reviewing, pass the command to fastbcp_execute_export. |
| fastbcp_execute_exportA | Execute a FastBCP export command that was previously built by fastbcp_preview_export. Requires confirmation=true as a safety gate. Does NOT build the command — the command string must come from a prior fastbcp_preview_export call. Will fail if the FastBCP binary is not installed. |
| fastbcp_infoA | Get information about FastBCP capabilities, parallelism recommendations, workflow guidance, or binary version. Use |
| fasttransfer_preview_transferA | Build and preview a FastTransfer database-to-database transfer command WITHOUT executing it. Shows the exact CLI command with passwords masked. If no parallelism method is specified, one is auto-suggested based on the source database type. Does not test connectivity or execute the transfer. After reviewing, pass the command to fasttransfer_execute_transfer. |
| fasttransfer_execute_transferA | Execute a FastTransfer command that was previously built by fasttransfer_preview_transfer. Requires confirmation=true as a safety gate. Does NOT build the command — the command string must come from a prior fasttransfer_preview_transfer call. Will fail if the FastTransfer binary is not installed. |
| fasttransfer_infoA | Get information about FastTransfer capabilities, parallelism recommendations, workflow guidance, or binary version. Use |
| lakexpress_preview_commandA | Build and preview a LakeXpress CLI command WITHOUT executing it. Call this after |
| lakexpress_execute_commandA | Execute a LakeXpress command that was previously built by lakexpress_preview_command. Requires confirmation=true as a safety gate. The command string must come from a prior lakexpress_preview_command call. Will fail if the LakeXpress binary is not installed. |
| lakexpress_infoA | Get information about LakeXpress capabilities, workflow guidance, or binary version. Use |
| migratorxpress_preview_commandA | Build and preview a MigratorXpress migration command WITHOUT executing it. Shows the exact CLI command with passwords masked. Does NOT execute the migration or validate database connectivity. After reviewing, pass the command to migratorxpress_execute_command. Set upgrade_migdb=true (0.7.0+) to build the metadata-DB upgrade command instead (needs only auth_file and migration_db_auth_id). |
| migratorxpress_execute_commandA | Execute a MigratorXpress command that was previously built by migratorxpress_preview_command. Requires confirmation=true as a safety gate. The command string must come from a prior migratorxpress_preview_command call. Will fail if the MigratorXpress binary is not installed. |
| migratorxpress_validate_auth_fileA | Validate that a MigratorXpress JSON credentials file is well-formed and contains the required fields (auth_id, db_type, connection parameters). Call this before migratorxpress_preview_command to catch credential issues early. Does NOT test actual database connectivity. |
| migratorxpress_infoA | Get information about MigratorXpress capabilities, workflow guidance, or binary version. Use |
| adbc_infoA | Get information about the Arpe ADBC drivers: ArpeMSSQL (SQL Server), ArpePGSQL (PostgreSQL), ArpeOracle (Oracle), ArpeNetezza (Netezza), ArpeTeradata (Teradata) and ArpeDb2 (IBM Db2). They are native, licence-gated ADBC drivers that return Apache Arrow from any ADBC client (Python, C/C++, C#, Go, Java, R, Rust) and back FastBCP's adbc_* connection types. Omit |
| arpe_get_statusA | Show the status of the four Arpe.io CLI tools (FastBCP, FastTransfer, LakeXpress, MigratorXpress). All tools work in command-builder mode by default (no binary needed). If a binary is installed, execution is also available. Does not require database connectivity or any parameters. |
| arpe_quick_startA | Determine which Arpe.io tool to use and get a step-by-step workflow guide. Call this when the user's intent is unclear or they are new to arpe.io tools. Accepts a plain English use case description and returns the recommended tool, required parameters, and the sequence of tool calls to make. Does not execute anything. |
| search_docsA | Search arpe.io documentation and blog for answers about CLI parameters, use cases, parallelism strategies, integrations, and best practices. Call this when unsure about a parameter value, need an example command, or want the recommended approach for a specific source/target/format combination. Searches across all product documentation (FastBCP, FastTransfer, LakeXpress, MigratorXpress, and the Arpe ADBC drivers ArpeMSSQL, ArpePGSQL, ArpeOracle, ArpeNetezza, ArpeTeradata, ArpeDb2) and the arpe.io blog simultaneously. Does not execute anything. |
| arpe_release_notesA | Return release-notes chunks for any Arpe.io product. Pass |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| export-table | Export a database table to a file (CSV, Parquet, JSON, etc.) using FastBCP |
| transfer-data | Transfer data between two databases using FastTransfer |
| lakehouse-pipeline | Set up a database-to-cloud lakehouse pipeline using LakeXpress |
| migrate-database | Migrate schema and data across database platforms using MigratorXpress |
| troubleshoot | Troubleshoot a failed Arpe.io command using docs search and error diagnostics |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| FastBCP Supported Formats | Supported source databases, output formats, and storage targets for FastBCP |
| FastTransfer Supported Combinations | Supported source-to-target database pairs for FastTransfer |
| LakeXpress Capabilities | Supported source databases, storage backends, and publish targets for LakeXpress |
| MigratorXpress Capabilities | Supported source/target databases, tasks, and modes for MigratorXpress |
| Arpe ADBC Drivers | ArpeMSSQL, ArpePGSQL, ArpeOracle, ArpeNetezza, ArpeTeradata and ArpeDb2: versions, load names, URIs and FastBCP connection types |
TDQS
Scored across 18 tools
Each tool is namespaced by product (fasttransfer_*, fastbcp_*, lakexpress_*, migratorxpress_*) and by phase (info / preview / execute), so an agent can reliably pick the right one. The main overlaps are informational: search_docs, arpe_release_notes, arpe_quick_start and the per-product *_info tools all answer 'what can this do / how do I use it' questions, which could cause some misselection.
The dominant pattern is <product>_<verb>_<noun> (fasttransfer_preview_transfer, lakexpress_execute_command), which is predictable and readable. Minor deviations: the meta tools use an arpe_ prefix (or none at all, e.g. search_docs), and the noun is sometimes implicit in the verb phrase (fastbcp_execute_export vs fasttransfer_execute_transfer).
18 tools is slightly above the comfortable range, but the count is largely explained by four parallel products each needing info + preview + execute, plus four cross-cutting meta tools. Almost every tool has a distinct role, so it is over-budget rather than padded.
The preview→execute lifecycle is covered for all four CLIs, with info, status, quick-start, docs search and release notes filling out discovery. Gaps: credential validation exists only for MigratorXpress, there is no connectivity-test tool for any product (explicitly disclaimed), and no way to poll or retrieve logs from a long-running execution after it starts.