Fasttransfer Mcp

io.github.arpe-io由 GitHub 帳號 arpe-io 發布v0.1.6更新於 Oct 24, 2026

MCP server for FastTransfer — high-performance parallel data transfer between databases

已驗證STDIO僅桌面資料庫資料與分析

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理建構、預覽並執行 FastTransfer 指令,在資料庫之間搬移資料。

可以做什麼
預覽並執行 FastTransfer 資料傳輸指令,密碼會被遮蔽,執行前必須確認。驗證資料庫連線參數,並列出支援的來源到目標資料庫組合。依來源資料庫類型與資料表特性推薦平行處理方式。回報偵測到的 FastTransfer 二進位版本、支援的類型與功能旗標。
適用情境
適合在已安裝 FastTransfer 命令列工具的情況下,讓助理協助在資料庫之間複製資料表或匯入檔案(例如 PostgreSQL 到 SQL Server,或透過 DuckDB 串流匯入 Parquet),並在執行前先預覽確認。
執行需求
以 Python 套件形式透過 stdio 在本機執行,需要 Python 3.10 或以上版本。需要 FastTransfer 二進位 v0.16 或以上版本,透過 FASTTRANSFER_PATH 指定;未提供時伺服器僅以預覽模式執行。選用設定:FASTTRANSFER_LOG_DIR、FASTTRANSFER_TIMEOUT、LOG_LEVEL。資料庫憑證以工具參數傳入,未宣告為伺服器驗證。
安裝前請注意
execute_transfer 會執行實際的資料傳輸,可能寫入或清空目標資料庫,請仔細核對預覽指令與確認步驟。資料庫憑證與連線字串以參數傳入;伺服器稱會在輸出與日誌中遮蔽,但仍會傳到本機行程。請使用最低必要的資料庫權限。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Fasttransfer Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

FastTransfer MCP Server

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

A Model Context Protocol (MCP) server that exposes FastTransfer functionality for efficient data transfer between various database systems.

Overview

FastTransfer is a high-performance CLI tool for transferring data between databases. This MCP server wraps FastTransfer functionality and provides:

  • Safety-first approach: Preview commands before execution with user confirmation required
  • Password masking: Credentials and connection strings are never displayed in logs or output
  • Intelligent validation: Parameter validation with database-specific compatibility checks
  • Smart suggestions: Automatic parallelism method recommendations
  • Version detection: Automatic binary version detection with capability registry
  • Comprehensive logging: Full execution logs with timestamps and results

MCP Tools

1. preview_transfer_command

Build and preview a FastTransfer command WITHOUT executing it. Shows the exact command with passwords masked. Always use this first.

2. execute_transfer

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

3. validate_connection

Validate database connection parameters (parameter check only, does not test actual connectivity).

4. list_supported_combinations

List all supported source-to-target database combinations.

5. suggest_parallelism_method

Recommend the optimal parallelism method based on source database type and table characteristics.

6. get_version

Report the detected FastTransfer binary version, supported types, and feature flags.

Installation

Prerequisites

  • Python 3.10 or higher
  • FastTransfer binary v0.16+ (obtain from Arpe.io)
  • Claude Code or another MCP client

Setup

  1. Clone or download this repository:

    bash
    cd /path/to/fasttransfer-mcp
  2. Install Python dependencies:

    bash
    pip install -r requirements.txt
  3. Configure environment:

    bash
    cp .env.example .env# Edit .env with your FastTransfer path
  4. Add to Claude Code configuration (~/.claude.json):

    json
    {  "mcpServers": {    "fasttransfer": {      "type": "stdio",      "command": "python",      "args": ["/absolute/path/to/fasttransfer-mcp/src/server.py"],      "env": {        "FASTTRANSFER_PATH": "/absolute/path/to/fasttransfer/FastTransfer"      }    }  }}
  5. Restart Claude Code to load the MCP server.

  6. Verify installation:

    # In Claude Code, run:/mcp# You should see "fasttransfer: connected"

Configuration

Environment Variables

Edit .env to configure:

bash
# Path to FastTransfer binary (required)FASTTRANSFER_PATH=./fasttransfer/FastTransfer
# Execution timeout in seconds (default: 1800 = 30 minutes)FASTTRANSFER_TIMEOUT=1800
# Log directory (default: ./logs)FASTTRANSFER_LOG_DIR=./logs
# Log level (default: INFO)LOG_LEVEL=INFO

Connection Options

The server supports multiple ways to authenticate and connect:

ParameterDescription
serverHost:port or host\instance (optional with connect_string or dsn)
user / passwordStandard credentials
trusted_authWindows trusted authentication
connect_stringFull connection string (excludes server/user/password/dsn)
dsnODBC DSN name (excludes server/provider)
providerOleDB provider name
file_inputFile path for data input (source only, excludes query)

Transfer Options

OptionCLI FlagDescription
method--methodParallelism method
distribute_key_column--distributeKeyColumnColumn for data distribution
degree--degreeParallelism degree (0=auto, >0=fixed, <0=CPU adaptive)
load_mode--loadmodeAppend or Truncate
batch_size--batchsizeBatch size for bulk operations
map_method--mapmethodColumn mapping: Position or Name
run_id--runidRun ID for logging
data_driven_query--datadrivenqueryCustom SQL for DataDriven method
use_work_tables--useworktablesIntermediate work tables for CCI
settings_file--settingsfileCustom settings JSON file
log_level--loglevelOverride log level (error/warning/information/debug/fatal)
no_banner--nobannerSuppress banner output
license_path--licenseLicense file path or URL

Usage Examples

PostgreSQL to SQL Server Transfer

User: "Copy the 'orders' table from PostgreSQL (localhost:5432, database: sales_db,       schema: public) to SQL Server (localhost:1433, database: warehouse, schema: dbo).       Use parallel transfer and truncate the target first."
Claude Code will:1. Call suggest_parallelism_method to recommend Ctid for PostgreSQL2. Call preview_transfer_command with your parameters3. Show the command with masked passwords4. Explain what will happen5. Ask for confirmation6. Execute with execute_transfer when you approve

File Import via DuckDB Stream

User: "Import /data/export.parquet into the SQL Server 'staging' table       using DuckDB stream."
Claude Code will use duckdbstream source type with file_input parameter.

Check Version and Capabilities

User: "What version of FastTransfer is installed?"
Claude Code will call get_version and display the detected version,supported source/target types, and available features.

Two-Step Safety Process

This server implements a mandatory two-step process:

  1. Preview - Always use preview_transfer_command first
  2. Execute - Use execute_transfer with confirmation: true

You cannot execute without previewing first and confirming.

Security

  • Passwords and connection strings are masked in all output and logs
  • Sensitive flags masked: --sourcepassword, --targetpassword, --sourceconnectstring, --targetconnectstring, -x, -X, -g, -G
  • Use environment variables for sensitive configuration
  • Review commands carefully before executing
  • Use minimum required database permissions

Testing

Run the test suite:

bash
# Run all testspython -m pytest tests/ -v
# Run with coveragepython -m pytest tests/ --cov=src --cov-report=html

Project Structure

fasttransfer-mcp/  src/    __init__.py    server.py          # MCP server (tool definitions, handlers)    fasttransfer.py    # Command builder, executor, suggestions    validators.py      # Pydantic models, enums, validation    version.py         # Version detection and capabilities registry  tests/    __init__.py    test_command_builder.py    test_validators.py    test_version.py  .env.example  requirements.txt  CHANGELOG.md  README.md

License

This MCP server wrapper is provided as-is. FastTransfer itself is a separate product from Arpe.io.

Related Links

來源:README.md,提交 2fe3c73

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分