Diffusers Workflow logo

Diffusers Workflow

Runs Hugging Face Diffusers workflows on local or remote GPUs, with MCP tools, cost validation, persistent jobs, and a browser UI.

Install Diffusers Workflow

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
http://gpu-box:8765/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Claude Code command
claude mcp add --transport http diffusers-workflow http://gpu-box:8765/mcp

Run in your terminal, then run /mcp in Claude Code to sign in if the server asks.

Overview

diffusers-workflow MCP server lets an agent compose and run Hugging Face Diffusers image, video, and audio workflows on a local GPU, Apple Silicon, or CPU. It validates workflow schemas, references, and pipeline arguments before loading models, then estimates GPU time from local run history before execution. MCP tools cover workflow discovery, job control, outputs, assets, galleries, and model caches, while the browser UI supports editing, rerunning, comparing, and reviewing results. Reach for it when an agent should manage media-generation workflows rather than manually wiring a node graph.

Use cases

  • Compose image-generation workflows from natural-language briefs
  • Validate and price long video renders before loading models
  • Generate music, speech, sound effects, and video on a local GPU
  • Review, edit, and rerun agent-created workflows in a browser
  • Reuse selected outputs as assets in later workflows

Key features

  • Hugging Face Diffusers image, video, and audio workflows
  • Pre-run schema, reference, and pipeline-signature validation
  • GPU-minute estimates based on local run history
  • Persistent workers with browser-based workflow editing
  • Job graphs, live progress, cancellation, and output inspection
  • Local, remote HTTP, and NVIDIA Docker deployment options

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

5/5 checks healthy over the last 22d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars19Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Diffusers Workflow works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Diffusers Workflow

diffusers-workflow is an MCP server that connects AI agents to Hugging Face Diffusers on a local or remote GPU. Its main tools discover workflows, validate pipelines and cost estimates, submit and wait for jobs, retrieve images, video frames, and audio, and save outputs as reusable assets.

Run the platform install script, activate its virtual environment, start `dw-serve`, and register the absolute path to `dw-mcp` with your MCP client. Use `bash ./install.sh` on Linux or macOS, or `install.ps1` on Windows.

Yes. Start `dw-serve` on the GPU machine with `--mcp`, a reachable host, and `--token`, then connect to its `/mcp` HTTP endpoint with bearer-token authorization. The client machine does not need the local installation.

Yes, after you request access on the model's Hugging Face page and authenticate with `hf auth login`. Without that access, gated model downloads can fail with a 401 or 403; the small text-to-image template is ungated.

Yes. The web UI presents workflows as editable forms, including variables such as prompts, frame counts, and LoRA scales. You can run changes again, create a new seed, inspect job graphs, compare outputs, and cancel active work.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDiffusers Workflow AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/diffusers-workflow?style=directory)](https://allmcps.com/mcp/diffusers-workflow)
HTML Embed
<a href="https://allmcps.com/mcp/diffusers-workflow"><img src="https://allmcps.com/api/badge/diffusers-workflow?style=directory" alt="Diffusers Workflow on AllMCPs" /></a>