image-gen MCP Server logo

image-gen MCP Server

by Ichigo3766

This MCP server provides text-to-image generation capabilities by leveraging the Stable Diffusion WebUI API (ForgeUI/AUTOMATIC-1111). It allows users to generate and upscale images using text prompts and various configuration options.

View on GitHub

Last updated: N/A

What is image-gen MCP Server?

The image-gen MCP Server is a service that enables text-to-image generation and image upscaling using a Stable Diffusion WebUI instance. It acts as a bridge, allowing other applications to easily access and utilize the powerful image generation capabilities of Stable Diffusion.

How to use image-gen MCP Server?

To use the server, you need to install it following the provided instructions, configure the environment variables to point to your Stable Diffusion WebUI instance, and then send requests to the server's API endpoints with the desired parameters. The README provides detailed instructions on installation and available API endpoints.

Key features of image-gen MCP Server

  • Text-to-image generation using Stable Diffusion

  • Image upscaling with various upscalers and resize modes

  • API access to Stable Diffusion functionality

  • Configuration options for image generation and upscaling parameters

  • Support for authentication with Stable Diffusion WebUI

Use cases of image-gen MCP Server

  • Generating images from text descriptions for various applications

  • Upscaling low-resolution images to higher resolutions

  • Integrating image generation capabilities into other services

  • Creating custom image generation workflows

  • Automating image generation tasks

FAQ from image-gen MCP Server

How do I ensure the server connects to my Stable Diffusion WebUI?

Verify the SD_WEBUI_URL environment variable is correctly set to the URL of your running Stable Diffusion WebUI instance.

What do I do if I get authentication errors?

Double-check the SD_AUTH_USER and SD_AUTH_PASS environment variables and ensure they match the credentials configured in your Stable Diffusion WebUI.

Where are the generated images saved?

The images are saved to the directory specified by the SD_OUTPUT_DIR environment variable. Ensure this directory exists and the server has write permissions.

How do I change the default upscaling settings?

You can modify the SD_RESIZE_MODE, SD_UPSCALE_MULTIPLIER, SD_UPSCALE_WIDTH, SD_UPSCALE_HEIGHT, SD_UPSCALER_1, and SD_UPSCALER_2 environment variables to customize the default upscaling behavior.

What does the --api flag do for Stable Diffusion WebUI?

The --api flag enables the Stable Diffusion WebUI's API, which is required for the image-gen MCP server to communicate with and control the Stable Diffusion instance.