AutoCAD Electrical MCP

AutoCAD Electrical MCP

MCP server and web dashboard for controlling AutoCAD Electrical 2027 via natural language, supporting MCC configurator and multiple AI backends like Claude, Ollama, or OpenAI-compatible models.

Category
访问服务器

README

AutoCAD Electrical Interface (ECM)

Local web dashboard for AutoCAD Electrical 2027 - control AutoCAD with plain language using Claude, Ollama or any OpenAI compatible models. Comes with a motor control center (MCC) configurator panel to edit or create complete MCC drawing packages.

This app is designed for Electrical Controls Manufacturing (ECM), aimed at adding support for their Motor Control Center (MCC) products, as well as planned future support for variable frequency drives (VFDs), soft starters, breaker panels, and other products. The MCC configurator will not work unless MCC_LAYOUT, MCC_UNITDATA, and MCC_NAMEPLATE.dwg are open in AutoCAD, and the required CAD blocks are located in the filepath written in .env. Additionally, the general data configurator panel will not work unless the 'General_Data Sheet.dwg' file is open and contains the 'GENRA001B' block. The original repo used for this project is available at https://github.com/Igualguana/AUTOCAD-ELECTRICAL-MCP.


MCC Configurator Setup

The MCC Builder requires three template drawings to be open in AutoCAD before you start a project. These are the files the tool writes into — they must come from your company's block library.

File Purpose
MCC_LAYOUT.dwg Receives section frames and unit blocks
MCC_UNITDATA.dwg Receives UDATALIN data rows
MCC_NAMEPLATE.dwg Receives LAMACOID nameplate rows
General_Data Sheet.dwg (Optional) Receives GENRA001B data rows

Steps:

  1. Set MCC_BLOCK_LIBRARY in your .env to the folder containing these files (and all unit block DWGs).
  2. Open MCC_LAYOUT.dwg, MCC_UNITDATA.dwg, and MCC_NAMEPLATE.dwg in AutoCAD Electrical.
  3. (Optional) Open General_Data Sheet.dwg in AutoCAD Electrical.
  4. Start the web server: python start_web.py
  5. Open http://127.0.0.1:8080 and click MCC in the sidebar.
  6. Click New Project — the tool will connect to the three open drawings automatically.

If you see "MCC_LAYOUT.dwg is not open" when creating a project, go back to step 2 and make sure the required files are open in AutoCAD before clicking New Project.


Web Interface

The web dashboard is a FastAPI + vanilla JS single-page app served locally at http://127.0.0.1:8080.

Running locally

# Start the web server (opens browser automatically)
python start_web.py

# Or specify host/port explicitly
python start_web.py --host 127.0.0.1 --port 8080 --no-browser

Requirements

  • Windows 10/11 (64-bit) — COM automation is Windows-only
  • Python 3.11+
  • AutoCAD Electrical 2027 running with the required .dwg files open
  • Mode A only: Anthropic API key
  • Mode B only: Ollama installed and running

Installation

Option A — One-click installer (recommended)

  1. Download or clone the repo — if you don't have Git yet, download the ZIP from GitHub and unzip it.
  2. Open the folder, right-click install.bat → Run as administrator.

The script will:

  • Install Python 3.11 via winget if it isn't already on your machine
  • Install Git via winget if it isn't already on your machine
  • Install all required Python libraries automatically
  • Copy .env.example → .env so you can fill in your settings

winget is built into Windows 10 (1709+) and Windows 11. If your machine doesn't have it, install Python 3.11+ and Git manually, then run Option B below.

Option B — Manual install

# 1. Clone
git clone https://github.com/nihaalgaina/AutoCAD-Electrical-Interface-ECM
cd AutoCAD-Electrical-Interface-ECM

# 2. Install dependencies
python scripts/install.py

Configure your environment

Open .env in any text editor and fill in the values for your setup:

# Path to the folder containing your MCC block .DWG files
# (MCC_400.DWG, UNIT4040.DWG, UDATALIN.DWG, LAMACOID.DWG, etc.)
MCC_BLOCK_LIBRARY=C:\Path\To\Your\MCC Blocks

# Only needed if you want to use Claude as the AI provider
ANTHROPIC_API_KEY=sk-ant-...

# Only needed for OpenAI / Groq
OPENAI_API_KEY=...
GROQ_API_KEY=...

MCC_BLOCK_LIBRARY is the only setting most users need to change. Point it at whichever folder holds your company's .DWG block library. Multiple folders are supported — separate them with a semicolon: MCC_BLOCK_LIBRARY=C:\Blocks\400mm;C:\Blocks\500mm

Ollama setup (Mode B — local AI, no API key required)

# Install from https://ollama.com then:
ollama serve                   # start the server
ollama pull qwen2.5:0.5b       # fast, runs on 4 GB RAM
# or
ollama pull qwen2.5:7b         # better quality, needs ~6 GB RAM

Recommended: qwen2.5:0.5b (397 MB) works well for the keyword pre-router and is reliable on machines with limited RAM. For the full LLM path use qwen2.5:7b or larger.


License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).

You are free to use, modify, and distribute this software. Any modified version run as a network service must make its full source code available to users of that service.

See the LICENSE file for the complete license text.


Author (Original Repository)

Randy Igualguana
Copyright © 2026 Randy Igualguana Original Repo: https://github.com/Igualguana/AUTOCAD-ELECTRICAL-MCP


Built with Model Context Protocol · FastMCP · FastAPI · pywin32 · Ollama

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选