> For the complete documentation index, see [llms.txt](https://unsloth.ai/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/mcp/mcp-engines.md).

# 使用本地模型进行 Blender、Unreal Engine、Unity、Godot 和 Roblox 开发

通过 Unsloth 和本地模型驱动 Blender、Unity、Unreal Engine、Godot、Figma 等更多工具

现在，您可以通过 Unsloth 使用本地模型来驱动 **Blender**, **Unity**, **Unreal Engine**, **Godot**, **Figma** 和 **Roblox Studio** 。在本指南中，Unreal Engine、Godot 和 Blender 均由 Qwen3.8-27B 或 Qwen3.8-Flash-Next Unsloth 量化模型驱动：

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F5zX7CyoLMVp3Cl811T5u%2Freplace-0.webp?alt=media&amp;token=e0026647-232b-4ebb-b0fd-6f0c0422e96d" alt="The village appearing in Unreal Engine, then a camera orbit"><figcaption></figcaption></figure>

<div><figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FGQ5cDj5EWbHFyRfsPX1O%2Fmcp-godot-result-lossless.webp?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FwV4LtawnaQShpaBeZdhw%2Freplace-3.webp?alt=media&amp;token=de69617d-668a-47fe-9f95-d0f8224a0258" alt="A turntable render of the low-poly island created in Blender"><figcaption></figcaption></figure></div>

| 应用                                             | 需要安装的内容                                                                                                     | 端口   |
| ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ---- |
| [Blender 5.1+](#blender)                       | 官方 [Blender MCP 插件](https://www.blender.org/lab/mcp-server/)                                                | 9876 |
| [Unity 2021.3+](#unity)                        | [MCP for Unity](https://github.com/CoplayDev/unity-mcp) 包                                                   | 8080 |
| [Unreal Engine 5.8+](#unreal-engine)           | Epic 内置的 [Unreal MCP](https://dev.epicgames.com/documentation/unreal-engine/unreal-mcp-in-unreal-editor) 插件 | 8000 |
| [Godot 4](#godot)                              | [Godot MCP Native](https://github.com/yurineko73/Godot-MCP-Native) 插件                                       | 9080 |
| [Figma（Windows、macOS）](#figma)                 | 无需安装：桌面应用内置 MCP 服务器                                                                                         | 3845 |
| [Roblox Studio（Windows、macOS）](#roblox-studio) | 无需安装：Studio 内置 MCP 服务器                                                                                      | 无    |

让应用保持打开状态，并确保它与 Unsloth 位于同一台计算机上。在聊天窗口的 **MCP** 菜单中选择它，勾选权限框，然后点击 **测试连接** 并 **启用**.

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FzrdhBl4r9TFkZ2kuw9TN%2Fmcp-enable-flow-lossless.webp?alt=media" alt="Unsloth chat: MCP menu, More, Godot, tick the permission box, Test connection shows Connected, then Enable" width="560"><figcaption><p>Godot、Figma 和 Roblox Studio 位于 <strong>更多</strong>. <strong>未安装</strong> 表示 Unsloth 未找到该应用：请参阅下方的安装步骤。</p></figcaption></figure>

{% hint style="success" %}
请使用擅长调用工具的模型，例如 [Qwen3.8-27B](https://huggingface.co/unsloth/Qwen3.8-27B-GGUF) (`UD-Q4_K_XL`).
{% endhint %}

{% hint style="info" %}
这些工具会在您的应用中运行代码，因此只有所有者账户可以使用；启用 [**远程访问** 或 **局域网访问**](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/mcp.md#local-mcp-servers-with-remote-access-or-lan-access) 时，这些工具会关闭。端口不同？请在 **高级设置**中更改。其他应用：使用 [**添加自定义 MCP** 或 **导入配置**](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/mcp.md#adding-custom-mcp-servers).
{% endhint %}

## Blender

{% stepper %}
{% step %}

#### 安装 Blender 5.1 或更高版本

从以下网站获取： [blender.org](https://www.blender.org/download/)。在 Linux 上，使用 `.tar.xz` 和 `tar` 解压，然后运行 `./blender`。如果 `blender` 不在 PATH 中，请在 Unsloth 的 **Blender 可执行文件** 下的 **高级设置** 中进行设置。
{% endstep %}

{% step %}

#### 安装插件

在 **在线访问** 中 **编辑 → 首选项 → 系统**启用。将 [Blender MCP 插件](https://www.blender.org/lab/mcp-server/) 页面中的安装按钮拖入 Blender 两次：一次用于安装 **Blender Lab** 仓库，一次用于安装插件。
{% endstep %}

{% step %}

#### 启动桥接服务

桥接服务会随 Blender 一起在端口 9876 上启动（**自动启动**）。如果未启动，请打开 **编辑 → 首选项 → 插件 → MCP** 并点击 **启动 MCP 桥接服务器**.

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FSAqz7Q5wyadGLMTmtXg2%2Fmcp-blender-addon.png?alt=media" alt="Blender Preferences, Add-ons, MCP add-on expanded with port 9876 and Server is running" width="640"><figcaption><p>确认显示 <strong>服务器正在运行</strong>.</p></figcaption></figure>
{% endstep %}

{% step %}

#### 连接 Unsloth

在 **Blender** 的 **MCP** 菜单中勾选权限框，然后点击 **测试连接** 和 **启用**。首次使用时，Unsloth 会下载 Blender 的 MCP 服务器。

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FdrB3KURKggcvFz4vgkHx%2Fmcp-blender-setup.png?alt=media" alt="Blender MCP connected in Unsloth" width="448"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

没有显示器？运行 `xvfb-run -a ./blender`。桥接程序不会随 `blender -b`.

### Blender 示例

试试： *“使用 Blender 工具创建一个小型低多边形岛屿，包含海洋、长满青草的小山、几棵树、一间木屋和一轮暖阳。”*

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2Fu5l4dZhBx5nN7VXkqkDF%2Freplace-1.webp?alt=media&amp;token=b851b0b1-b0e6-40ef-a1e5-92d053c3c032" alt="Unsloth chat building a low-poly island in Blender, then a turntable render" width="563"><figcaption><p>调用 7 次工具，然后渲染结果。</p></figcaption></figure>

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FXCamb2pYkBUCE7e5AGFr%2Freplace-3.webp?alt=media&amp;token=98ae92a8-680f-4b31-b03d-d110ba78e75c" alt="A turntable render of the low-poly island created in Blender" width="540"><figcaption></figcaption></figure>

## Unity

{% stepper %}
{% step %}

#### 安装 Unity 2021.3 或更高版本

安装 [Unity Hub](https://unity.com/download) ([Linux 步骤](https://docs.unity.com/en-us/hub/install-hub-linux)），然后在 **Installs → Install Editor**下添加一个编辑器。此外， [安装 uv](https://docs.astral.sh/uv/getting-started/installation/)：MCP for Unity 使用它运行服务器。
{% endstep %}

{% step %}

#### 安装 MCP for Unity

在 **Window → Package Manager**中，点击 **+ → Add package from git URL** 并粘贴 `https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main`.
{% endstep %}

{% step %}

#### 启动服务器

打开 **Window → MCP for Unity**，将传输方式保持为 **HTTP** （端口 8080），然后启动服务器。
{% endstep %}

{% step %}

#### 连接 Unsloth

在 **Unity** 的 **MCP** 菜单中选择它，勾选权限框，然后点击 **Test connection** 并 **Enable**.

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FBirlzDvlJLugg4cE5wI4%2Fmcp-unity-setup.png?alt=media" alt="Unity MCP in Unsloth: MCP only, server reached but no Unity Editor connected yet" width="448"><figcaption><p>琥珀色 <strong>仅 MCP</strong>：服务器已启动，但尚未有 Unity Editor 连接。绿色 <strong>已连接</strong>：已就绪。</p></figcaption></figure>
{% endstep %}
{% endstepper %}

### Unity 示例

试试： *"*&#x4F7F;用 Unity MCP 创建一个专业品质的低多边形棕榈树预制件：树干纤细弯曲，树冠由不规则分布、拱形伸展的叶片组成，颜色从深绿过渡到青柠绿。将整棵树置于暖色沙地上，以蓝天为背景，并采用柔和的侧向照明。以缩略图大小检查树的轮廓，必要时进行调整，保存预制件，并在聊天中展示 Game 视图。*"*

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FZZs1IDBIV7uhhrZsLWeQ%2Fimage.png?alt=media&amp;token=dbaa7139-df52-44f2-ac08-61b3e754551a" alt="" width="563"><figcaption></figcaption></figure>

现在我们已经有了素材，也可以让 Qwen3.8-27B 将它添加到现有场景中。&#x20;

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FGDKfCdFiyiEE3edplE8d%2FPalmGrove-Matched-Article.gif?alt=media&amp;token=e4e91ab1-4d05-4f23-85ca-4ad71a39c2f0" alt=""><figcaption></figcaption></figure>

#### 在同一聊天中继续构建

有了初版之后，每次只要求进行一项明显的更改。例如：“把棕榈树集中放在岛屿的一侧，并留出一片开阔的海滩。给我看看 Game 视图。”然后根据截图决定下一步要改什么。

对于较长时间的构建任务，请打开 **Run settings → Tools → Max Tool Calls Per Message** 并提高上限，或将其拖到 **最大值**。如果响应中途停止，请尝试：“查看场景中已有的内容，并从那里继续。”

#### 编辑现有场景

打开已有场景，并描述要更改的内容。&#x20;

提示词：“将这个恐龙海滩变成朦胧的日落景象，并在恐龙之间的沙滩上添加三个浅绿松石色的蛋。保持摄像机位置不变，这样我就能对比两张画面。”

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FsqEIPA5MpUSw8gUi4Uss%2Fimage.png?alt=media&amp;token=a0dfaaa5-c339-483b-bc35-69ca0e58e753" alt="" width="563"><figcaption></figcaption></figure>

## Unreal Engine

{% stepper %}
{% step %}

#### 获取 Unreal Engine 5.8+

Windows 和 macOS：Epic Games Launcher。Linux： [Installed Build](https://www.unrealengine.com/en-US/linux)，或者在 Epic 账户中关联 GitHub（**连接 → 账户**）并接受 **@EpicGames** 的邀请后，从源代码构建：

{% code collapsedlinecount="10" %}

```bash
git clone --depth 1 --branch 5.8.4-release https://github.com/EpicGames/UnrealEngine
cd UnrealEngine && ./Setup.sh && ./GenerateProjectFiles.sh
make ShaderCompileWorker UnrealEditor
```

{% endcode %}
{% endstep %}

{% step %}

#### 启用插件

在 **编辑 → 插件**中，启用 **Unreal MCP** 和 **所有工具集** （这两项默认均为关闭状态），然后重启编辑器。

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2Ff1SIbQD1nP775MytDpAc%2Fmcp-unreal-plugins.png?alt=media" alt="Unreal Editor Plugins window: Unreal MCP and All Toolsets ticked" width="640"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 启动 Unreal MCP 服务器

服务器默认处于关闭状态。在 **编辑 → 编辑器首选项 → 通用 → 模型上下文协议**中，启用 **自动启动服务器** ，然后重启编辑器。服务器将在端口 8000 上监听。
{% endstep %}

{% step %}

#### 连接 Unsloth

在 **Unreal Engine** 中选择 **MCP** 菜单中的选项，勾选权限复选框，然后点击 **测试连接** 并点击 **启用**.

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2Feyc5T1P5bsswVb2o8aXS%2Fmcp-unreal-setup.png?alt=media" alt="Unsloth connected to Unreal Engine 5.8 through Epic&#x27;s Unreal MCP plugin" width="448"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

正在使用社区 [EngineWire](https://github.com/ChiR24/Unreal_mcp) 插件？请将端口设为 3000，并在 **高级设置**.

没有显示器？运行 `Engine/Binaries/Linux/UnrealEditor MyProject.uproject -RenderOffscreen -ModelContextProtocolStartServer`。若通过公共 `--secure` 链接连接，请使用以下命令启动 Unsloth： `UNSLOTH_STUDIO_ALLOW_STDIO_MCP=1` ([详情](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/mcp.md#local-mcp-servers-with-remote-access-or-lan-access)).

### 虚幻引擎示例

试试： *“使用虚幻引擎工具建造一个色彩缤纷的小村庄广场：一块草地、一口石井、四栋红色屋顶的米黄色房屋和六棵树。”* 为工具集命名（`SceneTools`, `PrimitiveTools`, `MaterialInstanceTools`）有助于模型更快找到它们。

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FGJ09WOvV3NPncTuslTcr%2Freplace-5.webp?alt=media&amp;token=dcfcce01-08e5-4f36-8846-1dc26c2226fb" alt="Unsloth chat calling Unreal Engine tools to build a village" width="563"><figcaption><p>Qwen3.8-27B 通过虚幻引擎自带的工具构建场景。</p></figcaption></figure>

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F5zX7CyoLMVp3Cl811T5u%2Freplace-0.webp?alt=media&amp;token=e0026647-232b-4ebb-b0fd-6f0c0422e96d" alt="The village appearing in Unreal Engine, then a camera orbit" width="450"><figcaption><p>由虚幻引擎 5.8 渲染。</p></figcaption></figure>

## Godot

{% stepper %}
{% step %}

#### 安装 Godot 4

从 [godotengine.org](https://godotengine.org/download/)获取 Godot 4.5 或更高版本，解压 zip 文件并运行。无需安装程序。
{% endstep %}

{% step %}

#### 安装插件

打开 **AssetLib** 选项卡（**Asset Store** （Godot 4.7 中），搜索 **Godot MCP Native**，然后下载并安装。
{% endstep %}

{% step %}

#### 启用插件

在 **项目 → 项目设置 → 插件**中，勾选 **Godot MCP Native**.

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FCMzRL4lRxGJrHAT8d146%2Fmcp-godot-plugin.png?alt=media" alt="Godot Project Settings, Plugins tab with Godot MCP Native enabled"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 启动服务器

打开编辑器顶部的 **MCP** 选项卡，将传输方式设为 **http** （端口 9080），然后点击 **启动服务器**。勾选 **自动启动** ，下次打开编辑器时即可自动启动。

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FrzorBmilVvBDuli4AtFV%2Fmcp-godot-server.png?alt=media" alt="Godot MCP tab with Status Running and URL http://localhost:9080/mcp"><figcaption><p>确认是否显示 <strong>状态：正在运行</strong>.</p></figcaption></figure>
{% endstep %}

{% step %}

#### 连接 Unsloth

在 **更多 → Godot** 中选择 **MCP** 菜单，勾选权限复选框，然后点击 **测试连接** 并点击 **启用**.

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FYDBxsjMV3z1MHIPxOMOm%2Fmcp-godot-setup.png?alt=media" alt="Godot MCP connected in Unsloth" width="448"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

没有显示器？运行 `godot --headless --editor --path /path/to/project -- --mcp-server`.

### Godot 示例

试试： *“使用 Godot 工具制作一款自动对战的 Pong 游戏。”*

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F6Ftc5JZLYsHjf1uarYwd%2Freplace-4.webp?alt=media&amp;token=1ea06d80-bf13-4f1c-9b04-77834292d568" alt="Unsloth chat making a Pong game in Godot, then the game running" width="563"><figcaption><p>25 次工具调用，然后是它制作的游戏。</p></figcaption></figure>

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FGQ5cDj5EWbHFyRfsPX1O%2Fmcp-godot-result-lossless.webp?alt=media" alt="" width="540"><figcaption></figcaption></figure>

## Figma

{% stepper %}
{% step %}

#### 打开文件

在 **Figma 桌面应用** 中打开设计文件（Windows 或 macOS，Dev 或 Full 席位）。
{% endstep %}

{% step %}

#### 启动服务器

确保没有选中任何内容，然后切换到 **Dev 模式** 并点击右侧边栏中的 **启用桌面 MCP 服务器** （端口 3845）。
{% endstep %}

{% step %}

#### 连接 Unsloth

在 **更多 → Figma** 的 **MCP** 菜单中勾选权限框，然后点击 **测试连接** 和 **启用**。Figma 的服务器是只读的：模型可以读取画板、样式和资源，但不能修改它们。
{% endstep %}
{% endstepper %}

## Roblox Studio

{% stepper %}
{% step %}

#### 启用 Studio 服务器

在 Roblox Studio（Windows 或 macOS）中，打开 **助手 → … → 管理 MCP 服务器** 并启用 **将 Studio 启用为 MCP 服务器**.
{% endstep %}

{% step %}

#### 连接 Unsloth

在 **更多 → Roblox Studio** 的 **MCP** 菜单中勾选权限框，然后点击 **测试连接** 和 **启用**。Unsloth 会启动 Roblox 自带的 [MCP 启动器](https://create.roblox.com/docs/studio/mcp)，因此无需设置端口。
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://unsloth.ai/docs/zh/ji-chu-zhi-shi/mcp/mcp-engines.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
