fusion-spatial-mcp
An MCP server that gives AI agents genuine 3D spatial understanding of Autodesk Fusion 360, enabling exact measurements, collision analysis, and free-space placement search, plus Fusion-native parametric authoring for clean, human-editable models.
README
fusion-spatial-mcp
An MCP server that gives AI agents genuine 3D spatial understanding of Autodesk Fusion 360 — exact measurements, collision/clearance/containment, volumetric occupancy, section cuts, engineering multiviews, and free-space placement search — plus Fusion-native parametric authoring: constrained sketches, timeline features, and named user parameters, aimed at producing clean, human-editable parametric models.
The design is Fusion-first: tools are built around Fusion's own concepts
(feature timeline, sketch constraints, user parameters, components), not
adapted from any other CAD paradigm. Under the hood, the geometry-reading
layer reuses the platform-neutral
spatial-core engine: a CAD
platform only has to provide two adapter functions (bodies() +
tessellate()), validated by that repo's JSON Schema conformance suite —
spatial understanding of B-Rep solids is the same no matter how the
geometry was authored.
Claude ──stdio── Node MCP server ──TCP 127.0.0.1:8767── Fusion add-in (Python)
└── spatial-core └── CustomEvent → main thread
Status: working end to end. Adapter conformance (F2) passed; six-question spatial benchmark 6/6 (F3); parametric-bracket authoring acceptance passed (F4): constrained sketch → extrude → hole → 2×2 pattern → fillet, six named user parameters, resized purely via parameter driving, dimensions verified numerically by the spatial tools.
Setup
-
Build the server (Node 22+; the sibling
spatial-corerepo must be cloned next to this one for the file: dependency):npm install npm run build -
Install the add-in — link (or copy)
addin/FusionSpatialMCPinto Fusion's dev add-ins folder:New-Item -ItemType Junction ` -Path "$env:APPDATA\Autodesk\Autodesk Fusion 360\API\AddIns\FusionSpatialMCP" ` -Target "<repo>\addin\FusionSpatialMCP" -
Run the add-in: in Fusion press Shift+S → Add-Ins tab → FusionSpatialMCP → Run. The Text Commands palette logs
listener running on 127.0.0.1:8767. Re-run after editing the add-in file. (Check Run on Startup to make it permanent.) -
Register the MCP server with your client, e.g. for Claude Code:
claude mcp add fusion -- node <repo>/dist/index.js
Using it (agent workflow)
- Orient first:
fusion_document— document, units, up-axis, and the feature timeline (in Fusion, the timeline IS the scene graph). - Any metric question (size, position, distance, clearance, hollowness,
wall thickness): use the
space_*tools, never screenshots — they return exact numbers.space_digestinventories every body with kernel-exact volume/area/centroid; bodies get short handles (b1,b2, …). - Sub-body granularity:
fusion_find_geometryscans faces/edges analytically (find the ⌀3 holes:kind='cylinder_face', radius=1.5) and returns self-healing handles (f1,e2) that feed fillet/chamfer/sketch- plane/shell inputs andfusion_measure_relation— exact design-intent verdicts like "is this hole coaxial with that boss?" (Patterns adapted from Fusion-Essentials, MIT/Apache-2.0.) - Authoring is parametric by default. Every dimension input accepts a
number (doc units), an expression (
"40 mm","width/2"), or{param: "wall_height", value: "40 mm"}which creates a named user parameter on the fly.fusion_create_sketchtakes entities + dimensions + constraints in one call and reportsfullyConstrained;fusion_add_featureappends ONE timeline feature per call and returns a health report. Editing = driving parameters:fusion_set_parameters(batch, one recompute) orfusion_edit_feature(a feature's dimensions by role).fusion_timeline/fusion_rollbackfor history introspection and mid-history edits.fusion_execute_api_scriptis the escape hatch (adsk/app/uipreloaded, assign toresult). - Quality bar: would a mechanical designer be happy to inherit this timeline? Named features, named parameters, fully-constrained sketches.
Tool surface
| Tool | Purpose |
|---|---|
fusion_document |
Orientation: doc, units, up-axis, timeline summary |
fusion_find_geometry |
Analytic sub-body scan: faces/edges/vertices by kind/radius/nearest, self-healing handles |
fusion_measure_relation |
Kernel-exact distance/angle + verdicts: coaxial, concentric, parallel, perpendicular, flush, clearance, touching |
fusion_get_selection |
What the user has selected ("this face/body") |
fusion_capture_viewport |
Viewport PNG (appearance; not for metrics) |
fusion_list_parameters / fusion_set_parameters |
Read / drive user + model parameters (batch, health report) |
fusion_create_sketch |
Sketch with entities + dimensions + constraints, returns profile ids |
fusion_add_feature |
One timeline feature: extrude, revolve, hole, fillet, chamfer, shell, patterns, mirror, combine |
fusion_edit_feature |
Edit a feature in place (parameters by role, suppress, rename) |
fusion_timeline / fusion_rollback |
Full history introspection / marker moves |
fusion_execute_api_script |
Python escape hatch on the main thread |
space_digest |
Metric inventory of all bodies |
space_measure |
distance / bbox / dims / point-probe |
space_relations |
Pairwise clearance, intersection, containment |
space_voxels |
ASCII occupancy layers (hollowness, mass distribution) |
space_section |
Planar cut: loops, areas, wall thickness |
space_views |
Labeled 4-tile orthographic PNG + legend |
space_fit |
Free-space placement search |
space_pick |
Identify the body under a space_views pixel |
Development
node tools/call.mjs <method> [json | @file.py]— raw wire calls (ping,fusion.document,fusion.execute @script.py, …)npm run conformance— adapter conformance suite (canonical contracts + suite live in thespatial-corepackage); must printCONFORMANTnode tools/f2-checks.mjs— volumes vs. Fusion physical properties + world-space proxy tessellation (needs thetools/f2-scene.pyscene)node tools/f3-benchmark.mjs— six-question spatial benchmark (≥5/6)node tools/f4-bracket.mjs— parametric bracket authoring acceptancedocs/BUILD_PLAN.md— the phased build plan with the Fusion API traps (internal units are ALWAYS cm; face sketches flip normals; API rectangles have no constraints; …)
MIT licensed.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。