# pixelforge-mcp [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/freema/pixelforge-mcp  
**GitHub Stars:** 6  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pixelforge-mcp

## Description
MCP server that forges pixel art sprites & game assets using Google Gemini

## Tools
Capabilities this server exposes over MCP:

- **forge_sprite** — Generate a single pixel art sprite with automatic post-processing (crop, bg removal, downscale, square padding).
- **forge_animation** — Generate animation frames as individual, ready-to-use frame PNGs.
- **forge_background** — Generate a full game background — no cropping, outputs the image as-is.
- **forge_thumbnail** — Generate a game thumbnail/screenshot. Pass `references` for visual consistency with your sprites.
- **forge_tileset** — Generate a seamless, tileable square texture for terrain, floors and walls. No background removal — the texture fills the whole canvas.
- **forge_item_kit** — Generate up to 16 related sprites in one batch. Items are drawn together on a grid for visual consistency, then split into individual PNGs.
- **process_sprite** — Post-process an existing PNG — background removal, auto-crop, sprite sheet splitting.
- **optimize_sprite** — Downscale oversized AI images to true pixel art resolution using area-averaging (not blurry bilinear).

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "pixelforge-mcp": {
    "command": "npx",
    "args": ["-y","pixelforge-mcp@latest"],
    "env": {
      "GEMINI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `GEMINI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What pixelforge-mcp does

pixelforge-mcp connects an MCP-compatible AI assistant to Google Gemini for generating and processing pixel-art game assets. Its generation tools cover individual sprites, multi-frame animations, full backgrounds, and game thumbnails. Generated output is written to PNG files at paths supplied to the tools.

The server also handles common preparation work after generation. It can remove backgrounds, crop transparent margins, add square padding, split sprite sheets into individual frames, and reduce oversized images to a target pixel-art size. A built-in pixel-art prompt provides guidance for generation, including style and size considerations.

Style presets include neon, retro, Game Boy, SNES, and clean. Reference images can be passed to sprite, animation, and thumbnail generation so new assets can follow an existing visual direction.

## How it works

The server uses MCP tool calls to accept descriptions, output paths, dimensions, styles, and processing options. Google Gemini produces the source image, while the local PNG pipeline performs operations such as cropping, transparency handling, sheet splitting, and resizing. Downscaling uses area averaging rather than bilinear interpolation, which is intended to preserve a deliberate pixel-art appearance.

Animation generation requests a sprite sheet and then separates it into frame PNGs. Background generation keeps the returned image intact instead of applying sprite cropping. Model aliases select among the available Gemini image models: the default `nano-banana` alias, faster Flash options, a Pro option, or the 2.5 Flash fallback.

## Setup and configuration

Install the server with the latest npm package through an MCP client's standard stdio configuration. The essential environment variable is `GEMINI_API_KEY`, which must contain a Google Gemini API key. Node.js 20 or newer is required.

A generic configuration uses:

```json
{
  "mcpServers": {
    "pixelforge": {
      "command": "npx",
      "args": ["-y", "pixelforge-mcp@latest"],
      "env": {
        "GEMINI_API_KEY": "your-api-key"
      }
    }
  }
}
```

Claude Code can add the same server from its CLI or install the published plugin. Claude Desktop uses its MCP configuration file. Other MCP clients can use the equivalent stdio configuration.

## Tools and capabilities

- `forge_sprite` creates one sprite and can apply cropping, background removal, downscaling, and square padding. It accepts a description and output path, with options for size, style, background, aspect ratio, model, and references.
- `forge_animation` creates an animation sheet and exports separate frame PNGs. Frame count, names, descriptions, size, style, model, and references are configurable.
- `forge_background` generates an uncropped game background using a required aspect ratio.
- `forge_thumbnail` creates a game thumbnail or screenshot, optionally using reference images for visual consistency.
- `process_sprite` prepares an existing PNG through cropping, transparency handling, padding, and sprite-sheet splitting.
- `optimize_sprite` reduces an oversized image to a requested size with area averaging, with optional background removal and square output.

## Limitations and notes

The workflow is PNG-focused, and generated or processed files are written to paths supplied in tool arguments. Google Gemini access depends on a valid API key. The available model aliases include `nano-banana` and `banana`, `flash` and `gemini-flash`, `pro` and `gemini-pro`, plus `25` and `gemini-25`.

_Full upstream README: https://allmcps.com/mcp/pixelforge-mcp/readme_

