AutoCAD
Enables AI agents to interact with AutoCAD through Python automation to draw geometric shapes like lines, circles, and polylines in real-time. It facilitates direct control of a running AutoCAD instance on Windows for basic geometric element creation
What is AutoCAD?
AutoCAD is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables ai agents to interact with autocad through python automation to draw geometric shapes like lines, circles, and polylines in real-time. it facilitates direct control of a running autocad instan...
Enables AI agents to interact with AutoCAD through Python automation to draw geometric shapes like lines, circles, and polylines in real-time. It facilitates direct control of a running AutoCAD instance on Windows for basic geometric element creation
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Enables AI agents to interact with AutoCAD through Python au
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx autocad-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use AutoCAD
The AutoCAD MCP Server enables AI agents to control a live AutoCAD instance on Windows through Python and the AutoCAD COM API, enabling natural-language drawing of geometric shapes like lines, circles, rectangles, polylines, and text. It exposes 14 tools for drawing, layer management, entity editing (move, rotate, copy), and database querying, making it possible for Claude or other LLMs to act as a CAD co-pilot. Developers and engineers use it to automate repetitive drafting tasks, generate geometry from specifications, or explore drawings through conversational queries.
Prerequisites
- Windows OS (COM interface requirement)
- AutoCAD 2018 or later installed with COM interface support enabled
- Python 3.10 or later installed
- An MCP-compatible client such as Claude Desktop
Clone the repository
Clone the Easy-MCP-AutoCad repository to your local machine on Windows.
git clone https://github.com/zh19980811/Easy-MCP-AutoCad.git
cd Easy-MCP-AutoCadCreate a virtual environment and install dependencies
Create a Python virtual environment and install the required packages including pywin32 for COM automation.
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txtOpen AutoCAD
Launch AutoCAD and open or create a drawing. The MCP server connects to the running AutoCAD process via the COM interface — AutoCAD must be open before the server starts.
Start the MCP server
Run the server script from within the virtual environment. It will connect to the running AutoCAD instance via COM and begin listening for MCP tool calls.
.venv\Scripts\activate
python server.pyConfigure Claude Desktop
Add the AutoCAD MCP server to your Claude Desktop configuration file. Use the full path to the virtual environment's Python interpreter and the server script, using forward slashes or double backslashes.
{
"mcpServers": {
"autocad": {
"command": "C:/path/to/Easy-MCP-AutoCad/.venv/Scripts/python.exe",
"args": ["C:/path/to/Easy-MCP-AutoCad/server.py"]
}
}
}AutoCAD Examples
Client configuration
Claude Desktop configuration for the AutoCAD MCP server on Windows, using the virtual environment's Python interpreter.
{
"mcpServers": {
"autocad": {
"command": "C:/Users/yourname/Easy-MCP-AutoCad/.venv/Scripts/python.exe",
"args": ["C:/Users/yourname/Easy-MCP-AutoCad/server.py"]
}
}
}Prompts to try
Example prompts that use the AutoCAD MCP server's drawing and editing tools.
- "Draw a rectangle with corners at (0,0) and (100,50) on the current layer"
- "Create a new layer called 'Dimensions' and make it blue"
- "Draw a circle at the center point (50,50) with a radius of 25"
- "Add the text 'Floor Plan Level 1' at position (10, 120) with a height of 5"
- "Move the last entity I drew 10 units to the right"
- "Scan all entities in the drawing and count how many are lines vs circles"Troubleshooting AutoCAD
Server fails to connect to AutoCAD with a COM error on startup
Make sure AutoCAD is already running and has a drawing open before starting server.py. The server connects to an already-running AutoCAD instance via COM — it cannot launch AutoCAD itself. Also verify pywin32 installed correctly with '.venv\Scripts\python -c "import win32com.client"'.
Claude Desktop cannot find the Python interpreter or server.py
Use absolute paths with forward slashes (C:/path/to/file.py) or double backslashes (C:\\path\\to\\file.py) in claude_desktop_config.json. Windows path separators in JSON must be escaped or converted to forward slashes.
Drawing commands succeed but nothing appears in AutoCAD
Run the 'REGEN' command in AutoCAD to force a display refresh, or use the zoom/extents command to navigate to where the new geometry was created. The COM API may draw entities outside the current viewport.
Frequently Asked Questions about AutoCAD
What is AutoCAD?
AutoCAD is a Model Context Protocol (MCP) server that enables ai agents to interact with autocad through python automation to draw geometric shapes like lines, circles, and polylines in real-time. it facilitates direct control of a running autocad instance on windows for basic geometric element creation 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 MIT License license. You can use it freely in both personal and commercial projects.
AutoCAD Alternatives — Similar Developer Tools Servers
Looking for alternatives to AutoCAD? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools 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.