mcp-cad

mcp-cad

MCP server for Autodesk Inventor that provides 32 tools for parametric control of CAD models via COM automation.

Category
访问服务器

README

mcp-cad

MCP server for Autodesk Inventor. Give AI agents direct parametric control over your CAD models.

32 tools across 7 domains — connection, documents, sketches, 3D features, parameters, iProperties, and export. All through COM automation. No VBA, no macros.

Requirements

  • Windows with Autodesk Inventor installed (any recent version)
  • Python 3.10+
  • OpenCode, Claude Desktop, or any MCP-compatible client

Quick start

git clone https://github.com/Andiveli/mcp-cad.git
cd mcp-cad
.\scripts\install.ps1

The installer creates a virtual environment, installs dependencies, runs the test suite, and auto-configures OpenCode. Open the folder in OpenCode and the server starts automatically.

Tools

Connection

Tool Description
inventor_connect Connect to a running Inventor instance or launch a new one
inventor_health Check connection health and document state
inventor_disconnect Release COM reference without closing Inventor

Documents

Tool Description
doc_open Open an existing Inventor document
doc_new_part Create a new part document
doc_new_assembly Create a new assembly document
doc_save Save the active document
doc_save_as Save to a new path
doc_close Close the active document

Sketches

Tool Description
sketch_create Create a new sketch on XY, XZ, or YZ plane
sketch_line Draw a line segment
sketch_circle Draw a circle
sketch_arc Draw an arc
sketch_rectangle Draw a rectangle (2-corner)
sketch_dimension Add a dimension constraint

3D Features

Tool Description
extrude Extrude a sketch profile (join/cut/intersect)
revolve Revolve a profile around an axis
fillet Apply fillet to edges
chamfer Apply chamfer to edges

Parameters

Tool Description
param_list List model parameters (with optional filter)
param_get Get a parameter value
param_set Set a parameter value
param_set_expression Set a parameter using an expression

iProperties

Tool Description
iproperty_get Get an iProperty
iproperty_set Set an iProperty
iproperty_summary Get all Summary iProperties
iproperty_custom_get Get a custom property
iproperty_custom_set Set (or create) a custom property

Export

Tool Description
export_step Export to STEP
export_stl Export to STL
export_pdf Export to PDF
export_dxf Export sketch/flat pattern to DXF

Architecture

mcp_cad/
├── server.py              FastMCP instance + 32 tool registrations
├── errors.py              Exception hierarchy (InventorError → COM/permission/not-found)
├── inventor/
│   ├── client.py          COM connection lifecycle (connect, health, disconnect)
│   ├── document.py        Document operations
│   ├── sketch.py          2D sketch geometry
│   ├── feature.py         3D features
│   ├── parameter.py       Model parameters
│   ├── property.py        iProperties
│   └── export.py          STEP/STL/PDF/DXF export
└── tests/
    200 tests, COM-mocked, run on Linux

All managers receive the driver and access the COM object via driver.inventor — a property that always reflects the current connection state. No stale references.

Development

# Run tests (works on Linux)
python -m pytest tests/ -v

# Run with coverage (needs pytest-cov in venv)
python -m pytest tests/ --cov=mcp_cad --cov-report=term-missing

Tests mock the entire COM layer — no Inventor installation needed for development. 200 tests covering happy paths, error scenarios, disconnected guards, and edge cases.

Configuration

OpenCode (auto-configured by installer)

{
  "mcp": {
    "mcp-cad": {
      "type": "local",
      "command": [".venv\\Scripts\\python.exe", "-m", "mcp_cad"]
    }
  }
}

Claude Desktop (manual)

{
  "mcpServers": {
    "mcp-cad": {
      "command": "C:\\path\\to\\mcp-cad\\.venv\\Scripts\\python.exe",
      "args": ["-m", "mcp_cad"]
    }
  }
}

Limitations

  • Windows-only (Inventor COM requires native Windows)
  • stdio transport only (SSE/remote transport planned)
  • No Docker support (COM cannot cross container boundaries)
  • Assemblies, drawings, iLogic, and sheet metal not yet implemented

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选