bedrock-image-mcp-server
v0.5.0Model 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…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The text description of the image to generate (1-10,000 characters) |
aspect_ratio | string | Aspect ratio for the image: "16:9", "1:1", "21:9", "2:3", "3:2", "4:5", "5:4", "9:16", "9:21" |
filename | The name of the file to save the image to (without extension) | |
negative_prompt | Text to define what not to include in the image (1-10,000 characters) | |
output_format | string | Output image format: "jpeg", "png", or "webp" |
seed | integer | Seed for reproducible generation (0-4,294,967,294) |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The text description of the image to generate (1-10,000 characters) |
aspect_ratio | string | Aspect ratio: 16:9, 1:1, 21:9, 2:3, 3:2, 4:5, 5:4, 9:16, or 9:21 |
filename | The name of the file to save the image to (without extension) | |
negative_prompt | Elements to exclude from the generated image (optional, up to 10,000 characters) | |
output_format | string | Output image format: png or jpeg. This model does not support webp. |
seed | integer | Random seed for reproducibility (0-4,294,967,294). Use 0 for random. |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The text description of the image to generate (1-10,000 characters) |
aspect_ratio | string | Aspect ratio: 16:9, 1:1, 21:9, 2:3, 3:2, 4:5, 5:4, 9:16, or 9:21 |
filename | The name of the file to save the image to (without extension) | |
negative_prompt | Elements to exclude from the generated image (optional, up to 10,000 characters) | |
output_format | string | Output image format: png or jpeg. This model does not support webp. |
seed | integer | Random seed for reproducibility (0-4,294,967,294). Use 0 for random. |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the input image file or base64-encoded image data |
prompt * | string | The text description guiding the image transformation (1-10,000 characters) |
filename | The name of the file to save the transformed image to (without extension) | |
negative_prompt | Text to define what not to include in the transformed image (1-10,000 characters) | |
output_format | string | Output image format: "jpeg", "png", or "webp" |
seed | integer | Seed for reproducible generation (0-4,294,967,294) |
strength | number | Transformation intensity: 0.0 (preserve input) to 1.0 (ignore input). Start with 0.7 for balanced results. |
workspace_dir | The 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) -…
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the input image file or base64-encoded image data |
prompt * | string | Descriptive prompt to guide upscaling style (1-10,000 characters) |
creativity | number | Enhancement level: 0.1 (subtle) to 0.5 (very creative). Higher values add more AI-generated details. |
filename | The name of the file to save the upscaled image to (without extension) | |
negative_prompt | Elements to exclude from the upscaled image (1-10,000 characters) | |
output_format | string | Output image format: "jpeg" (default), "png", or "webp". The ~3150x3150 output exceeds the Bedrock response limit as a PNG. |
seed | integer | Seed for reproducible generation (0-4,294,967,294) |
style_preset | Optional style preset: "3d-model", "analog-film", "anime", "cinematic", "comic-book", "digital-art", "enhance", "fantasy-art", "photographic", etc. | |
workspace_dir | The 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 -…
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the input image file or base64-encoded image data |
prompt * | string | Descriptive prompt for context (1-10,000 characters) |
filename | The name of the file to save the upscaled image to (without extension) | |
negative_prompt | Elements to exclude from the upscaled image (1-10,000 characters) | |
output_format | string | Output image format: "jpeg", "png", or "webp" |
seed | integer | Seed for reproducible generation (0-4,294,967,294) |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the input image file or base64-encoded image data |
filename | The name of the file to save the upscaled image to (without extension) | |
output_format | string | Output image format: "jpeg", "png", or "webp" |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the input image file or base64-encoded image data |
mask * | string | Path to the mask image file or base64-encoded mask data. White areas are filled, black areas are preserved. |
prompt * | string | Description of desired fill content (1-10,000 characters) |
filename | The name of the file to save the inpainted image to (without extension) | |
grow_mask | integer | Pixels to expand mask edges (0-20). Helps blend edges. |
negative_prompt | Elements to exclude from the generated content (1-10,000 characters) | |
output_format | string | Output image format: "jpeg", "png", or "webp" |
seed | integer | Random seed for reproducibility (0-4,294,967,294) |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the input image file or base64-encoded image data |
prompt * | string | Description of desired extended content (1-10,000 characters) |
creativity | number | Controls extension creativity (0.0-1.0). Higher = more creative. |
down | integer | Pixels to extend down (0-2000) |
filename | The name of the file to save the outpainted image to (without extension) | |
left | integer | Pixels to extend left (0-2000) |
negative_prompt | Elements to exclude from the extended content (1-10,000 characters) | |
output_format | string | Output image format: "jpeg", "png", or "webp" |
right | integer | Pixels to extend right (0-2000) |
seed | integer | Random seed for reproducibility (0-4,294,967,294) |
up | integer | Pixels to extend up (0-2000) |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the input image file or base64-encoded image data |
prompt * | string | Description of replacement content (1-10,000 characters) |
search_prompt * | string | Description of object to find and replace (1-10,000 characters) |
filename | The name of the file to save the image to (without extension) | |
negative_prompt | Elements to exclude from the replacement (1-10,000 characters) | |
output_format | string | Output image format: "jpeg", "png", or "webp" |
seed | integer | Random seed for reproducibility (0-4,294,967,294) |
workspace_dir | The 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)…
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the input image file or base64-encoded image data |
prompt * | string | Description of desired color/style (1-10,000 characters) |
select_prompt * | string | Description of object to recolor (1-10,000 characters) |
filename | The name of the file to save the image to (without extension) | |
negative_prompt | Elements to exclude from the recoloring (1-10,000 characters) | |
output_format | string | Output image format: "jpeg", "png", or "webp" |
seed | integer | Random seed for reproducibility (0-4,294,967,294) |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the input image file or base64-encoded image data |
mask * | string | Path to the mask image file or base64-encoded mask data. White areas are removed, black areas are preserved. |
filename | The name of the file to save the image to (without extension) | |
grow_mask | integer | Pixels to expand mask edges (0-20). Helps blend edges. |
output_format | string | Output image format: "jpeg", "png", or "webp" |
seed | integer | Random seed for reproducibility (0-4,294,967,294) |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the input image file or base64-encoded image data |
filename | The name of the file to save the image to (without extension) | |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Description of desired output style and content (1-10,000 characters) |
sketch * | string | Path to the sketch/line art image file or base64-encoded image data |
control_strength | number | How closely to follow the sketch structure (0.0-1.0). Higher values mean stricter adherence to the sketch. |
filename | The name of the file to save the image to (without extension) | |
negative_prompt | Elements to exclude from the generated image (optional, up to 10,000 characters) | |
output_format | string | Output image format: jpeg, png, or webp |
seed | integer | Random seed for reproducibility (0-4,294,967,294). Use 0 for random. |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Description of desired output style and content (1-10,000 characters) |
structure_image * | string | Path to the structure/edge map image file or base64-encoded image data |
control_strength | number | How closely to follow the structure (0.0-1.0). Higher values mean stricter adherence. |
filename | The name of the file to save the image to (without extension) | |
negative_prompt | Elements to exclude from the generated image (optional, up to 10,000 characters) | |
output_format | string | Output image format: jpeg, png, or webp |
seed | integer | Random seed for reproducibility (0-4,294,967,294). Use 0 for random. |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Description of desired content (1-10,000 characters) |
reference_image * | string | Path to the reference image for style guidance or base64-encoded image data |
fidelity | number | How closely to match the reference style (0.0-1.0). Higher values mean closer style match. |
filename | The name of the file to save the image to (without extension) | |
negative_prompt | Elements to exclude from the generated image (optional, up to 10,000 characters) | |
output_format | string | Output image format: jpeg, png, or webp |
seed | integer | Random seed for reproducibility (0-4,294,967,294). Use 0 for random. |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
init_image * | string | Path to the content/initialization image file or base64-encoded image data |
prompt * | string | Description to guide the transfer (1-10,000 characters) |
style_image * | string | Path to the style reference image file or base64-encoded image data |
change_strength | number | Amount of change allowed (0.0-1.0). Higher values allow more changes. |
composition_fidelity | number | How closely to preserve init_image composition (0.0-1.0). Higher values preserve more of the original composition. |
filename | The name of the file to save the image to (without extension) | |
negative_prompt | Elements to exclude from the result (optional, up to 10,000 characters) | |
output_format | string | Output image format: jpeg, png, or webp |
seed | integer | Random seed for reproducibility (0-4,294,967,294). Use 0 for random. |
style_strength | number | Strength of style application (0.0-1.0). Higher values apply stronger style. |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
height * | integer | Total height of the mask image in pixels |
mask_height * | integer | Height of the white rectangle in pixels |
mask_width * | integer | Width of the white rectangle in pixels |
width * | integer | Total width of the mask image in pixels |
x * | integer | X coordinate of the top-left corner of the white rectangle |
y * | integer | Y coordinate of the top-left corner of the white rectangle |
feather | integer | Optional feathering/blur radius in pixels for soft edges (0-50) |
filename | The name of the file to save the mask to (without extension) | |
workspace_dir | The 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,…
| Parameter | Type | Description |
|---|---|---|
center_x * | integer | X coordinate of the ellipse center |
center_y * | integer | Y coordinate of the ellipse center |
height * | integer | Total height of the mask image in pixels |
radius_x * | integer | Horizontal radius of the ellipse in pixels |
radius_y * | integer | Vertical radius of the ellipse in pixels |
width * | integer | Total width of the mask image in pixels |
feather | integer | Optional feathering/blur radius in pixels for soft edges (0-50) |
filename | The name of the file to save the mask to (without extension) | |
workspace_dir | The 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…
| Parameter | Type | Description |
|---|---|---|
height * | integer | Height of the mask image in pixels |
width * | integer | Width of the mask image in pixels |
filename | The name of the file to save the mask to (without extension) | |
workspace_dir | The current workspace directory where the mask should be saved. |