OpenAI Image

v0.5.0
io.github.mindstone/mcp-server-openai-image Checked 4 days ago Published 24 days ago

OpenAI image generation MCP server for Model Context Protocol hosts

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

generate_image Generate Image

Generate one or more images using OpenAI's GPT Image models and save outputs to your workspace.

ParameterTypeDescription
prompt *stringText description of the image to generate
backgroundstringBackground style. 'transparent' produces a cutout with an alpha channel; it requires png or webp output. The default model supports it; gpt-image-2 does not.
countintegerHow many images to generate (1-8). Cost multiplies by count.
moderationstringContent moderation strictness (defaults to auto).
output_compressionintegerCompression level 0-100 (higher = better quality, larger file). Only applies when output_format is jpeg or webp.
output_formatstringOutput file format (defaults to png). jpeg and webp produce smaller files; only png and webp support transparency.
qualitystringImage quality (defaults to high). Medium is usually about 10-20 seconds and $0.01-0.02; high usually takes 20-60 seconds and costs about $0.05-0.08.
sizestringImage dimensions: square (1024x1024), portrait (1024x1536), landscape (1536x1024)

edit_image Edit Image

Edit one or more existing images with OpenAI image editing and save outputs to your workspace.

ParameterTypeDescription
image_paths *arrayAbsolute or workspace-relative paths to reference images. PNG/JPEG/WEBP only.
prompt *stringWhat to change in the image. Describe the edit in plain language.
backgroundstringBackground style. 'transparent' produces a cutout with an alpha channel; it requires png or webp output. The default model supports it; gpt-image-2 does not.
countintegerHow many output images to generate (1-8).
mask_pathstringOptional PNG mask. Transparent areas define the edit region.
moderationstringContent moderation strictness (defaults to auto).
output_compressionintegerCompression level 0-100 (higher = better quality, larger file). Only applies when output_format is jpeg or webp.
output_formatstringOutput file format (defaults to png). jpeg and webp produce smaller files; only png and webp support transparency.
qualitystringOutput quality (defaults to high). Medium is usually about 10-20 seconds and $0.01-0.02; high usually takes 20-60 seconds and costs about $0.05-0.08.
sizestringOutput dimensions.