Skip to main content
Glama
ultratransfert-mcp

ultratransfert-mcp

README.md
# UltraTransfer

**Efficient, verified data and context exchange for AI agents.**

**Founder and project owner: [Maher Daoud-Brikci](https://github.com/mmxb8).** Copyright © 2026 Maher Daoud-Brikci, as stated in [LICENSE](LICENSE). See [project attribution and intellectual property](docs/OWNERSHIP.md), [citation metadata](CITATION.cff), and the [public ownership record](https://mmxb8.github.io/UltraTransfer/ownership.json). Contributors and third-party rights remain respected.

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![PyPI](https://img.shields.io/pypi/v/ultratransfer-mcp)](https://pypi.org/project/ultratransfer-mcp/)
[![Context tests](https://github.com/mmxb8/UltraTransfer/actions/workflows/context-relevance-evidence.yml/badge.svg)](https://github.com/mmxb8/UltraTransfer/actions/workflows/context-relevance-evidence.yml)

<!-- mcp-name: io.github.mmxb8/ultratransfer -->

**[Official website](https://mmxb8.github.io/UltraTransfer/)** · [Français](https://mmxb8.github.io/UltraTransfer/fr/) · [Español](https://mmxb8.github.io/UltraTransfer/es/) · [Deutsch](https://mmxb8.github.io/UltraTransfer/de/) · [简体中文](https://mmxb8.github.io/UltraTransfer/zh-Hans/) · [日本語](https://mmxb8.github.io/UltraTransfer/ja/) · [العربية](https://mmxb8.github.io/UltraTransfer/ar/)

**For AI agents and MCP directories:** [machine-readable discovery guide](llms.txt) · [registry manifest](server.json) · [official MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers/io.github.mmxb8%2Fultratransfer/versions/latest).

UltraTransfer helps AI agents exchange, retrieve and reuse data without repeatedly transferring the same content. It combines lossless compression, incremental synchronization and verified retrieval in an open-source MCP toolkit.

[Quick start](#quick-start) · [Cloud integration](#multicloud-integration) · [Document context](#document-context) · [Benchmarks](#measured-performance) · [Documentation](#documentation) · [Support](#support-the-project)

## Why UltraTransfer?

- **Efficient context:** reuse unchanged content, retrieve relevant passages and synchronize only necessary changes.
- **Exact reconstruction:** lossless compression and SHA-256 verification protect source integrity.
- **Agent interoperability:** MCP integration for Codex, Claude Code, Gemini CLI and compatible hosts.
- **Secure exchange:** explicit access grants, encrypted context cache and pinned TLS for private-network pilots.
- **Resumable transfers:** recover interrupted file transfers and synchronize updated artifacts.
- **Multicloud retrieval:** version-pinned reads, adaptive parallel transfer, differential reuse and optional encrypted block caches.
- **Document-aware context:** selected PDF pages and Office records with source references, raw formulas and optional lossless compact encoding.

## What's new on GitHub

> **Release 0.4.25 is publicly verified.** Bounded-batch reversible context compression reduces temporary Python allocations while preserving exact Unicode content and SHA-256 verification. [PyPI](https://pypi.org/project/ultratransfer-mcp/0.4.25/) · [MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers/io.github.mmxb8%2Fultratransfer/versions/0.4.25) · [Publication audit](https://github.com/mmxb8/UltraTransfer/actions/runs/45953993010). Independent adoption and real cloud billing remain unmeasured.

### Validated improvements in 0.4.23–0.4.24

These changes are available in the public package except the optional source-build native extension. They are not a promise of universal speed, memory savings or independent adoption.

- [Optional native CDC scanner](https://github.com/mmxb8/UltraTransfer/pull/332): source-build C extension with pure Python fallback and cross-platform boundary parity tests. Native wheel distribution is not yet qualified.
- [Lower-copy encrypted cache](https://github.com/mmxb8/UltraTransfer/pull/334): avoid unnecessary ciphertext copies while retaining the authenticated cache format.
- [Sequential manifest traversal](https://github.com/mmxb8/UltraTransfer/pull/335): avoid a second full offset dictionary in fixed and variable block resume; verified cache and publication rules remain unchanged.
- [Dynamic window payload cap](https://github.com/mmxb8/UltraTransfer/pull/336): optional trusted-host callback for whole-file stream retrieval, with a static ceiling and fail-closed behavior. It is not an RSS limit and does not automatically measure memory.

The [memory calibration experiment](https://github.com/mmxb8/UltraTransfer/actions/runs/45941533890) completed 168 verified local-file retrievals on Linux, Windows and macOS. The [host memory adviser](https://github.com/mmxb8/UltraTransfer/pull/337), [robust route research](https://github.com/mmxb8/UltraTransfer/pull/333) and [process-local lease research](https://github.com/mmxb8/UltraTransfer/pull/339) remain experimental, not automatically enabled. The [multi-server MCP pilot](https://github.com/mmxb8/UltraTransfer/pull/341) and [benchmark](https://github.com/mmxb8/UltraTransfer/actions/runs/45943015545) validated 72 local-file transfers across three OS. The [window pressure benchmark](https://github.com/mmxb8/UltraTransfer/actions/runs/45948075762) validated 108 local HTTP transfers. The [prospective recovery trial](https://github.com/mmxb8/UltraTransfer/actions/runs/45948895112) validated 180 additional transfers: 15/16 selected accelerations met the strict 10% criterion on disjoint holdout trials; no mean regression among promoted configurations. Pressure was injected, not measured. The [trusted-host window factory](docs/CLOUD_HOST.md#optional-per-transfer-stream-window-policy-0424) is included in 0.4.24, but the research advisers are source-only and are not enabled automatically. These are research tests, not independent agent adoption or real provider SDK/WAN performance.

The [automatic Linux resource policy](docs/CLOUD_HOST.md#experimental-automatic-linux-resource-policy-source-checkout-only) is a source-only opt-in experiment, with guarded cgroup v2 discovery, fresh RAM and bounded CPU observations. Two three-profile [resource matrix](https://github.com/mmxb8/UltraTransfer/actions/runs/45958954397) [campaigns](https://github.com/mmxb8/UltraTransfer/actions/runs/45959057904) each verified 192/192 local transfers after a timestamp-expiry fix. No default activation, live cloud WAN or billing claim; fixed parallel remained faster at 40 ms injected latency.

### Multicloud integration

| Provider | Host authentication | Immutable resource binding |
|---|---|---|
| AWS S3 | Named AWS SDK profile (optional `aws` extra) | VersionId and expected bucket owner |
| Azure Blob Storage | Host OAuth token | Blob version |
| Google Cloud Storage | Host OAuth token | Object generation and precondition |
| Microsoft OneDrive | Host OAuth token via Graph | File version |
| Microsoft SharePoint | Host OAuth token via Graph | File version |
| Google Drive | Host OAuth token | Retained binary revision |
| Dropbox | Host OAuth token | File ID and revision |
| Box | Host OAuth token | File version |

The host supplies the trusted source digest, size, version, credentials and explicit permissions. The provider integrations have simulated SDK/HTTP tests; live OAuth accounts and real-cloud throughput are not yet independently validated. No automatic OAuth login or token refresh.

- Verified streaming and differential resume for files up to **2 GiB** in the host API.
- Fixed or content-defined chunks (64 KiB minimum except tail, 256 KiB nominal target, 1 MiB maximum for content-defined chunks), allowing reuse after insertions or deletions.
- Optional scoped AES-GCM block-cache encryption, bounded adaptive parallel reads, SHA-256 validation and no-overwrite publication. Encryption applies to cache blocks, not final outputs.
- Fresh authorization before reuse and publication, with a separate credential-free redirect transport when required.

See [provider readers](docs/CLOUD_CONTEXT.md), [streaming](docs/CLOUD_STREAM.md), [parallel reads](docs/CLOUD_PARALLEL.md), [resume](docs/CLOUD_RESUME.md) and [content-defined chunking](docs/CLOUD_CDC.md).

### Document context

| Format | Supported selected view |
|---|---|
| PDF | Physical page numbers and extracted text; optional `pdf` extra |
| Word (.docx) | Main-body paragraphs and table ancestry |
| Excel (.xlsx) | Numbered worksheet XML parts, cell addresses, raw values and formula text/attributes |
| PowerPoint (.pptx) | Numbered slide XML parts and paragraph text |

By default, document acquisition verifies the original bytes (up to 8 MiB) before parsing. Each supported record retains its original page or part reference. No OCR, full visual/layout fidelity, formula evaluation or guarantee of semantic answer correctness. Excel and PowerPoint XML part numbers may differ from display order.

For host-indexed Office documents, 0.4.17 can instead retrieve selected, SHA-256-verified compressed XML parts from immutable archives up to 2 GiB, subject to per-part and output limits. The adaptive router compares separate ranges, grouped ranges and whole-file retrieval. Partial reads explicitly do not verify the entire remote archive. Use `require_full_source=true` to enforce whole-file integrity (8 MiB limit). An optional private `office_learn_network` policy learns from successful verified reads without extra probes; it does not transmit telemetry. See [Office range routing](docs/OFFICE_RANGE_MCP.md).

Optional lossless compaction compares plain records, column encoding and dictionary encoding, choosing the smallest complete JSON representation that fits the response budget. A decoder verifies the reconstructed records; clients must decode before interpretation. Budget exhaustion is explicit and never returns partial records.

**0.4.18 — controlled performance evidence:**

| Controlled benchmark | Verified result | Evidence |
| --- | --- | --- |
| Lossless record compaction | 53–79% lower median CPU time on six synthetic Linux cases; identical receipts and lower traced allocation peaks than the original in all six | [Linux and Windows audit](https://github.com/mmxb8/UltraTransfer/actions/runs/45899577756) |
| Content-defined indexing | 50–56% lower median CPU time on four synthetic workloads across Linux and Windows; identical complete manifests | [CDC audit](https://github.com/mmxb8/UltraTransfer/actions/runs/45900725097) |
| Edited immutable revision | 310,584 versus 3,149,825 response payload bytes after a 4 KiB insertion into a 3 MiB fixture (90.1% less); identical reconstructed bytes | [Differential HTTP audit](https://github.com/mmxb8/UltraTransfer/actions/runs/45900321046) |
| Fully populated verified cache | Two one-byte authorization probes instead of a 3 MiB download; final file verified | [HTTP audit](https://github.com/mmxb8/UltraTransfer/actions/runs/45899747759) |

These are controlled synthetic and loopback HTTP experiments, not provider WAN or LLM benchmarks. Cache population and trusted index construction have costs; transfer-only savings do not establish end-to-end speedups. Parallel transfer was slower on the low-latency Windows case. Traced Python allocations are not process RSS. No independent adoption claim. [Compaction benchmark](research/document_compaction_cost.py) · [CDC benchmark](research/cloud_cdc_index_cost.py) · [HTTP benchmark](research/cloud_http_transport_audit.py).

[PR #239](https://github.com/mmxb8/UltraTransfer/pull/239) (integrated in main) adds exact literal evidence with adjacent records and explicit scan coverage.
[PR #240](https://github.com/mmxb8/UltraTransfer/pull/240) (integrated in main) adds multilingual lexical ranking and explicit top-k coverage. Neither ranking nor literal search proves absence outside the selected extracted view; lexical ranking is not semantic search.

### MCP cloud tools

| Tool | Purpose |
|---|---|
| `ultra_cloud_resources` | Discover currently approved aliases and capabilities |
| `ultra_cloud_context` | Exact text context, literal operations, citations and repair |
| `ultra_cloud_document` | Selected PDF/Office context, with optional compact records |
| `ultra_cloud_transfer` | Host-preapproved verified file handoff (embedding API, writable full profile only) |

These tools are opt-in. Existing default MCP catalogs remain unchanged. The read-only host CLI config supports eight providers; transfer destinations must be bound explicitly through the Python embedding API. The model cannot choose credentials, remote URLs, versions or arbitrary output paths.

For release 0.4.25, prepare a private resource configuration and separate revocable grants as described in [Cloud host setup](docs/CLOUD_HOST.md) and [document permissions](docs/DOCUMENT_MCP.md). Then start the server:

```sh
ultratransfer-mcp --source /absolute/approved/exchange --tool-profile context \
  --cloud-config /private/cloud.json --cloud-grants /private/cloud-grants.json
```

Example MCP tool arguments for a configured, authorized PDF alias:

```json
{
  "resource": "report",
  "selection": [2, 5],
  "max_response_bytes": 8192,
  "compact": true
}
```

See [gateway integration](docs/CLOUD_MCP.md), [Office extraction](docs/OFFICE_CONTEXT.md), [PDF extraction](docs/PDF_CONTEXT.md) and [lossless record encoding](docs/DOCUMENT_COMPACT.md). The PDF parser subprocess has a timeout and Linux CPU/memory limits, but is not a security sandbox.

## Measured performance

| Controlled experiment | Result |
|---|---:|
| [Persistent context reuse](https://github.com/mmxb8/UltraTransfer/actions/runs/45734865639) | **97.6% smaller responses** |
| [Artifact inventory](https://github.com/mmxb8/UltraTransfer/actions/runs/45733905457) | **32 calls → 1** |
| [Delayed TCP batching](https://github.com/mmxb8/UltraTransfer/actions/runs/45750540690) | **5.83× faster** at 200 ms injected delay |
| [Bandwidth-paced TLS exchange](https://github.com/mmxb8/UltraTransfer/actions/runs/45751259330) | **63.9% fewer TLS stream bytes** |
| [Exact context batches](https://github.com/mmxb8/UltraTransfer/actions/runs/45775472289) | **94.04% fewer MCP bytes** on a 12 KB fixture |
| [Adaptive MCP scan](https://github.com/mmxb8/UltraTransfer/actions/runs/45778246398) | **60.2% less CPU, 21.2% lower peak RSS** on a dense fixture |
| [Focused MCP context catalog (0.4.16)](https://github.com/mmxb8/UltraTransfer/actions/runs/45794949986) | **23 → 16 tools, ~23% smaller catalog JSON** |
| [Ranked Excel context (development PR #240)](https://github.com/mmxb8/UltraTransfer/actions/runs/45890266159) | **16,148 → 1,138 JSON bytes (93.0% smaller)** on a 120-cell fixture |
| [Selected Office range retrieval](https://github.com/mmxb8/UltraTransfer/actions/runs/45893468713) | **3,147,545 → 250 payload bytes** on one Excel fixture |
| [Adaptive Office HTTP routing](https://github.com/mmxb8/UltraTransfer/actions/runs/45893468713) | **266.0 → 6.1 ms** median at 0 ms injected delay; **276.3 → 35.9 ms** at 10 ms; full route selected at 200 ms |
| [Experimental local model inference](https://github.com/mmxb8/UltraTransfer/actions/runs/45785877165) | **40.6–43.1% less inference-server CPU time** on Qwen3.5-4B and Granite 4.1-3B |

Results are workload-specific synthetic experiments. The Office HTTP experiment uses the installed wheel, real loopback HTTP, injected delay and bandwidth limits, three repetitions per route/profile (36 trials), and identical extracted-record SHA-256 across routes. It is not a live cloud throughput or model-accuracy benchmark. The ranked Excel test checks exact expected records and source references, not LLM tokens, model answer accuracy or cloud network savings. The local-model trial compares complete numbered lines with adaptive line ranges; strict evidence regressions remain, and these research harnesses are not included in the MCP wheel or enabled by default. [Methods and limitations](docs/RESEARCH_EVIDENCE.md#modern-local-model-resource-evidence).

## Quick start

[First successful run — Linux, macOS and Windows](AGENT_INSTALL.md#first-successful-run--no-account-api-key-or-host-changes). Start with a disposable local trial; no model API key or host settings changes required. Then use the [host configuration guide](AGENT_INSTALL.md#connect-an-authorized-host).

The [release changelog](CHANGELOG.md) describes the new capabilities.

**Release 0.4.25 is publicly verified.** [Release workflow](https://github.com/mmxb8/UltraTransfer/actions/runs/45953643249) and [post-publication audit](https://github.com/mmxb8/UltraTransfer/actions/runs/45953993010) confirm the published package and active registry at source commit `81c285e882aa6559bc2e2f7d15ec6481cf85ac8a`. [Candidate Windows validation](https://github.com/mmxb8/UltraTransfer/actions/runs/45953074451) passed Windows Server 2022 and 2025; the beta installer remains unsigned. No Windows desktop or signing claim.

Install in an isolated Python 3.11+ environment:

```sh
python -m pip install ultratransfer-mcp==0.4.25
ultratransfer-mcp-setup doctor --native-stdio
ultratransfer-mcp-setup trial
```

Connect your agent to an explicitly approved workspace:

```sh
ultratransfer-mcp-setup config --source /absolute/approved/exchange
```

Review the generated configuration before enabling it. See the [agent installation guide](AGENT_INSTALL.md) and [MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers/io.github.mmxb8%2Fultratransfer/versions/0.4.25). For older installations, see the [migration guide](docs/IDENTITY_MIGRATION.md).

For version 0.4.25, use the optional [context-only profile](docs/CONTEXT_TOOL_PROFILE.md) for read-only workloads:

```sh
ultratransfer-mcp-setup config --host codex --source /absolute/approved/exchange --tool-profile context
```

The full profile remains the default. The [actual host validation](https://github.com/mmxb8/UltraTransfer/actions/runs/45793932374) confirms configuration recognition for both profiles in Codex, Claude and Gemini; only Gemini connection and trust controls were verified. No independent agent preference claim.

## Documentation

[Cloud integration](docs/CLOUD_HOST.md) · [Unified document MCP](docs/DOCUMENT_MCP.md) · [Privacy and data handling](PRIVACY.md) · [Document compaction](docs/DOCUMENT_COMPACT.md) · [Cloud resume](docs/CLOUD_RESUME.md)

[Agent integration](AGENT_INTEGRATION.md) · [Remote MCP](docs/AGENT_REMOTE_MCP.md) · [Windows installer](CONSTRUCTION_INSTALLATEUR.md) · [Research evidence](docs/RESEARCH_EVIDENCE.md) · [Context optimization](docs/AGENT_TOOL_SELECTION.md) · [Changelog](CHANGELOG.md)

Remote HTTPS is experimental and intended for private networks, not direct public Internet exposure. See [security](SECURITY.md) and [deployment evaluation](docs/PRODUCTION_EVALUATION.md).

## Support the project

UltraTransfer is free and open source under the [MIT license](LICENSE). Contributions and [independent agent trials](docs/INDEPENDENT_AGENT_TRIAL.md) are welcome.

[Donate via Stripe](https://donate.stripe.com/6oU5kEful2mOe638lw3oA03) · [Bitcoin (BTC)](DONS_BITCOIN.md#bitcoin--bitcoin-mainnet-only) · [XRP](DONS_BITCOIN.md#xrp--xrp-ledger-mainnet-only)


### Optional AWS client reuse and continuous stream scheduling (0.4.21)

Trusted hosts may enable `s3_reuse` in the [cloud configuration](docs/CLOUD_HOST.md) for operation-local SDK clients bounded to 16 reads. The [continuous stream option](docs/CONTINUOUS_CLOUD_WINDOW.md) re-evaluates width after sustained throughput changes. Both default to the previous behavior, preserve exact authorization and integrity checks, and do not add provider reads. [Final candidate validation](https://github.com/mmxb8/UltraTransfer/actions/runs/45920371322) passed 248 test executions. [Synthetic drift research](https://github.com/mmxb8/UltraTransfer/actions/runs/45920451243) includes 7,128 modeled traces; results include regressions, and the alternative research policy is not shipped. No private provider qualification or universal speed claim.

### Cloud context batching and HTTPS reuse (0.4.20)

For 2–8 explicit exact tasks on one approved cloud text alias, use `ultra_cloud_context_batch` with a shared atomic response budget. It acquires and verifies the source once. See [cloud host configuration](docs/CLOUD_HOST.md). The host-only `https_reuse` flag is false by default and reuses eligible authenticated connections only within a single acquisition, with a 16-request cap and fresh token validation. No signed-download pooling or AWS SDK transport changes.

[Public HTTPS experiment](https://github.com/mmxb8/UltraTransfer/actions/runs/45915730859): 144 exact range reads, 18 verified reconstructions; 72 connection openings in fresh arms versus 9 in reuse arms. Median times for eight ranges: AWS 1.220 to 0.554 s; GCS 0.727 to 0.173 s; Azure 0.263 to 0.098 s. Three paired repetitions on one public object per provider; no private SDK qualification, guaranteed latency improvement or independent adoption claim. [Package validation](https://github.com/mmxb8/UltraTransfer/actions/runs/45917115963) passed 241 test executions including batch parity, live grant revocation and scoped session cleanup.

### Measured revision strategy advisor (0.4.19)

The host-only advisor compares verified comparable observations, permitted routes, route-specific cache availability, setup time and optional measured setup traffic. It does not authorize access or automatically execute a route. [Held-out evaluation](https://github.com/mmxb8/UltraTransfer/actions/runs/45906953048): 144 exact loopback HTTP transfers, 32 replayed warm/cold decisions, 31 fastest-route matches and zero slower-than-full decisions. Warm-cache aggregate time: Linux 2.766 to 1.821 s (34.2% reduction); Windows 18.573 to 5.419 s (70.8% reduction). Two repetitions inform each decision and a third is held out within the same fixture. These results precede the route-specific cache extension, are not unseen-provider validation, and exclude claims of independent adoption. [Package inclusion](https://github.com/mmxb8/UltraTransfer/pull/271) and [route-specific cache accounting](https://github.com/mmxb8/UltraTransfer/pull/272) passed their own CI. Release 0.4.19 adds exact scope, freshness and optional expected-reuse filtering. The opt-in host wrapper records verified receipt bytes and elapsed time without extra provider reads. No automatic route execution or external telemetry. [Candidate validation](https://github.com/mmxb8/UltraTransfer/actions/runs/45914010181) ran 235 test executions; [client recognition](https://github.com/mmxb8/UltraTransfer/actions/runs/45914010127) covers Codex, Claude Code and Gemini CLI configuration, not model-selected tool calls. Independent adoption remains unmeasured.


### Code signing policy

The current Windows beta installer is unsigned. Public signed release candidates must pass the [code signing policy](docs/WINDOWS_CODE_SIGNING.md). Signing provider enrollment and trusted publisher verification are pending.