BlenderLens
v0.2.0MCP server that lets AI agents build, check, preview and export game assets in Blender
Values you need
| Variable | What it is | |
|---|---|---|
BLENDER_BIN | optional | Blender executable, for background sessions, install-addon, and the check command on a .blend; found on PATH or in the usual install folders when unset |
BLENDERLENS_MODE | optional | auto (the Blender window running the add-on if it responds, otherwise a background Blender), live, or background Default: auto |
BLENDERLENS_HOST | optional | The address the server connects to for the BlenderLens add-on in live mode Default: 127.0.0.1 |
BLENDERLENS_PORT | optional | The add-on's port, as set in its preferences Default: 9877 |
BLENDERLENS_TOKEN | optional secret | Overrides the token the server reads from the add-on's connection file (live-<port>.json) |
BLENDERLENS_TIMEOUT | optional | Seconds to wait for one call; render_preview, run_python, run_script and bake_texture also take a timeout of their own Default: 120 |
BLENDERLENS_START_TIMEOUT | optional | Seconds to wait for a background Blender to come up Default: 90 |
BLENDERLENS_RENDER_DIR | optional | Where render_preview writes when given no path. When unset, blenderlens/renders in the system temp folder, where previews older than 7 days are removed when the server starts |
BLENDERLENS_ALLOW_PYTHON | optional | 0 leaves run_python and run_script out of the tool list and refuses them (not_allowed) Default: 1 |
BLENDERLENS_ALLOWED_DIRS | optional | Folders that every path given to a tool must lie inside, separated by ; on Windows and : elsewhere. render_preview may also write to its render folder (BLENDERLENS_RENDER_DIR). When unset, paths are not confined |
BLENDERLENS_RUNTIME_DIR | optional | Where the add-on writes live-<port>.json for the server, and where recovery copies go; Blender and the server must agree. Default: %LOCALAPPDATA%\blenderlens on Windows, ~/Library/Application Support/blenderlens on macOS, and $XDG_STATE_HOME/blenderlens or ~/.local/state/blenderlens elsewhere |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add blenderlens -- npx -y blenderlens-mcp@0.2.0Add to
claude_desktop_config.json{
"mcpServers": {
"blenderlens": {
"args": [
"-y",
"blenderlens-mcp@0.2.0"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"blenderlens": {
"args": [
"-y",
"blenderlens-mcp@0.2.0"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"blenderlens": {
"args": [
"-y",
"blenderlens-mcp@0.2.0"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.blenderlens]
command = "npx"
args = ["-y", "blenderlens-mcp@0.2.0"]PyPI (uvx)
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add blenderlens -- uvx blenderlens-mcp==0.2.0Add to
claude_desktop_config.json{
"mcpServers": {
"blenderlens": {
"args": [
"blenderlens-mcp==0.2.0"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"blenderlens": {
"args": [
"blenderlens-mcp==0.2.0"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"blenderlens": {
"args": [
"blenderlens-mcp==0.2.0"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.blenderlens]
command = "uvx"
args = ["blenderlens-mcp==0.2.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_status, open_session, close_session, get_scene, get_object, get_mesh, list_materials, check_asset, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json