AutoCAD
🏗️ Python MCP server for AutoCAD automation - Create walls, doors, windows & building structures programmatically via COM interface with intelligent layer management
What is AutoCAD?
AutoCAD is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🏗️ python mcp server for autocad automation - create walls, doors, windows & building structures programmatically via com interface with intelligent layer management
🏗️ Python MCP server for AutoCAD automation - Create walls, doors, windows & building structures programmatically via COM interface with intelligent layer management
This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 🏗️ Python MCP server for AutoCAD automation - Create walls,
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx autocadConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use AutoCAD
The AutoCAD MCP Server is a Python-based Model Context Protocol server that controls AutoCAD through Windows COM automation, enabling AI assistants like Claude to programmatically create walls, doors, windows, rooms, and other building structure elements inside a live AutoCAD session. It manages layers automatically, assigns entities to appropriate CAD layers, and supports reading existing entities and modifying drawing properties. Architects and CAD users can describe building structures in natural language and have them generated directly in AutoCAD without manual drafting.
Prerequisites
- Windows operating system (COM automation is Windows-only)
- AutoCAD 2000 or later installed with a valid license and COM automation enabled
- Python 3.8 or higher installed
- pywin32 library (installed automatically with the package)
- Claude Desktop or another MCP-compatible client
Clone the repository
Clone the autocad-mcp-server repository to your Windows machine.
git clone https://github.com/thepiruthvirajan/autocad-mcp-server
cd autocad-mcp-serverCreate a virtual environment and install dependencies
Set up a Python virtual environment and install the package. This installs mcp>=1.0.0 and pywin32>=306 automatically.
python -m venv venv
venv\Scripts\activate
pip install -e .Start AutoCAD
Open the AutoCAD application. The server connects to a running AutoCAD instance via COM, so AutoCAD must be open before you use the MCP tools.
Configure Claude Desktop to use the server
Edit claude_desktop_config.json (at %APPDATA%\Claude\claude_desktop_config.json on Windows) to register the autocad-mcp server.
{
"mcpServers": {
"autocad-mcp": {
"command": "python",
"args": [
"C:\\path\\to\\autocad-mcp-server\\test_script.py"
],
"env": {
"PYTHONPATH": "C:\\path\\to\\autocad-mcp-server"
}
}
}
}Restart Claude Desktop and verify connection
Close and reopen Claude Desktop. The autocad-mcp tools should appear in the tool list. Ensure AutoCAD is already running before sending any drawing commands.
AutoCAD Examples
Client configuration
Windows claude_desktop_config.json entry for the AutoCAD MCP server, using the cloned project path.
{
"mcpServers": {
"autocad-mcp": {
"command": "C:\\path\\to\\autocad-mcp-server\\venv\\Scripts\\python.exe",
"args": [
"C:\\path\\to\\autocad-mcp-server\\test_script.py"
],
"env": {
"PYTHONPATH": "C:\\path\\to\\autocad-mcp-server"
}
}
}
}Prompts to try
Use these prompts in Claude Desktop with AutoCAD open to create building elements programmatically.
- "Create a room with corners at (0,0) and (10,10) labeled 'Living Room'"
- "Add a wall from point (0,0) to (15,0) on the WALLS layer"
- "Insert a door at position (5,0) on the east wall, 0.9 meters wide"
- "Add a window 1.2 meters wide at position (3,10) on the north wall"
- "List all entities currently in the drawing and their layers"Troubleshooting AutoCAD
COM error: 'AutoCAD.Application' not found or cannot connect
Make sure AutoCAD is already running before using the MCP tools. The server connects to an existing AutoCAD COM instance and cannot launch AutoCAD itself. If you have multiple AutoCAD versions, ensure the correct one is registered as the COM server.
pywin32 import error or win32com not found
Run `pip install pywin32` in your virtual environment, then run `python Scripts/pywin32_postinstall.py -install` from the venv Scripts directory to register COM components properly.
Server not available on macOS
This server uses Windows COM automation and is not compatible with macOS or Linux. AutoCAD for Mac uses a different API. The server only works on Windows with a COM-enabled AutoCAD installation.
Frequently Asked Questions about AutoCAD
What is AutoCAD?
AutoCAD is a Model Context Protocol (MCP) server that 🏗️ python mcp server for autocad automation - create walls, doors, windows & building structures programmatically via com interface with intelligent layer management It connects AI assistants to external tools and data sources through a standardized interface.
How do I install AutoCAD?
Follow the installation instructions on the AutoCAD GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with AutoCAD?
AutoCAD works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is AutoCAD free to use?
Yes, AutoCAD is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.
AutoCAD Alternatives — Similar Business Applications Servers
Looking for alternatives to AutoCAD? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.
n8n
★ 189.1kA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou
LobeHub
★ 77.5k🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.
Jeecgboot
★ 46.4kAI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。
CowAgent
★ 44.7kCowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。
Minds Platform
★ 39.2kPlatform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.
Astrbot
★ 32.8kAI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨
Browse More Business Applications MCP Servers
Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up AutoCAD in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use AutoCAD?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.