Universal Image Generator▌

by ecnu3d
Universal Image Generator is an AI image generator that supports multi-provider photo creation, advanced editing, and au
Provides multi-provider image generation and transformation capabilities across Google Gemini, ZhipuAI, and Alibaba Bailian with automatic prompt translation and optimization for each provider's preferred language, supporting URL-based editing with mask support and flexible input methods including base64 encoding, file paths, and public URLs.
best for
- / Content creators needing diverse AI image generation options
- / Developers building applications with image generation features
- / Users wanting to compare outputs across different AI providers
- / Projects requiring image editing and transformation
capabilities
- / Generate images from text prompts
- / Edit existing images with masks
- / Automatically translate prompts to optimal language per provider
- / Support multiple input formats (base64, file paths, URLs)
- / Save generated images locally
- / Switch between Google, ZhipuAI, and Bailian providers
what it does
Generates and edits images using multiple AI providers (Google Gemini, ZhipuAI, Alibaba Bailian) with automatic prompt optimization and translation for each provider.
about
Universal Image Generator is a community-built MCP server published by ecnu3d that provides AI assistants with tools and capabilities via the Model Context Protocol. Universal Image Generator is an AI image generator that supports multi-provider photo creation, advanced editing, and au It is categorized under ai ml.
how to install
You can install Universal Image Generator in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
MIT
Universal Image Generator is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
Universal Image Generator MCP Server
This project is a fork and rewrite of the original: https://github.com/qhdrl12/mcp-server-gemini-image-generator repo.
Multi-provider AI image generation server for MCP clients. Generate high-quality images using Google (Imagen & Gemini), ZHIPU AI CogView-4, or Alibaba Bailian through any MCP-compatible application.
Features
- Multi-Provider Support: Choose between Google (Imagen/Gemini), ZhipuAI, or Bailian
- Image Generation: Text-to-image for all providers
- Image Transformation: Edit existing images (Google & Bailian only)
- Smart Language Optimization: Automatic prompt translation and optimization
- Local Storage: Save generated images to your specified directory
Quick Setup
1. Install via uvx
No manual installation required! The server will be automatically downloaded and run.
2. Get API Keys
Choose one provider and get an API key:
- Google: Google AI Studio (supports both Imagen and Gemini models)
- ZhipuAI: ZHIPU AI Platform
- Bailian: Alibaba DashScope
3. Configure MCP Client
Add to your MCP client configuration (e.g., claude_desktop_config.json):
{
"mcpServers": {
"universal-image-generator": {
"command": "uvx",
"args": [
"universal-image-generator-mcp"
],
"env": {
"IMAGE_PROVIDER": "google",
"GOOGLE_MODEL": "gemini",
"ZHIPU_API_KEY": "your-api-key-here",
"GEMINI_API_KEY": "your-api-key-here",
"DASHSCOPE_API_KEY": "your-api-key-here",
"OUTPUT_IMAGE_PATH": "/path/to/save/images"
}
}
}
}
Environment Variables:
IMAGE_PROVIDER:"google","zhipuai", or"bailian"GOOGLE_MODEL:"gemini"or"imagen"(only for Google provider, defaults to "gemini")- Set the corresponding API key for your chosen provider
OUTPUT_IMAGE_PATH: Directory to save generated images (optional)
Available Tools
generate_image_from_text
Create images from text descriptions.
generate_image_from_text(prompt: str, model_type: Optional[str] = None) -> str
Parameters:
prompt: Text description of the image to generatemodel_type: Optional model selection for Google provider ("gemini"or"imagen")- Only applies to Google provider
- If not specified, uses
GOOGLE_MODELenvironment variable (defaults to "gemini")
transform_image_from_encoded (Google & Bailian only)
Transform images using base64-encoded image data.
transform_image_from_encoded(encoded_image: str, prompt: str) -> str
transform_image_from_file (Google & Bailian only)
Transform existing image files.
transform_image_from_file(image_file_path: str, prompt: str) -> str
Usage Examples
Once configured, ask your AI assistant:
- "Generate an image of a sunset over mountains"
- "Create a 3D rendered flying pig in a sci-fi city"
- "Transform this image by adding snow to the scene"
Generated images are saved to your configured output directory.
Example Output
Prompt: "Create a 3D rendered image of a pig with wings and a top hat flying over a futuristic sci-fi city with lots of greenery"

Transform: "Add a cute baby whale flying alongside the pig"

Provider Capabilities
| Provider | Models | Generation | Transformation | Language Optimization |
|---|---|---|---|---|
| Imagen, Gemini | ✅ | ✅ (Gemini only) | English prompts | |
| ZhipuAI | CogView-4 | ✅ | ❌ | Chinese prompts |
| Bailian | WanX-2.1 | ✅ | ✅ | Chinese prompts |
Note: For Google provider, image transformation is only supported with Gemini models. Imagen is for generation only.
Development
Test the server locally:
git clone https://github.com/ECNU3D/universal-image-generator-mcp.git
cd universal-image-generator-mcp
fastmcp dev src/universal_image_generator_mcp/server.py
Visit http://localhost:5173/ to use the MCP Inspector for testing.
License
MIT License
FAQ
- What is the Universal Image Generator MCP server?
- Universal Image Generator is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for Universal Image Generator?
- This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
Universal Image Generator is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Piyush G· Sep 9, 2024
We evaluated Universal Image Generator against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Useful MCP listing: Universal Image Generator is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Sakshi Patil· Jul 7, 2024
Universal Image Generator reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend Universal Image Generator for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Oshnikdeep· May 5, 2024
Strong directory entry: Universal Image Generator surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Dhruvi Jain· Apr 4, 2024
Universal Image Generator has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Rahul Santra· Mar 3, 2024
According to our notes, Universal Image Generator benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Pratham Ware· Feb 2, 2024
We wired Universal Image Generator into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Yash Thakker· Jan 1, 2024
Universal Image Generator is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.