PixelForge

v0.3.0
io.github.freema/pixelforge-mcp Checked 1 day ago Published 26 days ago

Forge pixel art sprites, animations, tilesets and game assets with Google Gemini.

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

forge_sprite

Generate a single pixel art sprite. Handles prompt engineering, generation via Gemini, and post-processing (crop, background removal, pixelation downscale, square padding) automatically. Returns a clean, transparent PNG at proper pixel art resolution. Output size snaps to standard pixel art sizes (16, 24, 32, 48, 64, 96, 128).

ParameterTypeDescription
description *stringWhat the sprite is (e.g. "green slime enemy with horns", "cyan spaceship", "golden coin")
outputPath *stringOutput file path (e.g. "public/assets/games/rpg/slime.png")
aspectstringAspect ratio (default: 1:1)
backgroundstringBackground color for generation. Use "auto" to pick based on description. Use "chromakey" for best transparency (HSV-based green screen removal). Named colors: chromakey, forest, sky, dungeon, lava, o…
modelstringModel alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana)
referencesarrayPaths to existing PNG/JPEG assets to match visual style.
sizenumberTarget sprite size in pixels (default: 48). Snaps to nearest standard size. Recommended: 16-24 for icons/projectiles/powerups, 32 for tiles/small sprites, 48 for game sprites/characters (PixelLab defa…
squarebooleanPad output to square (default: true)
stylestringVisual style preset (default: clean)

forge_animation

Generate pixel art animation frames. Produces a sprite sheet via Gemini, then automatically splits it into individual frame PNGs with background removal and cropping. Returns an array of ready-to-use frame files.

ParameterTypeDescription
action *stringWhat the animation shows (e.g. "bouncing up and down", "walking cycle", "idle breathing")
description *stringWhat is being animated (e.g. "green slime enemy", "player knight")
outputPrefix *stringOutput path prefix — frames saved as {prefix}-{name}.png (e.g. "public/assets/games/rpg/slime")
backgroundstringBackground color for generation. Use "auto" to pick based on description. Use "chromakey" for best transparency (HSV-based green screen removal). Named colors: chromakey, forest, sky, dungeon, lava, o…
frameDescriptionsarrayOptional per-frame descriptions (e.g. ["compressed flat", "stretching up", "at peak"])
framesnumberNumber of animation frames (default: 3)
modelstringModel alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana)
namesarrayFrame names (default: frame-0, frame-1, ...)
referencesarrayPaths to existing PNG/JPEG assets to match visual style. The animation frames will be generated in a similar art style, color palette, and detail level as the reference images.
sizenumberTarget frame size in pixels (default: 48). Snaps to nearest standard size. Recommended: 16-24 for particle effects/small FX, 32 for item animations, 48 for character animations (PixelLab default), 64…
squarebooleanPad each frame to square (default: true)
stylestringVisual style preset (default: clean)
useReferenceChainbooleanGenerate each frame individually using the first frame as style reference (default: true). Produces much more consistent animations than sprite sheet splitting. Each frame is a separate API call with…
useTemplatebooleanUse grid template reference for precise frame placement (default: false). When true, generates a numbered grid template and sends it as a reference image for more consistent frame splitting.

forge_background

Generate a pixel art game background. No post-processing — outputs the full image as-is, ready for use as a game scene background. Use appropriate aspect ratio for your game resolution.

ParameterTypeDescription
aspect *stringAspect ratio matching your game resolution (e.g. 3:4 for 480x640 portrait game)
description *stringBackground scene description (e.g. "deep space with stars and nebula", "forest clearing at night")
outputPath *stringOutput file path (e.g. "public/assets/games/invaders/bg.png")
modelstringModel alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana)
stylestringVisual style preset (default: clean)

forge_thumbnail

Generate a pixel art game thumbnail/screenshot. Use reference images to match the visual style of actual in-game sprites. Best for store listings, game cards, and preview images.

ParameterTypeDescription
description *stringScene description (e.g. "space shooter, cyan spaceship vs rows of colorful aliens, dark space")
outputPath *stringOutput file path (e.g. "public/assets/games/invaders/thumbnail.png")
aspectstringAspect ratio (default: 4:3)
modelstringModel alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana)
referencesarrayPaths to actual game sprite PNGs — STRONGLY RECOMMENDED. The thumbnail will visually match these assets so the preview looks like the real game. Pass the main character, enemies, and key objects.
stylestringVisual style preset (default: clean)

forge_tileset

Generate a seamless tileable pixel art texture. Produces a square texture that tiles seamlessly in all directions — ideal for terrain, floors, walls, and backgrounds. No background removal is applied; the texture fills the entire canvas.

ParameterTypeDescription
description *stringWhat the texture is (e.g. "grass terrain", "stone brick wall", "wooden floor planks", "water surface")
outputPath *stringOutput file path (e.g. "public/assets/tiles/grass.png")
modelstringModel alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana)
sizenumberTarget texture size in pixels (default: 32). Snaps to nearest standard size. Common: 16 for retro, 32 for standard, 64 for detailed.
stylestringVisual style preset (default: clean)

forge_item_kit

Generate multiple pixel art sprites in a single batch. Items are generated together on a grid for visual consistency, then split into individual PNGs. Ideal for item sets, inventory icons, collectibles, or any group of related sprites.

ParameterTypeDescription
items *arrayList of item descriptions (max 16). E.g. ["red apple", "banana", "cherry", "grapes"]
outputPrefix *stringOutput path prefix — items saved as {prefix}-{name}.png (e.g. "public/assets/items/fruit")
backgroundstringBackground color for generation. Use "auto" to pick based on items. (default: black)
modelstringModel alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana)
namesarrayCustom file names for each item (default: item-0, item-1, ...)
referencesarrayPaths to existing PNG/JPEG assets to match visual style.
sizenumberTarget sprite size in pixels (default: 48). Snaps to nearest standard size.
squarebooleanPad each item to square (default: true)
stylestringVisual style preset (default: clean)

process_sprite

Post-process an existing PNG image into a clean sprite. Handles background removal, auto-crop, square padding, and sprite sheet splitting. Use this for images from external sources that need processing.

ParameterTypeDescription
inputPath *stringPath to the input PNG file
namesarrayNames for split sprites (default: 0, 1, 2, ...)
outputPathstringOutput path. For split mode: prefix for frame files (e.g. "assets/snake" → "assets/snake-head.png")
paddingnumberPadding around content in pixels (default: 2)
skipCropbooleanSkip auto-crop step
skipTransparentbooleanSkip background removal step
splitbooleanSplit sprite sheet into individual sprites by detecting content boundaries
squarebooleanPad output to square (default: false)
thresholdnumberColor detection threshold 0-255 (default: 20)

optimize_sprite

Optimize an existing sprite PNG for pixel art games. Downscales large AI-generated sprites to proper pixel art resolution using area-averaging (not blurry bilinear). Also optionally removes background and crops. Use this to convert oversized "pixel art style" images into true pixel art at game-ready sizes.

ParameterTypeDescription
inputPath *stringPath to the input PNG file
size *numberTarget size in pixels for the longest side. Snaps to nearest standard size (16, 24, 32, 48, 64, 96, 128). Recommended: 16-24 for icons/particles, 32 for tiles, 48 for sprites, 64 for characters, 96-12…
outputPathstringOutput path (default: overwrites input)
removeBackgroundbooleanAuto-detect and remove background color (default: true)
squarebooleanPad output to square (default: false)