← Back to AutoCAD DWG MCP Server

Install AutoCAD DWG MCP Server

Pick your client, copy the command, done.

Manual setup required. The maintainer's config contains paths only you know - edit the placeholders below before adding it to Claude Code.
1

Prepare the server locally

Run this once before adding it to Claude Code.

python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
python app.py
2

Register it in Claude Code

claude mcp add autocad-dwg-mcp -- python /path/to/app.py

Replace any placeholder paths in the command with the real path on your machine.

Environment Variables

Set these before running AutoCAD DWG MCP Server.

VariableDescriptionRequired
DWG_FOLDERThe base folder path to search for DWG filesNo
LAYER_SHOP_FIELDThe layer name containing the material tableNo
ROW_TOLERANCERow clustering tolerance in pixelsNo
COL_TOLERANCEColumn assignment tolerance in pixelsNo
MATERIAL_CATEGORIESComma-separated list of category header namesNo
PORTPort for the FastAPI serverNo

Try It Out

After setup, try these prompts with your AI agent:

Extract the material table from the latest DWG file in my CAD folder.
List all material categories found in the current AutoCAD drawing.
Process the shop field layer in the drawing files and summarize the material requirements.
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Python 3.8+ with pip installed

Keep this setup from going cold

Save the docs, env vars, and workflow around AutoCAD DWG MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup