Claude in AutoCAD: how to connect through MCP and design water supply and sewerage

Claude in AutoCAD: how to connect through MCP and design water supply and sewerage

Two free open-source servers connect Claude to AutoCAD: it reads layers and blocks, draws networks by layer, counts fittings and exports a bill of materials. What each server can do, how it works, step-by-step setup for Claude Desktop and Claude Code, a skill template with codes, and five prompts from plan to check.

Claude has learned to work in AutoCAD. Not to "draw a picture of a drawing," but to open a real DWG, read layers and blocks, run lines on the right layers, insert fixtures, add dimensions and callouts, and export a bill of materials. The bridge between Claude and AutoCAD is an MCP server, and two good servers are already available for free as open source. Below: what each of them can do, how each works inside, how to connect it step by step, and how to organize the work so that Claude handles the routine of plumbing (water supply and sewerage, VK section) while decisions and the signature stay with the engineer.


In short, if you are pressed for time

What you need. Windows, an installed AutoCAD (or a compatible program), Claude Desktop or Claude Code, Python, and the uv tool. Everything is free except AutoCAD itself and the Claude subscription.

Two free servers. autocad-mcp is for AutoCAD LT 2024 and newer. It works through the AutoLISP language built into AutoCAD, and it has a mode without AutoCAD in which Claude writes a DXF file. multiCAD-mcp is for full AutoCAD 2018 and newer, plus ZWCAD, GstarCAD and BricsCAD. It works through a standard Windows mechanism (COM).

How to organize the work. Three layers: context (your past projects and your working order) → a skill with codes (rules Claude must follow) → MCP (Claude's hands in AutoCAD). Plus five ready-made prompts, from reading a plan to a pre-release check.

Honestly about the result. The author of the video that started this article says a two-day job took 45 minutes. We have not measured that figure. Claude speeds up drafting and counting, but responsibility for the project and the signature stay with the engineer, and every sheet must be checked.


How it works: Claude, MCP and AutoCAD

Claude cannot press buttons in programs on its own. MCP (Model Context Protocol) is an open standard for connecting "tools" to Claude. A small server program runs on your computer and tells Claude which actions it can perform, for example "create a layer," "draw a polyline," "insert a block." Claude decides which tool to call, the server performs the action in AutoCAD and returns the result.

The result is a chain: you write a task → Claude plans → calls an MCP tool → the server runs the command in AutoCAD → Claude sees the result (a list of objects, a snapshot of the view) and moves on.

Important: the server runs on your computer, not in the cloud. The drawing is not uploaded anywhere. Claude receives only what the tool returned: layer names, coordinates, object counts, a screenshot.


Server 1. autocad-mcp, for AutoCAD LT

Repository: https://github.com/puran-water/autocad-mcp · MIT license · about 700 stars on GitHub.

What it can do. Eight grouped tools:

ToolWhat it does
drawingopen, save, save as DXF, export to PDF, clear, read system variables, undo and redo
entitylines, circles, polylines, rectangles, arcs, ellipses, multiline text, hatches; copy, move, rotate, scale, mirror, offset, array, fillet, chamfer, delete; count and read objects
layerlist layers, create, set current, set properties, freeze and thaw, lock and unlock
blocklist blocks, insert, insert with attributes, read and edit attributes
annotationtext, linear, aligned, angular and radial dimensions, leaders
pidprocess diagrams (P&ID): layers, symbols, pipelines, flow arrows, pumps, valves, tanks. Requires a separate symbol library
viewzoom extents, zoom to an area, view snapshot
systemstatus, connection check, choosing the working mode, running an AutoLISP command

How it works. The server is written in Python. In File IPC mode it does not control the AutoCAD window directly. It puts a command into a working folder as a JSON file, and inside AutoCAD a permanently loaded AutoLISP handler (the file mcp_dispatch.lsp) reads the command, runs it and writes the result back as a file. That is why AutoCAD LT 2024 or newer is required: this is the version where AutoLISP appeared in LT for Windows (LT for Mac does not have it). Newer versions of the server launch AutoCAD as a separate job on a copy of the drawing and keep a log of every change.

The second mode is ezdxf: AutoCAD is not needed at all, and Claude creates a DXF file with the ezdxf library. It works on any system, including Mac and Linux. The DXF can then be opened in AutoCAD or any other CAD program.

Requirements. Windows 10 or 11, AutoCAD LT 2024+, Python 3.10+ (installed in Windows, not in WSL), the uv tool. AutoCAD is not needed for the ezdxf mode.

Limitations worth knowing.


Server 2. multiCAD-mcp, for AutoCAD, ZWCAD, GstarCAD and BricsCAD

Repository: https://github.com/AnCode666/multiCAD-mcp · Apache-2.0 license · about 200 stars.

What it can do. Seven tools with 56 commands inside:

ToolWhat it does
manage_sessionconnect to the program, status, zoom extents, undo and redo, screenshot, export a view, list supported programs
draw_entitiesline, circle, arc, rectangle, polyline, spline, text, dimension, leader, multileader, table
manage_blockslist blocks, details, insert, create, read and edit attributes
manage_layerscreate, delete, rename, turn on and off, set color, list
manage_filessave, new, close, list open files, switch between drawings
manage_entitiesselect, move, rotate, scale, change color and layer, copy, paste, delete
export_dataexport the objects of the whole drawing or the selected ones to JSON or Excel

How it works. The Python server connects to an already running CAD program through COM, the standard Windows mechanism that programs use to control each other (VBA macros work through it too). Each program has its own "adapter," so the same commands work in AutoCAD, ZWCAD, GstarCAD and BricsCAD. There is a web panel on your computer (port 8888) where you can see what is happening.

Requirements. Windows only. Python 3.10+, uv, the pywin32 package. Programs: AutoCAD 2018+, ZWCAD 2020+, GstarCAD 2020+, BricsCAD 21+. Work with AutoCAD LT is not stated in the documentation: LT has no COM access of the needed kind, so for LT use the first server.

Settings are in the file src/config.json: the program startup timeout, the pause between commands, the panel port, the folder for exports. The parameter output.allow_arbitrary_paths allows saving files to any folder on the computer, bypassing protection. Keep it off (false) unless you need it.


Which one to choose

autocad-mcpmultiCAD-mcp
ProgramAutoCAD LT 2024+AutoCAD 2018+, ZWCAD, GstarCAD, BricsCAD
Without AutoCAD installedyes, DXF modeno
How it talks to the programcommand files + AutoLISP inside AutoCADWindows COM
Export to Excelno (DXF and PDF available)yes
Process diagramsyes, a separate toolno
Installation difficultyhigherlower

If you have full AutoCAD, start with multiCAD-mcp: it is easier to install. If you have AutoCAD LT, or need to work without AutoCAD at all, use autocad-mcp.


Connecting multiCAD-mcp: step by step

Step 1. Install uv. Open PowerShell and run:

```

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

```

If Windows complains about the script execution policy:

```

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

```

Step 2. Download the server and install dependencies. You need Git; choose any folder, for example C:\mcp:

```

cd C:\mcp

git clone https://github.com/AnCode666/multiCAD-mcp.git

cd multiCAD-mcp

uv sync --dev

uv run python -m pip install --upgrade pywin32

```

Step 3. Check that the server starts.

```

uv run python src/server.py

```

The window should show no errors. Close it. From here on, Claude will start the server itself.

Step 4. Connect to Claude Desktop. Open the file %APPDATA%\Claude\claude_desktop_config.json (paste this address into the Explorer address bar) and add the server. The path must point to the Python inside the server's .venv folder, not to the system one:

```

{

"mcpServers": {

"multiCAD": {

"command": "C:\\mcp\\multiCAD-mcp\\.venv\\Scripts\\python.exe",

"args": ["C:\\mcp\\multiCAD-mcp\\src\\server.py"]

}

}

}

```

If the file already contains other servers, add "multiCAD": {…} inside the existing mcpServers block, separated by a comma. Fully close Claude Desktop and open it again.

For Claude Code, one command in a Windows terminal:

```

claude mcp add --scope user multicad -- C:\mcp\multiCAD-mcp\.venv\Scripts\python.exe C:\mcp\multiCAD-mcp\src\server.py

```

Step 5. Check the connection. Open a test copy of a drawing in AutoCAD and write to Claude: "Connect to AutoCAD and show the list of layers of the open drawing. Change nothing." If Claude returns the layers, everything works.


Connecting autocad-mcp: step by step

Step 1. Install uv, the same way as in the first step above.

Step 2. Download the server:

```

cd C:\mcp

git clone https://github.com/puran-water/autocad-mcp.git

cd autocad-mcp

uv sync

```

Step 3. Connect to Claude Desktop. In the same file %APPDATA%\Claude\claude_desktop_config.json:

```

{

"mcpServers": {

"autocad-mcp": {

"command": "C:\\mcp\\autocad-mcp\\.venv\\Scripts\\python.exe",

"args": ["-m", "autocad_mcp"],

"env": { "AUTOCAD_MCP_BACKEND": "file_ipc" }

}

}

}

```

The mode is set by the variable AUTOCAD_MCP_BACKEND: file_ipc works with a running AutoCAD LT, ezdxf works without AutoCAD, with DXF files only, and auto lets the server choose.

For Claude Code on Windows:

```

claude mcp add --scope user autocad-mcp -e AUTOCAD_MCP_BACKEND=file_ipc -- C:\mcp\autocad-mcp\.venv\Scripts\python.exe -m autocad_mcp

```

If you run Claude Code in WSL, the server must still be started by Windows Python. The server documentation has a separate setup variant for this case, through cmd.exe. Keep the drawing in a Windows folder, not inside WSL: AutoCAD will not see it.

Step 4. Prepare a working copy. Copy the drawing to a separate folder, for example C:\work\plan-copy.dwg, and create an empty folder for exchanging commands, for example C:\work\ipc-job-001. The copy must not be open in AutoCAD.

Step 5. Start the job from Claude. Write to Claude:

"Through autocad-mcp, start a job: open the drawing C:\work\plan-copy.dwg, the exchange folder is C:\work\ipc-job-001, the program is the path to acadlt.exe on my computer. Wait until it is ready and show the status and the list of layers. Change nothing."

The server will start a separate AutoCAD LT with this copy and its own handler. To check: the system tool with status should show the file_ipc mode, and the drawing's system variables should show the name of your copy.

Step 6. A run on a test drawing. The server's authors directly advise that the first time you use a throwaway drawing. Ask Claude to draw a line on a new layer and add a dimension, check the result with your own eyes, and only then move on to a real project.


A skill with codes: rules Claude must follow

A skill is a folder with a SKILL.md file that Claude reads before working. In Claude Code the skill goes into the project's .claude/skills/<name>/ folder. In Claude Desktop you upload it in the Skills section of the settings. We deliberately do not put code figures into the template: the engineer inserts the current editions.

```


name: proektirovshik-vk

description: Design of internal water supply and sewerage (plumbing, VK section) in AutoCAD through MCP. Use it when you need to read a plan, route the networks, count fittings, build a bill of materials or check a sheet before release.


Plumbing designer

Codes (inserted by the engineer, current editions)

Layers and designations

[from the "Project Passport": layer names V1, T3, T4, K1, V2…, colors, linetypes, fixture blocks]

Working rules

  1. Work only on a working copy of the drawing. Before any changes, a plan of action and a "yes" from the engineer.
  2. Each network goes on its own layer. Do not create new layers without permission.
  3. Slopes, diameters and flow rates come only from the codes above. If there is no code, write [ask the engineer] and do not invent anything.
  4. After each stage, a view snapshot and a list of what changed.
  5. Result: a drawing by layers, a bill of materials, a calculation note with the source of every number.

What not to do

```


Five prompts: from the plan to the pre-release check

The prompts were written with the prompt generator of the AI SKILLS platform. In square brackets are the fields to replace with your own data. Save the answer of each step, because you need it in the next one.

Step 1. Project passport

Claude reads your past projects and describes how you work: layers, blocks, drawing standards, order of work. This file is then fed into all the other steps and into the skill.

```

<CONTEXT>

You are step 1 of 5 in the chain "Claude designs plumbing in AutoCAD." AutoCAD is connected to you through MCP. The task of this step is to compile a "Project Passport": record how the department actually prepares plumbing drawings. This document will be saved to a file and fed into the next steps.

<ROLE>

You are a methodical plumbing documentation engineer. You work only with facts from the files. You invent nothing and change nothing in the drawings.

<STEPS>

  1. If a DWG is open through MCP, read layers and blocks ONLY with read tools. Writing and changing are forbidden.
  2. If PDFs or screenshots are provided, extract the data visually.
  3. List the plumbing layers that actually occur (V1 (cold water), T3/T4 (hot water supply/return), K1 (sewer), V2 (fire water), etc.), only those that exist in the files.
  4. Collect the symbols and fixture blocks (names, purpose).
  5. Record the drawing standards: title block, scales, linetypes, diameter labels.
  6. Describe the design order from the department's description.
  7. Mark everything that is not visible in the files as [ask the engineer]. Do not guess codes.

<CRITERIA>

<INFO>

[past projects]:

[department working order]:

[which codes the department applies]:

<OUTPUT>

A "Project Passport" document in Markdown with sections:

Layers / ## Blocks and symbols / ## Drawing standards / ## Working order / ## Questions for the engineer.

At the end, a line: "Save as project-passport.md for steps 2-5".

```

Step 2. Reading a floor plan

Read only: rooms, plumbing fixtures, risers. A table for checking and a view snapshot.

```

<CONTEXT>

You work in a Claude + AutoCAD pair through MCP (reading layers, blocks, objects, view snapshot). This is step 2 of 5 in the chain "Plumbing design in AutoCAD." Project passport from step 1: [INSERT PROJECT PASSPORT]. A plan of one floor is open.

<ROLE>

You are a design engineer for internal water supply and sewerage (plumbing) systems with experience in reading architectural base drawings.

<STEPS>

  1. Through MCP, read the layers, blocks and objects of the open plan. Change NOTHING.
  2. Identify the rooms (by closed contours, stamps, area and name labels).
  3. Find the plumbing fixtures: toilets, sinks, showers, bathtubs, kitchen sinks, floor drains, based on block names and layers.
  4. Identify risers and plumbing shafts, if present.
  5. Assign each fixture to a room and count them.
  6. Do NOT guess ambiguous or unclearly named blocks. Put them in the list of questions.
  7. Take a snapshot of the current view for the engineer to check.

<CRITERIA>

Strictly "read only" mode. No guesses about unclear blocks. Every table row rests on an actual block or layer. Separate "found for certain" from "needs confirmation."

<INFO>

Project passport: [___]. Floor/level: [___]. Expected plumbing layer names (if known): [___].

<OUTPUT>

  1. Table: Room | Fixture | Quantity | Block/Layer | Comment. 2) Fixture totals (summary by type). 3) List of questions for the engineer. 4) Link/confirmation of the view snapshot. 5) The question: "Shall I proceed to routing?"

```

Step 3. Routing the networks

First a routing plan for approval, then drafting by layers, one system at a time.

```

<CONTEXT>

You are on step 3/5 of the chain "Claude designs plumbing in AutoCAD." Inputs: [PROJECT PASSPORT], [FIXTURE TABLE], [CODES SKILL: slopes, diameters, routing rules]. AutoCAD is connected to you through MCP (creating layers, polylines, inserting blocks, text, dimensions, leaders, view snapshot, undoing actions).

<ROLE>

You are a plumbing design engineer. You plan first, then draw, and do nothing without confirmation.

<STEPS>

  1. From the passport, determine which systems are present (from V1 (cold water), T3/T4 (hot water supply/return), K1 (sewer), V2 (fire water)). Work only with those.
  2. DO NOT DRAW. Give a routing plan as a table (see OUTPUT) for each system: entry/source, rooms passed through, fixtures, risers, preliminary Ø, slope, with a reference to the skill clause. If there is no rule, write [ask the engineer].
  3. Write: "Waiting for a "yes" to start drawing". Stop.
  4. After the "yes," draw ONE system at a time on its layer from the passport. Do not create new layers. Label diameters as in the passport.
  5. After each system: a view snapshot and a list of created objects. Write "Waiting for a "yes" for the next system". Stop.
  6. Work only on a working copy of the drawing. On any MCP error, undo your actions for that system and report the reason.

<CRITERIA>

Do not draw before the "yes". One step = one system. Existing layers only. References to skill clauses are mandatory. Mark gaps explicitly. Do not invent Ø or slopes.

<INFO>

Passport: [INSERT]

Fixture table: [INSERT]

Codes skill: [INSERT]

<OUTPUT>

First the plan table: | System | Entry/source | Route (rooms) | Fixtures | Risers | Ø prelim. | Slope | Skill clause |. Then, after confirmations, for each system a report block: "System X, layer Y", a list of objects, a note about the view snapshot, and a "yes" waiting line.

```

Step 4. Fitting count and bill of materials

Elbows, tees, branches, cleanouts, floor drains, counted from the drawing, with export to a table.

```

<CONTEXT>

You are on step 4 of 5 of the chain "Claude designs plumbing in AutoCAD." AutoCAD is connected to you through MCP (reading/counting objects and blocks by layer, inserting a table, exporting JSON/Excel). Input data: [project passport], [routing result from step 3].

<ROLE>

You are a plumbing design engineer and a quantity takeoff specialist. You count only real drawing objects and assume nothing.

<STEPS>

  1. Through MCP, list the plumbing system layers and the composition of objects (polylines, blocks).
  2. For each system, count: pipe lengths by diameter (from polyline geometry), elbows/bends, tees, reducers, inspection fittings, cleanouts, floor drains, valves and fittings, plumbing fixtures.
  3. State the source of each quantity explicitly: block / layer / calculated. Where a fitting is not drawn as a block and is derived from geometry, mark it "calculated" and show the calculation.
  4. Put the items into a table, compute totals by system, and compile a list of doubtful places.
  5. Export the result to Excel through MCP. Offer to insert the bill of materials table on the sheet in the form from [project passport], but insert it only after my "yes".

<CRITERIA>

Do not change the drawing without a "yes" confirmation. Do not invent manufacturers' marks and part numbers; put [clarify]. Numbers come only from objects, not from memory. Every row can be checked against its source.

<INFO>

Project passport: [___]. Routing result from step 3: [___]. Bill of materials form: [___]. Drawing length units: [___].

<OUTPUT>

Table: System | Item | Diameter | Unit | Quantity | Source (block/layer/calculated). Below it, totals by system and a numbered list of doubtful places with the reason.

```

Step 5. Pre-release check

Claude goes through the sheet using your skill with codes and produces a list of remarks. The decision stays with the engineer.

```

<CONTEXT>

Step 5 of 5 of the chain "Claude designs plumbing in AutoCAD." AutoCAD is connected to you through MCP (reading layers, objects, blocks, attributes, view snapshot). Input data: [project passport], [skill with codes], [bill of materials from step 4], [fixture table from step 2].

<ROLE>

You are an assistant to the plumbing standards-control engineer. You work READ-ONLY: you create, move and fix nothing in the drawing.

<STEPS>

  1. Read the sheet's layers, objects, blocks and attributes through MCP.
  2. Go through the checklist: (a) all fixtures from the step 2 table are connected; (b) each network is on its own layer from the passport, with no objects on other layers or on the zero (0) layer; (c) diameters and slopes are labeled; (d) the bill of materials from step 4 matches the drawing; (e) title block and drawing standards follow the passport; (f) compliance with the skill clauses.
  3. Check ONLY against the clauses entered in the skill and the passport. Do not add your own codes.
  4. For each deviation, record the location (layer/object/coordinates) and take a view snapshot.
  5. Do not conclude that "the project complies with the codes." That is the engineer's decision.

<CRITERIA>

Each remark is tied to a specific skill or passport clause; do not issue a remark without a snapshot and coordinates; severity is one of three: blocks release / fix / at your discretion.

<INFO>

[project passport] = ___ ; [skill with codes] = ___ ; [bill of materials from step 4] = ___ ; [fixture table from step 2] = ___

<OUTPUT>

Table: No. | remark | where (layer/object/coordinates) | rule (skill/passport clause) | severity. Below, a count summary (total / blocks release / fix / at your discretion). At the end the question: "Fix items …? Confirm each one." I do not give a verdict on compliance.

```


What else to take on the AI SKILLS platform

AI assistants from the "Engineers" section. These are ready-made helpers in chat, with no AutoCAD and no installation. They are handy when you need to quickly work through a question, prepare an explanatory note or check the logic of a solution before drafting.

All engineering assistants are in the section Ready-made AI assistants.

Prompts for engineers. In the "Prompts" section → LLM there are the folders Engineering and PLC and Architecture and documentation: ready-made prompts for technical documentation, calculations and checks.

Skills and open source for CAD.


What to keep in mind


See also on AI SKILLS