Blockbench MCP Bridge
The Blockbench MCP Bridge lets AI agents programmatically control Blockbench for 3D model creation, editing, texturing, animation, and quality assurance. Key capabilities include:
Project Management
Check connection status, open/save
.bbmodelfiles, export via active codec, and list available formats
Model Creation & Editing
Generate complete chibi pets (fox, wolf, cat, rabbit) with 40+ cubes, bones, textures, and animations from a short brief
Apply full model specs (groups, cubes, UVs, textures, animations) atomically to new or existing projects
Build models from image blueprints using compressed geometry primitives:
box,tapered_stack,chain,ragged_panel,crystal_cluster,skull,ribcage,armor_plateCreate empty rig presets for weapons, pets, quadrupeds, or humanoid golems
Patch or remove specific cubes/bones by name/UUID with undo support
Texturing
Capture the texture atlas (with color/transparency stats) for AI inspection
Paint precise pixel rectangles with undo support; supports emissive, additive, and layered render modes
Animation
Add animations with Molang expressions, bezier/catmullrom/step interpolation, keyframes, and timeline markers
Generate combat combos (1–8 hits) with anticipation, contact, follow-through, recovery, body lunge, hit markers, and SFX cues
Visual Inspection & Quality Control
Set camera position, FOV, and orthographic mode; capture viewport screenshots
Capture four-view turntables (hero, front, side, back) for proportion review
Generate quality reports scoring silhouette, face detail, symmetry, rig coverage, and animation timing
Audit geometry for invalid bounds, missing textures, UV overflow, unrigged cubes, and animation loop issues
Allows AI to control Blockbench, a 3D modeling program, for creating and editing Minecraft-style models, including pet chibis, weapons, and golems, with features like project management, rig creation, animation, texture generation, and quality reporting.
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 MCP BridgeCreate a chibi fox pet from reference image"
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.
Blockbench MCP Bridge 0.6
MCP server cục bộ cho phép AI điều khiển Blockbench bằng các thao tác có cấu trúc, không chạy JavaScript tùy ý. Server dùng MCP stdio; plugin Blockbench kết nối đến server bằng WebSocket chỉ trên loopback.
Tính năng
Tạo project Blockbench mới hoặc thêm chi tiết vào project đang mở.
Sinh pet chibi chất lượng cao từ brief ngắn: fox/wolf/cat/rabbit, bảng màu, phụ kiện, scale và bộ animation.
Nhận ảnh reference qua ChatGPT vision, biên dịch blueprint nén thành model Blockbench thay vì bắt AI liệt kê hàng trăm cube thủ công.
Dựng group/bone phân cấp và cube với tọa độ, pivot, rotation, inflate chính xác.
Box UV hoặc UV riêng cho sáu mặt; gán texture theo tên.
Tạo texture pixel material-aware theo phong cách hand-painted: metal, cloth, organic, bone và crystal với shadow/highlight/hue-shift/accent xác định.
Chụp atlas texture để AI nhìn trực tiếp rồi sơn hoặc sửa từng pixel trong project đang mở.
Packed face UV tự cấp vùng texture riêng cho từng mặt cube, có báo tràn atlas và gợi ý tăng resolution/giảm tile.
Sinh combo chiến đấu 1–8 hit có anticipation, contact, follow-through, recovery, body lunge, hit marker và cue SFX.
Tạo animation rotation, position và scale theo keyframe.
Advanced animation: Molang, pre/post data points, bezier handles và timeline markers để đồng bộ skill.
Rig preset chuyên nghiệp cho weapon, ModelEngine pet, quadruped pet và humanoid golem.
Locator/socket cho VFX, projectile, tay, miệng, đầu kiếm và điểm va chạm.
Display transforms cho item Minecraft ở tay, GUI, ground, head và item frame.
Texture emissive/additive và vertical animation strip với frame metadata.
Đặt camera, chụp viewport để AI tự kiểm tra model.
Chụp turntable tự động ở bốn góc hero/front/side/back.
Quality report chấm cấu trúc silhouette, độ phân lớp khuôn mặt, đối xứng, rig và animation; luôn yêu cầu kiểm tra ảnh trước khi hoàn tất.
Audit model, mở project tham khảo, đọc cấu trúc, lưu
.bbmodelvà export theo format hiện tại.
Related MCP server: Blockbench MCP
Cài đặt
Yêu cầu Node.js 20 trở lên và Blockbench 5.0 trở lên.
cd C:\Users\user\Documents\pack
npm.cmd install
npm.cmd run buildTrong Blockbench:
Mở File > Plugins.
Chọn Load Plugin from File.
Chọn
C:\Users\user\Documents\pack\blockbench-plugin\blockbench_mcp_bridge.js.Plugin tự kết nối đến
ws://127.0.0.1:32145khi MCP server đang chạy.
Đăng ký MCP server trong MCP client bằng cấu hình tương đương file mcp-config.example.json. Sau khi client khởi động server, vào Tools > Connect Blockbench MCP nếu plugin chưa tự kết nối.
Mặc định bridge dùng 127.0.0.1:32145 và token blockbench-mcp-local, khớp với file cấu hình mẫu. Có thể đổi bằng Tools > Configure Blockbench MCP. WebSocket chỉ chấp nhận kết nối nội bộ; không đặt host thành 0.0.0.0.
MCP tools
blockbench_status: kiểm tra bridge và project hiện tại.blockbench_list_capabilities: liệt kê format và codec hiện có.blockbench_open_project: mở.bbmodelkhông nén từ đường dẫn cục bộ.blockbench_create_rig: tạo rig weapon/pet/quadruped/golem chuẩn hóa.blockbench_create_pet: dựng pet chibi hoàn chỉnh từ art-direction cấp cao, gồm 40+ cube có tên, 20 bone, texture, socket và animation.blockbench_apply_model: áp dụng toàn bộ model specification.blockbench_build_from_reference: nhận blueprint do ChatGPT phân tích từ ảnh; hỗ trợ dry-run và compiler geometry cấp cao.blockbench_patch_model: sửa cube/bone hoặc xóa cube theo tên/UUID sau khi xem turntable, có Undo nguyên tử.blockbench_capture_texture: chụp atlas kèm số màu, pixel trong suốt và kích thước để AI kiểm tra chất lượng texture.blockbench_paint_texture: sơn lại texture hiện có bằng pixel rectangle chính xác, có Undo trong Blockbench.blockbench_create_combat_combo: tạo combo vũ khí cấp cao và trả cue sheet thời gian/SFX cho từng hit.blockbench_add_animation: thêm animation nâng cao vào project hiện tại.blockbench_get_project: đọc bone, cube, texture, animation và giới hạn model.blockbench_audit_model: kiểm tra geometry, UV, texture, rig, loop và display transforms.blockbench_set_camera: đặt camera cho bước kiểm tra hình ảnh.blockbench_capture_preview: chụp viewport trả về cho AI.blockbench_capture_turntable: tự căn camera và chụp bốn góc để phát hiện khối rời, silhouette gãy hoặc tỷ lệ xấu.blockbench_quality_report: chấm chất lượng cấu trúc theo profile pet/weapon/golem; đây không thay thế kiểm tra ảnh.blockbench_save_project: lưu file.bbmodeltrên Blockbench Desktop.blockbench_export_model: export bằng codec của format hiện tại.
Quy trình pet nên dùng: status → create_pet → capture_turntable → quality_report → sửa theo ảnh → chụp lại → audit_model → save_project. Với vũ khí/golem: create_rig → apply_model rồi dùng cùng vòng kiểm tra.
Vẽ từ ảnh gửi trong ChatGPT
Khi người dùng đính kèm ảnh, ChatGPT/Codex vision đọc trực tiếp ảnh rồi gọi blockbench_build_from_reference. Trường source_image chỉ lưu nguồn tham chiếu; bridge không tự đoán nội dung ảnh từ tên file. Vì vậy không cần API key thứ hai khi MCP được dùng từ một client đã có khả năng nhìn ảnh.
Quy trình bắt buộc:
AI đọc front/side/back/detail trong ảnh, tỷ lệ, palette và danh sách bộ phận.
AI gửi blueprint với bone, material và primitive, lần đầu đặt
dry_run: true.MCP bung blueprint thành cube và báo số lượng, reference lỗi và cảnh báo độ tin cậy mà không thay đổi Blockbench.
Sau khi dry-run hợp lệ, AI gọi lại với
dry_run: false.AI chụp turntable, so sánh với ảnh gốc và dùng
blockbench_patch_modelđể sửa silhouette.AI dùng
blockbench_capture_texture→blockbench_paint_texturecho các lượt base/shadow/highlight/accent/wear, rồi chụp lại model.
Primitive nén hiện có:
box: khối chính xác hoặc mirror theo trục X.tapered_stack: tay, chân, cán vũ khí, sừng hoặc khối thuôn nhiều đoạn.chain: chuỗi mắt xích xen kẽ giữa hai điểm.ragged_panel: áo choàng/vải rách với độ dài mép biến thiên.crystal_cluster: lõi và cụm tinh thể thường/emissive.skull: hộp sọ nhiều lớp gồm mắt, má, hàm và răng.ribcage: xương sườn, cột sống và lõi tùy chọn.armor_plate: giáp nền với bốn cạnh trim.organic_fin: đường cong nhiều phiến cho vây, đuôi, sừng, vải, tóc, lửa hoặc silhouette sinh vật hữu cơ.layered_armor: các phiến giáp chồng có taper, offset, fan rotation và trim riêng cho vai, tay, chân hoặc mũ.cage_frame: khung hộp 12 cạnh kèm vertical/horizontal/depth bars cho cargo, lồng, máy móc và giáp hở.
Schema 0.6 có art_direction.geometry_style, texture_style, silhouette_priority, uv_layout và paint_passes. Material có thể khai báo style, accent_colors, contrast, noise_density, edge_highlight, tile_size và seed ổn định. Cách làm này được rút ra từ luồng blockout → silhouette → pixel paint → kiểm tra cuối trong video Luyện tay nâng cấp model #7 của PhongAqua/Fancy Minecraft Vietnam.
Nghiên cứu 0.6 bổ sung ba case: Possessed Knight Armor cho giáp chồng lớp và texture theo mặt, Axe Combo Attack cho nhịp anticipation/contact/follow-through kèm SFX, và Ocean Cargo Fish cho khung cargo cơ khí kết hợp silhouette sinh vật.
Ảnh reference nhiều góc như concept sheet front/side/back cho kết quả tốt nhất. Nếu chỉ có một góc, compiler sẽ cảnh báo cần giả định chiều sâu và yêu cầu sửa qua turntable.
Thiết kế này bám theo luồng multimodal chính thức: model có thể nhận ảnh bằng URL, data URL base64 hoặc file ID; kết quả phân tích được ép về schema trước khi gọi compiler. Tham khảo OpenAI Images and Vision và Structured Outputs.
Ví dụ pet cáo:
{
"name": "Mochi Fox Pro",
"species": "fox",
"accessory": "bow",
"scale": 0.9,
"animation_set": "full",
"colors": {
"primary": "#EF7835",
"secondary": "#FFF1D6",
"accent": "#FF8FA8"
}
}Model specification
File examples/fire_sword.json là ví dụ đầy đủ về vũ khí có bone, texture pixel và animation. Các tham chiếu nên dùng group.id ổn định thay vì chỉ dùng tên.
Kết quả nghiên cứu ba pack weapon/pet/golem nằm trong research/PACK_FINDINGS.md. Tài sản mua không được đưa vào repository.
mode: "replace" tạo một tab project mới nên không đóng hoặc ghi đè tab cũ. mode: "append" thêm nội dung vào project hiện tại và có Undo.
Các giới hạn an toàn:
cube.fromphải nhỏ hơncube.totrên cả ba trục.Parent, texture và animation bone phải tồn tại.
Pixel patch không được vượt khỏi kích thước texture.
Texture pixel patch trong model spec áp dụng khi tạo texture mới; dùng
blockbench_paint_textuređể chỉnh atlas đang mở.Plugin không cung cấp lệnh thực thi mã tùy ý.
Phát triển và kiểm thử
npm.cmd run check
npm.cmd test
node --check blockbench-plugin\blockbench_mcp_bridge.jsTài liệu tham khảo: Blockbench Plugin Guide, Blockbench API Reference, MCP TypeScript SDK.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/haotranq1234/mcpmodel'
If you have feedback or need assistance with the MCP directory API, please join our Discord server