Universal Image Generator MCP Server

Universal Image Generator MCP Server

universal-image-generator•byecnu3d

A multi-provider AI image generation MCP server that generates images from text and transforms existing images using Google, ZhipuAI, or Bailian providers.

License: MIT License•Runtime: Awaiting documentation review•Category: media design

WHAT IT DOES

  • •Generates images from text descriptions across multiple providers.
  • •Transforms existing images from base64-encoded data or image files, for Google and Bailian providers.
  • •Saves generated images to a user-specified local directory.
  • •Applies automatic prompt translation and optimization tailored per provider.

BEST FOR

  • •Creating images from natural-language prompts through an AI assistant.
  • •Editing existing images such as adding snow to a scene.
  • •Choosing among multiple image providers within an MCP-compatible application.

ABOUT UNIVERSAL-IMAGE-GENERATOR

Universal Image Generator MCP Server is cataloged as an MCP server attributed to ecnu3d. A multi-provider AI image generation MCP server that generates images from text and transforms existing images using Google, ZhipuAI, or Bailian providers. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Universal Image Generator MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which providers does the server support?

It supports Google (Imagen and Gemini), ZhipuAI CogView-4, and Alibaba Bailian.

Which providers support image transformation?

Image transformation is supported only by Google (with Gemini models) and Bailian.

Upstream README

View this exact version on GitHub

README.md · 2059d90b34a3 · Fetched 2026-11-13 09:09:41 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Universal Image Generator MCP Server

PyPI version License Python versions

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:

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 generate
  • model_type: Optional model selection for Google provider ("gemini" or "imagen")
    • Only applies to Google provider
    • If not specified, uses 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

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"

Flying pig over sci-fi city

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

Flying pig with baby whale

Provider Capabilities

ProviderModelsGenerationTransformationLanguage Optimization
GoogleImagen, Gemini✅✅ (Gemini only)English prompts
ZhipuAICogView-4✅❌Chinese prompts
BailianWanX-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

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Universal Image Generator MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/universal-image-generator)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related media design MCP Servers

Alternative and complementary servers in the same category

View all in media design →

A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

8K
Media & Design
Liquid Composer
liquid-composer•frontedu

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

69
Media & Design

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.

1
Media & Design