JS

joe-spencer/fusion-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

50 stars 9 forks 质量 51 趋势 13GPL-3.0

一款适用于Autodesk Fusion的模型上下文协议(MCP)服务器,向Claude或Cursor等AI客户端提供从ADSK到的资源和工具。

概览

该仓库包含一台适用于Autodesk Fusion 360的模型上下文协议(MCP)服务器。它使像Claude这样的AI助手能够直接使用MCP协议与Fusion 360交互。 该服务器作为 Fusion 360 插件实现,通过 MCP 暴露 Fusion 360 的功能。这使得 AI 代理能够: 1. 访问当前设计信息 2.创建和修改设计元素 3.接收针对上下文的CAD任务提示 1. MCPserve/ - 实现MCP服务器的Fusion 360插件 2.client.py - 用于验证服务器功能的测试工具 3.install_mcp_for_fusion.py - 用于安装Fusion 360 Python环境MCP包的辅助脚本 MCP服务器运行在Fusion 360中,并向AI代理开放了一个通信通道: 1. - 获取当前设计、组件、参数等信息 2.- 执行诸如创建草图、添加参数或显示消息等操作 3.

概述(AI 翻译)

该仓库包含一台适用于Autodesk Fusion 360的模型上下文协议(MCP)服务器。它使像Claude这样的AI助手能够直接使用MCP协议与Fusion 360交互。

概述

该服务器作为 Fusion 360 插件实现,通过 MCP 暴露 Fusion 360 的功能。这使得 AI 代理能够:

  1. 访问当前设计的信息
  2. 创建和修改设计元素
  3. 接收针对上下文的CAD任务提示

该存储库包括:

  1. MCPserve/ - 实现MCP服务器的Fusion 360插件
  2. [client.py - 用于验证服务器功能的测试工具
  3. install_mcp_for_fusion.py - 一个用于安装 Fusion 360 Python 环境 MCP 包的辅助脚本

工作原理

MCP服务器运行在Fusion 360中,并向AI代理开放了一个通信通道:

  1. 访问资源 - 获取当前设计、组件、参数等信息。
  2. 使用工具 - 执行诸如创建草图、添加参数或显示消息等操作
  3. 获取提示 - 接收针对CAD相关任务的专用提示模板

要求

  • Autodesk Fusion 360
  • Python 3。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Fusion 360 MCP Server

This repository contains a Model Context Protocol (MCP) server for Autodesk Fusion 360. It enables AI assistants like Claude to interact directly with Fusion 360 using the MCP protocol.

Overview

The server is implemented as a Fusion 360 add-in that exposes Fusion 360’s functionality through MCP. This allows AI agents to:

  1. Access information about the current design
  2. Create and modify design elements
  3. Receive context-specific prompts for CAD tasks

The repository includes:

  1. MCPserve/ - The Fusion 360 add-in that implements the MCP server
  2. client.py - A testing utility to verify server functionality
  3. install_mcp_for_fusion.py - A helper script to install the MCP package for Fusion 360’s Python environment

How It Works

The MCP server runs within Fusion 360 and exposes a communication channel that AI agents can use to:

  1. Access resources - Get information about the current design, components, parameters, etc.
  2. Use tools - Perform actions like creating sketches, adding parameters, or displaying messages
  3. Get prompts - Receive specialized prompt templates for CAD-related tasks

Requirements

  • Autodesk Fusion 360
  • Python 3.7+ (for installation and testing)
  • MCP Python SDK: pip install "mcp[cli]" (must be installed in Fusion 360’s Python environment)

Installation

1. Install MCP in Fusion 360’s Python Environment

Fusion 360 uses its own Python environment, separate from your system’s Python. The MCP package must be installed there.

Using the Installer Script (Recommended):

python install_mcp_for_fusion.py

This script will:

  1. Find all Fusion 360 Python installations on your system
  2. Install the MCP package with CLI extras for each installation
  3. Verify the installation was successful

Manual Installation:

If the installer script doesn’t work, you can manually install the package:

  1. Find Fusion 360’s Python executable (usually in Autodesk\webdeploy\production\[version]\Python)
  2. Install the package:
    "[Fusion Python Path]\python.exe" -m pip install "mcp[cli]"
    

2. Install the Fusion 360 Add-in

  1. In Fusion 360, click on “Tools” tab → “Add-Ins” → “Scripts and Add-Ins”
  2. Click the green “+” button in the “My Add-Ins” tab
  3. Browse to and select the MCPserve folder from this repository
  4. Click “Open” to add it to your add-ins
  5. Select it and click “Run” to start it

Using the MCP Server with AI Assistants

The server enables AI assistants like Claude to interact with Fusion 360 in several ways:

Resources

AI assistants can access these resources:

  • fusion://active-document-info - Basic information about the active document
  • fusion://design-structure - Detailed structure of the current design
  • fusion://parameters - User parameters defined in the document

Tools

AI assistants can use these tools:

  • message_box - Display a message box in Fusion 360
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →