@babylonjs/mcp-servers

中文文档
9.35.0发布于 2026/11/07Apache-2.0ES Module零依赖近 30 天下载 5214

Bundled Model Context Protocol servers for Babylon.js authoring workflows

原始使用文档
文档目录5 节
  1. Included Servers
  2. Run With npx
  3. MCP Client Configuration
  4. Live Editor Sessions
  5. Local Development

Babylon.js MCP Servers

@babylonjs/mcp-servers packages the Babylon.js Model Context Protocol servers as executable Node.js binaries. MCP-compatible clients can use these servers to create, edit, validate, import, export, and live-sync Babylon.js authoring graphs.

Included Servers

ServerDispatcher nameDirect binaryPurpose
Node Material Editornmebabylonjs-nme-mcp-serverNode Material graph authoring and import/export workflows.
Node Geometry Editorngebabylonjs-nge-mcp-serverNode Geometry graph authoring and export/import workflows.
Node Render Graph Editornrgebabylonjs-nrge-mcp-serverNode Render Graph authoring and render-pipeline export/import workflows.
Node Particle Editornpebabylonjs-npe-mcp-serverNode Particle graph authoring and export/import workflows.
GUI Editorguibabylonjs-gui-mcp-serverBabylon.js GUI authoring, layout, export/import, and snippet flows.
Flow Graph Editorflow-graphbabylonjs-flow-graph-mcp-serverFlow Graph authoring and coordinator JSON export/import workflows.
Smart Filters Editorsmart-filtersbabylonjs-smart-filters-mcp-serverSmart Filters graph authoring and export/import workflows.

Run With npx

Use the dispatcher when you want a compact command:

npx -y @babylonjs/mcp-servers nme

Use direct binaries when your MCP client expects a command name:

npx -y -p @babylonjs/mcp-servers babylonjs-nme-mcp-server

MCP Client Configuration

Most MCP clients accept a command plus arguments. This example starts the Node Material Editor MCP server through the dispatcher:

{
    "mcpServers": {
        "babylonjs-node-material": {
            "command": "npx",
            "args": ["-y", "@babylonjs/mcp-servers", "nme"]
        }
    }
}

This equivalent form uses the direct binary:

{
    "mcpServers": {
        "babylonjs-node-material": {
            "command": "npx",
            "args": ["-y", "-p", "@babylonjs/mcp-servers", "babylonjs-nme-mcp-server"]
        }
    }
}

Live Editor Sessions

The graph MCP servers can start a local editor session server and return a session URL. Paste that URL into the matching Babylon.js editor's MCP session panel to see live updates from the MCP server and to push editor changes back to the MCP server.

The local editor session server binds to 127.0.0.1 by default. It stops when the MCP process exits, when the stop_session_server MCP tool is called, or after 15 minutes without MCP/editor activity.

Local Development

From the Babylon.js repository, build the package with:

npm run build -w @babylonjs/mcp-servers

The build compiles the private MCP server workspaces and copies their bundled dist/index.js outputs into this package's dist/ directory.

版本与发布记录

@babylonjs/mcp-servers 共发布 46 个版本,首次发布于 2026/06/04;过去 12 个月发布了 46 个版本。

版本发布日期距今
9.35.0latest2026/11/071 天前
9.34.02026/11/052 天前
9.33.32026/11/052 天前
9.33.22026/11/035 天前
9.33.12026/10/308 天前
9.33.02026/10/299 天前

关于 @babylonjs/mcp-servers 的常见问题

@babylonjs/mcp-servers 是什么?

Bundled Model Context Protocol servers for Babylon.js authoring workflows

如何安装 @babylonjs/mcp-servers?

在项目目录运行 npm install @babylonjs/mcp-servers,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 mcp-servers、babylonjs-mcp-servers、babylonjs-gui-mcp-server、babylonjs-nge-mcp-server、babylonjs-nme-mcp-server、babylonjs-npe-mcp-server、babylonjs-nrge-mcp-server、babylonjs-flow-graph-mcp-server、babylonjs-smart-filters-mcp-server,可以用 npx mcp-servers 直接运行。

@babylonjs/mcp-servers 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/babylonjs__mcp-servers 是否存在。

@babylonjs/mcp-servers 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@babylonjs/mcp-servers 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js ^20.19.0 || >=22.13.0 <23.0.0 || >=24.0.0 <25.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@babylonjs/mcp-servers 可以商用吗?

@babylonjs/mcp-servers 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@babylonjs/mcp-servers 的下载量有多少?

根据 npm 官方下载统计,@babylonjs/mcp-servers 在 2026/10/08 – 2026/11/06 这 30 天内被下载 5,214 次,日均约 174 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@babylonjs/mcp-servers 还在维护吗?

最新版本 9.35.0 发布于 2026/11/07(1 天前);至今共发布 46 个版本,其中过去 12 个月发布了 46 个;首次发布于 2026/06/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。