AutoCAD

v1.0.0Developer Toolsstable

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

autocad-mcp-servermcpai-integration
Share:
163
Stars
0
Downloads
0
Weekly
0/5

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

Draw geometric shapes in AutoCAD via Python automation.
Create lines, circles, polylines with AI guidance in real-time.
zh19980811

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx autocad-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-AutoCad
2

Create 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.txt
3

Open 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.

4

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.py
5

Configure 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.

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.

Quick Config Preview

{ "mcpServers": { "autocad-mcp-server": { "command": "npx", "args": ["-y", "autocad-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides