Image Generation MCP Server

by Ichigo3766
Verified

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SD_AUTH_PASSNoPassword for basic auth (if enabled)
SD_AUTH_USERNoUsername for basic auth (if enabled)
SD_WEBUI_URLYesURL of your Stable Diffusion WebUI instance
SD_OUTPUT_DIRYesDirectory where generated images will be saved
SD_UPSCALER_1NoDefault primary upscaler modelR-ESRGAN 4x+
SD_UPSCALER_2NoDefault secondary upscaler modelNone
SD_RESIZE_MODENoDefault upscaling mode (0 for multiplier, 1 for dimensions)0
SD_UPSCALE_WIDTHNoDefault target width when resize_mode is 1512
SD_UPSCALE_HEIGHTNoDefault target height when resize_mode is 1512
SD_UPSCALE_MULTIPLIERNoDefault upscale multiplier when resize_mode is 04

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_image

Generate an image using Stable Diffusion

get_sd_models

Get list of available Stable Diffusion models

set_sd_model

Set the active Stable Diffusion model

get_sd_upscalers

Get list of available upscaler models

upscale_images

Upscale one or more images using Stable Diffusion