Skip to content
FunCoding

Froxel

Listed in the official MCP Registry

Voxel editor: sculpt, script, paint, rig, preview, and export .vox models to glTF

Star
15
Version
v0.4.0
License
MIT
Last commit
Dec 1, 2026

Froxel

Froxel

A voxel editor with a path tracer and an MCP server, written in Rust.
macOS, Windows, Linux, FreeBSD, Android, and iOS.

Download · MCP · Scripting · Bridges · Command line · Build

theromis/Froxel MCP server

Froxel editing the frog: tools and palette on the left, the viewport with its skeleton, the inspector and the objects on the right

Froxel opens and saves MagicaVoxel .vox files, edits them with brushes, shapes, and selections, path-traces them on the GPU, and exports glTF with bones and animation clips. An AI agent can drive all of it through the built-in Model Context Protocol server.

Features

  • .vox in and out. Keeps groups, layers, hidden objects, animation frames, and materials (_diffuse, _metal, _glass, _emit). Files saved by Froxel open in MagicaVoxel.
  • Editing. Brush, line, circle, square, box, face fill, generators, mutators, marquee, box select, and flood select. Add, remove, and paint modes. Object mode moves, rotates, mirrors, and flips whole objects. Each stroke undoes in one step.
  • Characters. Bones, rigid binding of objects to bones, poses, and animation clips, saved in the .vox file and exported to glTF.
  • Render mode. A path tracer with sky, sun, metal, glass, and emission. It accumulates on the GPU through wgpu (Metal, Vulkan, DX12) and falls back to the CPU. Denoising is built in. With One frame on (the default) an orbit or edit shows the edit view and a new frame starts once the view holds still; off, it renders live and starts over on every step of an orbit and edit.
  • glTF export. .glb with merged coplanar faces, no T-junctions, and a palette texture or vertex colours.
  • Mesh import. A .glb, .gltf, or .obj sculpted in Blender or made by an image-to-3D tool, voxelized solid or as a shell at a cell count or a voxel size in metres, its texture and vertex colours quantized into the palette.
  • Scripts. Objects can carry a sandboxed Rhai script with sliders for its parameters.
  • Bridges. Godot and Blender can drive those sliders and import the mesh live, then bake a standalone scene. See docs/bridges.md.
  • Automation. An MCP server for agents and a command line for batch renders.

The frog turning on a turntable, rendered frame by frame with froxel run render

Install

SystemInstall
macOS 11+brew install --cask theromis/froxel/froxel, or the signed and notarized .dmg
Windows 10 1809+Microsoft Store, or scoop bucket add froxel https://github.com/theromis/Froxel then scoop install froxel
Debian, UbuntuFroxel's apt repository (commands), or the .deb
Fedora, RHEL 8+sudo dnf copr enable theromis/froxel && sudo dnf install froxel
openSUSEFroxel's OBS repository (commands)
Any Linuxsudo snap install froxel, brew install theromis/froxel/froxel, nix run github:theromis/Froxel, or the .tar.gz
FreeBSDthe .tar.gz
Android 7.0+Google Play, or the .apk
Godot 4.3+, Blender 4.2+the add-on zips (Godot and Blender)

Files are on the latest release with a SHA256SUMS.txt. Froxel is not in any distribution's own repositories yet: apt and dnf find it only after Froxel's repository is added. docs/installation.md has every channel and system, what is still in review (Mac App Store, iOS App Store, winget), and how the builds are signed (CODE_SIGNING.md). Linux needs a Vulkan driver (Mesa or the GPU vendor's).

Try it on the frog, examples/frog.vox, or on the scripted lily pad, tests/fixtures/examples/lily_pad.vox.

Phones and tablets

Froxel on an iPhone: the frog with its skeleton, the file button above, and the tool, mode, colour and undo strip below

The Android and iOS builds are the same editor with a touch layout. The viewport fills the screen. The strip at the bottom holds the tool, add, remove, and paint, the colour, and undo. The tool settings, the palette, and the files open as sheets above it. The bundled frog and lily pad are under the folder button, and your own files are saved to the app's documents.

  • One finger uses the active tool.
  • Two fingers orbit and pinch to zoom. Three fingers pan.
  • Long-press the colour, then tap a voxel, to pick its colour.

On a tablet 700 points wide or more, the desktop tools and palette sit on the left instead of the strip.


Controls

  • Right-drag orbits. Scroll zooms. Space-drag or middle-drag pans.
  • Left-drag uses the active tool.
  • V brush, L line, C circle, Q square, B box, F face, N generator, P tube, S sculpt, U mutator, M marquee, K box select, W flood select. Each tool's tooltip names its key.
  • T add, R remove, G paint. These three apply in Model mode.
  • Tab switches Model and Object mode.
  • In Object mode, X / Y / Z rotates the active object. Shift flips it.
  • ⌘Z / ⇧⌘Z undo and redo. ⌘C / ⌘X / ⌘V copy, cut, and paste.
  • ⌘N / ⌘O / ⌘S / ⇧⌘S new, open, save, and save as.
  • ⇧⌘E exports a glTF .glb with a palette texture and merged faces.

On Windows and Linux, use Ctrl in place of ⌘.

MCP: let an agent build models

froxel mcp is a Model Context Protocol server. An agent can create objects, place voxels, fill boxes and ellipsoids, set the palette, add bones and clips, run scripts, export .glb, and path-trace a PNG to check its work. The frog in these pictures was built this way.

In Claude Code, the plugin adds the server and the agent skill together. It runs froxel from PATH, so install Froxel first (on macOS, link the app's binary: ln -s /Applications/Froxel.app/Contents/MacOS/froxel /usr/local/bin/froxel):

claude plugin marketplace add theromis/Froxel
claude plugin install froxel@froxel

Or in a session: /plugin install froxel --marketplace theromis/Froxel.

Without the plugin, add the server by path. On macOS, after installing from the dmg:

claude mcp add froxel -- /Applications/Froxel.app/Contents/MacOS/froxel mcp

Also install the agent skill, skills/froxel/SKILL.md, which tells the agent when and how to use the tools (block out, preview after every step, fit to reference views). Adding the server does not install it: copy the skills/froxel folder into ~/.claude/skills/, or without a clone:

mkdir -p ~/.claude/skills/froxel && curl -fsSL https://raw.githubusercontent.com/theromis/Froxel/main/skills/froxel/SKILL.md -o ~/.claude/skills/froxel/SKILL.md

Or add it to any MCP client's config. Releases from 0.3.4 on also go to the official MCP Registry as io.github.theromis/froxel, a container image that runs it headless (docker run -i --rm ghcr.io/theromis/froxel-mcp); see docs/registries.md.

{
  "mcpServers": {
    "froxel": {
      "command": "/path/to/froxel",
      "args": ["mcp"]
    }
  }
}

Then ask for a model:

Build a 16-voxel-tall voxel frog with big eyes and pink cheeks, give it a head and jaw bone, render it from the front, and export it to frog.glb.

froxel mcp works headless, with no window. To watch the edits happen, and let the agent take screenshots and click controls, connect it to an open editor:

froxel mcp --connect 127.0.0.1:7979 --launch

--launch opens the window if it is not already running. The full tool list and the connected mode are in docs/mcp.md.

Creatures and other one-off shapes are made by hand sculpting: block out with box and ellipsoid fills, refine single cells, render after every step, and compare with the reference. No script is stored. See docs/hand-sculpting.md.

Scripting

An object can carry a Rhai script. The editor shows a slider for each parameter, and Regenerate rebuilds the voxels. Scripts run in a sandbox with no file, network, or clock access, and saved files keep the voxels, so the .vox still opens in MagicaVoxel.

A lily pad generated by tests/fixtures/examples/lily_pad.rhai
let radius = param_float("radius", 8.0, 3.0, 16.0);
let seed = param_int("seed", 1, 0, 9999);

set_slot(1, [18, 72, 28]);   // a palette colour
// …for each cell inside a wobbly disc:
set(ix, 0, iz, slot);

The whole lily pad is tests/fixtures/examples/lily_pad.rhai. Scripts also have the hand-sculpting tools (tubes, carving, smoothing, breaks, and debris); tests/fixtures/examples/hollow_log.rhai uses all of them, and tests/fixtures/examples/fallen_tree.rhai shapes a fallen tree with loft, deform, and brush. The API is in docs/scripting.md.

Godot and Blender

froxel bridge serves a .vox on 127.0.0.1. A Godot node or the Blender sidebar connects with the printed session file, shows a slider for each script parameter, and imports the model as glTF, bones and clips included. Moving a slider reruns the script. Bake writes an ordinary scene or Blender object that no longer needs Froxel, and headless Godot can bake a list of variants in one go. --bridge PORT serves the open editor instead, so edits in the window show up in the next import.

froxel bridge --input tests/fixtures/examples/lily_pad.vox      # four sliders: radius, notch, direction, seed
froxel --bridge 29771 tests/fixtures/examples/lily_pad.vox

The lily pad's script sliders in the Godot inspector The lily pad's script sliders in the Blender sidebar

The Godot plugin is godot/addons/froxel_bridge and the Blender add-on is blender/froxel_bridge. Both are in every release since 0.2.0 as froxel-<version>-godot-addon.zip and froxel-<version>-blender-addon.zip; the Blender one is an extension for Blender 4.2+. Tested with Godot 4.5 and Blender 5.2. Listings on the Godot Asset Library and extensions.blender.org are being submitted (docs/registries.md). Setup, the variant baker, and the protocol are in docs/bridges.md.

Command line

froxel run <tool> runs any MCP tool on a .vox with no window. --input opens a file, --object makes an object active, --out saves the document, and the tool's own arguments are flags (--min-feature 2 is minFeature: 2; a,b,c is a list, true and false are booleans, {...} is JSON), a JSON object (--json), or a JSON file (--args, whose paths are relative to it). A tool that writes a file takes it as --path. The reply prints as JSON. froxel run --list names the tools and froxel run <tool> --help lists a tool's arguments, from the same schemas as MCP tools/list.

froxel run render path-traces a .vox file to a PNG. The CPU tracer is the default, so a given seed always writes the same image. --gpu true uses the wgpu tracer.

froxel run render --input examples/frog.vox --path frog.png \
  --width 1440 --height 810 --samples 256 --denoise true --gpu true \
  --yaw -62 --pitch 16 --distance 0.72

The frog, path-traced in Froxel

That command made this picture. froxel run render --help lists every option: camera, depth of field, sky, sun, glass mode, and the albedo and normal passes (--albedo-path, --normal-path). The turntable above is 48 such renders, one every 7.5° of --yaw.

Lily pad, lotus bank, reeds and a letter, rendered with froxel run render

froxel run preview draws the same .vox as the edit viewport lights it, rasterised on the CPU in a fraction of a second, fitted to the model (or --object) with a margin. docs/preview.md has the options; MCP preview is the same image. --preset game is the gameplay camera (orthographic, yaw −135, pitch 32; --presets redefines it for a project). Its reply counts the triangles the preview draws and the ones export_mesh writes with the --export options given.

froxel run preview --input model.vox --path preview.png --yaw -35 --pitch 30 --width 1600 --height 800

froxel run compare_silhouette scores the model's silhouette against a concept view: IoU, the share of the concept missing, and the share of the model in excess, with an overlay of the concept's outline and both in colour. froxel run carve_from_views fills the visual hull of a turnaround sheet's front, side, and top views, froxel run project_paint recolours the surface one view sees from a single image (a shell's plates from the top), froxel run fit_to_views refines a blockout so its orthographic views match the sheet's, with colours from its palette slots, and froxel run optimize_to_views iterates a small creature (20 to 60 cells) until its views match its pixel-art views, shape and colours together; built with --features clip-metal, its semantic option adds a CLIP patch-similarity term on Apple Metal (weights downloaded separately; see docs/mcp.md). See docs/mcp.md.

froxel run compare_silhouette --input log.vox --concept log-sheet.png --crop 40,60,520,300 \
  --view front --orthographic true --path log-vs-front.png
froxel run fit_to_views --input blockout.vox --args fit.json --out fitted.vox

froxel run export_mesh writes the glTF with the export_mesh options: --merge, --vertex-colors, --color-atlas, --export-hidden, --split-objects, and --ao-strength with --ao-radius and --ao-target vertex|texture|both for baked ambient occlusion in COLOR_0 or the colour atlas. --bake with --color-atlas paints ray-traced occlusion and a sun with shadows into the atlas, for a game to draw unshaded; froxel run preview --glb model.glb looks at the written file. froxel run bake_scene --scene scene.json --path level.glb bakes a placement of many .vox files together, each shaded by its neighbours and by ground, into one mesh with one atlas (tests/fixtures/examples/stacked_blocks_scene.json).

froxel run export_mesh --input ruins.vox --path ruins.glb --merge true --ao-strength 0.8 --ao-radius 3
froxel run export_mesh --input ruins.vox --path lit.glb --color-atlas true --bake '{"preset": "old_pond", "distance": 12}'

froxel run import_mesh --path tree.glb --voxel-size 0.08 --out tree.vox voxelizes a mesh with the import_mesh options and prints the report: cells, slots, and bounds.

froxel run export_variants --input wall.vox --variants sets.json --dir variants/ bakes a scripted document once per parameter set in sets.json (a list of {"name": "low", "params": {"height": 12}}) and writes low.vox, low.glb, and a variants.json manifest of each set's parameters, markers, and bounds; it takes the export_mesh options and --vox false. Exporting again into the same folder updates the manifest by variant name, so a subset can be redone without dropping the others; --replace true writes it fresh. The Export panel's Export variants… does the same.

froxel voxrt --input model.vox loads a file, saves it, loads the save, and checks that nothing changed: objects, palette, materials, scene graph, bones, scripts, and motion. --dump prints the chunk tree instead.

Build from source

You need Rust. On Linux, the editor loads Wayland or X11 and Vulkan at run time, so the build needs no -dev packages.

git clone https://github.com/theromis/Froxel
cd Froxel
cargo run --release -- examples/frog.vox

The binary is target/release/froxel. On macOS the File and Edit commands live on the application menu bar. Elsewhere, or with FROXEL_NO_NATIVE_MENU set, they are in a menu strip at the top of the window.

--features oidn links Open Image Denoise for --denoise. It needs the library on the build machine. Without it, Froxel uses its built-in edge-aware filter.

--features clip-metal (or clip on the CPU) adds the CLIP semantic term of optimize_to_views through candle. It reads OpenAI's CLIP ViT-B/32 weights (MIT licence, about 605 MB), which are not bundled: download model.safetensors of openai/clip-vit-base-patch32 to ~/Library/Application Support/Froxel/models/clip-vit-base-patch32.safetensors (or point FROXEL_CLIP_MODEL at it). The default build has no CLIP.

The phone builds need the Android NDK and cargo-apk, or Xcode on macOS:

cargo apk build --lib --features android-lib --release   # target/release/apk/froxel.apk
packaging/android/bundle.sh                               # Play bundle, froxel.aab (needs a JDK)
packaging/ios/bundle.sh                                   # simulator Froxel.app

Tests:

cargo test --bin froxel

What changed in each version is in CHANGELOG.md. Releases are built by a GitHub workflow. See docs/releasing.md.

Thanks

Inspired by MacVoxel.

License

MIT. See LICENSE.

Similar MCP servers

Official

markitdown

Convert various file formats (PDF, Word, Excel, images, audio) to Markdown.

MImicrosoft/markitdown199k1,075 new stars in the last 7 days

HyperFrames by HeyGen

Official HyperFrames by HeyGen: the best AI video editor in chat. Captions, motion graphics, MP4.

HEheygen-com/hyperframes93k4,463 new stars in the last 7 days

Featured

tldraw

Collaborate with agents on a canvas: draw shapes and run code live.

TLtldraw/tldraw52k130 new stars in the last 7 days

Next AI Draw.io

draw.io diagrams your AI agent draws on a live browser canvas that you can also edit by hand

DADayuanJiang/next-ai-draw-io37k119 new stars in the last 7 days

Featured

mcp-for-blender

Let your agent model, build and edit 3D scenes in Blender.

AHahujasid/mcp-for-blender37k952 new stars in the last 7 days

screenpipe

Search your local screen recordings, audio transcripts, and computer activity from screenpipe.

SCscreenpipe/screenpipe23k97 new stars in the last 7 days