Dark mode toggle
Last Updated:

Control Autodesk Fusion 360 with AI Using Fusion Native MCP (No Add-In Required)

If you've ever tried connecting an AI assistant to Autodesk Fusion, you've probably run into two annoying problems: installing fragile third-party add-ins, and watching an LLM blindly retry a CAD script when something times out, duplicating sketches, breaking references, or corrupting an existing assembly.

To solve that, I built Fusion Native MCP — an open-source Python MCP server and skill pack that talks directly to Autodesk Fusion's built-in native desktop MCP endpoint. No custom Fusion add-in is required.

GitHub Repository: Dawn-Of-Justice/Fusion-Native-MCP (MIT License · Python 3.11+ · Windows live-tested)

Why Build a Wrapper Around Fusion's Native MCP?

Autodesk Fusion ships with a local native MCP endpoint (http://127.0.0.1:27182/mcp), which makes it possible to run Python inside the active Fusion process without writing or maintaining a separate add-in. On its own, though, raw script execution isn't safe enough for real mechanical assemblies:

  • No duplicate-write protection: If a request times out or disconnects mid-run, a client might retry and apply the edit twice.
  • Wrong-document edits: Switching tabs in Fusion between an inspection and a mutation can silently modify the wrong file.
  • Shared component gotchas: In nested assemblies, editing one occurrence's component definition changes every instance of that component unless guarded properly.
  • Silent script drops: On tested Fusion builds, very long source lines sent to the native runner can report "success" without actually executing.

Fusion Native MCP sits between your MCP-compatible assistant and Fusion's local endpoint to handle all of that cleanly.

How It Works

Everything stays strictly local, the HTTP adapter enforces loopback-only URLs (127.0.0.1, ::1, or localhost) with no credentials and no redirects.

Key Features & Architecture Highlights

1. 39 Typed MCP Tools Across CAD & CAM

Instead of forcing your assistant to write boilerplate adsk scripts from scratch for every task, the server exposes 39 typed tools validated with Pydantic:

CategoryWhat You Can Do
Connection & RecoveryCheck capabilities, inspect active designs, look up API docs, take viewport screenshots, run tracked Python, and inspect/acknowledge operation states.
DocumentsList open documents, create new designs, activate specific documents, and open F3D archives.
Existing AssembliesWalk nested assembly trees, inspect component context and shared instances, query geometry, and perform guarded component parameter edits.
Mechanical ModelingManage user parameters, create and constrain sketches, build features (extrude, revolve, sweep, loft, fillet, chamfer, shell, combine, patterns), and create holes.
Validation & ExportValidate feature health, recompute timelines, check interference, build rigid assemblies, generate BOMs, and export STEP/DXF/STL.
CAM & DrawingsInspect CAM inventory, browse tool libraries, create milling setups and operations, generate and poll async toolpaths, plus experimental NC/post-processing and drawing creation.

2. Persistent SQLite Operation Journal (No Blind Retries)

Every mutating operation requires a unique operation_id and an expected_document_id from a prior inspection. Before anything is sent to Fusion, the bridge claims the write inside a local SQLite database (.fusion-mcp/operations.sqlite3) using WAL mode and BEGIN IMMEDIATE:

  • Reusing an operation_id with the same payload safely returns the recorded result instead of running twice.
  • Reusing an operation_id with a different payload is rejected.
  • If a run fails, times out, or returns without its stdout completion marker, it is marked uncertain and blocks all further writes until you inspect Fusion and explicitly record recovery with fusion_acknowledge_operation.

3. Safe Editing for Nested Multi-Component Assemblies

One of the main priorities of this project is editing existing nested assemblies reliably — not just generating toy parts in blank files. When editing a component inside an assembly, the workflow enforces:

  1. Activating the target document and grabbing its live creationId.
  2. Inspecting the hierarchy via fusion_assembly_tree to pick an exact occurrence path (for example, Module:1+Pin:1).
  3. Pulling parameters, geometry, shared instances, and a fresh definition fingerprint with fusion_component_context.
  4. Applying changes through fusion_edit_component_parameters — which rejects stale fingerprints, foreign parameters, external linked components, and unacknowledged shared-definition edits.

4. 10 Packaged Workflow Skills

Alongside the MCP server, the repo includes 10 self-contained assistant skills (under skills/fusion-*) covering documents, mechanical modeling, existing assemblies, manufacturing/CAM, drawings, advanced geometry, rendering/animation, simulation/generative design, electronics, and custom API recovery. Each skill clearly separates typed tools from experimental or discovery-only workflows so the assistant doesn't hallucinate unsupported APIs.

Quick Start (Windows)

Step 1: Enable Fusion's Native MCP Server

Open Autodesk Fusion, enable the native MCP server under Preferences → General → API (see the Autodesk Fusion MCP overview), and keep Fusion running. The default local endpoint is http://127.0.0.1:27182/mcp.

Step 2: Clone and Run Setup

Make sure you have Python 3.11+ installed, then clone the repository and run the PowerShell setup script:

git clone https://github.com/Dawn-Of-Justice/Fusion-Native-MCP.git
cd Fusion-Native-MCP
./setup.ps1

The script creates a local .venv, installs the package and test dependencies, and generates a ready-to-use mcp-config.json containing absolute paths for your checkout.

Step 3: Connect Your MCP Client

Add the generated fusion-native entry from mcp-config.json into your MCP client configuration (replacing the placeholder paths if configuring manually):

{
  "mcpServers": {
    "fusion-native": {
      "command": "C:/path/to/Fusion-Native-MCP/.venv/Scripts/python.exe",
      "args": ["C:/path/to/Fusion-Native-MCP/run.py"],
      "env": {
        "FUSION_MCP_ENDPOINT": "http://127.0.0.1:27182/mcp",
        "FUSION_MCP_STATE_DIR": "C:/path/to/Fusion-Native-MCP/.fusion-mcp"
      }
    }
  }
}

Restart or reconnect your MCP client so it discovers all 39 tools.

Step 4: Verify with a Read-Only Check

Before running any modeling commands, ask your assistant to verify the connection without modifying your design:

Inspect the active Fusion design using fusion_capabilities, fusion_documents, and fusion_inspect. List its component hierarchy, shared definitions, and any unhealthy features. Do not modify it.

If you want to run the offline test suite (no Fusion required):

./.venv/Scripts/python.exe -m pytest tests -q

Current Limitations & Security Notes

This is an active v0.2.0 community project, so it's worth being clear about what is and isn't validated yet:

  • Platform & transport: Live-tested on Windows (Fusion 2705.1.11) using JSON HTTP responses. macOS and SSE responses are not yet validated/supported.
  • Experimental paths: NC program creation, post-processing, automatic cloud drawings, STL export, and revolute/slider joints are implemented but not yet live-validated in acceptance runs.
  • Not yet implemented: Making a single shared component instance independent, automatic externally linked source editing, CAM simulation, and arbitrary broken-topology repair.
  • Local execution privileges: fusion_execute_python runs with Fusion's full local Python privileges. Its read_only flag guards CAD mutations, not OS or filesystem access — only use it with trusted clients and scripts.

Links & Resources

If you try it out with your own Fusion assemblies or have ideas for feature-aware editing and CAM workflows, feel free to open an issue or PR on GitHub!

Comments

Comments are disabled because you have not consented to their use. You can change your cookie preferences via our 'cookie banner'.