blockbench-mcp
Allows AI assistants to directly control active Blockbench projects: create and delete cubes, inspect model structure and element hierarchy.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@blockbench-mcpAdd a cube at the center with dimensions 2x2x2"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BlockbenchMCP
:uk: English · :ru: Русский
Connect Blockbench to AI assistants (OpenCode, Claude, and others) via the Model Context Protocol (MCP). The AI can directly control your active Blockbench project: create and delete cubes, inspect the model and its element structure.
Architecture
AI assistant (MCP) ←→ mcp-server (Node.js) ←Socket.IO:9999→ mcp-plugin (Blockbench)apps/mcp-plugin— Blockbench plugin. Receives commands over Socket.IO (port9999) and executes them in the current project.apps/mcp-server— MCP server. Implements the MCP protocol over stdio and forwards commands to the plugin.packages/shared— shared TypeScript types.
Related MCP server: Blockbench MCP
Tools
Tool | Description |
| Checks the connection to Blockbench |
| Info about the current project (format, texture size, element/texture/animation counts) |
| Lists elements (cubes) in the project with uuid and name |
| Creates a cube (position, size, auto-UV, shade, color, uv_offset) |
| Removes an element by name or uuid |
Installation
Prerequisites
Blockbench (current version, tested on 5.x)
Node.js 20+
pnpm (
npm install -g pnpm)
1. Build
git clone https://github.com/Golub4ik-Official/blockbench-mcp.git
cd blockbench-mcp
pnpm install
pnpm buildArtifacts are written to:
apps/mcp-plugin/dist/mcp_socketio_plugin.js— the plugin fileapps/mcp-server/dist/index.js— the MCP server
For end users: a ready-built plugin file (
mcp_socketio_plugin.js) is attached to every release — no build required.
2. Install the Blockbench plugin
Open Blockbench.
File → Plugins → Load Plugin from File → select
apps/mcp-plugin/dist/mcp_socketio_plugin.js.Enable the plugin (checkbox next to "MCP Plugin").
After it loads, the "MCP Commands" panel appears (on the right) — it shows the command history and connection status.
3. Configure the MCP server in your assistant
Register the MCP server in your assistant's config. OpenCode example (opencode.json):
{
"mcp": {
"blockbench": {
"type": "local",
"command": ["node", "C:/path/to/blockbench-mcp/apps/mcp-server/dist/index.js"],
"enabled": true
}
}
}Claude Desktop example (claude_desktop_config.json):
{
"mcpServers": {
"blockbench": {
"command": "node",
"args": ["/path/to/blockbench-mcp/apps/mcp-server/dist/index.js"]
}
}
}4. Usage
Open Blockbench and create a project (File → New → Block model).
Start or restart your assistant so it picks up the MCP server.
Ask the assistant, for example: "Create a generator like in Industrial Craft 2 — case, front panel, and an output slot."
Cubes are added to the active Blockbench project.
Development
# Watch-build the plugin (rebuilds on changes)
cd apps/mcp-plugin && pnpm dev
# Rebuild the MCP server
cd apps/mcp-server && pnpm buildAfter editing plugin code, rebuild it and reload it in Blockbench: File → Plugins → Master → Reload.
Releases
Releases are created from tags. The GitHub Actions workflow builds the plugin and attaches mcp_socketio_plugin.js to the release:
git tag v0.3.0
git push origin v0.3.0Troubleshooting
"ERROR: Blockbench plugin is not connected" — the plugin is not loaded or Blockbench is closed. Load the plugin and check the "MCP Commands" panel.
Port 9999 is busy — close the conflicting process or restart the MCP server.
Timed out — Blockbench did not respond within 30 seconds. Make sure a project is open and the plugin is active.
The
addElementmethod is not found — use the current plugin version (from a release); old builds used a broken API for older Blockbench versions.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceConnects Claude AI to Blockbench through Model Context Protocol, enabling AI-assisted 3D modeling, texture creation, and block model manipulation with real-time command execution and feedback.28MIT
- Alicense-qualityBmaintenanceEnables AI agents to create and edit 3D models in Blockbench via the Model Context Protocol.334GPL 3.0
- AlicenseAqualityCmaintenanceEnables AI assistants to build Minecraft models, textures, and animations directly inside Blockbench through the Model Context Protocol.461MIT
- Alicense-qualityBmaintenanceEnables AI agents to interact with Blockbench, a 3D modeling tool for Minecraft, through a plugin-based MCP server.GPL 3.0
Related MCP Connectors
Generate, edit, and deploy immersive 3D/WebGL web projects from any MCP assistant.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Golub4ik-Official/blockbench-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server