MaxForge MCP
MaxForge MCP
让 AI 代理(Claude,或任何支持 MCP 的其他工具)驱动一个实时的 3ds Max 会话——不是生成脚本让人手动粘贴,而是在 Max 打开时实时创建、编辑和动画化对象。
通常,让 AI 在 3ds Max 中帮忙意味着它写一个脚本,然后你自己运行,却无法得知它是否真的有效。这闭环了:代理可以在每次操作前后查询真实场景状态,捕捉自己的错误,并实时迭代,而不是猜测。
它能做什么
检查场景 | 列出对象,读取当前选择,查询单位 / 帧速率 / 帧范围 |
创建与变换 | 基本体,位置 / 旋转 / 缩放 |
材质与纹理 | 创建材质,加载位图纹理,将其分配给对象 |
动画 | 跨帧关键帧位置/旋转/缩放,带真实样条插值 |
碰撞代理 | 为对象生成基本的边界框代理 |
导出与保存 | 导出选中对象或整个场景,保存 |
逃生舱口 | 运行任意原始 MaxScript 或 Python,处理上述未涵盖的任何内容 |
每个修改都包裹在真实的撤销块中——代理所做的任何操作都可以通过正常的 Ctrl+Z 撤销。
Related MCP server: Maya MCP Server
工作原理
AI agent (MCP client) --stdio--> server/max_mcp_server.py --TCP, localhost only--> max_side/bridge.py (inside 3ds Max)一个小的 Python 桥接器在 3ds Max 内部运行,通过启动脚本加载,并打开一个仅绑定到 127.0.0.1 的套接字。Max 外部的 MCP 服务器连接到它并暴露上述工具。每个命令都通过 Qt 定时器在 Max 的主线程上运行——3ds Max SDK 不是线程安全的,因此到达套接字线程的命令会被排队并在主循环中处理,而不是直接执行。
max_side/
bridge.py socket + main-thread queue (the only place pymxs is touched)
commands.py one function per tool, each wrapped in an undo block
serialize.py converts pymxs values (Point3, Matrix3, nodes, ...) to JSON
startup_stub.ms drop into Max's startup scripts folder
server/
client.py TCP client, newline-delimited JSON
tools.py MCP tool definitions
max_mcp_server.py the MCP server itself (stdio transport)设置
要求: 3ds Max 2022+(pymxs),运行 MCP 服务器的机器上安装 Python 3.10+,uv。
1. 安装依赖
uv sync2. 将桥接器加载到 3ds Max 中
将 max_side/startup_stub.ms 复制到 Max 的启动脚本文件夹中——通常是:
%LOCALAPPDATA%\Autodesk\3dsMax\<version>\ENU\scripts\startup\打开复制的 startup_stub.ms,将 MAXFORGE_REPO_PATH 设置为克隆此仓库的位置。下次 Max 启动时,它会自动在端口 47823 上启动桥接器。还注册了三个宏脚本(类别“MaxForge MCP”)用于手动控制——启动 / 停止 / 重新加载——这样你可以在不重启 Max 的情况下获取代码更改。
3. 将 MCP 客户端指向它
对于 Claude Code:
claude mcp add maxforge -- <repo>\.venv\Scripts\python.exe <repo>\server\max_mcp_server.py或者以相同方式将 server/max_mcp_server.py 接入任何其他 MCP 兼容客户端的配置。
安全性
套接字只绑定到 127.0.0.1——绝不绑定到网络。这是一个位于建模应用内部的代码执行端点;它设计为只能从运行它的同一台机器访问。
状态
已针对运行中的 Max 2025 会话进行了实时测试,使用完整的基于断言的测试套件(29/29 项检查),涵盖每个工具、每个错误路径以及撤销/重做往返。
create_collision_proxy 目前只构建一个通用的轴对齐框——尚未针对任何特定游戏引擎的碰撞格式进行调整。
添加新工具
在
max_side/commands.py中添加一个处理程序,用undoable("MCP: ...")包装,并在COMMANDS字典中注册。在
server/tools.py中添加匹配的包装器——其文档字符串是代理看到的内容。在
server/max_mcp_server.py顶部的循环中注册它。在 Max 中运行“Reload MaxForge Bridge”宏脚本,而不是重启。
许可证
版权所有 (c) 2026 .bluntman420. — 参见 LICENSE.md。可自由 按原样使用;不允许修改和重新分发修改版本。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables real-time control of Unity Editor through natural language commands, allowing AI to manipulate game objects, run automated tests, manage scenes, and perform batch operations with undo support.544MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to connect to and control Autodesk Maya for 3D modeling, animation, and rendering operations through the Model Context Protocol, supporting object creation, transformation, scene queries, and Python command execution.
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to programmatically control Autodesk Maya via natural language using over 30 tools for 3D modeling, lighting, and animation. It connects through Maya's command port to facilitate procedural scene generation and complex production-ready workflows.1
- AlicenseAqualityFmaintenanceEnables AI assistants to directly control Autodesk 3ds Max through natural language to create models, set materials, adjust lighting, and automate animations. It bridges the Model Context Protocol with 3ds Max via a TCP socket to execute Python and MAXScript commands.2415MIT
Related MCP Connectors
Build, validate, and deploy multi-agent AI solutions from any AI environment.
Build and run visual creative-production workflows from your AI agent.
DXF and PDF/X-4 for AI agents: structured facts, PNG renders, an interactive in-chat viewer.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/BluntMan-420/MaxForge-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server