Provides AI-powered image generation from text descriptions using Stable Diffusion, with support for batch processing, animation creation, and automatic fallback to PIL-based sketches for quick drafts.
Supports optional integration with Hugging Face API for AI image generation capabilities as an alternative to the default Pollinations.ai provider.
Built with Python 3.9+ and uses PIL/Pillow for image processing and sketch generation as a fallback mode.
๐จ GIMP MCP - AI Image Generator for VS Code
Generate images from text descriptions using Stable Diffusion AI - integrated with VS Code through Model Context Protocol (MCP)
๐ Overview
GIMP MCP is an AI-powered image generation tool that integrates with VS Code through the Model Context Protocol. It enables you to generate images from text descriptions using Stable Diffusion, with automatic fallback to PIL-based sketches.
โจ Key Features
๐ค AI-Powered: Uses Stable Diffusion for realistic image generation
๐ฏ VS Code Integrated: Works seamlessly with GPT-4o Agent via MCP
โก Fast: Sub-second generation for sketches, ~10s for AI images
๐จ Dual Mode: AI-generated or quick PIL-based drafts
๐ฆ Batch Processing: Generate multiple images at once
๐ฌ Animation Support: Create animated GIFs from text sequences
๐ ๏ธ Easy Setup: Simple bash script for quick generation
๐ Quick Start
Prerequisites
Python 3.9+
VS Code with GPT-4o Agent
Internet connection (for AI mode)
Installation
Generate Your First Image
Using the bash script:
Using Python directly:
๐ Documentation
QUICKSTART.md - Get started in 30 seconds
ANIMATION_GUIDE.md - Create animated GIFs from text sequences
PROMPT_EXAMPLES.md - 20+ sample prompts and best practices
INTEGRATION_SUMMARY.md - Technical implementation details
CHANGELOG.md - Version history and updates
๐ป Usage
Two Generation Modes
1. AI Mode (Recommended)
Uses Stable Diffusion for realistic, detailed images:
2. Sketch Mode
Fast PIL-based placeholders for quick drafts:
VS Code Integration
Ask the GPT-4o Agent directly:
The agent will automatically invoke the tool and create your image.
Batch Generation
Generate multiple images at once:
Animation Generation
Create animated GIFs from text sequences:
See ANIMATION_GUIDE.md for detailed animation features.
๐จ Examples
Check PROMPT_EXAMPLES.md for 20+ categorized examples:
๐ Vehicles & Transportation
๐ Architecture & Buildings
๐ค Characters & People
๐ Nature & Landscapes
๐จ Abstract & Artistic
๐ Food & Beverages
๐ฎ Games & Technology
Sample Outputs
Prompt | Output |
"A simple 2D Volkswagen Beetle car in black and white, side view, minimalist design" |
|
"A serene Japanese garden with cherry blossoms, koi pond, stone lantern" |
|
"A futuristic cyberpunk city at night with neon lights, flying cars" |
|
๐๏ธ Project Structure
โ๏ธ Configuration
AI Provider
Currently uses Pollinations.ai (free, no API key required).
To add Hugging Face support:
Get API token from Hugging Face
Edit
gimp_image_gen.py:
๐ง Troubleshooting
Common Issues
"Module 'PIL' not found"
"Permission denied: ./generate_image.sh"
"AI generation failed"
Check internet connection
Tool automatically falls back to PIL mode
Try simplifying the prompt
Getting Help
Review QUICKSTART.md for setup issues
Check PROMPT_EXAMPLES.md for prompt tips
See INTEGRATION_SUMMARY.md for technical details
๐ฏ Tips for Best Results
For AI Mode
Be specific and descriptive
Include artistic style ("photorealistic", "cartoon style", etc.)
Mention lighting ("golden hour", "studio lighting")
Add quality terms ("highly detailed", "professional")
Example Good Prompts
Example Poor Prompts
๐ Performance
Mode | Speed | Quality | Use Case |
AI Mode | ~10-15s | High | Final images, presentations |
Sketch Mode | <1s | Basic | Placeholders, quick drafts |
Animation (5 frames) | ~45s | High | Animated sequences, demos |
๐ Future Enhancements
Support for DALLยทE and other AI providers
Custom image sizes and aspect ratios
Style transfer from reference images
Video format support (MP4, WebM) for animations
Advanced GIMP scripting integration
WebUI for non-technical users
๐ License
MIT License - See LICENSE for details
๐ Acknowledgments
Stable Diffusion - AI image generation model
Pollinations.ai - Free AI inference API
PIL/Pillow - Python imaging library
Model Context Protocol - VS Code integration framework
๐ Support
For questions or issues:
Check the documentation above
Review PROMPT_EXAMPLES.md
Version: 3.1.0
Last Updated: November 19, 2025
Status: โ
Production Ready
Made with โค๏ธ for creative workflows
This server cannot be installed