puran-water/autocad-mcp

MCP server for AutoCAD LT v3.1: freehand AutoLISP execution, 8 consolidated tools, File IPC + ezdxf backends, focus-free dispatch, undo/redo, P&ID symbols, and robust IPC with ESC prefix and UTF-8 fallback. Companion agent skill: puran-water/autocad-drafting

What it solves

This project bridges the gap between modern AI assistants and AutoCAD LT, allowing you to control engineering drawings using natural language. It automates repetitive tasks like entity creation, layer management, and P&ID symbol insertion without requiring you to manually navigate the AutoCAD interface.

How it works

It functions as an MCP (Model Context Protocol) server that connects to an AI client like Claude. It offers two ways to operate:

  • File IPC Backend: Uses Windows-native messaging to send commands to a running instance of AutoCAD LT 2024+ without stealing your window focus.
  • ezdxf Backend: A headless mode that runs on any platform to generate or modify DXF files without needing AutoCAD installed.

It exposes eight tool categories—such as drawing, entity, block, and pid—that the AI uses to execute commands. For advanced users, the execute_lisp tool allows you to run custom AutoLISP code directly through the server.

Who it’s for

This tool is designed for engineers and drafters who use AutoCAD LT on Windows and want to integrate AI into their design workflow. It is particularly useful for those managing P&ID symbols, revision clouds, and batch drawing updates who want to maintain a documented, journaled history of their changes.

Highlights

  • Dual-mode operation: Supports both live AutoCAD LT automation and offline, headless DXF processing.
  • Focus-free automation: Uses Windows messaging to drive AutoCAD in the background while you continue working.
  • Extensible: Includes an execute_lisp tool to run arbitrary AutoLISP scripts.
  • Revision tracking: Supports guarded revision operations with journaled receipts to track changes before and after edits.
  • P&ID support: Built-in tools for inserting and connecting standard P&ID symbols.

Related

  • Project
  • Project
  • Project
  • Project