Provides CAD drawing automation by parsing natural language commands and performing drawing actions across AutoCAD, GCAD, and ZWCAD.
Configuration
View docs{
"mcpServers": {
"piexl-cad-mcp": {
"command": "python",
"args": [
"src/server.py"
]
}
}
}CAD-MCP is a protocol server that enables controlling CAD software via natural language instructions. This makes it easier to create and modify CAD drawings by issuing textual commands, automating drawing tasks across supported CAD applications.
You run the server and connect an MCP client to issue natural language commands. The server translates your instructions into CAD operations such as drawing lines, circles, arcs, polylines, text, hatch patterns, and dimensions, and can save drawings to DWG format. You can configure the server to target AutoCAD or compatible CAD software and then use supported MCP clients to send commands like create lines, add text, or apply colors to drawing objects.
Prerequisites you need before installation: Windows operating system, installed CAD software (AutoCAD, GstarCAD, or ZWCAD). Install Python and required Python packages so the MCP server can run.
# 1) Install Python from the official source
# 2) Install Windows build tools if needed
# 3) Install project dependencies
pip install -r requirements.txt
# 4) Start the MCP server
python src/server.pyConfigure the server to target your CAD software and tune startup timing and command delays as needed. The main configuration file is located at src/config.json and includes server information, CAD software type, startup wait time, and output settings.
To connect an MCP client, you can run a local command for a quick test and then point your client to the server. A typical local run uses Python to start the server and a local client to issue commands.
The server exposes a set of drawing and editing actions you can invoke through natural language processing. The available functions include drawing lines, circles, arcs, polylines, rectangles, and text, as well as adding hatch patterns, linear dimensions, and saving the current drawing.
Draw a straight line between two points or coordinates with optional layer, color, and line type.
Create a circle with a given center and radius, including optional fill and color.
Draw an arc defined by center, radius, start angle, and end angle with adjustable attributes.
Draw a connected sequence of points forming a polyline with optional vertex properties.
Create a rectangle using two corner points or a corner, width, and height specification.
Add text at a specified location with font, height, and alignment options.
Apply a hatch pattern to a closed boundary or region.
Add linear dimension measurements between two points or features.
Save the current CAD drawing to a DWG file in the configured output directory.
Process natural language instructions into concrete CAD operations.