DiffuGen
13
DiffuGen is an advanced MCP-based image generation tool that integrates AI models into development workflows. It supports Flux and Stable Diffusion models for text-to-image generation and provides a seamless interface for IDEs, featuring cross-platform compatibility and GPU acceleration.
DiffuGen - Advanced Local Image Generator with MCP Integration
Your AI art studio embedded directly in code. Generate, iterate, and perfect visual concepts through this powerful MCP server for Cursor, Windsurf, and other compatible IDEs using cutting-edge Flux and Stable Diffusion models.
Features
- Multiple Model Support: Flux Schnell, Flux Dev, SDXL, SD3, SD1.5
- MCP Integration: Seamless IDE integration for Cursor, Windsurf, Roo Code, and Cline
- OpenAPI Server: REST API interface for HTTP access
- Cross-Platform: Linux, macOS, Windows support
- Parameter Control: Fine-tune dimensions, steps, CFG scale, seed values, and more
- Natural Language Interface: Generate images using text commands
- CUDA Acceleration: GPU acceleration for faster generation
System Requirements
- Minimum: 4-core CPU, 8GB RAM, 5GB disk space, broadband
- Recommended: 8+ cores, 16GB RAM, NVIDIA GPU, 20GB SSD, high-speed internet
Installation
-
Automatic Installation (Recommended):
- Clone repo and run
setup_diffugen.sh
- Clone repo and run
-
Manual Installation:
- Clone repository and dependencies, build with
cmake
andmake
, set virtual environment and install dependencies
- Clone repository and dependencies, build with
IDE Setup
- Cursor, Windsurf, Roo Code: Detailed integration instructions available for each IDE
Usage
- Start Server:
./diffugen.sh
orpython -m diffugen
- OpenAPI Usage: Start server with
python diffugen_openapi.py
- IDE Usage: Configure IDE MCP with
diffugen.json
settings
Advanced Configuration
- Use
diffugen.json
for comprehensive configuration - Customize parameters per IDE using environment variables