blender
БесплатноБез исполняемых скриптовНе проверенHeadless Blender (bpy) for 3D modelling and GLB export, with no native Blender install - build or edit a scene in Python, import OBJ/FBX/STL/PLY/glTF/.blend…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
Headless Blender — 3D modelling and GLB export
pi-blender runs the published Blender WebAssembly build inside Node: no native Blender, no GUI, no GPU.
The runtime (~175 MB) is downloaded once, verified against a pinned hash, and cached. It is a stdio MCP
server (blender-wasm) with one persistent Blender session per server.
When to use it
- Build or edit 3D geometry with Python (
bpy): primitives, modifiers, materials, hierarchies. - Convert or inspect 3D files:
.glb.gltf.fbx.obj.stl.ply.svg.blend. - Produce a
.glbfor a web viewer, game engine or AR.
Not for rendering images (no rendering here) or for anything needing a GUI.
Setup (once per machine, once per project)
pi-blender ensure # download + verify the runtime NOW; otherwise the first tool call is slow
pi-blender status # what is cached, JSPI support (never downloads)
pi-blender mcp --register # in the project root: writes .pi/mcp.json -> "blender-wasm"
pi-blender mcp --register --root assets # confine file access to ./assets instead of the project
Registration is opt-in and project-local; pi loads project MCP servers only after the project is trusted,
and only when started in the project root. ensure needs Node 24 or newer (WebAssembly JSPI); on
older Node it exits 69 saying so — do not retry, tell the user to use Node 24+.
Tools
| Tool | Use |
|---|---|
blender_scene |
List objects (name, type, parent, transform, dimensions, materials, mesh counts). limit default 200. Start here to see what exists. |
blender_python |
Run bpy Python. inputs stages root-relative files at /in/<same path>; anything written under /out/ is saved to outputDir (default blender-out). print() output is returned. |
blender_import |
Import one file by extension. A .blend replaces the whole scene. |
blender_export |
Export the scene by extension of the target path. selectedOnly exports the selection (not for .blend). |
blender_reset |
mode: "factory" (default cube/light/camera scene) or "empty". |
All paths are relative to the confined root; a path outside it fails with path-outside-root.
Build limits (do not plan around these)
- Single-threaded Blender 5.3 alpha under WebAssembly, EEVEE only: no rendering.
- No Subsurf / OpenSubdiv, no Draco or meshopt compression.
- No USD, Alembic or X3D import/export.
- No network and no subprocess from Python (
fetch, sockets and process spawning are unavailable). - About 1.2 GB of memory per live session. Keep one server per project; sessions end after idle time
(
BLENDER_WASM_IDLE_SEC, default 600). - Subdivide with explicit geometry (
bmesh, loop cuts, array/bevel modifiers) instead of Subsurf.
sessionReset: true means the scene was lost
Every tool result is JSON starting with {"sessionReset": …}. It is true on the first result after a live
session was lost (timeout, crash, out-of-memory, idle expiry): the scene is gone and everything not
exported with blender_export is gone. A timeout or session-crashed error means the same thing even
though its own flag is still false. Say so, run blender_scene to see the fresh state, and rebuild from a
script — never assume objects still exist. After a timeout or session-crashed, shrink the work (fewer
vertices, smaller modifiers) rather than repeating it. Export a .blend between big steps.
GLB-first workflow
blender_resetwithmode: "empty"(a factory scene brings a cube, light and camera into the export).- Build with one
blender_pythonscript that is idempotent (clear/rebuild by name) so it can be re-run. blender_sceneto check object count, dimensions and materials.blender_exporttomodels/thing.glb. Prefer.glb— one self-contained file. Verify the file is on disk.- Only then offer other formats (
.fbx,.obj+.mtl,.stl,.ply,.blend).
Multi-file assets and .gltf
blender_import takes ONE file. For anything that references siblings (OBJ + MTL + textures, glTF with
.bin/images, FBX with textures) use blender_python with inputs listing every file:
# inputs: ["assets/chair.obj", "assets/chair.mtl", "assets/wood.png"]
import bpy
bpy.ops.wm.obj_import(filepath="/in/assets/chair.obj")
A .gltf exported by blender_export is .gltf + .bin; re-import it the same way
(inputs: ["m/a.gltf", "m/a.bin"], bpy.ops.import_scene.gltf(filepath="/in/m/a.gltf")).
blender_import of a .gltf only works when everything is embedded as data: URIs.
Headless bpy idioms
- Files: read from
/in/..., write to/out/...(the only places visible to the session). Subdirectories under/outare kept. - Link every new object yourself:
bpy.context.collection.objects.link(obj). Prefer the data API (bpy.data.meshes.new,bmesh) overbpy.ops.mesh.primitive_*when a context is awkward.
Установить blender в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл blender?
Headless Blender (bpy) for 3D modelling and GLB export, with no native Blender install - build or edit a scene in Python, import OBJ/FBX/STL/PLY/glTF/.blend, export .glb and other formats, all through the blender-wasm MCP server and the pi-blender CLI. Use for "model a 3D object", "make a .glb of this", "convert this OBJ/FBX to glTF", "inspect this 3D model".
Как установить скилл blender?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл blender запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic