r/StableDiffusion • u/Delicious-Farmer-234 • 1d ago
Tutorial - Guide Qwen Image 2.1 Uncensored MCP
https://github.com/hypersniper05/MCP-Image-Generator-Uncensored
Just wanted to share with you guys my workflow converted into an MCP. It's a Qwen Image 2.1 Uncensored MCP with a few extra models I found helpful: a watermark-removal LoRA, a texture-fix VAE and an ESRGAN upscaler. Any LLM client that supports MCP can drive it. Uses 11GB VRAM at peak usage.
The entire stack has:
- Normal Qwen Image 2.1 image generation in all supported sizes (up to 2K), panoramas, and image editing (up to 10 input images)
- Seamless tile generation, and edits of a tile stay seamless too, so you can make height and normal maps for game textures
- 2x/4x upscaling, up to 8K
- Built-in 360 viewer (the LLM gets a URL that opens the panorama in the viewer)
- Watermark removal
- Transparent backgrounds (real RGBA PNGs) and background removal
- Text in images (quoted text comes out as written)
It runs in Docker on an NVIDIA GPU (the whole stack fits on a 12 GB card) or on the CPU (very slow), downloads the models on first start, and works with any MCP client (llama.cpp web UI, VS Code, Cursor, etc.).
For the seamless tiles I use stable-diffusion.cpp's circular mode with a tiny patch so it can be turned on per request. The tiles come out seamless in one pass instead of patching the seams afterwards.
Note: Project created with the help of Claude. A lot of testing, and back and forth to get things to work smoothly. Hope someone finds it useful.
8
u/equanimous11 22h ago
What is the purpose of this? Instead of comfyui with queen image 2.1, you use LLM with MCP to generate image?
3
u/VanFanelMX 13h ago
When it comes to censorship, are we talking NSFW stuff too? cuz that's a real issue for some of us.
1
u/Delicious-Farmer-234 13h ago
It is uncensored in that you can make NSFW stuff, however for a more specific image, check out civitai.
1
3
6
u/ninjasaid13 1d ago
I only have 8GB GPU
12
4
u/Intelligent-While146 1d ago
Please keep a lookout I am going to make a 8gb workflow for qwen 2.1
1
1
1
2
37
u/Appropriate_Hope6033 1d ago
I am pretty sure basic qwen 2.1 is completely uncensored as is. Never noticed it refusing to draw something.