Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AUTOCAD_MCP_BACKENDNoBackend selection: auto, com, file_ipc, or ezdxf. auto tries full AutoCAD over COM, then AutoCAD LT over File IPC, then falls back to ezdxf.auto
AUTOCAD_MCP_IPC_DIRNoDirectory for IPC command/result JSON files. Must match on both the Python and AutoLISP sides.C:/temp
AUTOCAD_MCP_AUTOLOADNoLoad mcp_dispatch.lsp in the active document before its first v2 request. Set to 0 to require manual preload.1
AUTOCAD_MCP_ONLY_TEXTNoDisable screenshot capture and provide text feedback only.false
AUTOCAD_MCP_COM_LAUNCHNoSet to 0 to prevent the COM backend from starting full AutoCAD automatically; otherwise AutoCAD starts if needed.
AUTOCAD_MCP_IPC_TIMEOUTNoIPC command timeout in seconds (1-300).30.0
AUTOCAD_MCP_IPC_LONG_TIMEOUTNoTimeout in seconds for execute_lisp and plotting (up to 600).120.0

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": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
drawingB

Drawing file management.

Operations:
  create     — Create a new empty drawing. data: {name?}
  open       — Open an existing drawing. data: {path}
  info       — Get drawing extents, entity count, layers, blocks.
  save       — Save current drawing. data: {path?} (saves to path if given, else QSAVE)
  save_as_dxf — Export as DXF. data: {path}
  plot_pdf   — Plot to PDF. data: {path}
  purge      — Purge unused objects.
  get_variables — Get system variables. data: {names: [...]}
  undo       — Undo last operation.
  redo       — Redo last undone operation.
entityA

Entity creation, querying, and modification.

Create operations:
  create_line       — x1, y1, x2, y2, layer?
  create_circle     — data: {cx, cy, radius}, layer?
  create_polyline   — points: [[x,y],...], data: {closed?}, layer?
  create_rectangle  — x1, y1, x2, y2, layer?
  create_arc        — data: {cx, cy, radius, start_angle, end_angle}, layer?
  create_ellipse    — data: {cx, cy, major_x, major_y, ratio}, layer?
  create_mtext      — data: {x, y, width, text, height?}, layer?
  create_hatch      — entity_id, data: {pattern?, scale?, angle?}  (pattern SOLID for a fill)

Read operations:
  list              — layer? → list entities
  count             — layer? → count entities
  get               — entity_id → entity details

Modify operations:
  copy    — entity_id, data: {dx, dy}
  move    — entity_id, data: {dx, dy}
  rotate  — entity_id, data: {cx, cy, angle}
  scale   — entity_id, data: {cx, cy, factor}
  mirror  — entity_id, x1, y1, x2, y2
  offset  — entity_id, data: {distance}
  array   — entity_id, data: {rows, cols, row_dist, col_dist}
  fillet  — data: {id1, id2, radius}
  chamfer — data: {id1, id2, dist1, dist2}
  erase   — entity_id
layerA

Layer creation and management.

Operations:
  list            — List all layers with properties.
  create          — data: {name, color?, linetype?}
  set_current     — data: {name}
  set_properties  — data: {name, color?, linetype?, lineweight?}
  freeze          — data: {name}
  thaw            — data: {name}
  lock            — data: {name}
  unlock          — data: {name}
blockA

Block definition, insertion, and attribute management.

Operations:
  list                 — List all block definitions.
  insert               — data: {name, x, y, scale?, rotation?, block_id?}
  insert_with_attributes — data: {name, x, y, scale?, rotation?, attributes: {tag: value}}
  get_attributes       — data: {entity_id}
  update_attribute     — data: {entity_id, tag, value}
  define               — data: {name, entities: [{type, ...}]}
annotationB

Annotation: text, dimensions, and leaders.

Operations:
  create_text             — data: {x, y, text, height?, rotation?, layer?}
  create_dimension_linear — data: {x1, y1, x2, y2, dim_x, dim_y}
  create_dimension_aligned — data: {x1, y1, x2, y2, offset}
  create_dimension_angular — data: {cx, cy, x1, y1, x2, y2}
  create_dimension_radius — data: {cx, cy, radius, angle}
  create_leader           — data: {points: [[x,y],...], text}
pidB

P&ID drawing with CTO symbol library.

Operations:
  setup_layers     — Create standard P&ID layers.
  insert_symbol    — data: {category, symbol, x, y, scale?, rotation?}
  list_symbols     — data: {category}
  draw_process_line — data: {x1, y1, x2, y2}
  connect_equipment — data: {x1, y1, x2, y2}
  add_flow_arrow   — data: {x, y, rotation?}
  add_equipment_tag — data: {x, y, tag, description?}
  add_line_number  — data: {x, y, line_num, spec}
  insert_valve     — data: {x, y, valve_type, rotation?, attributes?}
  insert_instrument — data: {x, y, instrument_type, rotation?, tag_id?, range_value?}
  insert_pump      — data: {x, y, pump_type, rotation?, attributes?}
  insert_tank      — data: {x, y, tank_type, scale?, attributes?}
architectureA

Architectural plan drawing (ve mat bang kien truc). Units: mm, angles: degrees.

Operations:
  setup        — Create standard layers A-TUONG, A-COT, A-CUA, A-TRUC, A-KICHTHUOC, A-CHU,
                 A-THIETBI, A-HATCH-TUONG and set DIMSCALE. data: {dim_scale?: 100}
  wall         — Wall from a centreline path, doors/windows cut in.
                 data: {points: [[x,y],...], thickness?: 200, closed?: false,
                        justify?: center|left|right, hatch?: "SOLID"|"ANSI31"|null,
                        openings?: [{segment: 0-based index, offset: mm from segment start,
                                     width, type: door|window|opening, swing?: left|right,
                                     hinge?: start|end, double?: bool, label?: "D1"}]}
  room         — Rectangular room on wall centrelines. data: {x, y, width, depth,
                 wall_thickness?: 200, name?, hatch?, openings?: [{side: bottom|right|top|left,
                 offset: mm from left/bottom end, width, type, swing?: in|out, hinge?: start|end,
                 double?, label?}]}
  grid         — Grid axes 1,2,3 (vertical) and A,B,C (horizontal) with bubbles and dimensions.
                 data: {x_spacings: [3600, 4200], y_spacings: [4500, 3000], origin?: [0,0],
                        extension?: 2000, bubble_radius?: 400, dimensions?: true, both_ends?: false,
                        x_labels?, y_labels?}
  columns      — Rectangular columns. data: {positions?: [[x,y],...] | x_spacings+y_spacings+origin
                 (all grid intersections), size_x?: 220, size_y?, fill?: "SOLID"|null}
  room_label   — Room name + area. data: {points: [[x,y],...], name, text_height?: 300, unit?: mm}
  dimension_chain — Continuous dims. data: {points: [[x,y],...], direction: x|y, at: y (or x) of dim line}
  area         — Area/centroid of a polygon. data: {points, unit?: mm} (no drawing)

Tip: call setup once per drawing first. Walls do not auto-trim T-junctions between
separate wall calls; draw an outer wall as one closed path, then partitions.
viewA

Viewport control and screenshot capture.

Operations:
  zoom_extents   — Zoom to show all entities.
  zoom_window    — Zoom to window: x1, y1, x2, y2 (top-level or inside data)
  get_screenshot — Capture PNG; data: {screenshot_path?: absolute new .png}.
systemB

Server status and management.

Operations:
  status        — Backend info, capabilities, health check.
  health        — Quick health check (ping backend).
  get_backend   — Return current backend name and capabilities.
  runtime       — Return process/runtime details for spawn diagnostics.
  init          — Re-initialize the backend.
  revision      — Journaled native batch/read/export_page/frames/plot/save/checkpoint. data: {action, drawing, ...}
  desktop       — Read Windows state/pending receipt without IPC init; data: {screenshot_path?}.
  worker        — File queue lifecycle. data: {action: observe|prepare|stop|renew, drawing?, session?}. Renew saves and renews the same document; others bypass IPC init.
  job           — Isolated AutoCAD LT job. launch: {action, drawing, ipc_dir, executable}; observe/attach/close: {action, path: absolute job.json}. No keyboard input; close saves first.
  acknowledge   — Acknowledge reconciled completion or proven v2 cancellation. data: {request_id}
  execute_lisp  — Execute arbitrary AutoLISP code (File IPC only). data: {code}

revision/execute_lisp accept data.screenshot_path (new absolute PNG); saved evidence
includes bytes/hash. include_screenshot also attaches the image. No mutation retry.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 9 tools

Disambiguation3/5

Top-level tools cover distinct domains, but there is real overlap: pid.insert_symbol/insert_pump/insert_tank duplicate block.insert, architecture.wall duplicates entity.create_polyline plus hatching, and annotation.create_text overlaps entity.create_mtext. The system tool's status/health/get_backend/runtime are near-synonymous diagnostics, and revision/desktop/worker/job/acknowledge are hard to distinguish without deep reading.

Naming Consistency4/5

Operations follow a consistent snake_case verb_noun pattern (create_line, set_properties, get_screenshot, zoom_extents) within noun-based category tools. The only deviations are that top-level tools are nouns rather than action verbs, and abbreviations like 'pid' are less readable, but the overall scheme is predictable.

Tool Count3/5

Nine top-level tools is a reasonable count, but each is an overloaded dispatcher: entity bundles 20+ operations, system bundles 12 including health checks, job lifecycle, and arbitrary LISP execution. This effectively exposes a very large surface through a small number of mega-tools, increasing cognitive load and misselection risk.

Completeness4/5

Coverage is broad: layers, drawings, entities, blocks, annotations, P&ID, architecture, views, and system control. Notable gaps remain—there is no generic entity property update (change layer/color/linetype of an existing entity), and no xref, layout/paperspace, or style management, though agents can work around most of these.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues