Metadata-Version: 2.5
Name: mifblender-mcp
Version: 1.5.1
Summary: AI in a running Blender through MCP: typed tools that read their result back, and each change is one undo step. Free, source available.
Project-URL: Homepage, https://github.com/mifsopo1/MifBlender
Project-URL: Issues, https://github.com/mifsopo1/MifBlender/issues
Project-URL: Website, https://mifshowcase.store/mifblender
Author: Mifsopo
License-Expression: LicenseRef-MifBlender
License-File: LICENSE.txt
License-File: src/mifblender_mcp/blender-addon/MifBlender/LICENSE
License-File: src/mifblender_mcp/mcp-server/LICENSE
Keywords: 3d,ai,blender,claude,mcp,model-context-protocol,modeling
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
Requires-Python: >=3.10
Requires-Dist: mcp<1.31,>=1.25.0
Description-Content-Type: text/markdown

<!-- mcp-name: io.github.mifsopo1/mifblender -->
<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/banner.jpg" alt="MifBlender: your AI assistant, working inside a running Blender. Every call checked and read back; every change one undo step. Beside it, a floating island rendered in Blender." width="100%">
</p>

<p align="center">
  <a href="https://pypi.org/project/mifblender-mcp/"><img alt="PyPI version" src="https://img.shields.io/pypi/v/mifblender-mcp?style=flat-square&label=PyPI&labelColor=1a1038&color=7C4DEB"></a>
  <img alt="Blender 3.6 to 5.3" src="https://img.shields.io/badge/Blender-3.6%20to%205.3-7C4DEB?style=flat-square&labelColor=1a1038">
  <a href="https://registry.modelcontextprotocol.io/v0/servers?search=io.github.mifsopo1/mifblender"><img alt="Listed on the MCP Registry" src="https://img.shields.io/badge/MCP%20Registry-listed-7C4DEB?style=flat-square&labelColor=1a1038"></a>
  <img alt="Free" src="https://img.shields.io/badge/price-free-7C4DEB?style=flat-square&labelColor=1a1038">
  <img alt="724 tools" src="https://img.shields.io/badge/tools-724-7C4DEB?style=flat-square&labelColor=1a1038">
  <img alt="Tested on Windows" src="https://img.shields.io/badge/tested%20on-Windows-7C4DEB?style=flat-square&labelColor=1a1038">
  <img alt="macOS: contributor-tested" src="https://img.shields.io/badge/macOS-contributor%20tested-7C4DEB?style=flat-square&labelColor=1a1038">
  <br>
  <a href="https://pypi.org/project/mifblender-mcp/"><img alt="PyPI downloads a month" src="https://img.shields.io/pypi/dm/mifblender-mcp?style=flat-square&label=downloads&labelColor=1a1038&color=7C4DEB"></a>
  <a href="https://pypi.org/project/mifblender-mcp/"><img alt="Python versions" src="https://img.shields.io/pypi/pyversions/mifblender-mcp?style=flat-square&labelColor=1a1038&color=7C4DEB"></a>
  <a href="https://github.com/mifsopo1/MifBlender/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/mifsopo1/MifBlender?style=flat-square&labelColor=1a1038&color=7C4DEB"></a>
  <a href="https://glama.ai/mcp/servers/mifsopo1/MifBlender"><img alt="MifBlender MCP server on Glama" src="https://glama.ai/mcp/servers/mifsopo1/MifBlender/badges/score.svg"></a>
  <a href="https://mcpservers.org/servers/mifsopo1/mifblender"><img alt="Listed on mcpservers.org" src="https://mcpservers.org/badge.svg"></a>
  <a href="https://mcprush.com/mifsopo1/mifblender-mcp"><img alt="Listed on mcprush" src="https://img.shields.io/badge/mcprush-listed-7C4DEB?style=flat-square&labelColor=1a1038"></a>
  <a href="https://lobehub.com/mcp/mifsopo1-mifblender"><img alt="LobeHub: A Premium" src="https://img.shields.io/badge/LobeHub-A%20Premium-7C4DEB?style=flat-square&labelColor=1a1038"></a>
</p>

<p align="center">
  <a href="#install"><b>Install</b></a> ·
  <a href="#connect-your-ai-app"><b>Connect your AI app</b></a> ·
  <a href="#what-it-does"><b>What it does</b></a> ·
  <a href="#gallery"><b>Gallery</b></a> ·
  <a href="#settings-and-safety"><b>Settings and safety</b></a> ·
  <a href="#license"><b>License</b></a>
</p>

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/robot_one_prompt.gif" alt="A boxy robot on tank treads, shown as wireframe, then clay, then the final Cycles render" width="75%">
</p>
<p align="center"><sub>One prompt, "Model a cute boxy robot with antenna, round eyes and tank treads, lit for a nice render.":
39 tool calls in under five minutes, ending in a Cycles render. Shown here as wireframe, clay and final.</sub></p>

Free for any use, including commercial work. No account. Everything runs on your computer.

<p align="center"><img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/divider_install.png" alt="01 Install" width="100%"></p>

## Install

### In one line

With [uv](https://docs.astral.sh/uv/) installed and Blender closed:

```
uvx mifblender-mcp setup
```

Or with pip: `pip install mifblender-mcp`, then `mifblender-mcp setup`.

It finds your Blender installs and AI apps, shows what it will do and asks first. Then it installs and enables the add-on,
and adds MifBlender to the apps you pick:

<p align="center"><img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/step_setup.png" alt="A Windows command prompt running uvx mifblender-mcp setup: it lists the Blender install it found, asks which to use, shows the plan (four AI apps and Blender 5.2), asks to continue, then reports the add-on 1.5.0 enabled and verified and each app connected" width="100%"></p>

Restart your AI app, open Blender, and ask:

> Call bl_status, then add a rounded cube with a brushed metal material and render a preview.

**Restart means a full quit.** MCP servers load when the app starts, so close the AI app completely (on Windows, from the
tray icon too, or in Task Manager) and open it again. A window you only closed keeps the old list of tools.

**Check it's MifBlender you're talking to.** Every MifBlender tool starts with `bl_`, and the first call is `bl_status`. If
your AI shows other Blender tools, such as `execute_blender_code`, that's a different Blender connector, not MifBlender.

### On macOS

The server needs Python 3.10 or newer, and the `python3` that comes with macOS is 3.9, so let uv bring its own. With
[Homebrew](https://brew.sh) (or uv's [install script](https://docs.astral.sh/uv/getting-started/installation/)) and
Blender closed:

```
brew install uv
uvx mifblender-mcp setup
```

`setup` looks for Blender in `/Applications`, `~/Applications` and Steam. Steam puts it in
`~/Library/Application Support/Steam/steamapps/common/Blender/Blender.app`, or the same `steamapps/common/Blender` folder
in another Steam library. If yours is somewhere else, point at it: `uvx mifblender-mcp setup --blender /path/to/Blender.app`.
Or add the add-on by hand, as below: **Edit > Preferences > Add-ons > Install from Disk** with the release zip.

A full quit on a Mac is **Cmd+Q** (closing the window leaves the app running). Apps opened from the Dock don't see
Homebrew's folders on `PATH`, so `setup` writes uvx's full path for them; for GIF and WebP previews, `brew install ffmpeg`.

### Or: let your AI install it

In Claude Code (or any agent app that can run commands), close Blender and paste this:

```
Install and connect MifBlender for me. Step by step, and show me each result:
1. Check if uv is installed (run: uv --version). If it isn't, install it from
   https://docs.astral.sh/uv/getting-started/installation/ and open a new terminal so uv is found.
2. Make sure Blender is closed, then run: uvx mifblender-mcp setup
   Pick my Blender install and connect the AI apps I use.
3. Run: uvx mifblender-mcp setup --check and show me the output.
Then tell me to fully quit and reopen the AI app, open Blender, press N in the 3D viewport,
open the MifBridge tab (it should say Listening), and ask you to call bl_status.
```

Useful setup options: `--dry-run` shows the plan and changes nothing, `--check` reports what is set up, `--upgrade` moves the
add-on and the apps to this version together, and `--uninstall` removes them. `--no-addon` only connects the AI apps, and
`--no-clients` only installs the add-on.

### Or: add the add-on by hand

1. Download `MifBlender-1.5.1.zip` from the [latest release](https://github.com/mifsopo1/MifBlender/releases/latest).
   Leave it zipped.
2. In Blender: **Edit > Preferences > Add-ons**, open the **⌄** menu at the top right, and pick **Install from Disk...**.
   Choose the zip.

   <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/step_install_from_disk.png" alt="Blender 5.2 Preferences on the Add-ons page, with the Add-ons Settings menu open and its Install from Disk item" width="640">

3. Tick **MifBlender** if it is not ticked already. Its preferences show the version and the port it listens on.

   <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/step_addon_enabled.png" alt="The MifBlender add-on ticked in Blender's add-on list, version 1.5.0" width="640">

4. In the 3D viewport, press **N** and open the **MifBridge** tab. It says **Listening** with the port.

   <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/step_panel_listening.png" alt="The MifBlender panel in the 3D viewport's sidebar, saying Listening on :8792, with zero calls so far and its health checks all clear" width="480">

5. Connect your AI app: `uvx mifblender-mcp setup --no-addon`, or by hand as below.

**Already have another AI add-on in Blender?** Keep it. MifBlender listens on its own port (8792 by default, changeable),
so both can be enabled in the same Blender.

### The book

**Building Games With AI Agents: The MifBridge Field Manual** teaches driving Blender, and the game engines, with AI
agents, and it covers MifBlender. It is free under CC BY-NC-ND 4.0: free to read and to share unchanged with credit, not
for sale, and no edited versions. It comes as a screen PDF, a print PDF, an EPUB and an AI edition (Markdown with
llms.txt). Get it from [its releases](https://github.com/mifsopo1/MifBridge-Field-Manual/releases/latest), or from
[mifshowcase.store/docs](https://mifshowcase.store/docs#books). The Field Manual's update 2, for MifBlender 1.5.1, lands
with this release.

<p align="center"><img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/divider_connect.png" alt="02 Connect your AI app" width="100%"></p>

## Connect your AI app

`setup` does this for you. These are the same steps by hand, and how to check each one. A desktop app may not see your
`PATH`, so `setup` writes uvx's full path; if the app cannot start `uvx`, do the same.

### Claude Code

```
claude mcp add --scope user mifblender -- uvx mifblender-mcp
```

The entry holds no token: the server reads it from `~/.mifbridge/blender_token`, which the add-on writes. Check it with
`claude mcp list`, or `/mcp` inside Claude Code:

<p align="center"><img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/step_claude_code.png" alt="A command prompt running claude mcp list, which shows mifblender as Connected" width="100%"></p>

### Claude Desktop

Add this to `claude_desktop_config.json` (on Windows, `%APPDATA%\Claude\`; on macOS,
`~/Library/Application Support/Claude/`), then quit Claude Desktop fully and start it again:

```json
{
  "mcpServers": {
    "mifblender": { "command": "uvx", "args": ["mifblender-mcp"] }
  }
}
```

<!-- IMAGE SLOT (Claude Desktop): its connector settings with only mifblender visible, cropped and redacted.
     Save it beside the other step images as step_claude_desktop.png and add a centred img line here, the same as
     the Claude Code one above, with alt text saying what it shows. -->

### Cursor

Add the same `mifblender` entry to `~/.cursor/mcp.json`. Cursor lists its MCP servers under **Customize**.

<!-- IMAGE SLOT (Cursor): Customize > MCP with mifblender enabled, from the signed-in scratch profile only.
     Save it beside the other step images as step_cursor.png and add a centred img line here, the same as
     the Claude Code one above, with alt text saying what it shows. -->

### Any other MCP client

`setup` also knows Windsurf, VS Code and Codex. For any other client, start this as a stdio server:

```
uvx mifblender-mcp
```

<p align="center"><img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/divider_what.png" alt="03 What it does" width="100%"></p>

## What it does

<p align="center"><img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/cards_stats.png" alt="724 tools, counted from the 1.5.1 package. 6 Blender versions tested, 3.6 to 5.3. 1 undo step for each call that changes the scene. 127.0.0.1, the only address the add-on listens on." width="100%"></p>

<p align="center"><img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/cards_checks.png" alt="How it checks its work: 1, checked before it runs. 2, read back after it runs. 3, one call, one undo step. 4, looks at the result." width="100%"></p>

- **Checked before it runs.** Every typed tool checks its parameters first, and an unknown key or a bad value is refused
  with the reason.
- **Read back after it runs.** Each tool answers with what it reads back from the scene, not just what was asked for,
  so the assistant sees a miss and can fix it.
- **One call, one undo step.** Each call that can change the scene pushes one Blender undo step, and calls that only
  read push none. Ctrl+Z in Blender, or the `undo` tool, takes a call back, and the answer says what the scene gained
  and lost. Blender keeps 32 steps by default, and files written to disk are not part of the scene, so undo does not
  remove them.
- **Look at the result.** Renders and viewport captures come back as images, and `bl_compare_to_reference` scores a
  render against a reference picture.

| Area | Examples |
|---|---|
| **Modeling** | primitives, mesh editing, bevels, booleans, modular kit pieces, rocks and trees built by rule |
| **Materials and UVs** | shader node graphs, texture sets, baking, unwrapping |
| **Rigging and animation** | armatures, Rigify, poses, keyframes, walk cycles |
| **Simulation** | rigid bodies, cloth, particles, geometry nodes |
| **Rendering** | lights, cameras, Cycles and EEVEE stills and sequences, compositing |
| **Checking** | mesh quality reports, comparing a render to a reference image, reading results back |

A lean default sends only `find_tools`, `mif_call` and `run_python` up front and finds the rest on demand, so a long session
stays small. Set `MIF_TOOL_PACKS=blender` to load all 724 tools, or name the packs you want; there are 33.

<p align="center"><img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/divider_gallery.png" alt="04 Gallery" width="100%"></p>

## Gallery


### Smash Cut: a game's models, from a game jam

[Smash Cut](https://mifshowcase.store/smashcut) is a monster game made in four days for a game jam, with Claude Code
agents as the build team. Every monster, vehicle, building and prop in it was built in Blender through MifBlender:
2.15 million logged calls, and no 3D, image or texture generator. Most shapes were written as Python and placed in the
scene with `create_mesh`; MifBlender then remeshed, unwrapped, shaded, baked, rigged, keyed, rendered and exported them.
The monsters were modelled against concept sheets made with an AI image generator, used as reference only.

Each strip below shows the final render, the wireframe and the clay view.

| Pangoliath | Rust Bucket | Frost Titan |
|:---:|:---:|:---:|
| <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/jam/jam_pangoliath_roar.gif" alt="Pangoliath going from idle to a roar, rendered in Cycles"> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/jam/jam_rustbucket_roar.gif" alt="The Rust Bucket mech going from idle to a roar, rendered in Cycles"> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/jam/jam_frosttitan_roar.gif" alt="The Frost Titan going from idle to a roar, rendered in Cycles"> |

The roars are one shared clip on one shared 35-bone skeleton, keyed pose by pose with `set_bone_pose` and `key_pose`,
blended in from the idle on the NLA and rendered in Cycles with `render_animation`.

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/jam/jam_pangoliath_strip.jpg" alt="Pangoliath in final, wireframe and clay views" width="100%">
</p>

**Pangoliath:** 248,728 triangles, 35 bones, 7 materials on one 4K baked texture set. The body is a distance-field shape,
remeshed to quads with `remesh_mesh`. The plates, claws and their skin weights were placed in Python and built with
`create_mesh`. The surfaces are node graphs baked to albedo, normal, ORM and emissive maps with `bake_texture_set`.

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/jam/jam_rustbucket_strip.jpg" alt="The Rust Bucket mech in final, wireframe and clay views" width="100%">
</p>

**Rust Bucket:** 268,356 triangles, 35 bones, 13 materials on one 4K baked texture set. A scrap mech of rigid plates,
drums and rams, each part skinned whole to its bone. The chipped paint, rust and grime are node graphs baked to texture.

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/jam/jam_frosttitan_strip.jpg" alt="The Frost Titan in final, wireframe and clay views" width="100%">
</p>

**Frost Titan:** 244,497 triangles, 35 bones, 7 materials on one 4K baked texture set. Built the same way as Pangoliath:
frozen fur clumps, icicles, ice armour and crystal horns placed on the body surface and built with `create_mesh`.

#### Vehicles, buildings and a tree

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/jam/jam_tank_strip.jpg" alt="A fictional battle tank in final, wireframe and clay views" width="100%">
</p>

**A fictional tank:** 10,500 triangles, 4 materials, a turret and barrel on named sockets, a breakable version and a
wreck. The camouflage, chipped edges, rain runs and mud are one 4K bake.

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/jam/jam_taxi_strip.jpg" alt="A brand-free taxi in final, wireframe and clay views" width="100%">
</p>

**A brand-free taxi:** 13,900 triangles, 6 materials. A body lofted through smooth profile curves with real wheel arches,
three baked paint variants and a burnt-out wreck.

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/jam/jam_donutshop_strip.jpg" alt="A donut shop with a giant donut on the roof, in final, wireframe and clay views" width="100%">
</p>

**A donut shop:** 18,024 triangles in 86 breakable pieces. The 8 m sprinkled donut on the roof is its own rolling prop.

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/jam/jam_banktower_strip.jpg" alt="A 160 m art deco bank tower in final, wireframe and clay views" width="100%">
</p>

**A bank tower:** 160 m tall, 119,044 triangles in 1,863 separate pieces so it can come down piece by piece: a stone
podium with a colonnade, stone piers between glass bays, two setbacks and a stepped crown.

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/jam/jam_streettree_strip.jpg" alt="A London plane street tree in final, wireframe and clay views" width="100%">
</p>

**A street tree:** a London plane grown with MifBlender's own `build_tree`, 30,199 triangles with three lower LODs down to
1,840, bark and leaf cards, and wind weights in the vertex colours. The bark is a node graph baked to maps, and the leaf
cards are drawn from each species' leaf outline.

### The crab walker

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/crab_walk.gif" alt="The crab walker's walk cycle" width="100%">
</p>

The crab walker: 515 pieces, an interior, a rig and a walk cycle, built with these tools in a long, guided session.

| The form, in clay | The topology |
|:---:|:---:|
| <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/crab_clay.jpg" alt="Clay render of the crab walker"> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/crab_wire.jpg" alt="Wireframe close-up of a crab walker leg"> |

| The cabin | Every angle |
|:---:|:---:|
| <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/crab_interior.jpg" alt="The crab walker's lit wooden cabin"> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/crab_turntable.jpg" alt="Eight views around the crab walker"> |

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/crab_rig.jpg" alt="The crab walker's game rig in wireframe through one walk cycle" width="100%">
</p>

**What it cost: $58.35** for one long session that built the model, rig, walk, bakes, video and packaging, run by Claude Opus
5.5 through Claude Code (prices below).

| Part | Cost | Why |
|---|---:|---|
| Cache reads | $27.23 | 136.15M tokens. One long session rereads more each step as it grows. |
| Cache writes | $22.62 | 4.52M tokens, all at the 5 minute rate. Saving each step, plus whole rewrites after a few waits that outlasted the 5 minute cache. |
| Output | $8.50 | 424,813 tokens: the scripts, the tool calls and the reasoning. |

### From images to a model

The creature was built from one six-view character sheet in eight staged sessions, from blockout to a rigged walk. Each
session started fresh, with only the saved file and a running journal to go on, and every round was checked against the sheet
with `bl_compare_to_reference`.

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/creature_walk.gif" alt="The creature's walk cycle from a three-quarter camera and from the side" width="100%">
</p>

The finished model: 910,104 vertices with a painted tone on each vertex, and a 77-bone rig with IK on the arms and legs. In the
walk loop, rendered in Cycles, the planted feet slide at most 1.9 mm per frame, the last frame matches the first exactly, and the
claws stay within 0.008 mm of the fingers.

| Reference and model | The face |
|:---:|:---:|
| <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/creature_pair.jpg" alt="The creature from the front, beside its reference sheet"> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/creature_head.jpg" alt="Close-up of the creature's head beside its reference"> |

<p align="center">
  <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/creature_views.jpg" alt="The finished creature from eight angles" width="100%">
</p>

**What it cost: $91.72** for eight staged sessions that built the model, paint, 77-bone rig and walk, run by Claude Opus 5.5
through Claude Code.

| Part | Cost | Why |
|---|---:|---|
| Output | $44.30 | 2.22M tokens: the model's own writing, meaning the scripts that built each part, the tool calls and its reasoning at high effort. The biggest share, because output is the most expensive token. |
| Cache writes | $30.98 | 3.38M tokens at the 1 hour rate ($27.04) and 0.79M at the 5 minute rate ($3.94): saving each new step so the next one can reread it cheaply. The first six stages used the 1 hour rate and turned out not to need it; the last two used the cheaper 5 minute cache. |
| Cache reads | $16.11 | 80.57M tokens: every step rereads the whole session so far, tools, notes and render images included. Millions of tokens, but at a tenth of the input price. |
| Uncached input | $0.32 | |

**Prices:** both builds ran on Claude Opus 5.5, through Claude Code. Costs are at API list price, from Claude Code's own price
table: input $4, output $20, cache read $0.20, cache write $5 (5 minute) or $8 (1 hour), per million tokens. On a Claude
subscription plan, the same work uses the plan's allowance instead of extra money.

**What the build taught:**

- **A good score is not a good look.** The outline matched the sheet at .88 to .90 while the body still read as a balloon. Numbers
  catch the shape, and someone still has to look at the picture.
- **Stop when the rounds stop helping.** When the scores had been flat for half an hour, more rounds bought nothing, so the work
  moved to the next stage.
- **Reference views can disagree.** On a painted sheet, the 3/4 views did not match the front, side and back, so the build held to those three.
- **Honest numbers can fall.** Real fingers scored lower than the mitts they replaced, because the mitts had covered the painting by
  accident. Silhouette fit after the surface stage: front .85, side .89, back .84.
- **A dense mesh needs another way to weight.** Blender's heat weighting failed on a mesh this size, so the weights were computed
  from capsules around each bone instead.

### One prompt, one model

Each of these was built from the one prompt under it:

| | |
|:---:|:---:|
| <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/prompt_robot.jpg" alt="A boxy robot on tank treads"><br><sub>"Model a cute boxy robot with antenna, round eyes and tank treads, lit for a nice render."</sub> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/prompt_bonsai.jpg" alt="A bonsai tree in a shallow pot"><br><sub>"Model a bonsai tree in a shallow ceramic pot with a few small rocks, lit for a nice render."</sub> |
| <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/prompt_lowpoly_car.jpg" alt="A low-poly cartoon car"><br><sub>"Model a low-poly cartoon car with round wheels, headlights and a little spoiler, lit for a nice render."</sub> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/prompt_teapot.jpg" alt="A teapot and cup on a wooden tray"><br><sub>"Model a cute ceramic teapot with a cup and saucer on a small wooden tray, lit for a nice render."</sub> |
| <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/prompt_castle_tower.jpg" alt="A stone castle tower with a flag"><br><sub>"Model a stone castle tower with battlements, arrow slits and a flag on top, lit for a nice render."</sub> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/prompt_chest.jpg" alt="An open treasure chest spilling gold coins"><br><sub>"Model a wooden treasure chest with iron bands, its lid open, and gold coins spilling out, lit for a nice render."</sub> |

### Simulation, shading and scale

Scripted scenes, each built entirely from typed calls:

| | | |
|:---:|:---:|:---:|
| <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/scene_newyork.jpg" alt="Manhattan as a scale model"><br><sub>Manhattan as a scale model</sub> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/scene_liquid.jpg" alt="Liquid poured over a head"><br><sub>A baked liquid sim</sub> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/scene_pile.jpg" alt="125 toys poured into a crate"><br><sub>125 rigid bodies</sub> |
| <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/scene_robotarm.jpg" alt="A robot arm carrying a block"><br><sub>IK with a baked carry</sub> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/scene_facepaint.jpg" alt="27 cubies painted face by face"><br><sub>27 cubies, painted face by face</sub> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/scene_staircase.jpg" alt="A spiral stair"><br><sub>A spiral stair from one tread</sub> |
| <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/scene_geodesic.jpg" alt="A geodesic lit from inside"><br><sub>A geodesic lit from inside</sub> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/scene_fur.jpg" alt="A furred sphere"><br><sub>30,000 hairs from one call</sub> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/scene_passes.jpg" alt="One render shown as beauty, normals and mist"><br><sub>Render passes</sub> |

### Game props

| Clean to worn, from one setting | Topology you can check |
|:---:|:---:|
| <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/props_wear.jpg" alt="A table, crate, chair and barrel, clean and worn"> | <img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/v1.5.1/assets/props_wire.jpg" alt="Five game props in clay and wireframe"> |


<p align="center"><img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/divider_settings.png" alt="05 Settings and safety" width="100%"></p>

## Settings and safety

Set these in the client's `env` block when you need them:

| variable | default | |
|---|---|---|
| `MIF_BLENDER_PORT` | `8792` | the port the add-on listens on |
| `MIF_BLENDER_TOKEN` | set by `setup` | must match the add-on's **Token** preference. Claude Code's entry has none: `claude mcp add` would put it on a command line, so the server reads it from `~/.mifbridge/blender_token` (`MIF_BLENDER_TOKEN_FILE` moves it), where `setup` keeps it too |
| `MIF_TOOL_PACKS` | `lean` | `lean`, `blender`, or a list of packs |
| `MIF_BLENDER_TIMEOUT` | `180` | seconds one call may take |

- Everything stays on your computer. The add-on listens on `127.0.0.1` only, and `setup` generates a private token that links
  it to your AI apps. Neither makes any network call of its own.
- **`run_python` is on by default and runs any Python inside Blender.** Untick **Allow run_python** in the add-on's preferences
  to limit the assistant to the typed tools.
- The `bl_gen_*` tools are generative: they send a prompt to a ComfyUI you run yourself, and do nothing without one. Every other
  tool builds from explicit parameters. Set `MIF_GENERATIVE=off`, or untick **Allow generative tools**, to switch them off.

**Platforms:** Windows (tested here). macOS from 1.5.1: tested by a contributor on Apple Silicon with Blender 5.3; not
tested by us.

**Tested on** Blender 3.6.23, 4.2.17, 4.4.0, 5.0.1, 5.2.1 and 5.3.0, on Windows. On macOS (Apple silicon, Blender 5.3) two
things have been checked so far: the add-on answers an authenticated ping with its install check passing, and the memory
watchdog stops a job that goes past its limit. The full test suites have not been run on macOS, and Linux has not been
tested yet; reports are welcome.

**Known issue on Blender 5.3.0:** in our test runs, one long Blender session running every MifBlender operation in turn
crashed Blender inside its own rigid-body code when the frame changed. Each operation passed on its own, MifBlender's
suites pass on 5.3.0, and 1.5.0 does the same. It is being looked into.

<p align="center"><img src="https://raw.githubusercontent.com/mifsopo1/MifBlender/main/assets/readme/divider_license.png" alt="06 License" width="100%"></p>

## License

**Free, source available.** The add-on is MIT. The server is free for any use, including commercial work, and you may share it
unchanged through the channels its license names; you may not sell it or publish changed copies. It is not an open source
license. See [LICENSE.txt](LICENSE.txt). Some comments cite internal documents that are not published.

### MifBridge

MifBlender is the Blender half of [MifBridge](https://mifshowcase.store/mifbridge), a paid product that adds Unreal Engine 5.3 to
5.8 and the tools that move models between the two. MifBlender stands on its own and needs neither.

Questions and bug reports: [open an issue](https://github.com/mifsopo1/MifBlender/issues).
