draw_lineLABSCO SUMMARY
The CAD window stays yours; the drawing commands arrive from the conversation.
This is not a file generator — it attaches to a CAD application running on your Windows machine and issues the same operations you would click, so what appears on screen is the result. The instruction parser handles colour and shape words, which covers a request like drawing a red circle; anything more precise is better issued as the individual drawing calls.
What it is
A Windows server that drives an installed CAD application through its COM interface. It draws the basic primitives, adds text, hatching and linear dimensions, manages layers, saves the drawing, and can take a whole instruction in natural language and turn it into those operations.
What you get
- Lines, circles, arcs, rectangles and polylines drawn into the open drawing
- Text placed, hatch patterns filled, and linear dimensions added
- Layers created and switched
- The drawing saved out as a DWG file
- A plain instruction parsed into drawing parameters, including the colour it names and the shape and action words it uses
- The same tools against AutoCAD, GstarCAD or ZWCAD
Requirements
Windows, with AutoCAD, GstarCAD or ZWCAD already installed — the server talks to the running application over the Windows COM interface. Which application to drive, and where output files land, come from a configuration file. No account, no key.
Setup effort
Build from source — git clone https://github.com/daobataotie/CAD-MCP.git
USE CASES
Sketching a shape without touching the toolbar
Place the lines, circles and rectangles by describing them, and watch them appear in the drawing you have open.
Turning a sentence into geometry
Hand over the instruction as written and let the parser pull out the shape, the action and the colour.
Annotating a drawing
Add the labels and the linear dimensions without switching tools between each one.
Filling a region
Apply a hatch pattern to an area you have just drawn.
Saving the result
Write the current drawing out as a DWG file to the configured output location.
10 tools
Listed in project docs. Your client may show a different list.
draw_circledraw_arcdraw_polylinedraw_rectangledraw_textdraw_hatchadd_dimensionsave_drawingprocess_commandBEFORE YOU INSTALL
What to know first
Tools you get
10 tools named in the project's documentation.
Requires
- Windows
- AutoCAD, GstarCAD or ZWCAD installed
- python on PATH
Where it runs
Both documented clients run the server on your machine.
INSTALLATION
Connect your client
Server setup
git clone https://github.com/daobataotie/CAD-MCP.git
cd CAD-MCP
pip install -r requirements.txtIn src/config.json, set cad.type to the CAD application you use (AutoCAD, GCAD, GstarCAD or ZWCAD) and output.directory to where drawings should be saved
MCP Clients
Claude Desktop, Windsurf
{
"mcpServers": {
"CAD": {
"command": "python",
"args": [
"C:\\cad-mcp\\src\\server.py"
]
}
}
}C:\cad-mcp\src\server.py is a sample; yours is the full path to src\server.py in your clone. The server drives a CAD application that is installed on this Windows machine.