Skip to main content
Glama

Blender MCP container

Container packaging for the official Blender Lab MCP server. The image runs the upstream entrypoint unchanged:

blender-mcp --transport http --host 0.0.0.0 --port 8000

The server uses Streamable HTTP at /. All 26 upstream tools are available. There is no custom HTTP application, authentication, tool filtering, or health API. Access control belongs at the gateway; this image is intended for an internal endpoint.

Runtime

The image uses the pinned LinuxServer Blender 5.2.2 image and the official MCP v1.0.3 source commit. pyproject.toml pins the official Git source; uv.lock records the resolved runtime and development dependencies for Python 3.14. The image uses uv 0.12.17 and uv sync --locked --no-dev --no-editable at build time. Ruff and uv are not installed in the final runtime image.

The LinuxServer desktop entrypoint is replaced with blender-mcp, so this container only starts the MCP server. The included Blender executable supports the six upstream _for_cli tools, which launch separate background Blender processes. Connected-session tools use BLENDER_MCP_HOST and BLENDER_MCP_PORT (defaults: 127.0.0.1:9876) to reach the addon in the authoring container.

Mount the same /workspace in both containers so CLI tools can open saved scenes, resolve assets, and exchange temporary copies of unsaved scenes. The chart gives the sidecar a writable /tmp and runs it as UID/GID 1000 with a read-only root filesystem. It does not request a second GPU: background CLI execution uses CPU, while connected tools execute inside the GPU-enabled authoring container.

Kubernetes TCP startup/readiness probes check port 8000. They do not prove that the addon is connected or Blender is responsive. Keep one active scene writer.

Related MCP server: Blender MCP Server

Development

Use uv 0.12.17 or newer. .python-version selects Python 3.14.

uv sync --locked
uv run --locked ruff check .
uv run --locked ruff format --check .

Ruff 0.16.8 enables all stable lint rules, including type annotations and import sorting. Exceptions cover formatter conflicts, optional copyright headers, and smoke-test conventions: no mandatory docstrings/package marker, assertions, fixed subprocess commands, and console output. Run uv lock --check and the local lint and formatting commands before publishing changes.

Upgrade dependencies with uv lock --upgrade, then rerun lint and the container smoke test. This resolves the newest versions allowed by upstream constraints. Blender MCP 1.0.3 requires mcp<2, so the lock currently selects SDK 1.30.0 even though SDK 2.x exists. Upgrade the official server and matching addon together before changing that compatibility boundary. The upstream setuptools build backend is constrained separately in tool.uv.build-constraint-dependencies.

Build and test

docker build -t blender-mcp:local .
docker run --rm --read-only --tmpfs /tmp:uid=1000,gid=1000 \
  --cap-drop=ALL --security-opt=no-new-privileges \
  --mount type=bind,src="$PWD/tests",dst=/tests,readonly \
  --entrypoint /opt/mcp/bin/python blender-mcp:local /tests/smoke.py

The smoke test initializes a real HTTP MCP client, lists all 26 tools, and executes a background Blender tool against a disposable scene without a running addon. Run this smoke test locally before publishing.

CI calls the shared build-push-container workflow to build, scan, and publish the image. The tags input in .github/workflows/build.yaml owns the image tag, currently 1.0.3-blender5.2.2-1. GitHub Actions publishes ghcr.io/a-homelab/blender-mcp on main or manual dispatch; pull requests build and scan without publishing. Ruff and the HTTP/CLI smoke test run locally. The Git remote is git@github.com:a-homelab/blender-mcp.git. Allow the cluster to pull the package before deploying it.

The deployment chart lives separately in a-homelab/helm-charts/charts/blender. Update its sidecar image tag when publishing a new version. Upgrade the source commit, addon version/checksum in the chart, and Blender image together.

Verification on 2026-09-18

After conversion to uv, lockfile freshness, strict Ruff linting, and formatting checks passed. The image built using uv sync --locked --no-dev --no-editable and passed the HTTP/CLI smoke test with all 26 tools. Its runtime contains MCP SDK 1.30.0 and excludes uv and Ruff executables. Build/test logs for this check are under /tmp/blender-mcp-uv/ on the validation machine.

The image built and passed the HTTP/CLI smoke test with a read-only root filesystem and no extra container capabilities. An isolated Blender desktop and MCP sidecar then initialized over HTTP, listed 26 tools, saved a disposable scene and GLB, read the shared scene through a CLI tool, and reopened it after both containers restarted without external network access. Temporary containers were removed. Raw evidence is under /tmp/blender-mcp-simplify/ on the validation machine.

No image was published and no cluster deployment changed. Package publication remains a prerequisite for deployment.

Available Tools

26 tools
execute_blender_codeA
Destructive

Execute Python code in the connected Blender instance.

The code runs in Blender's Python environment with full access to bpy. To return data, assign a JSON-serialisable dict to a variable named result. Deferred completion via check_is_finished is only supported by the interactive addon server, and is rejected in background mode.

Inputs: code (required). Returns: object

execute_blender_code_for_cliA
Destructive

Execute Python code in a background Blender process.

Opens blend_file with blender --background and runs code. Assign a dict to result to return data.

Inputs: code (required), blend_file (required). Returns: object

get_blendfile_summary_datablocksA
Read-only

Return a summary of the blend file: data-block counts, active workspace, and render engine.

Inputs: no named parameters. Returns: object

get_blendfile_summary_datablocks_for_cliB
Read-only

Return a data-block summary by opening blend_file in background Blender.

Inputs: blend_file (required). Returns: object

get_blendfile_summary_missing_filesA
Read-only

Report external file references that are missing from disk (images, libraries, fonts, sounds, movie clips, caches, sequences).

Inputs: no named parameters. Returns: object

get_blendfile_summary_missing_files_for_cliB
Read-only

Report missing file references by opening blend_file in background Blender.

Inputs: blend_file (required). Returns: object

get_blendfile_summary_of_linked_librariesA
Read-only

Return a tree of directly and indirectly linked library files.

Inputs: no named parameters. Returns: object

get_blendfile_summary_of_linked_libraries_for_cliB
Read-only

Return linked-library info by opening blend_file in background Blender.

Inputs: blend_file (required). Returns: object

get_blendfile_summary_path_infoA
Read-only

Simple/fast access to the blend file's path, save status, age, and backups.

Inputs: no named parameters. Returns: object

get_blendfile_summary_path_info_for_cliB
Read-only

Return path info by opening blend_file in background Blender.

Inputs: blend_file (required). Returns: object

get_blendfile_summary_usage_guessA
Read-only

Guess the primary use-cases of the current blend file (scored 0-100 with certainty).

Inputs: no named parameters. Returns: object

get_blendfile_summary_usage_guess_for_cliA
Read-only

Guess use-cases by opening blend_file in background Blender.

Inputs: blend_file (required). Returns: object

get_object_detail_summaryA
Read-only

Return a structured summary of the object identified by name.

Includes type, transforms, parent, children, modifiers, constraints, materials, visibility, data-block name, and collections.

Inputs: name (required). Returns: object

get_objects_summaryA
Read-only

Return the scene's collection hierarchy and their objects.

Each collection lists its objects (name, type, parent, data name, selection, visibility) and nested child collections.

Inputs: no named parameters. Returns: object

get_python_api_docsA
Read-only

Return the Blender Python API docs for identifier, or list modules matching a trailing-* discovery pattern.

identifier should be a fully-qualified Python name (e.g. bpy.app or bpy.types.Scene.frame_current). The trailing-* forms are supported as discovery entry-points:

  • * enumerates the top-level modules (bpy, bmesh, mathutils, gpu, ...).

  • X.* enumerates the direct-child identifiers under the X namespace (bpy.* -> bpy.app, bpy.context, ...).

Both return a namespace response even when X.rst would otherwise resolve to exact; the .* form lets an agent force the child listing.

The response always carries kind, found, and identifier. The remaining keys depend on kind:

  • "exact" (found=True): <identifier>.rst was read. Extra keys: content (RST text), examples. When the file exceeds 32 KB, content is replaced with a dot-point summary of the file's top-level definitions (prefixed by a header noting the truncation) and examples is empty - re-query individual members for their rendered blocks.

  • "namespace" (found=True): no <identifier>.rst but <identifier>.<child>.rst siblings exist. Extra key: submodules (list of child identifiers).

  • "definition" (found=True): identifier is defined inside a parent RST (e.g. bpy.props.IntProperty lives in bpy.props.rst). Extra keys: content (rendered block), examples.

  • "partial" (found=False): the parent RST was located but the trailing component isn't defined in it. Extra keys:

    • parent the identifier whose RST was loaded.

    • available top-level definitions in that RST.

    • submodules sibling identifiers <parent>.<child> with their own RSTs, filtered to those whose last component contains every character of the missing tail.

    For a toctree landing page like bpy.types available is empty and submodules is the near-miss list; for a self-contained module like bpy.props it's the reverse.

  • "suggestions" (found=False): no direct match, but identifier appears as a component of other files. Extra key: suggestions (list of full identifiers).

  • "missing" (found=False): nothing matched.

examples (present on the exact and definition kinds) is a list of {path, content} entries referenced from this documentation.

Inputs: identifier (required). Returns: object

get_screenshot_of_area_as_imageA
Read-only

Take a screenshot of a single Blender area and return it as a PNG image.

area_ui_type matches the area's ui_type.

size_limit_in_bytes caps the image size in bytes. Zero (the default) uses the MCP message size limit.

Inputs: area_ui_type (required), size_limit_in_bytes.

get_screenshot_of_window_as_imageA
Read-only

Take a screenshot of the entire Blender window and return it as a PNG image.

size_limit_in_bytes caps the image size in bytes. Zero (the default) uses the MCP message size limit.

Inputs: size_limit_in_bytes.

get_screenshot_of_window_as_jsonA
Read-only

Return a JSON description of the Blender window layout, areas, active object, and selection.

Inputs: no named parameters. Returns: object

jump_to_tab_by_nameB
Destructive

Switch the active workspace tab to name.

Inputs: name (required). Returns: object

jump_to_tab_by_space_typeA
Destructive

Switch to a workspace whose main area matches space_type.

If allow_edits is True and no matching workspace exists, a new one is created by duplicating the current workspace.

Inputs: space_type (required), allow_edits. Returns: object

jump_to_view3d_object_by_nameA
Destructive

Move the 3D viewport to focus on an object by name.

If allow_edits is True the object may be un-hidden and its collections enabled to make it visible.

Inputs: name (required), allow_edits. Returns: object

jump_to_view3d_object_data_by_nameA
Destructive

Move the 3D viewport to the object whose data block matches name.

If allow_edits is True the object may be un-hidden and its collections enabled to make it visible.

Inputs: name (required), allow_edits. Returns: object

render_thumbnail_to_pathB
Destructive

Render a small, low-quality thumbnail to output_path (temporarily overrides settings).

Inputs: output_path (required). Returns: object

render_viewport_to_pathA
Read-only

Render the current scene to output_path using current render settings.

Inputs: output_path (required). Returns: object

search_api_docsA
Read-only

Full-text search over the bundled Blender Python API reference.

Returns a ranked list of hits. Each hit has:

  • path: file path relative to the bundled docs.

  • text: the matching paragraph plus context paragraphs on either side.

  • breadcrumb: the section path containing the hit (Section > Sub-section > ...).

  • index: the hit's position in the result list.

  • score: a relevance score; higher is better.

The query is tokenised on whitespace and matched case-insensitively. Every token must appear somewhere in the paragraph body, the file path, or an enclosing section title - in any order. Common English stop-words (the, a, how, to, ...) are dropped, so natural phrasings like "how to bake" work as expected. Regular expressions are not supported.

Use context to pull more surrounding paragraphs into each hit (symmetric, default 0). Use index with the position of a previous hit (same query) to get that hit alone with its text widened to its enclosing section.

Read-only; consults bundled RST files only.

Inputs: query (required), index, context, max_results. Returns: object

search_manual_docsA
Read-only

Full-text search over the bundled Blender user manual.

Returns a ranked list of hits. Each hit has:

  • path: file path relative to the bundled docs.

  • text: the matching paragraph plus context paragraphs on either side.

  • breadcrumb: the section path containing the hit (Section > Sub-section > ...).

  • index: the hit's position in the result list.

  • score: a relevance score; higher is better.

The query is tokenised on whitespace and matched case-insensitively. Every token must appear somewhere in the paragraph body, the file path, or an enclosing section title - in any order. Common English stop-words (the, a, how, to, ...) are dropped, so natural phrasings like "how to bake" work as expected. Regular expressions are not supported.

Use context to pull more surrounding paragraphs into each hit (symmetric, default 0). Use index with the position of a previous hit (same query) to get that hit alone with its text widened to its enclosing section.

Read-only; consults bundled RST files only.

Inputs: query (required), index, context, max_results. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 26 tools

    Disambiguation4/5

    Most tools target clearly distinct actions or resources, and the _for_cli suffix cleanly separates live vs. background modes. However, the get_blendfile_summary_* family and the get_objects_summary/get_object_detail_summary pair are similar enough that an agent must read descriptions carefully to avoid misselection.

    Naming Consistency4/5

    Tool names are uniformly snake_case and verb-first (get_, jump_to_, render_, execute_, search_), which is predictable and readable. Minor inconsistencies like get_screenshot_of_window_as_json returning layout JSON rather than an image, and mixed get_blendfile_summary_of_* vs. get_blendfile_summary_* patterns, keep it from a perfect score.

    Tool Count2/5

    At 26 tools, the server exceeds the 25-tool threshold for 'too many,' and the six nearly identical _for_cli variants inflate the count without adding much conceptual breadth. The core categories are sensible, but merging live/CLI variants into single parameterized tools would make the surface much cleaner.

    Completeness4/5

    The set covers scene inspection, object details, screenshots, navigation, rendering, documentation search, and blend-file health checks, which is broad coverage for Blender. There are no dedicated mutation tools beyond execute_blender_code, but that escape hatch plus the CLI variants covers most workflows, leaving only minor gaps.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to control and query Blender scenes through local MCP, allowing operations like retrieving scene information with objects and materials.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI clients to control a running Blender instance through the Model Context Protocol, allowing scene inspection, object creation and editing, rendering, and execution of Blender Python. It works locally via a WebSocket bridge between the MCP server and a Blender add-on.
      15
      MIT