bedrock-image-mcp-server

v0.5.0
bedrock-image-mcp-server Checked 15 hours ago Published 1 month ago

Model Context Protocol (MCP) server for Amazon Bedrock image generation (Community Fork)

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

generate_image_sd35

Generate an image from a text prompt. BALANCED quality and cost. This tool uses Stable Diffusion 3.5 Large, a strong all-rounder and a good general default. AWS positions it for concept art, visual effects and detailed product imagery across media, gaming, advertising and retail. It renders a wide range of styles (3D, photography, painting, line art) and handles long complex prompts up to 10,000 characters. AWS also credits it with strong text quality, though Stability reserves their typography claim for Ultra. Stability's guidance: ideal for "high-volume outputs like…

ParameterTypeDescription
prompt *stringThe text description of the image to generate (1-10,000 characters)
aspect_ratiostringAspect ratio for the image: "16:9", "1:1", "21:9", "2:3", "3:2", "4:5", "5:4", "9:16", "9:21"
filenameThe name of the file to save the image to (without extension)
negative_promptText to define what not to include in the image (1-10,000 characters)
output_formatstringOutput image format: "jpeg", "png", or "webp"
seedintegerSeed for reproducible generation (0-4,294,967,294)
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

generate_image_ultra

Generate an image from a text prompt. HIGHEST QUALITY option. This tool uses Stable Image Ultra, Stability AI's flagship text-to-image model. It draws on their top models including SD3.5, and AWS describes it as excelling at typography, intricate compositions, dynamic lighting, vibrant colours and artistic cohesion, producing photorealism with exceptional detail. It costs more per image and is slightly slower than the others. Stability's guidance: ideal for "ultra-realistic imagery for luxury brands and high-end campaigns" and "professional print media and large forma…

ParameterTypeDescription
prompt *stringThe text description of the image to generate (1-10,000 characters)
aspect_ratiostringAspect ratio: 16:9, 1:1, 21:9, 2:3, 3:2, 4:5, 5:4, 9:16, or 9:21
filenameThe name of the file to save the image to (without extension)
negative_promptElements to exclude from the generated image (optional, up to 10,000 characters)
output_formatstringOutput image format: png or jpeg. This model does not support webp.
seedintegerRandom seed for reproducibility (0-4,294,967,294). Use 0 for random.
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

generate_image_core

Generate an image from a text prompt. FASTEST and cheapest option. This tool uses Stable Image Core, Stability AI's fast tier, built on an enhanced SDXL. AWS describes it as delivering exceptional speed and efficiency at consistent quality. It is the quickest and least expensive option here, at lower fidelity than SD3.5 or Ultra. Stability's guidance: ideal for "rapid content generation at scale" and "rapidly iterating on concepts during ideation" — their example is a retailer generating product images for new arrivals. ## Choosing between the text-to-image too…

ParameterTypeDescription
prompt *stringThe text description of the image to generate (1-10,000 characters)
aspect_ratiostringAspect ratio: 16:9, 1:1, 21:9, 2:3, 3:2, 4:5, 5:4, 9:16, or 9:21
filenameThe name of the file to save the image to (without extension)
negative_promptElements to exclude from the generated image (optional, up to 10,000 characters)
output_formatstringOutput image format: png or jpeg. This model does not support webp.
seedintegerRandom seed for reproducibility (0-4,294,967,294). Use 0 for random.
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

transform_image_sd35

Transform an existing image using Stable Diffusion 3.5 Large with text guidance. This tool uses SD3.5 to transform existing images based on text prompts. The strength parameter controls how much the output differs from the input image. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! The workspace_dir parameter should be set to the directory where the user is currently working so that images are saved to a location accessible to the user. ## CRITICAL: When to Use This Tool vs Others **USE THIS TOOL FOR:** - Changin…

ParameterTypeDescription
image *stringPath to the input image file or base64-encoded image data
prompt *stringThe text description guiding the image transformation (1-10,000 characters)
filenameThe name of the file to save the transformed image to (without extension)
negative_promptText to define what not to include in the transformed image (1-10,000 characters)
output_formatstringOutput image format: "jpeg", "png", or "webp"
seedintegerSeed for reproducible generation (0-4,294,967,294)
strengthnumberTransformation intensity: 0.0 (preserve input) to 1.0 (ignore input). Start with 0.7 for balanced results.
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

upscale_creative

Upscale images to 4K with creative AI enhancement. This tool uses Stability AI's creative upscaling to enhance and upscale images to 4K resolution (20-40x upscale). Best for low-resolution or degraded images that need improvement and enhancement. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! The workspace_dir parameter should be set to the directory where the user is currently working so that images are saved to a location accessible to the user. ## Key Features - Upscales images to 4K resolution (20-40x) -…

ParameterTypeDescription
image *stringPath to the input image file or base64-encoded image data
prompt *stringDescriptive prompt to guide upscaling style (1-10,000 characters)
creativitynumberEnhancement level: 0.1 (subtle) to 0.5 (very creative). Higher values add more AI-generated details.
filenameThe name of the file to save the upscaled image to (without extension)
negative_promptElements to exclude from the upscaled image (1-10,000 characters)
output_formatstringOutput image format: "jpeg" (default), "png", or "webp". The ~3150x3150 output exceeds the Bedrock response limit as a PNG.
seedintegerSeed for reproducible generation (0-4,294,967,294)
style_presetOptional style preset: "3d-model", "analog-film", "anime", "cinematic", "comic-book", "digital-art", "enhance", "fantasy-art", "photographic", etc.
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

upscale_conservative

Upscale images to 4K while preserving original details. This tool uses Stability AI's conservative upscaling to increase resolution to 4K while preserving the original image characteristics with minimal alterations. Best for images that already have good quality but need higher resolution. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! The workspace_dir parameter should be set to the directory where the user is currently working so that images are saved to a location accessible to the user. ## Key Features -…

ParameterTypeDescription
image *stringPath to the input image file or base64-encoded image data
prompt *stringDescriptive prompt for context (1-10,000 characters)
filenameThe name of the file to save the upscaled image to (without extension)
negative_promptElements to exclude from the upscaled image (1-10,000 characters)
output_formatstringOutput image format: "jpeg", "png", or "webp"
seedintegerSeed for reproducible generation (0-4,294,967,294)
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

upscale_fast

Fast 4x upscaling without creative enhancement. This tool provides quick 4x resolution increase without AI enhancement. Best for images that need simple resolution increase without style changes. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! The workspace_dir parameter should be set to the directory where the user is currently working so that images are saved to a location accessible to the user. ## Key Features - Fast 4x upscaling - No AI enhancement or style changes - Simple and straightforward - Input…

ParameterTypeDescription
image *stringPath to the input image file or base64-encoded image data
filenameThe name of the file to save the upscaled image to (without extension)
output_formatstringOutput image format: "jpeg", "png", or "webp"
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

inpaint_image

Fill masked regions with AI-generated content (generative fill). This tool fills masked regions of images with AI-generated content that blends naturally with the surrounding image. The mask defines which areas to fill (white) and which to preserve (black). IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! ## Key Features - Fill masked areas with AI-generated content - Natural blending with surrounding image - Mask-based control (white=fill, black=preserve) - grow_mask parameter expands mask edges for better ble…

ParameterTypeDescription
image *stringPath to the input image file or base64-encoded image data
mask *stringPath to the mask image file or base64-encoded mask data. White areas are filled, black areas are preserved.
prompt *stringDescription of desired fill content (1-10,000 characters)
filenameThe name of the file to save the inpainted image to (without extension)
grow_maskintegerPixels to expand mask edges (0-20). Helps blend edges.
negative_promptElements to exclude from the generated content (1-10,000 characters)
output_formatstringOutput image format: "jpeg", "png", or "webp"
seedintegerRandom seed for reproducibility (0-4,294,967,294)
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

outpaint_image

Extend images beyond their original boundaries. This tool extends images beyond their original boundaries in specified directions, generating new content that matches the original image style. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! ## Key Features - Extend images in any direction (left, right, up, down); at least one must be above 0 - Generate content matching original style - Control creativity level - Useful for changing aspect ratios or expanding compositions ## When to Use - Expanding image…

ParameterTypeDescription
image *stringPath to the input image file or base64-encoded image data
prompt *stringDescription of desired extended content (1-10,000 characters)
creativitynumberControls extension creativity (0.0-1.0). Higher = more creative.
downintegerPixels to extend down (0-2000)
filenameThe name of the file to save the outpainted image to (without extension)
leftintegerPixels to extend left (0-2000)
negative_promptElements to exclude from the extended content (1-10,000 characters)
output_formatstringOutput image format: "jpeg", "png", or "webp"
rightintegerPixels to extend right (0-2000)
seedintegerRandom seed for reproducibility (0-4,294,967,294)
upintegerPixels to extend up (0-2000)
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

search_and_replace

Find and replace objects using text prompts. This tool automatically finds specific objects or areas in images using text prompts and replaces them with AI-generated content. No manual masking required. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! ## CRITICAL: When to Use This Tool **USE THIS TOOL FOR:** - Replacing specific objects (e.g., "replace the chair with a sofa") - Changing ONLY the background (e.g., search_prompt="background", prompt="beach scene") - Swapping elements while keeping the rest unchanged…

ParameterTypeDescription
image *stringPath to the input image file or base64-encoded image data
prompt *stringDescription of replacement content (1-10,000 characters)
search_prompt *stringDescription of object to find and replace (1-10,000 characters)
filenameThe name of the file to save the image to (without extension)
negative_promptElements to exclude from the replacement (1-10,000 characters)
output_formatstringOutput image format: "jpeg", "png", or "webp"
seedintegerRandom seed for reproducibility (0-4,294,967,294)
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

search_and_recolor

Recolor specific objects using text prompts. This tool automatically finds objects in images and changes their colors while preserving the object's structure, texture, and details. This is a specialized version of inpainting that focuses only on color changes. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! ## CRITICAL: When to Use This Tool **USE THIS TOOL FOR:** - Changing ONLY the color of specific objects (e.g., "make the car red") - Product photography color variations (e.g., show shirt in different colors)…

ParameterTypeDescription
image *stringPath to the input image file or base64-encoded image data
prompt *stringDescription of desired color/style (1-10,000 characters)
select_prompt *stringDescription of object to recolor (1-10,000 characters)
filenameThe name of the file to save the image to (without extension)
negative_promptElements to exclude from the recoloring (1-10,000 characters)
output_formatstringOutput image format: "jpeg", "png", or "webp"
seedintegerRandom seed for reproducibility (0-4,294,967,294)
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

remove_object

Remove unwanted objects from images. This tool intelligently removes unwanted objects from images and fills the area with content that blends naturally with surroundings. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! ## Key Features - Intelligent object removal - Natural background filling - Mask-based control (white=remove, black=preserve) - grow_mask parameter for better edge blending ## When to Use - Removing unwanted objects - Cleaning up photos - Removing distractions - Photo restorati…

ParameterTypeDescription
image *stringPath to the input image file or base64-encoded image data
mask *stringPath to the mask image file or base64-encoded mask data. White areas are removed, black areas are preserved.
filenameThe name of the file to save the image to (without extension)
grow_maskintegerPixels to expand mask edges (0-20). Helps blend edges.
output_formatstringOutput image format: "jpeg", "png", or "webp"
seedintegerRandom seed for reproducibility (0-4,294,967,294)
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

remove_background

Automatically remove backgrounds from images. This tool automatically removes backgrounds from images, isolating the main subject with clean edges. Always outputs PNG with transparency. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! ## Key Features - Automatic background removal - Clean edge detection - Handles complex subjects (hair, transparent objects) - Always outputs PNG with transparency ## When to Use - Product photography - Portrait isolation - Creating transparent assets - Compositi…

ParameterTypeDescription
image *stringPath to the input image file or base64-encoded image data
filenameThe name of the file to save the image to (without extension)
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

sketch_to_image

Convert sketches or line art into detailed images. This tool converts sketches or line art into detailed images while preserving the structure and composition of the original sketch. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! ## Key Features - Preserves sketch structure and composition - Adds detail and style based on prompt - Control strength parameter for fine-tuning - Supports various artistic styles ## Parameters - **sketch**: Path to sketch/line art image or base64 data - **prompt**: Descri…

ParameterTypeDescription
prompt *stringDescription of desired output style and content (1-10,000 characters)
sketch *stringPath to the sketch/line art image file or base64-encoded image data
control_strengthnumberHow closely to follow the sketch structure (0.0-1.0). Higher values mean stricter adherence to the sketch.
filenameThe name of the file to save the image to (without extension)
negative_promptElements to exclude from the generated image (optional, up to 10,000 characters)
output_formatstringOutput image format: jpeg, png, or webp
seedintegerRandom seed for reproducibility (0-4,294,967,294). Use 0 for random.
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

structure_control

Generate images following structural guides like edge maps or depth maps. This tool generates images that follow structural guides while adding detail and style based on the prompt. Maintains specific compositions. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! ## Key Features - Follows structural guidance (edges, depth, etc.) - Maintains composition while adding detail - Control strength for fine-tuning adherence - Supports various structural inputs ## Parameters - **structure_image**: Path to structur…

ParameterTypeDescription
prompt *stringDescription of desired output style and content (1-10,000 characters)
structure_image *stringPath to the structure/edge map image file or base64-encoded image data
control_strengthnumberHow closely to follow the structure (0.0-1.0). Higher values mean stricter adherence.
filenameThe name of the file to save the image to (without extension)
negative_promptElements to exclude from the generated image (optional, up to 10,000 characters)
output_formatstringOutput image format: jpeg, png, or webp
seedintegerRandom seed for reproducibility (0-4,294,967,294). Use 0 for random.
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

style_guide

Generate images matching a reference style. This tool generates images matching a reference style while following the content description in the prompt. The fidelity parameter controls how closely the output matches the reference style. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! ## Key Features - Matches reference image style - Applies style to new content - Fidelity control for style strength - Maintains consistent visual aesthetics ## Parameters - **reference_image**: Path to style reference i…

ParameterTypeDescription
prompt *stringDescription of desired content (1-10,000 characters)
reference_image *stringPath to the reference image for style guidance or base64-encoded image data
fidelitynumberHow closely to match the reference style (0.0-1.0). Higher values mean closer style match.
filenameThe name of the file to save the image to (without extension)
negative_promptElements to exclude from the generated image (optional, up to 10,000 characters)
output_formatstringOutput image format: jpeg, png, or webp
seedintegerRandom seed for reproducibility (0-4,294,967,294). Use 0 for random.
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

style_transfer

Apply style from one image to the content of another. This tool applies the style from one image to the content of another, with fine-grained control over composition, style strength, and changes. IMPORTANT FOR ASSISTANT: Always send the current workspace directory when calling this tool! ## Key Features - Transfers style between images - Fine-grained control over composition and style - Preserves content while applying style - Multiple control parameters for precise results ## Parameters - **init_image**: Path to content/initialization image or ba…

ParameterTypeDescription
init_image *stringPath to the content/initialization image file or base64-encoded image data
prompt *stringDescription to guide the transfer (1-10,000 characters)
style_image *stringPath to the style reference image file or base64-encoded image data
change_strengthnumberAmount of change allowed (0.0-1.0). Higher values allow more changes.
composition_fidelitynumberHow closely to preserve init_image composition (0.0-1.0). Higher values preserve more of the original composition.
filenameThe name of the file to save the image to (without extension)
negative_promptElements to exclude from the result (optional, up to 10,000 characters)
output_formatstringOutput image format: jpeg, png, or webp
seedintegerRandom seed for reproducibility (0-4,294,967,294). Use 0 for random.
style_strengthnumberStrength of style application (0.0-1.0). Higher values apply stronger style.
workspace_dirThe current workspace directory where the image should be saved. CRITICAL: Assistant must always provide the current IDE workspace directory parameter to save images to the user's current proj…

create_rectangular_mask

Create a rectangular mask for inpainting or object removal. This tool creates a grayscale mask image where: - White pixels (255) = areas to fill/remove - Black pixels (0) = areas to preserve The mask is a rectangle positioned at (x, y) with the specified dimensions. Use this mask with inpaint_image or remove_object tools. ## When to Use - Creating masks for inpainting specific rectangular regions - Removing rectangular objects or areas - Testing inpaint/remove_object functionality - Quick mask creation without external tools ## Parameters Guide…

ParameterTypeDescription
height *integerTotal height of the mask image in pixels
mask_height *integerHeight of the white rectangle in pixels
mask_width *integerWidth of the white rectangle in pixels
width *integerTotal width of the mask image in pixels
x *integerX coordinate of the top-left corner of the white rectangle
y *integerY coordinate of the top-left corner of the white rectangle
featherintegerOptional feathering/blur radius in pixels for soft edges (0-50)
filenameThe name of the file to save the mask to (without extension)
workspace_dirThe current workspace directory where the mask should be saved.

create_ellipse_mask

Create an elliptical mask for inpainting or object removal. This tool creates a grayscale mask image where: - White pixels (255) = areas to fill/remove - Black pixels (0) = areas to preserve The mask is an ellipse centered at (center_x, center_y) with the specified radii. Use this mask with inpaint_image or remove_object tools. ## When to Use - Creating masks for circular or oval objects - Removing round objects (faces, balls, wheels, etc.) - More natural-looking masks than rectangles - Masking organic shapes ## Parameters Guide - **width,…

ParameterTypeDescription
center_x *integerX coordinate of the ellipse center
center_y *integerY coordinate of the ellipse center
height *integerTotal height of the mask image in pixels
radius_x *integerHorizontal radius of the ellipse in pixels
radius_y *integerVertical radius of the ellipse in pixels
width *integerTotal width of the mask image in pixels
featherintegerOptional feathering/blur radius in pixels for soft edges (0-50)
filenameThe name of the file to save the mask to (without extension)
workspace_dirThe current workspace directory where the mask should be saved.

create_full_mask

Create a full white mask covering the entire image. This tool creates a completely white mask useful for: - Complete image replacement with inpainting - Testing inpaint functionality - Full-image generative fill ## When to Use - Testing inpaint_image tool - Replacing entire image content while maintaining dimensions - Quick mask creation for full-image operations ## Example Usage - Image: 1024x768 photo Mask: width=1024, height=768 (Creates full white mask for complete replacement) Returns: McpImageGenerationResponse: A resp…

ParameterTypeDescription
height *integerHeight of the mask image in pixels
width *integerWidth of the mask image in pixels
filenameThe name of the file to save the mask to (without extension)
workspace_dirThe current workspace directory where the mask should be saved.