← 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.py2
Register it in Claude Code
claude mcp add autocad-dwg-mcp -- python /path/to/app.pyReplace 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 filesNoLAYER_SHOP_FIELDThe layer name containing the material tableNoROW_TOLERANCERow clustering tolerance in pixelsNoCOL_TOLERANCEColumn assignment tolerance in pixelsNoMATERIAL_CATEGORIESComma-separated list of category header namesNoPORTPort for the FastAPI serverNoTry 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.