PixelForge (Gemini image and video)

v0.12.0
io.github.Tehnolabs/pixelforge-mcp Checked 4 days ago Published 2 days ago

AI-powered image generation MCP server with multi-model support

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

generate_image Generate Image

Generate an image from a text prompt using Google Gemini.

ParameterTypeDescription
prompt *stringText description of the image to generate
aspect_ratiostringImage dimensions (1:1, 16:9, 9:16, etc.)
groundingSearch grounding: "web" or "web_and_image".
image_sizeResolution: "0.5K" (gemini-3.1-flash-image only), "1K" (default), "2K", or "4K". 2K/4K are not supported by gemini-3.1-flash-lite-image.
modelModel override. Options: - "gemini-nano-banana-2.1" (default): Best all-round, panoramic, grounding, thinking levels, video references - "gemini-3.1-flash-lite-image": Fastest, cheapest, 1K only - "…
number_of_imagesintegerGenerate 1-4 variations (default: 1)
output_filenameCustom filename (optional, auto-generated if not provided)
output_formatstringFile format: "png", "jpeg", or "webp"
person_generationAccepted for compatibility ("allow", "adults_only", "block"). Not enforced by the Gemini API; Gemini applies its own built-in restrictions on identifiable people.
qualityQuality preset: "fast" (gemini-3.1-flash-lite-image), "balanced" (gemini-nano-banana-2.1), or "quality" (gemini-3-pro-image, 2K). Mutually exclusive with 'model'.
reference_imagesPaths to reference images for style/character consistency (up to 14 images on gemini-nano-banana-2.1 and gemini-3.1-flash-image; 6 on gemini-3-pro-image)
reference_videoOptional local .mp4/.mov/.webm path or YouTube URL.
safety_settingstringSafety filter (preset:strict, preset:relaxed)
temperaturenumberCreativity level 0.0-2.0
thinking_budgetThinking budget for extended reasoning (0-24576 tokens). Mutually exclusive with thinking_level.
thinking_levelNative thinking level: "minimal", "medium", or "high" (gemini-nano-banana-2.1 and gemini-3.1-flash-image).

edit_image Edit Image

Edit an existing image using a text prompt.

ParameterTypeDescription
input_image_path *stringPath to the image to edit
prompt *stringDescription of the desired changes
groundingSearch grounding: "web" or "web_and_image".
modelModel override. Default "gemini-nano-banana-2.1"; "gemini-3-pro-image" is best for complex multi-turn edits.
output_filenameCustom filename for edited image (optional)
output_formatstringFile format: "png", "jpeg", or "webp"
reference_videoOptional local .mp4/.mov/.webm path or YouTube URL.
temperaturenumberCreativity level 0.0-2.0
thinking_levelNative thinking level: "minimal", "medium", or "high" (gemini-nano-banana-2.1 and gemini-3.1-flash-image).

remove_background Remove Background

Remove the background from an image. Uses AI to isolate the main subject and remove the background. Best results with clear subjects against distinct backgrounds.

ParameterTypeDescription
image_path *stringPath to the image
output_filenameCustom filename for result (optional)
output_formatstring"png" (default, supports transparency), "jpeg", or "webp"

transform_image Transform Image

Transform an image using Pillow operations.

ParameterTypeDescription
image_path *stringPath to the image to transform
operation *stringOne of: crop, resize, rotate, flip, blur, sharpen, grayscale, watermark
degreesRotation angle in degrees
directionFlip direction ('horizontal' or 'vertical')
factornumberSharpness factor (default: 2.0, >1 = sharper)
height
maintain_aspectbooleanKeep aspect ratio when resizing (default: True)
opacitynumberWatermark opacity 0.0-1.0 (default: 0.5)
output_filenameCustom output filename (optional)
output_formatstringOutput format (png, jpeg, webp)
positionstringWatermark position (default: 'bottom-right')
radiusnumberBlur radius (default: 2.0)
textWatermark text
width
x
y

upscale_image Upscale Image

Upscale an image to a higher 1K/2K/4K size tier with a Gemini image model. The source is re-rendered at a higher size tier with an instruction to reproduce it exactly. Fine details can differ from the source; for exact pixel scaling use transform_image(operation="resize").

ParameterTypeDescription
image_path *stringPath to the image to upscale
modelImage model to use (default gemini-nano-banana-2.1). gemini-3-pro-image is the other 4K-capable option.
output_filenameCustom output filename (optional)
output_formatstringOutput format (png, jpeg, webp)
upscale_factorstring"x2" (double) or "x4" (quadruple). The output is the smallest of 1K/2K/4K that fits, capped at 4K.

advanced_edit Advanced Edit

Edit an image with a specialized mode using a Gemini image model. Each mode wraps the prompt in an instruction tuned for that edit. An optional mask (white = region to change) is passed to the model as guidance; the boundary is interpreted semantically, not pixel-exactly.

ParameterTypeDescription
edit_mode *stringOne of: inpaint_removal, inpaint_insertion, outpaint, background_swap, style_transfer, product_image
image_path *stringPath to the image to edit
prompt *stringWhat to remove, add, replace, or the style to apply
mask_pathOptional mask image for the inpainting modes
modelImage model to use (default gemini-nano-banana-2.1)
output_filenameCustom output filename (optional)
output_formatstringOutput format (png, jpeg, webp)
thinking_levelNative thinking level: "minimal", "medium", or "high" (gemini-nano-banana-2.1 and gemini-3.1-flash-image).

generate_video Generate Video

Generate a 3-15s MP4 video with native stereo audio via gemini-omni-1.2-flash. Supports text-to-video, image-to-video (first_frame_image), two-frame interpolation (first_frame_image + last_frame_image), and up to 6 subject/style reference_images via the stateless Interactions API.

ParameterTypeDescription
prompt *stringScene, motion, camera, and sound description
aspect_ratiostring"16:9" (default) or "9:16"
duration_secondsintegerClip length in seconds, 3-15 (default: 5)
first_frame_imageOptional starting frame image path
gcs_uriOptional gs:// output URI (Vertex AI backend only)
last_frame_imageOptional ending frame image path (needs first_frame_image)
modelVideo model override (default: gemini-omni-1.2-flash)
output_filenameOptional custom .mp4 filename in the output directory
reference_imagesOptional up to 6 reference image paths
resolutionstring"360p", "720p" (default), "1080p", or "4K"

edit_video Edit Video

Edit, extend (3-10s up to 30s), or upscale a video via gemini-omni-1.2-flash.

ParameterTypeDescription
prompt *stringInstruction describing the edit, continuation, or upscale
video_path *stringPath to the local source video (.mp4, .mov, .webm)
aspect_ratioOptional target aspect ratio ("16:9" or "9:16")
duration_secondsOptional 3-10s extension length when task="extend"
gcs_uriOptional gs:// output URI (Vertex AI backend only)
modelVideo model override (default: gemini-omni-1.2-flash)
output_filenameOptional custom .mp4 filename in the output directory
reference_imagesOptional up to 6 reference image paths
resolutionOptional target resolution ("360p", "720p", "1080p", "4K")
taskstring"edit" (default), "extend", or "upscale"

analyze_image Analyze Image

Analyze an image and get a detailed description.

ParameterTypeDescription
image_path *stringPath to the image to analyze
modelAnalysis model override. Default gemini-3.5-flash-lite. Options include gemini-4-hydrogen, gemini-4-neon, gemini-4-argon, gemini-4-carbon, gemini-3.8-flash, and gemini-3.6-flash.
promptCustom analysis prompt. Default: general description.
thinking_levelReasoning depth (minimal, low, medium, high, xhigh).
use_groundingbooleanEnable Google Search grounding for more accurate, factual analysis results.

extract_text Extract Text

Extract text from an image using OCR. Uses Gemini's vision capabilities for high-quality text extraction. Works with screenshots, documents, signs, handwriting, etc.

ParameterTypeDescription
image_path *stringPath to the image to extract text from
modelAnalysis model override. Default gemini-3.5-flash-lite. Use gemini-4-neon or gemini-3.8-flash for harder OCR.
thinking_levelReasoning depth (minimal, low, medium, high, xhigh).
use_groundingbooleanEnable Google Search grounding for more accurate, factual results.

detect_objects Detect Objects

Detect objects in an image with bounding boxes. Uses Gemini's zero-shot object detection. Returns bounding box coordinates normalized to 0-1000 scale as [y_min, x_min, y_max, x_max].

ParameterTypeDescription
image_path *stringPath to the image
modelAnalysis model override. Default gemini-3.5-flash-lite. Use gemini-4-neon or gemini-3.8-flash for harder detection.
objectsSpecific objects to detect (e.g. "cats and dogs"). Default: detect all visible objects.
thinking_levelReasoning depth (minimal, low, medium, high, xhigh).
use_groundingbooleanEnable Google Search grounding for more accurate, factual results.

compare_images Compare Images

Compare two or more images and analyze differences. Useful for A/B testing, design review, before/after comparison, and change detection.

ParameterTypeDescription
image_paths *arrayPaths to 2+ images to compare
modelAnalysis model override. Default gemini-3.5-flash-lite. Use gemini-4-hydrogen, gemini-4-neon, or gemini-4-carbon for multi-image reasoning.
promptComparison focus (e.g. "color differences"). Default: general comparison.
thinking_levelReasoning depth (minimal, low, medium, high, xhigh).
use_groundingbooleanEnable Google Search grounding for more accurate, factual results.

evaluate_image Evaluate Image

Evaluate structured visual QA questions on 1-10 images via gemini-decision-1. Supports calibrated 'noul' (yes/no boolean), 'choice' (A/B/N categorical), and 'score' (ordered rubric) questions in a single batched pass with calibrated confidence probabilities and zero output-token billing. Currently served on the Gemini Developer API (v1beta) only.

ParameterTypeDescription
image_paths *arrayPaths to 1-10 local images evaluated together
questions *object1-100 questions keyed by question ID. Each entry requires: - "type": "noul", "choice", or "score" - "instructions": human-readable criteria or question - "criteria": optional {"true_description", "fal…
contextOptional shared text context (e.g. the generation brief)
modelDecision model override (default: gemini-decision-1)

optimize_prompt Optimize Prompt

Enhance a basic prompt for dramatically better image results. Uses AI to add details about lighting, composition, colors, textures, and artistic techniques. The #1 way to improve generation quality.

ParameterTypeDescription
prompt *stringBasic prompt to enhance
modelText model override. Default gemini-3.5-flash-lite. Use gemini-4-hydrogen or gemini-3.8-flash for richer prompt crafting.
styleTarget style (optional): photorealistic, illustration, 3d_render, pixel_art, watercolor, oil_painting, sketch, anime, cinematic, product_photo, architecture, food, fashion, abstract
thinking_levelReasoning depth (minimal, low, medium, high, xhigh).

list_templates List Templates

List available prompt templates for image generation.

ParameterTypeDescription
categoryFilter by category (product_photography, social_media, illustration, portrait, architecture, food, fashion, abstract, logo, panoramic). Omit for all.

apply_template Apply Template

Apply a prompt template with a subject to generate a ready-to-use prompt.

ParameterTypeDescription
subject *stringThe subject to fill into the template (e.g., 'wireless headphones', 'coffee shop')
template_name *stringName of the template (e.g., 'product_hero', 'instagram_post'). Use list_templates() to see all.

estimate_cost Estimate Cost

Estimate the cost of an image operation. Shows pricing per model per operation to help with budgeting.

ParameterTypeDescription
operation *string"generate", "edit", or "analyze"
modelModel to estimate for (default: all models that support the operation). Image models price generate/edit per image at 1K; text models price analyze per call.
number_of_imagesintegerNumber of images (default: 1)

list_history List History

List recent generation history.

ParameterTypeDescription
limitintegerMaximum entries to return (default: 20)
offsetintegerSkip this many entries (for pagination)
tool_filterFilter by tool name (generate_image, edit_image, etc.)

get_generation_details Get Generation Details

Get details of a specific generation by ID.

ParameterTypeDescription
generation_id *stringThe generation ID (from list_history)

batch_generate Batch Generate

Generate multiple images in parallel from a list of prompts.

ParameterTypeDescription
prompts *arrayList of text prompts (1-10)
aspect_ratiostringAspect ratio for all images (default: 1:1)
modelModel to use for all generations (optional)
output_formatstringOutput format for all images (default: png)
qualityQuality preset (fast, balanced, quality)

list_available_models List Available Models

List all available image generation models with capabilities. Returns model details including speed, quality, resolution support, and best use cases. Use this to pick the right model for your task.

get_server_info Get Server Info

Get MCP server configuration, capabilities, and available tools.