AutoCAD Electrical MCP
Allows controlling AutoCAD Electrical, including creating and modifying drawings and configuring Motor Control Center (MCC) projects through natural language commands.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AutoCAD Electrical MCPCreate an MCC project with 3 sections and add a 400A feeder unit"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AutoCAD Electrical MCP (ECM)
MCP server + local AI web dashboard for AutoCAD Electrical 2027 - control AutoCAD with plain language via Claude, Ollama, or any OpenAI compatible models.
This fork was designed for Electrical Controls Manufacturing (ECM), aimed at adding support for their Motor Control Center (MCC) products, as well as planned 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. The original repo and its README.md are 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 |
| Receives section frames and unit blocks |
| Receives |
| Receives |
Steps:
Set
MCC_BLOCK_LIBRARYin your.envto the folder containing these files (and all unit block DWGs).Open
MCC_LAYOUT.dwg,MCC_UNITDATA.dwg, andMCC_NAMEPLATE.dwgin AutoCAD Electrical.Start the web server:
python start_web.pyOpen
http://127.0.0.1:8080and click MCC in the sidebar.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 all three files are open in AutoCAD before clicking New Project.
Related MCP server: civil3d-mcp
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-browserRequirements
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)
Download or clone the repo — if you don't have Git yet, download the ZIP from GitHub and unzip it.
Open the folder, right-click
install.bat→ Run as administrator.
The script will:
Install Python 3.11 via
wingetif it isn't already on your machineInstall Git via
wingetif it isn't already on your machineInstall all required Python libraries automatically
Copy
.env.example→.envso you can fill in your settings
wingetis 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-MCP
cd AUTOCAD-ELECTRICAL-MCP
# 2. Install dependencies
python scripts/install.pyConfigure 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_LIBRARYis the only setting most users need to change. Point it at whichever folder holds your company's.DWGblock 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 RAMRecommended:
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 useqwen2.5:7bor larger.
Author (Original Repository)
Randy Igualguana
Copyright © 2026 Randy Igualguana
Built with Model Context Protocol · FastMCP · FastAPI · pywin32 · Ollama
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceAn MCP server that bridges Claude with AutoCAD, enabling to generate architectural floor plans, draw geometry, and export DXF files just by describing what you need in natural language.
- Flicense-qualityCmaintenanceMCP server that connects an LLM assistant to Autodesk Civil 3D via COM, enabling direct manipulation of surfaces, alignments, COGO points, layers, profiles, and more through natural language.
- Flicense-qualityCmaintenanceEnables AI assistants to draw and manipulate 2D designs in a running AutoCAD instance through MCP tools, exposed via HTTP and a tunnel for cloud clients like ChatGPT and Manus.
- AlicenseAqualityCmaintenanceMCP server for AutoCAD LT automation and headless DXF generation, exposing tools for drawing, entities, layers, blocks, annotations, P&ID, and view operations via natural language.8MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for generating rough-draft project plans from natural-language prompts.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nihaalgaina/AutoCAD-Electrical-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server