VisoMaster MCP
This MCP server lets an AI assistant run and manage VisoMaster Fusion face swaps on a remote Linux NVIDIA workstation over SSH.
Check workstation compatibility, deployed code, GPU/memory use, and media/state paths.
Inspect supported Fusion settings and media metadata.
Upload images/videos to private workstation storage and get remote paths.
Detect faces in a frame or across sampled/explicit video frames, returning labeled crops and identity groups.
Queue image/frame previews or CFR H.264 video renders with explicit source-to-target face mappings.
Normalize videos into render-ready CFR H.264/AAC files.
Poll durable job status, wait for progress, list jobs, and view worker logs.
Cancel queued/running jobs; delete terminal jobs and prune old storage/uploads.
View artifact images inline and download completed artifacts to the client.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@VisoMaster MCP detect faces in uploads/interview.mp4 and send me the face crops"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Clone this repository on the client and run
uv sync --locked.On the workstation, install Fusion at the pinned revision, FFmpeg, a runner script and a
remote-config.jsonfile.Run
scripts/deploy.shto publish the workstation code.Register the server in your MCP client with
VISOMASTER_HOSTandVISOMASTER_REMOTE, then callhealth_check.
When health_check reports compatible: true and code_matches: true, follow the tutorial
Your first face swap.
Documentation
Tutorial
Your first face swap: detect a face, preview a swap and render a short clip.
How-to guides
Reference
Tools: all 24 MCP tools, their arguments and results
Configuration: client environment variables,
remote-config.json, the runner and the deployment layoutJobs and scheduling: job IDs, states, GPU queue and storage
Media requirements: accepted inputs, render rules and output format
Job results and artifacts: detection, swap reports, reference analysis, comparisons, checkpoints and recipes
Preflight checks: readiness values and check codes
Troubleshooting: error messages and fixes
Explanation
Architecture: processes, configuration, releases, job control and security boundaries
GPU scheduling: how the shared queue orders GPU jobs
Face matching: how the adapter uses Fusion to find, verify and match faces
Video processing: decoding, encoding, normalization, swap reports, segments, comparisons and checkpoints
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 toolscancel_jobA
Request cancellation of a queued/running job. Poll until its state is terminal.
Inputs: job_id (required). Returns: object
delete_jobADestructive
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_settingsARead-only
Return supported Fusion parameter names, defaults, choices and numeric limits.
Inputs: no named parameters. Returns: object
health_checkARead-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_mediaARead-only
Read video/audio codec, frame rate, dimensions and duration from a workstation file.
Inputs: media_path (required). Returns: object
job_statusARead-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_jobsARead-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_storageADestructive
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_artifactARead-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
Scored across 14 tools
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.
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.
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.
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
Render video and run AI media tasks from a single declarative JSON request.
Hosted MCP server for task-first delegation to remote workstations and workers.
Hosted MCP tools for FFmpeg-style video and audio processing through FFMPEG API.
Run multi-step AI pipelines for video, image, audio and text: upload media, run, poll results.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables 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.1MIT
- FlicenseNot gradedqualityBmaintenanceEnables 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.-
- AlicenseNot gradedqualityBmaintenanceEnables managing multiple Linux SSH servers from MCP clients, with structured filesystem operations, shell commands, durable long-running jobs, process listing, and CPU/RAM/disk/GPU status.MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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