Skip to main content
Glama

VisoMaster MCP

VisoMaster MCP lets Claude Code, Claude Desktop and Codex run face swaps on a Linux GPU workstation that has VisoMaster Fusion installed.

The MCP server runs on your own computer (the client). It sends each request to the workstation over SSH. On the workstation, GPU work runs as durable background jobs, so a job keeps running if the client disconnects, and any client can check on it later. The tools return progress, labelled face crops, previews and finished media.

It is for people who already run, or are prepared to install, VisoMaster Fusion on an NVIDIA workstation and want to drive it from an AI assistant instead of the Fusion GUI.

Requirements

Side

Supported

Workstation

Linux x86-64 with an NVIDIA GPU, Fusion at the pinned revision, FFmpeg, system Python 3.9 or newer, an OpenSSH server

Client

macOS (tested) or Linux (expected to work, not verified), Python 3.11 or newer with uv, an OpenSSH client with key authentication. Windows is not supported

All recorded GPU evidence comes from one installation with Maxwell-generation GPUs (compute capability 5.2, 24 GB class). Other GPUs, drivers and CUDA stacks have not been qualified. The full list of requirements is in Configuration reference.

Related MCP server: HyperFrames MCP Server

Setup

Setup takes four stages. The installation guide has the full steps.

  1. Clone this repository on the client and run uv sync --locked.

  2. On the workstation, install Fusion at the pinned revision, FFmpeg, a runner script and a remote-config.json file.

  3. Run scripts/deploy.sh to publish the workstation code.

  4. Register the server in your MCP client with VISOMASTER_HOST and VISOMASTER_REMOTE, then call health_check.

When health_check reports compatible: true and code_matches: true, follow the tutorial Your first face swap.

Documentation

Tutorial

How-to guides

Reference

Explanation

Evidence

  • VERIFICATION.md: dated test and GPU qualification records, with their limits

License

The code in this repository is available under the MIT License.

That license covers only this repository. It does not cover, and does not change the terms of, anything this project uses. VisoMaster Fusion is licensed under the GNU General Public License v3.0 (see the LICENSE file in its repository). FFmpeg, PyTorch, ONNX Runtime, CUDA and the other components of Fusion's environment have their own licenses. This project does not include or redistribute Fusion, its models or FFmpeg; you obtain them yourself under their own terms.

remote/engine.py imports Fusion's modules into the same Python process on the workstation. The MIT License is compatible with the GPL, but if you distribute this adapter together with Fusion as a combined work, review the GPL's requirements for that distribution.

Model weights carry separate terms that Fusion's model list does not record. In particular, InsightFace states that models trained on its annotated data are available for non-commercial research purposes only; the Inswapper and ArcFace recognition models used here come from InsightFace. Check the terms of every model you download before using its output.

Responsible use

Face swapping can be used to deceive or to harm the people depicted. Use this project only with media you have the right to use and with the consent of the people whose likeness you process. Label synthetic media where appropriate, and follow the laws on synthetic media, privacy and likeness that apply to you. Fusion's README includes a fuller disclaimer that also applies here.

Available Tools

14 tools
cancel_jobA

Request cancellation of a queued/running job. Poll until its state is terminal.

Inputs: job_id (required). Returns: object

delete_jobA
Destructive

Permanently delete a completed, failed or cancelled job with its logs and artifacts.

Queued and running jobs are refused; cancel them and wait for a terminal state first.

Inputs: job_id (required). Returns: object

detect_facesA

Queue face detection. Poll job_status, then inspect crops with view_artifact.

Single-frame detection (frame, zero based) returns faces with crop reference paths usable as FaceMapping.target_face. To find who appears across a video, pass sample_frames (N evenly spaced frames) or explicit frames (at most 64) instead: faces are grouped into identities by recognition-embedding similarity at Fusion's default similarity threshold. Each identity lists its appearances, frames, sample boxes and a representative crop (reference_path, verified to re-detect as one face) usable as target_face. Both modes write contact.jpg, one grid of every crop labelled "face N" or "id N: x" (* marks an unverified reference); view it first.

Inputs: media_path (required), frame, frames, job_id, +2 more. Returns: object

download_artifactA

Download a completed artifact into the configured local downloads directory.

Returns its absolute Mac path. Large videos stream directly to disk.

Inputs: job_id (required), name. Returns: object

get_settingsA
Read-only

Return supported Fusion parameter names, defaults, choices and numeric limits.

Inputs: no named parameters. Returns: object

health_checkA
Read-only

Check installed revision, deployed release, GPU, memory use and media/state paths.

code_matches compares deployed worker hashes with this checkout, or is null if unknown.

Inputs: no named parameters. Returns: object

inspect_mediaA
Read-only

Read video/audio codec, frame rate, dimensions and duration from a workstation file.

Inputs: media_path (required). Returns: object

job_statusA
Read-only

Read durable queued/running/completed/failed/cancelled state, progress and results.

With wait_seconds > 0 the call blocks on the workstation until the job's status or progress stage differs from its value at call time, the job is terminal, or the wait elapses, then returns the current state. Frame counts advancing within a stage do not end the wait. The worker log tail is returned when include_log is true or the job failed.

Inputs: job_id (required), include_log, wait_seconds. Returns: object

list_jobsA
Read-only

List the most recently updated jobs, including jobs submitted by another client.

Each summary has kind, status, media_path, frame (start_frame/max_frames for renders, fps for normalization), created/started/finished timestamps, elapsed_seconds since submission (until finish), error and progress. Use job_status for results and logs.

Inputs: kind, limit, status. Returns: result

normalize_mediaA

Queue conversion of a video into a render-ready copy. Runs on CPU without the GPU lock.

Output is CFR H.264 (CRF 18, yuv420p) starting at zero, with rotation applied, metadata removed and odd dimensions padded by one pixel. The first audio stream becomes AAC aligned to the first video frame. Without fps, the source average rate is used, snapped to a standard rate within 2%. The completed result's media_path is usable in submit_swap.

Inputs: media_path (required), fps, job_id. Returns: object

prune_storageA
Destructive

Report or delete old terminal jobs, unused uploads and files left by crashed transfers.

Removes terminal jobs finished more than older_than_days ago and uploads untouched for that long that no queued/running job references. Dry run by default; returns the paths, jobs and byte totals that were (or would be) deleted.

Inputs: dry_run, older_than_days. Returns: object

submit_swapA

Queue an image/frame preview or CFR video render using explicit identity mappings.

Preview processes frame. Render processes start_frame and at most max_frames (None means through the end). Outputs are new job artifacts. Video output is H.264, with the selected interval's first audio stream encoded to AAC. Preview defaults to Inswapper128. Consult get_settings before changing parameters. GPU jobs run one at a time. Renders reject VFR, nonzero start times, odd dimensions and rotation; use normalize_media.

Inputs: mappings (required), media_path (required), mode, frame, +4 more. Returns: object

upload_mediaA

Stream a Mac image/video to private workstation storage and return its remote path.

Accepts PNG, JPEG, WebP, MP4, MKV and MOV up to 20 GiB. Use this path in other tools. Uploads are content-addressed: re-uploading identical media returns the existing path.

Inputs: local_path (required). Returns: object

view_artifactA
Read-only

Show a completed job's PNG/JPEG crop or preview inline in Claude or Codex.

Inputs: job_id (required), name.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 14 tools

    Disambiguation4/5

    Each tool targets a distinct stage of the media pipeline (upload → detect → swap → artifact) or a distinct job-lifecycle action, and the descriptions actively disambiguate near-neighbours like list_jobs vs job_status and view_artifact vs download_artifact. The only real friction is the three-way cleanup surface (cancel_job / delete_job / prune_storage), where an agent must reason about job state and age to pick correctly.

    Naming Consistency4/5

    Nearly all names are snake_case verb_noun (upload_media, detect_faces, submit_swap, normalize_media, cancel_job, delete_job, prune_storage). Two exceptions — health_check and job_status — invert into noun_verb/noun_noun, but they remain readable and unambiguous.

    Tool Count5/5

    14 tools is well inside the healthy range and each one earns its place: one entry point per pipeline stage plus a small, coherent job-control and storage-maintenance set. Nothing feels padded or missing at the count level.

    Completeness4/5

    Coverage is strong for the stated domain: media ingestion and inspection, face detection with identity grouping, preview and full render submission, normalization, full job lifecycle (submit/list/status/cancel/delete), and artifact viewing/downloading. Minor gaps remain — there is no per-file upload listing or deletion (only age-based prune_storage), no way to manage or persist face mappings across sessions, and no standalone job-log or artifact-listing operation outside job_status.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients on Linux to drive the official Codex Computer Use and Browser Use runtime on a remote Windows PC over SSH, operating in the logged-in Windows desktop session.
      1
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables remote management of HyperFrames video projects over Streamable HTTP, including project creation, file authoring, linting, validation, composition inspection, rendering, transcription, TTS, catalog access, documentation, and CLI operations.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to drive a local explanatory-video lab over stdio: inspecting and patching declarative scenes and a multilayer timeline (clips, titles, captions, voice, music), querying media and frames, rendering previews, running recoverable jobs, and exporting bundles. It also handles Kdenlive round-trip sync plus checkpoints, undo and restore, all offline with JSON responses.
      MIT