# diffusers-workflow [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/dkackman/diffusers-workflow  
**GitHub Stars:** 19  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/diffusers-workflow

## Description
MCP server, workflow wrapper and web app for Hugging Face diffusers

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "diffusers-workflow": {
    "url": "http://gpu-box:8765/mcp"
  }
}
```

## Documentation

## What diffusers-workflow does

diffusers-workflow connects MCP clients and a browser workspace to Hugging Face Diffusers pipelines. It runs image, video, music, speech, and sound-generation jobs on a machine with NVIDIA CUDA, Apple Silicon MPS, or CPU execution. Workflows are JSON documents made of named steps, and the resulting jobs retain the exact workflow used for each run.

The project includes templates for image pipelines such as FLUX, Qwen Image, Z-Image, SDXL, and SD 1.5, along with ControlNet, IP-Adapter, LoRA, inpainting, and outpainting patterns. Video and audio templates include MiniMax H3, LTX-2.5, Kandinsky 6, MiniMax Music 3, Audio8 TTS, MMS TTS, MMAudio, and Whisper. Templates provide starting points; other Diffusers pipeline classes can be reached by name when supported by Diffusers.

## How it works

An agent can inspect the workflow catalog, create or edit a workflow, validate it, submit a job, wait for completion, and inspect the generated media. Validation checks the workflow structure, references, and arguments against the actual pipeline signatures without loading models. It also estimates GPU minutes using run history from the machine. Operations that use GPU time or disk require an acknowledged cost before they proceed.

A persistent worker remains available for the engine, keeping models loaded between runs. Jobs expose their data flow as a graph, preserve warnings and outputs, support cancellation at the next processing step, and can be rerun with a new seed. Generated images, video frames, and audio can be returned to the agent for evaluation. `keep_output` promotes a result to a named asset that later workflows can reference.

The web interface runs against the same engine. It presents workspaces, workflows, variables, jobs, outputs, and galleries; users can edit workflow fields such as prompts, frame counts, or LoRA scales and run them again. Multiple workspaces allow agents and browser users to share a GPU without overwriting each other's work.

## Setup and configuration

Installation scripts create a virtual environment, choose a platform-appropriate PyTorch build, and install the MCP server and related dependencies. On Linux or macOS, run `bash ./install.sh` and activate the resulting environment. On Windows, run `install.ps1` and activate the virtual environment.

Start the local engine with `dw-serve`; the browser UI listens at `http://127.0.0.1:8765` by default. Register the absolute path to `dw-mcp` with the MCP client. Claude Code can add the server through its MCP command, and the project also provides a `dw` plugin with model-family and media-workflow skills.

For a remote GPU, start the engine with `--mcp`, bind it to an accessible host, and protect it with `--token`. An MCP client can then connect over HTTP using a bearer token. A Docker image is available for Linux systems with NVIDIA GPUs and includes the engine, PyTorch, and web UI.

Many included models require Hugging Face access approval. Authenticate with `hf auth login` after obtaining access to gated models. The `templates/text-to-image` template uses a small ungated model for an initial test.

## Tools and capabilities

The MCP interface exposes 65 tools across several areas, including:

- Discovering available workflow templates with `list_workflows`.
- Validating workflows and receiving a machine-specific GPU-time estimate with `validate_workflow`.
- Waiting for long-running jobs with `wait_for_job` instead of repeatedly polling.
- Retrieving generated images, frames, and audio with `get_output_image`, `get_output_frames`, and `get_output_audio`.
- Saving generated files as reusable named assets with `keep_output`.
- Working with the workflow catalog, job queue, gallery, and model cache.

The browser can show live denoising progress, edit workflow variables, rerun jobs, create new seeds, compare outputs, and cancel work cleanly at a step boundary. Longer productions can use chained segments, storyboards, timed animatics, cut-and-score assembly, and OpenTimelineIO export for DaVinci Resolve.

## Limitations and notes

The project is designed for agent-authored workflows rather than manually drawing every node in a ComfyUI-style editor. GPU capacity, model downloads, local history, and Hugging Face permissions affect whether a job can run and how accurate its estimate is. Remote operation requires the engine to be reachable over HTTP and should use the token option. The shipped plugin adds guidance for selected model families and media patterns; the underlying MCP tools remain the execution interface.

_Full upstream README: https://allmcps.com/mcp/diffusers-workflow/readme_

