BlenderLens

v0.2.0
io.github.pzalutski-pixel/blenderlens Checked 3 days ago Published 1 month ago

MCP server that lets AI agents build, check, preview and export game assets in Blender

Values you need

VariableWhat it is
BLENDER_BINoptional 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_MODEoptional auto (the Blender window running the add-on if it responds, otherwise a background Blender), live, or background Default: auto
BLENDERLENS_HOSToptional The address the server connects to for the BlenderLens add-on in live mode Default: 127.0.0.1
BLENDERLENS_PORToptional The add-on's port, as set in its preferences Default: 9877
BLENDERLENS_TOKENoptional secret Overrides the token the server reads from the add-on's connection file (live-<port>.json)
BLENDERLENS_TIMEOUToptional 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_TIMEOUToptional Seconds to wait for a background Blender to come up Default: 90
BLENDERLENS_RENDER_DIRoptional 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_PYTHONoptional 0 leaves run_python and run_script out of the tool list and refuses them (not_allowed) Default: 1
BLENDERLENS_ALLOWED_DIRSoptional 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_DIRoptional 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.0
Add 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.0
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: get_status, open_session, close_session, get_scene, get_object, get_mesh, list_materials, check_asset, ….
  4. 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