Blockbench MCP
Enables AI assistants to work inside a live Blockbench project, building and editing Minecraft models, painting textures, creating animations, capturing previews, managing projects, and exporting models.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Blockbench MCP
Let AI assistants build, paint and animate Minecraft models in Blockbench, and see what they are doing.
This is the image the AI receives. It built, textured and animated this penguin using only the plugin's tools.
Why
A Blockbench plugin runs inside the app, so an AI client connected to it works on your open project, live on your screen. Three things make it practical for real modeling:
The AI can see.
capture_previewrenders any angle or animation frame without moving your camera, so the AI can check its work and fix mistakes.It works at a high level. One call creates a whole tree of bones and cubes, and
paint_facespaints a face in its own pixels with no UV math.You stay in control. Every tool call is one
Ctrl+Zstep, and files are never overwritten unless the call explicitly asks for it.
The plugin is a single JavaScript file with no dependencies.
Related MCP server: Blockbench MCP
Quick start
1. Install Blockbench 5.2 or newer. On Windows:
winget install JannisX11.Blockbench2. Load the plugin. In Blockbench, open File > Plugins..., choose Load Plugin from File, select plugin/blockbench_mcp.js and confirm. It loads automatically from then on, as long as the file stays in place.
Blockbench asks for network access because the plugin runs a local server. Choose Always allow for this plugin.
3. Connect your AI client. Keep Blockbench open while the client connects.
Claude Code:
claude mcp add --transport http blockbench http://127.0.0.1:3939/mcpAny client that supports Streamable HTTP uses the same URL: http://127.0.0.1:3939/mcp.
Clients that only support stdio, such as a local Claude Desktop configuration, use the included bridge, which needs Node.js 18 or newer:
{
"mcpServers": {
"blockbench": {
"command": "node",
"args": ["/absolute/path/to/blockbench-mcp-addon/bridge/stdio-bridge.mjs"]
}
}
}ChatGPT runs in the cloud, so it needs a tunnel. See the ChatGPT and ngrok guide.
4. Ask for something.
Make a penguin in Bedrock format with a Minecraft-style texture and a walk animation. Check the preview after each stage.
The server address and a log of recent AI activity are in Tools > MCP Server.
Tools
Area | Tools |
Preview |
|
Modeling |
|
Texturing |
|
Animation |
|
Projects |
|
Scripting (off by default) |
|
Highlights:
capture_previewframes the model automatically and combines several views into one labeled sheet. It also supports perspective and orthographic cameras, wireframe and UV modes, and poses from any animation frame.add_elementsaccepts cubes, nested groups and locators, plus meshes from raw geometry or primitives (sphere, cylinder, cone, torus, plane).duplicate_elementscan mirror a limb and swapleft/rightin its name.Paint operations include fill, rectangle, line, ellipse, gradient, noise, image and exact pixel grids.
add_keyframestakes numbers or Molang expressions.
Supported formats
All formats in your Blockbench install work, including:
Java block and item models
Bedrock entities and blocks, with animations
Vanilla models to repaint: player skins and Minecraft mobs and objects such as the creeper or chest
2D art: pixel-art icons and block or item textures
Generic models, exported to glTF, OBJ, FBX, Collada or STL
Security
The server listens only on
127.0.0.1and rejects requests that have anOriginheader or an unexpectedHost, so websites open in your browser cannot control Blockbench. The only exception is a request with the secret key fromTools > MCP Server.There is no password. Any program running on your computer can connect.
Connected clients can read and write files at the paths they pass, but an existing file is only overwritten when the call sets
overwrite: true.run_scriptruns arbitrary JavaScript with access to your files, so it is off by default. Turn it on with theMCP: Allow run_scriptsetting only if you trust the connected client.A tunnel such as ngrok makes the server reachable from the internet, protected by that key. Anyone with the full address has the access described above, so see the ChatGPT guide before using one.
See SECURITY.md to report a vulnerability.
Troubleshooting
Problem | What to do |
The client cannot connect | Make sure Blockbench is open, then run |
The port is taken | Change |
A tool does not finish | A dialog may be waiting in Blockbench. Tool results report open dialogs, and |
| The Blockbench window is covered, so it is not repainting. |
How it works
flowchart LR
A[MCP client] -- HTTP --> C[Plugin inside Blockbench]
B[stdio client] --> D[stdio bridge] -- HTTP --> C
C --> E[Live project: model, textures, animations]
C -- rendered images --> APlugins run in the Blockbench window process with full access to its API (Cube, Group, Texture, Canvas, Undo). Blockbench does not give plugins the http module, so the plugin implements a small HTTP/1.1 server for MCP Streamable HTTP on top of net.
Development
There is no build step: edit plugin/blockbench_mcp.js and reload the plugin from File > Plugins....
Check syntax:
npm run checkRun the end-to-end tests against a running Blockbench with the plugin loaded. They open and close their own project tabs and write files only to test/output:
npm testBuild the example model:
npm run demoSee CONTRIBUTING.md for details.
License
This is an independent project and is not affiliated with Blockbench or Mojang. Minecraft is a trademark of Mojang.
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate game-ready 3D models, textures, and audio from natural language, over MCP.
Minecraft builds and skins made by your AI agent, live in your browser tab. Export .schem.
Generate AI video, images and audio, and browse your history, from any MCP client.
Generate AI images, video, music, and sound effects, and upscale them, from any MCP client.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI assistants to build Minecraft models, textures, and animations directly inside Blockbench through the Model Context Protocol.4650MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Blockbench for Minecraft 3D modeling, including project creation, cube placement, UV layout, and texture painting.GPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables AI-driven creation and editing of Minecraft creature models, textures, and skeletal animations in Blockbench, targeting BetterModel and ModelEngine workflows.5GPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to build, texture, animate, and export Minecraft/GeckoLib cube models inside Blockbench via the Model Context Protocol.MIT