Skip to main content
Glama
haianhdskt-boop

autocad-ai-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
read_dxf_summaryA

Get a comprehensive high-level summary of a DXF CAD drawing. Returns: DXF version, units, layer count, block count, entity breakdown by type, total entities, and bounding box.

list_layersA

List all layers in a DXF drawing with properties (name, color ACI/Hex, linetype, lineweight, status on/frozen/locked, entity count).

list_blocksB

List all block definitions and their usage/instance count in modelspace.

query_drawing_entitiesA

Query entities in the drawing with optional filtering by type (e.g. 'LINE', 'CIRCLE', 'LWPOLYLINE', 'TEXT', 'INSERT') and/or layer. Returns coordinates, dimensions, layers, and properties for each matched entity.

extract_drawing_textsB

Extract all textual annotations, notes, and labels (TEXT & MTEXT) with exact coordinates, heights, rotations, and layers.

create_drawingA

Create a new blank DXF CAD drawing file.

  • dxf_version: e.g. 'R2018', 'R2013', 'R2010', 'R2007', 'R2000'

  • units: 'mm', 'cm', 'm', 'in', 'ft', or 'unitless'

  • layers: optional list of initial layers, e.g. [{"name": "WALL", "color": 1, "linetype": "CONTINUOUS"}]

add_layerC

Add a new layer or update an existing layer in a DXF drawing.

  • color: ACI number (1-255), color name ('red', 'cyan', 'green'), or hex ('#FF0000').

add_entitiesA
Batch add geometric entities to a DXF drawing's modelspace.
Supported entity types:
- line: {"type": "line", "start": [x1, y1], "end": [x2, y2], "layer": "WALL", "color": 1}
- circle: {"type": "circle", "center": [x, y], "radius": r, "layer": "HOLES"}
- arc: {"type": "arc", "center": [x, y], "radius": r, "start_angle": a1, "end_angle": a2}
- lwpolyline: {"type": "lwpolyline", "points": [[x1, y1], [x2, y2], ...], "is_closed": true}
- rectangle: {"type": "rectangle", "corner1": [x1, y1], "corner2": [x2, y2], "layer": "FRAME"}
- text: {"type": "text", "text": "Label", "insert": [x, y], "height": 3.5}
- mtext: {"type": "mtext", "text": "Multi

Line", "insert": [x, y], "height": 3.5} - point: {"type": "point", "location": [x, y]} - ellipse: {"type": "ellipse", "center": [x, y], "major_axis": [dx, dy, 0], "ratio": 0.5} - dimension_linear: {"type": "dimension_linear", "base": [x, y], "p1": [x1, y1], "p2": [x2, y2], "text": "100mm"} - block_reference: {"type": "block_reference", "block_name": "DOOR", "insert": [x, y], "scale": 1.0, "rotation": 0.0}

delete_entitiesB

Delete entities from a DXF file by handle list, or by layer/entity type filter.

execute_ezdxf_scriptB

Execute custom Python code using ezdxf for advanced parametric drafting or calculations. Variables provided in scope: doc, msp, ezdxf, math, target_file, result. Assign any final output message to variable result.

export_drawing_to_svgC

Render DXF CAD drawing to vector SVG format for crisp browser viewing.

export_drawing_to_pngB

Render DXF CAD drawing to a high-resolution PNG image.

export_drawing_to_pdfB

Render and export DXF CAD drawing to PDF format.

generate_autocad_scrB

Generate an AutoCAD Script file (.scr) for batch automation inside AutoCAD.

generate_autocad_lispC

Generate an AutoLISP (.lsp) routine file for AutoCAD users.

  • template_type: 'clean_drawing', 'create_grid', 'batch_export_pdf', or None (with custom_lisp_code).

Prompts

Interactive templates invoked by user choice

NameDescription
analyze_cad_drawingPrompt template for systematically analyzing a CAD drawing.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/haianhdskt-boop/autocad-ai-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server