autocad-mcp-pro

v1.8.0
autocad-mcp-pro Checked 10 hours ago Published 24 days ago

Production-grade AutoCAD MCP server — COM API + ezdxf dual engine

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

drawing_info Drawing Info

Get comprehensive metadata for the current drawing. Full description: describe_tool.

entity_list List Entities

List entities in the drawing with optional type and layer filters. Full description: describe_tool.

ParameterTypeDescription
compactbooleanReturn a columnar {fields, rows, count, offset, total, truncated, next_offset} envelope instead of dicts: much cheaper per row, and the only shape that reports truncation.
fieldsProject to these fields, in this order (e.g. ['handle','type','layer']); 'properties.<key>' reaches one nested value. Omit for the full record; an unknown name errors and lists the valid ones.
layer_filterFilter by layer name
limitintegerMaximum entities to return
offsetintegerNumber of entities to skip
type_filterFilter by entity type: LINE, CIRCLE, ARC, LWPOLYLINE, TEXT, MTEXT, INSERT, HATCH, etc.

cad_batch Batch: Run Tools

Execute an ordered list of tool calls in ONE round trip. Full description: describe_tool.

ParameterTypeDescription
steps *arrayOrdered steps. Each: {'tool': <tool name>, 'args': {...}, 'bind': <optional name>}. 'bind' names this step's result so a later step can reference it as '$name' (its handle), '$name.field' or '$name.li…
dry_runbooleanValidate every step against its tool's real JSON Schema and execute nothing.
expected_revisionRun only if the document's content revision is still this one (a dry run's `preview.revision`); otherwise refused stale_revision, no step run.
labelLabels the batch's history rows, e.g. 'round 2' (1-200 chars).
on_errorstringauto (default) = all or nothing: rollback when a step mutates, stop when every step reads. 'stop' halts at the first failure and keeps what ran; 'continue' runs every step;
operation_idYour own id for this batch (1-128 printable characters).
preconditionsA dry run's `preview.preconditions` ({handle, fingerprint} per literal handle): run only if every entity is exactly as previewed; otherwise refused stale_revision, no step run.
verbosebooleanReturn each step's full result instead of just its handle.

search_tools

Find tools for a job, in English or as an AutoCAD command (FILLET, QSELECT).

ParameterTypeDescription
query *string
limitintegerdefault 5, max 25
riskstringany|write|read; filtered hits are reported

call_tool

Call a tool found by search_tools with its arguments.

ParameterTypeDescription
name *string
argumentsobject

describe_tool

Full schema, risk and examples of a tool (name) or several (names).

ParameterTypeDescription
namestring
namesarray