by ecnu3d
Universal Image Generator is an AI image generator that supports multi-provider photo creation, advanced editing, and au
Generates and edits images using multiple AI providers (Google Gemini, ZhipuAI, Alibaba Bailian) with automatic prompt optimization and translation for each provider.
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.
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.
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.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
Useful MCP listing: Universal Image Generator is the kind of server we cite when onboarding engineers to host + tool permissions.
According to our notes, Universal Image Generator benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
I recommend Universal Image Generator for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Universal Image Generator reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
Universal Image Generator is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Universal Image Generator has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
Strong directory entry: Universal Image Generator surfaces stars and publisher context so we could sanity-check maintenance before adopting.
I recommend Universal Image Generator for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Universal Image Generator is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Universal Image Generator is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
showing 1-10 of 32
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.
No manual installation required! The server will be automatically downloaded and run.
Choose one provider and get an API key:
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")OUTPUT_IMAGE_PATH: Directory to save generated images (optional)generate_image_from_textCreate 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")
GOOGLE_MODEL environment 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
Once configured, ask your AI assistant:
Generated images are saved to your configured output directory.
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 | 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.
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.
MIT License
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.