Enables natural language 3D modeling in Fusion 360 by providing tools to create documents, objects, execute modeling operations, manage parts from libraries, and control the CAD environment programmatically through Fusion 360's native API.
Fusion360 LLM 建模助手
一个基于 FastMCP 和 Fusion 360 API 的语义化建模系统,让大语言模型可以通过自然语言进行 3D 建模操作。
正确的协议层次:
- LLM ↔ MCP服务器: JSON-RPC over stdio/SSE (MCP协议)
- MCP服务器 ↔ Fusion360插件: HTTP API (内部实现)
- Fusion360插件 ↔ Fusion360软件: Python API (本地调用)
功能特点
- 🗣️ 自然语言建模: 使用自然语言描述创建 3D 模型
- 🔧 API 集成: 直接调用 Fusion 360 原生 API
- ⚡ 实时处理: 快速响应和执行建模命令
- 🤖 AI 驱动: 利用大语言模型理解用户意图
- 📦 易于安装: 通过 PyPI 分发,使用 uvx 执行
安装与配置
1. 环境要求
- Python 3.11+
- Fusion 360 (最新版本)
- FastMCP
- 支持的 LLM API (如 OpenAI, Qwen 等)
2. 安装方式
项目已发布到 PyPI,可以通过以下方式安装和运行:
4. Fusion 360 插件安装
重要端口说明
- MCP 服务器: 无端口,被动被调用 (通过 stdio 或 MCP 协议)
- Fusion 360 插件HTTP服务端口:
9000
(固定) - 接收工具模块的HTTP请求
⚠️ 请确保端口 9000 没有被其他应用占用,这是 Fusion 360 插件内置HTTP服务器的专用端口。
安装步骤
- 打开 Fusion 360
- 进入
工具
>附加模块
>开发
- 点击 "+" 按钮添加插件
- 选择
addin/fusion360_mcp_addin/
文件夹(包含 .py 和 .manifest 文件) - 勾选插件以启动
- 插件启动后会显示确认消息,服务地址为:
http://localhost:9000
验证插件运行
5. LLM 配置
配置您的 LLM API 密钥和服务端点:
支持的 Fusion 360 工具
系统提供以下 Fusion 360 操作方法:
create_document
: 在 Fusion 360 中创建新文档create_object
: 在 Fusion 360 中创建新对象edit_object
: 在 Fusion 360 中编辑对象delete_object
: 在 Fusion 360 中删除对象execute_code
: 在 Fusion 360 中执行任意 Python 代码insert_part_from_library
: 从零件库中插入零件get_view
: 获取活动视图的截图get_objects
: 获取文档中的所有对象get_object
: 获取文档中的特定对象get_parts_list
: 获取零件库中的零件列表
使用方法
基本工作流程
- 安装项目
- 启动 Fusion 360 并加载插件
- 确保插件正在端口 9000 运行
- 验证:
curl http://localhost:9000/api/health
- 配置 LLM 客户端 (Claude)
- 测试工具模块 (开发用)
- 使用方式
- LLM 客户端通过 MCP 协议调用我们的服务器
- MCP 服务器内部调用 Fusion 360 插件完成建模
- 无需手动启动 MCP 服务器 (由 LLM 客户端调用)
端口占用检查
如果遇到端口冲突,可以检查端口使用情况:
注意:
- MCP 服务器本身没有端口,是被动被调用的
- 只有 Fusion 360 插件需要端口 9000
- 如端口被占用,需要释放该端口
示例命令
API 接口
MCP 服务器端点
POST /model/create
- 创建新模型POST /feature/add
- 添加特征POST /modify/parameters
- 修改参数GET /model/status
- 获取模型状态
请求示例
许可证
本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情
联系方式
项目链接: https://github.com/yourusername/fusion360_mcp
注意事项
端口管理
- 端口 8000: MCP 服务器端口(可配置)- 提供MCP协议服务,供LLM客户端连接
- 端口 9000: Fusion 360 插件HTTP服务端口(固定)- 插件内置的HTTP服务器,接收MCP服务器请求
- 启动前请确保这两个端口未被其他应用占用
通信流程
- LLM客户端 ↔ MCP服务器 (端口8000,MCP协议)
- MCP服务器 ↔ Fusion 360插件HTTP服务 (端口9000,HTTP协议)
- Fusion 360插件 ↔ Fusion 360软件 (本地API调用)
连接要求
- MCP 服务器与 Fusion 360 插件必须在同一台机器上运行
- 两个服务都使用 localhost 地址,确保防火墙不阻止本地连接
- 插件启动后会在 Fusion 360 中显示确认消息
开发环境
- 确保 Fusion 360 已正确配置开发环境
- 插件需要在 Fusion 360 的开发模式下运行
- 某些复杂建模操作可能需要手动调整
- 建议在测试环境中验证所有操作
故障排除
如果遇到连接问题:
- 检查端口是否被占用:
lsof -i :8000
和lsof -i :9000
- 确认 MCP 服务器正在运行:
curl http://localhost:8000/health
- 确认 Fusion 360 插件已启动:
curl http://localhost:9000/api/health
- 查看 Fusion 360 开发控制台的错误信息
相关文档
- Fusion 360 api : https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-A92A4B10-3781-4925-94C6-47DA85A4F65A
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables natural language 3D modeling in Fusion 360 through an MCP server that translates user commands into Fusion 360 API calls. Supports creating, editing, and managing 3D objects, executing Python code, and capturing model views through conversational interactions.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that allows management and execution of Blender Python scripts, enabling users to create, edit and run scripts in a headless Blender environment through natural language interfaces.Last updated -8
- -securityFlicense-qualityA server that integrates Blender with local AI models via the Model Context Protocol, allowing users to control Blender using natural language prompts for 3D modeling tasks.Last updated -48
- -securityAlicense-qualityA Model Context Protocol server that enables Cline to translate natural language prompts into Fusion 360 CAD operations by mapping commands to Fusion's API and generating executable Python scripts.Last updated -39MIT License
- -securityFlicense-qualityAn MCP server that enables natural language interactions with Google's Dialogflow API, allowing users to create and manage conversational agents, intents, and entities through the Dialogflow v3beta1 API.Last updated -