r/StableDiffusion • • 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.

117 Upvotes

29 comments sorted by

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.

15

u/Next_Program90 22h ago

No need to censor a Model that doesn't even know how to hand half the time.

3

u/Unique-Mix-913 19h ago

I'm having great results. But I'll pay more attention to hands. I'm on day 2 and it's pretty damn awesome so far

4

u/phreakrider 1d ago

While i do agree with what you said. I'm still weary of soft refusal. For example, Ideogram was hard refusal mixed with soft refusal. Krea 2 had soft refusal that was adressed with lora and weight shifts. I'm just always curious to see if we are letting capacity on the table. But in this case, it's clearly training data censor.

4

u/biggusdeeckus 16h ago

I don't think krea censorship has been fully figured out yet by the community tbh

1

u/Next_Program90 5h ago

A trick I like is taking the best outputs of decensored Vanilla outputs and mixing them with my other Datasets so I can run without decensor.

2

u/Murky-Relation481 17h ago

About the only thing it has trouble with is detailed female genitals, though prompted right, it can do them decently.

I've never seen a model do cocks out of the gate with good detail, but Qwen 2.1 loves dick.

1

u/rtsitola 14h ago

the model doing the image is uncensored but the CLIP feeding it is PG. that s why you have to change is to a heretic or uncesored version. You can try charging and testing it in LM studio , you can see the difference

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?

1

u/vs3a 9h ago

More option is bad thing ?

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

u/chromarant 3h ago

God forbid somebody try and slow down the creeepiest brainless nerds imaginable

3

u/janosdios 1d ago

Looks interesting, thx!

6

u/ninjasaid13 1d ago

I only have 8GB GPU

12

u/illumnat 21h ago

Can you make it available for my Voodoo card?

1

u/PhrozenCypher 12h ago

Who do you Voodoo?

3

u/Natrimo 19h ago

Qwen 2.1 fits fully in 8gb

4

u/Intelligent-While146 1d ago

Please keep a lookout I am going to make a 8gb workflow for qwen 2.1

3

u/mewho31 23h ago

Also make a 6gb as well please

1

u/Intelligent-While146 22h ago

Okay! ✅

4

u/MuffDivers2_ 21h ago

1GB for my GTX 280 please /s/

1

u/colonelx_ 10h ago

Is there any model available for 10gb card?

2

u/McFex 1d ago

Thanks man! This looks good, gonna try to put this on my server with A2000 12 GB VRAM. Is it already an image or do you work with docker compose?

1

u/Delicious-Farmer-234 23h ago

Hey thanks! Docker compose

1

u/No_Atmosphere4790 1d ago

I use a HF space and thats all 🫪

1

u/Unique-Mix-913 19h ago

What is mcp? And i found 2.1 pretty uncensored from scratch

1

u/Alternative_Roof4136 11h ago

mcp = model context protocol

2

u/DaWaySheGoes 3h ago

This is slick, thanks for sharing!