# Build a Blender scene with Kimi K3.1 Pro and MCP.

Canonical URL: https://www.iagenify.com/es/news/kimi-k31-pro-blender-mcp-sdk-workflow

Turn a reference image into an editable Blender scene, review the render, and export a reusable 3D asset with Kimi K3.1 Pro and the IaGenify SDK.

## Key points
- Kimi plans the scene while typed Blender MCP tools create, edit, render and save real Blender objects.
- The tutorial runs the local agent in full-access mode and keeps Blender actions inside an explicit MCP tool allowlist.
- A secured HTTPS relay is required when IaGenify's API connects to a Blender MCP server running on the reader's computer.

This tutorial builds something you can open and change: a small product scene in Blender, guided by a reference image and edited through MCP tools. Kimi K3.1 Pro interprets the brief and plans the scene; Blender performs the modeling, material, camera and render operations. The IaGenify SDK connects the agent to those tools and streams the work back to the application. Readers need IaGenify SDK access, an API key, Blender 4.5 or later, the Blender extension and a reference image saved in the agent's local workspace at Atelier/reference.png.

## What you will build

The example creates a desk lamp from a supplied reference. Kimi inspects the image and the current Blender scene, creates and positions the parts, adjusts the materials and camera, then asks Blender to render a preview. You can request changes in plain language, inspect the updated scene in Blender, and save a native .blend file or export a glTF asset.

## Prepare Blender and the connection

Install the community dcc-mcp-blender extension in Blender 4.5 or later and enable its Streamable HTTP MCP server. IaGenify checks MCP addresses on its API, so the local address printed by Blender cannot be entered directly. For this tutorial, put an authenticated HTTPS relay in front of the local endpoint. Keep the relay credential in a server-side environment variable, and do not expose the Blender port to the public internet.

The example uses typed scene, object, material, render and export tools. Pin the Blender extension version and confirm these tool names against that version's tools/list catalogue before running the sample. Do not add the arbitrary Python execution tool to the allowlist for this scene-building walkthrough.

## Connect only the tools this scene needs


```
import { IaGenify } from "iagenify";

const api = new IaGenify({ apiKey: process.env.IAGENIFY_API_KEY });
const machine = await api.storage.get();

await api.mcp.connect({
  url: process.env.BLENDER_MCP_HTTPS_URL,
  name: "blender",
  token: process.env.BLENDER_MCP_RELAY_TOKEN,
  tools: [
    "blender_scene__get_scene_info",
    "blender_objects__create_object",
    "blender_objects__move_object",
    "blender_materials__create_material",
    "blender_render__render_scene",
    "blender_scene__save_scene",
    "blender_interchange__export_gltf",
  ],
  category: "exec",
});
```

The relay must validate the bearer token sent by the SDK. The URL, authentication method and tool names should match the relay and Blender extension versions installed by the reader.

## Create Kimi's full-access agent

The request below sets the agent to full access, as the tutorial requires. That removes per-action confirmation prompts during the run. The MCP allowlist still defines which Blender actions are available to the model; the walkthrough keeps the list focused on scene editing, rendering, saving and export.


```
const agent = api.agents.create({
  runtime: "local",
  machine,
  model: "kimi-k3.1-pro",
  mcp: ["blender"],
  tools: api.tools.all,
  mode: "full",
  thinking: "high",
});

const result = await agent.run({
  message: [
    "Read @Atelier/reference.png. Build an editable desk lamp scene in Blender.",
    "Use separate objects for the base, stem and shade; keep the silhouette close to the reference.",
    "Set a camera and simple studio lighting, render a preview, then save Atelier/desk-lamp.blend.",
    "Do not export until I ask.",
  ].join(" "),
  onEvent(event) {
    if (event.type === "tool_start") console.log("Blender:", event.tool);
    if (event.type === "tool_end") console.log(event.ok ? "Done:" : "Failed:", event.summary);
  },
});

console.log(result.text);
```

## Make the result interactive

The reader's next message can steer the same agent session: move the camera higher, soften the key light, widen the base or change the shade material. The `onEvent` callback in the example prints Blender tool activity, so readers can see which operation is running. The final step exports glTF only after the reader requests it.


```
const revision = await agent.run({
  message: "Raise the camera slightly, make the light warmer, render another preview, and keep the saved scene editable.",
  onEvent(event) {
    if (event.type === "tool_start") console.log("Blender:", event.tool);
  },
});

console.log(revision.text);
```

## Run the example

Keep the API key and relay token in the local environment, never in the website code or a public repository. Install and pin the Blender MCP extension version before copying the tool names. Once the agent creates the scene, open Atelier/desk-lamp.blend in Blender to inspect its editable objects; ask for revisions in the same running agent session, then request glTF export when the result is ready.

## Model and tool references
- [Kimi K3.1 Pro — Moonshot AI](https://www.kimi.ai/blog/kimi-k3-1-pro)
- [dcc-mcp-blender repository and tool catalogue](https://github.com/dcc-mcp/dcc-mcp-blender)

## FAQ
### Is dcc-mcp-blender an official Blender product?
No. It is a community project that provides an MCP server for Blender.

### Why does the example require an HTTPS relay?
IaGenify checks MCP URLs on its API and does not accept a direct localhost HTTP address. The relay provides a secured HTTPS endpoint for the local Blender server.

### What does full-access mode change?
The agent can run its enabled tools without asking for each action. The MCP tool allowlist still limits which Blender operations are available.

### Can I edit the resulting model in Blender?
Yes. The example saves a native .blend scene; the glTF export is an additional deliverable.
