Skip to content

About

A natural language interface for Blender — design 3D scenes, materials, lighting, and animations through conversation using the Model Context Protocol (MCP).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCode Blender Mode

OpenCode Blender Mode Thumbnail

A specialized non-coding OpenCode agent mode for 3D design, scene composition, and Blender workflow assistance. This mode connects to Blender via the official Blender MCP Server, providing a natural language interface to Blender's Python API.

Overview

The Blender agent connects to a live Blender session through the MCP (Model Context Protocol) server. It is designed for artists and designers — not coders — focusing on creative 3D workflows rather than writing scripts.

What This Mode Does

  • Scene Design: Compose and organize 3D scenes
  • Modeling Guidance: Assist with mesh creation, modifiers, and geometry nodes
  • Material & Shading: Design materials, shaders, and textures
  • Lighting Setup: Create lighting rigs and environmental lighting
  • Animation: Plan and review animation workflows
  • Rendering: Optimize render settings and camera composition
  • Scene Analysis: Analyze poly counts, performance bottlenecks, and data-block organization

What This Mode Does NOT Do

  • Write or edit code files in your project
  • Perform general software development
  • Modify source code or scripts outside of Blender

Prerequisites

  1. Blender 5.1 or newer installed
  2. Blender MCP Add-on installed in Blender (download)
  3. Blender MCP Server running and listening on http://127.0.0.1:9191/

Setup Instructions

1. Install the Blender MCP Add-on

Follow the official Blender MCP Server instructions to install the add-on:

  1. Download the latest MCP add-on from the releases page
  2. Install it in Blender via Edit > Preferences > Extensions > Install from Disk
  3. Enable the add-on

2. Start the MCP Server in Blender

  1. Open Blender
  2. Go to the 3D View sidebar (press N if not visible)
  3. Find the MCP or Blender MCP tab
  4. Start the MCP server connection — it will listen on http://127.0.0.1:9191/

3. Configure OpenCode

The Blender MCP server is configured in opencode.json as a remote MCP server:

{
  "mcp": {
    "blender": {
      "type": "remote",
      "url": "http://127.0.0.1:9191/",
      "enabled": true
    }
  }
}

Note: Make sure the Blender MCP add-on is running and listening on http://127.0.0.1:9191/ before starting OpenCode.

Available Tools

Scene Inspection (Read-Only)

  • get_objects_summary — Lists all objects, collections, hierarchy, types, visibility
  • get_object_detail_summary — Deep-dive on a specific object (transforms, modifiers, materials, constraints)
  • get_blendfile_summary_datablocks — Counts of meshes, materials, textures, etc. + active workspace + render engine
  • get_blendfile_summary_path_info — File path, save status, age, backup info
  • get_blendfile_summary_missing_files — Finds broken image/texture/sound/library links
  • get_blendfile_summary_of_linked_libraries — Tree of linked .blend libraries
  • get_blendfile_summary_usage_guess — Tries to guess what the file is for (animation, modeling, VFX, etc.)

Screenshots & Navigation

  • get_screenshot_of_window_as_image — Full Blender window screenshot as PNG
  • get_screenshot_of_area_as_image — Screenshot of a specific editor (3D View, Node Editor, etc.)
  • get_screenshot_of_window_as_json — Text description of the UI layout, selection, active object
  • jump_to_view3d_object_by_name — Frame the 3D View on a named object
  • jump_to_view3d_object_data_by_name — Frame on object by its data-block name
  • jump_to_tab_by_name — Switch workspace tab
  • jump_to_tab_by_space_type — Switch to workspace by editor type

Code Execution

  • execute_blender_code — Run Python inside the live Blender session (full bpy access)
  • execute_blender_code_for_cli — Run Python in a background Blender process

Documentation Search

  • get_python_api_docs — Look up bpy API docs by identifier (e.g. bpy.types.Mesh)
  • search_api_docs — Full-text search the Python API reference
  • search_manual_docs — Full-text search the Blender user manual

Rendering

  • render_viewport_to_path — Render the scene to an image file
  • render_thumbnail_to_path — Quick low-quality thumbnail render

Example Prompts

Here are some examples of what you can ask the agent:

  • "Create a low-poly forest scene with a small cabin and a lake"
  • "Set up studio lighting for a product render of this scene"
  • "Analyze the current scene and list objects with the highest polygon count"
  • "Apply a metallic red material to the selected object"
  • "Fix the naming convention for all objects and data-blocks in this file"
  • "Explain what the main geometry nodes setup is doing"

Safety Notice

⚠️ The Blender MCP server can execute arbitrary Python code inside Blender. Always save your work before using the agent, and review suggested operations before confirming.

Author & License

This project was made by Mark Shenouda and is licensed under the MIT License.

About

A natural language interface for Blender — design 3D scenes, materials, lighting, and animations through conversation using the Model Context Protocol (MCP).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors