home / mcp / autocad lt autolisp mcp server
Enables natural language control of AutoCAD LT by generating and executing AutoLISP code to create drawings and P&ID diagrams.
Configuration
View docs{
"mcpServers": {
"puran-water-autocad-mcp": {
"command": "path\\\\to\\\\autocad-mcp\\\\venv\\\\Scripts\\\\python.exe",
"args": [
"path\\\\to\\\\autocad-mcp\\\\server_lisp_fast.py"
]
}
}
}You can control AutoCAD LT 2024 and newer through natural language by generating and executing AutoLISP code via this MCP server. It connects your MCP client or Claude Desktop to AutoCAD LT to create engineering drawings, P&ID diagrams, and technical documentation through conversational prompts.
You will run the MCP server locally and connect it to your MCP client. Use conversational prompts to describe the drawing actions you want, and the server translates them into AutoLISP commands that AutoCAD LT executes. If you have the CTO Library, you gain full P&ID symbol support and intelligent attribute handling; otherwise, you can still perform basic drawing operations and block management.
Prerequisites include a supported AutoCAD LT installation and Python on your system.
1. Install dependencies 2. Configure your MCP client with the appropriate server configuration 3. Start the server and test the connection
Install dependencies by cloning the repository, creating a virtual environment, and installing Python requirements. Then configure your MCP client to use one of the local server options and start the server accordingly. If you have the CTO Library, enable the fast server path for better performance.
If loading errors occur, ensure the AutoLISP paths are trusted in AutoCAD LT. If P&ID tools fail, verify the CTO Library path or opt to use the standard server for basic drawing operations. Run the test connection script to verify the integration works.
This MCP server adds full CTO Library integration for P&ID symbols, intelligent block attributes for equipment schedules, a fast mode server with significant performance improvements, batch operations, and dedicated P&ID process tools.
Operate the server in a trusted environment. Run AutoCAD LT with proper permissions and ensure that generated AutoLISP code is from trusted prompts. Do not expose the MCP server to untrusted networks without appropriate safeguards.
Draw a straight line between two points in AutoCAD LT.
Create a circle given a center point and radius.
Place text with optional rotation for labels and annotations.
Generate a polyline from a series of points.
Draw a rectangle using corner points.
Insert a block with optional attributes and positioning.
Create or modify layers with a full set of properties.
Move the most recently created entities to a new location.
Modify attributes within an inserted block.
Create an arc by center, radius, and angles.
Draw an ellipse defined by major axis and ratio.
Apply hatch patterns to closed areas.
Add multiline formatted text blocks.
Add linear dimensions to drawings.
List available P&ID symbols from the CTO Library.
Insert a symbol from the CTO P&ID library (CTO-required).
Insert equipment blocks with proper CTO attributes.
Place valves with the correct CTO attributes.
Add equipment identification tags to blocks.
Attach descriptive blocks to equipment.
Annotate lines with their process line numbers.
Draw piping between equipment points.
Connect equipment with orthogonal piping routing.
Add directional flow indicators on process lines.