1. Conduid
  2. Content
  3. Universal Image Generator MCP
MCP server · Content

Universal Image Generator MCP

Universal Image Generator MCP

Unclaimed MIT last commit a year ago content
45Fair

Scored 6 months ago · breakdown

About Universal Image Generator MCP

Universal Image Generator MCP is an MCP server published by ECNU3D in the Content category: universal Image Generator MCP.

The repository has 2 stars and 1 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/ECNU3D/universal-image-generator-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Universal Image Generator MCP

Powered by Claude · Grounded in docs

I know everything about Universal Image Generator MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

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

Provider Models Generation Transformation Language Optimization
Google 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

README fetched from the repository 3 days ago. The original is authoritative.

Questions

About Universal Image Generator MCP

How do I install Universal Image Generator MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Universal Image Generator MCP safe to use with an AI agent?

Its trust score is 45 out of 100 (fair). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Universal Image Generator MCP still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.