# mc-asset — Minecraft Pixel Asset Engine [Health: Active]

**Category:** 🎮 Gaming  
**Repository:** https://github.com/smile-minecraft/mc-asset  
**GitHub Stars:** 5  
**npm Downloads (last month):** 1186  
**Views:** 9  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mc-asset-minecraft-pixel-asset-engine

## Description
Deterministic Minecraft pixel-art engine: textures, animation sheets, and pack validation.

## Tools
Capabilities this server exposes over MCP:

- **analyze_asset** — Analyze a raster image (PNG, JPEG, WebP) and return a read-only report: dimensions, palette, predicted alpha classification, pixel-art characteristics, and processing recommendations. Reads only, never writes.
- **pixelize_asset** — Run a reference raster image through the deterministic pixelize pipeline and return PNG bytes and/or the editable .mcpx source. The input must be PNG, JPEG, or WebP, never .mcpx.
- **render_pixel_asset** — Render a hand-authored ASCII Grid (inline text or a .grid file, exactly one) into PNG bytes and/or the editable .mcpx source, with an optional batch applied after parsing. For pixel-level authorship without per-pixel tool calls.
- **apply_asset_operations** — Apply a batch of Core pixel/layer/region operations to an editable .mcpx source in one call (atomic by default: the first failure rolls everything back). This is the batch-edit slot; never split pixel work across hundreds of per-pixel tool calls.
- **recolor_asset** — Recolor an editable .mcpx source with a builtin material id, optionally limited to one region id, and return PNG bytes and/or the recolored source.
- **create_variants** — Fan out one editable .mcpx source into per-material variants under an explicit output directory, each starting from the pristine source so reruns stay byte-identical.
- **validate_asset** — Validate an asset file and return a read-only verdict with findings. Reads only, never writes; an optional explicit .mcmeta path is used verbatim.
- **import_asset** — Decode a raster image (PNG, JPEG, WebP) into the Pixel Canvas with an optional batch applied after import. Returns PNG bytes and/or the editable .mcpx source via explicit output paths or embedded artifacts; no force, mkdir, or in-place writes.
- **build_asset** — Build an editable .mcpx source into a texture or re-serialize the source, with an optional batch applied after parsing. Returns PNG bytes and/or the built source via explicit output paths or embedded artifacts; no force, mkdir, or in-place writes.
- **transform_asset** — Apply one spatial transformation (flip, rotate, crop, pad, resize, or translate) to a raster image or .mcpx source. Returns PNG bytes and/or the editable source via explicit output paths or embedded artifacts; no force, mkdir, or in-place writes.
- **quantize_asset** — Reduce the distinct colors of a raster image or .mcpx source to a target count or an explicit palette, with reserved colors kept byte-identical and an optional selection. Returns PNG bytes and/or the editable source via explicit output paths or embedded artifacts; no force, mkdir, or in-place writes.
- **cleanup_asset** — Detect or eliminate isolated, noise, or outlier pixels in a raster image or .mcpx source, optionally scoped by a selection. Returns PNG bytes and/or the editable source via explicit output paths or embedded artifacts; no force, mkdir, or in-place writes.
- **palette_asset** — Run the palette extract or inspect subcommand over an image and return a read-only report of unique colors, distribution, roles, or contrast. Reads only, never writes.
- **material_asset** — Run the material list or show subcommand and return a read-only report of builtin material definitions or one material's color ramps. Reads only, never writes.
- **tile_asset** — Analyze seams, edge repetition, and brightness continuity of a tileable image, with an optional tiled preview grid. Reads the input and returns a report, or writes a preview PNG only to the explicit output path; never invents filenames.
- **generate_asset** — Generate a deterministic procedural texture from a named pattern, size, palette, and seed. Returns PNG bytes and/or the editable .mcpx source via explicit output paths or embedded artifacts; no force, mkdir, or in-place writes.
- **preview_asset** — Preview an image in ascii, palette-map, scale, or nine-slice mode. Read-only except scale and nine-slice, which may write a PNG only to the explicit output path; never invents filenames.
- **animate_asset** — Run one animation subcommand (pack, unpack, reorder, resize, validate, or preview) over frames or a sprite sheet. Pack writes a sheet PNG only to the explicit output path and unpack, reorder, and resize write frames only to the explicit output directory; validate and preview return read-only reports.
- **validate_pack_asset** — Scan a resource pack root for namespace, model, texture, and atlas integrity and return a read-only verdict with findings. Reads only, never writes.
- **scale_gui_asset** — Scale a GUI sprite to N or WxH with the mcmeta stretch/tile/nine_slice mapping. Returns PNG bytes and/or the scaled PNG via an explicit output path; never invents filenames.
- **inspect_asset** — Inspect an editable .mcpx source or raster image without writing: structure reports layers, regions, color usage, and overlaps; view returns the composited PNG plus metadata. Raster inputs read as a single base layer.
- **optimize_asset** — Losslessly optimize explicit PNG inputs without rewriting sources.
- **model_asset** — Inspect, validate, create, apply, export, or preview Java models, or exchange a Blockbench Java Block/Item project: import-bbmodel returns model JSON plus PNG textures, export-bbmodel packs a model and PNGs into .bbmodel. Preview renders a diagnostic three-view PNG, one isometric panel when view is isometric and viewDirection picks the camera, or one panel for a game display slot (gui, firstperson_righthand, thirdperson_righthand, head, ground, fixed) with that display transform applied; lighting applies the fixed per-face shade factors selected by gui_light and tint/tints multiply tintindex faces by a caller colour. It still omits ambient occlusion, world light, shadows and the game's hand/head/frame poses, never writes without outputPath and never claims game rendering.
- **mcmeta_asset** — Generate an animation or GUI scaling .mcmeta document from a PNG. Writes only to the explicit .mcmeta outputPath (never merges; force replaces the whole file); without outputPath it returns the text. The PNG is read only. Checks the document is valid, not how it looks in game.
- **compare_assets** — Compare same-size PNGs without modifying sources. Optional diagnostic image marks visible changes magenta and raw-only changes cyan; not a replacement asset.
- **style_asset** — List the builtin style presets, show one resolved style (builtin id or a .style.json path with its extends chain), export a family palette as .mcpx, or write a new .style.json document. Style files are read-only inputs except for create and export-palette, which write only their explicit output path.
- **pack_asset** — Create a resource pack project: init writes the project document, the pack root metadata for the pinned release version, a 64x64 placeholder icon, and the assets directory skeleton in one preflighted batch. An occupied target refuses the whole batch and reports every conflicting path; nothing is overwritten. The project document is written once and then read only.
- **particle_asset** — Generate a particle definition (assets/<namespace>/particles/<id>.json) and its frame sprites (assets/<namespace>/textures/particle/<prefix>_<n>.png) from a frames directory or one PNG/.mcpx frame. Frames are ordered by UTF-8 file-name bytes, never readdir order; textures[] entries are namespaced paths without .png or the textures/particle/ prefix. Every target is checked before the first write, and an occupied path refuses the whole batch unless force is true. The tool cannot add new particle types; a pack only overrides existing ones.
- **font_asset** — Lay icon images (PNG or .mcpx) into grid-aligned bitmap font atlases and build the font definition (one bitmap provider per height/ascent group, plus optional space and reference providers) and the icon-to-character table. Each icon may set its own height and ascent; icons that share a pair share one atlas, and a spec with several pairs writes one atlas per pair. Icons are sorted by name and code points are allocated deterministically, so shuffled input produces byte-identical artifacts. Every chars row is padded to the column count with U+0000, ascent may be negative, and space advances are signed. A duplicate code point, an ascent above its height, or an over-tall icon is refused before anything is written.
- **entity_asset** — Inspect a Minecraft box-UV entity layout, write a template PNG and/or an editable .mcpx with one named region per face (optionally face-colored), validate a texture's size and report non-transparent pixels outside every face, or render four isometric views of the texture wrapped around the layout's parts. Builtin player wide/slim layouts plus caller-supplied layout documents; reads only except template and preview outputs.
- **equipment_asset** — Generate an equipment definition (assets/<namespace>/models/equipment/<id>.json at pack format 42.0, assets/<namespace>/equipment/<id>.json from 46.0) plus one 64x32 armor or elytra texture template per layer entry at assets/<namespace>/textures/entity/equipment/<layer type>/<texture>.png. Layer types are checked against the target version's client enum, entries may be dyeable or use the player texture, and only humanoid, humanoid_leggings and wings have a verified texture layout (template false writes the definition alone). Every target is checked before the first write, an occupied path refuses the whole batch unless force is true, and without outputDir the definition text and each template embed instead.

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

```json
"mcpServers": {
  "mc-asset-minecraft-pixel-asset-engine": {
    "command": "npx",
    "args": ["-y","mc-asset","mcp"]
  }
}
```

## Documentation

## What mc-asset does

mc-asset — Minecraft Pixel Asset Engine provides a pixel-native workflow for creating and checking Minecraft Java Edition resource-pack assets. It accepts character-grid sprites and editable multi-layer `.mcpx` sources, then produces PNG images. The toolchain also supports pixelizing reference art, reducing colors, generating procedural textures, creating seamless tiles, producing material variants, and assembling animation sheets.

The same engine is available from a command-line interface and a stdio MCP server. This lets shell scripts and AI coding agents use the same rendering behavior and output rules. It is intended for text-driven asset creation, where a sprite can be described as data instead of edited by hand.

## How it works

mc-asset — Minecraft Pixel Asset Engine uses deterministic processing: identical inputs and seeds produce identical output bytes. The implementation avoids unseeded randomness and uses integer-only color blending, with reproducibility stated across Bun and Node environments.

Inputs can include `.grid` character layouts, `.mcpx` layered sources, reference images, dimensions, palettes, pattern settings, and fixed seeds. Supported procedural patterns include noise, clustered noise, stripes, checker, gradient, brick, spots, veins, cracks, and grain. Generated images can be arranged into vertical animation strips suitable for Minecraft’s `.mcmeta` animation format.

For automation, JSON output uses a stable envelope containing `success`, `result`, or `error`. Logs are kept off standard output, and errors include stable codes intended for parsing.

## Setup and configuration

The MCP server can be started directly from npm with `npx -y mc-asset mcp`. The package also supports a global npm installation, a Homebrew installation on macOS and Linux, or a source build from the Git repository.

Source builds use Bun for installation and building, while the generated executable uses Node.js. The project documents testing with Node.js 22 and Bun 1.3. With Bun alone, the repository provides a command for running the executable directly.

No environment variables are documented as required. Output paths must be supplied explicitly. Existing files require a force option, and writes use a temporary file followed by an atomic rename.

## Tools and capabilities

Documented capabilities include:

- Rendering character-grid sprites to PNG.
- Pixelizing reference images.
- Quantizing images to a smaller color set.
- Generating seeded procedural patterns.
- Creating material variants from palette roles.
- Building seamless tile textures.
- Packing animation frames into sheets.
- Validating a complete resource pack.
- Returning machine-readable results and stable errors.

mc-asset — Minecraft Pixel Asset Engine is a fit for agents that need repeatable asset generation, scripted resource-pack checks, or text-editable pixel sources. It does not replace a general image editor for unrestricted visual authoring; its documented workflow is centered on pixel grids, layered source files, commands, and structured operations.

_Full upstream README: https://allmcps.com/mcp/mc-asset-minecraft-pixel-asset-engine/readme_

