Skip to main content
Glama

Server Details

Headless CAD engine & MCP server for 2D/3D drafting, solids, DXF/SVG export, and automation.

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2024-11-05
URL
ChatGPT
–
Claude
–

TDQS

A3.5/5.0

Scored across 19 tools

Disambiguation4/5

Tools are mostly clearly distinct (export formats, sharing lifecycle, block creation vs insertion). However cad_run_commands and cad_execute_script overlap in that both execute arbitrary input to modify the drawing, which could confuse selection despite the JS vs command-line distinction.

Naming Consistency5/5

All 19 tools follow a strict cad_verb_noun snake_case pattern (cad_add_layers, cad_create_block, cad_export_dxf, cad_open_dxf, cad_share_drawing). Naming is entirely predictable and readable.

Tool Count4/5

19 tools is on the heavier end but justified given the broad CAD domain (layers, entities, blocks, commands, exports, 3D solids, sharing). Each tool covers a distinct operational area rather than being redundant.

Completeness4/5

Surface covers drawing lifecycle (new, open DXF, open shared, export DXF/STL/SVG), geometry creation, blocks, 3D inspection, and sharing CRUD. Minor gaps like direct entity deletion/selection tools, though cad_run_commands can fill many of these via command-line input.

Available Tools

19 tools
cad_add_layersBInspect

Creates or configures CAD layers with custom colors (hex), linetypes (Continuous, Hidden, Center, Phantom), and lineweights (0.18, 0.25, 0.35, 0.50, etc.).

Inputs: layers (required).

cad_batch_add_entitiesCInspect

Fast batch insertion of multiple CAD entities (LINE, LWPOLYLINE, CIRCLE, ARC, ELLIPSE, XLINE, RAY, DONUT, SOLID, TRACE, WIPEOUT, SPLINE, ARRAY (associative rect/polar/path), MLINE (multiline), TABLE (title, header and data cells), IMAGE (picture embedded in the drawing), TEXT, MTEXT, DIMENSION, TOLERANCE, LEADER, HATCH (pattern or gradient), POINT, INSERT, POLYLINE3D). LINE, POINT and POLYLINE3D points take z.

Inputs: entities (required).

cad_create_blockCInspect

Defines a reusable Block containing geometric entities and optional attribute definitions (ATTDEF).

Inputs: name (required), entities (required), basePoint, attributes.

cad_execute_scriptAInspect

Executes JavaScript to generate large or procedural geometry (loops, patterns, algorithms) without spending context tokens. Runs in a separate Node process that cannot write files, start programs or read anything outside the CAD sources; 30 s limit. Variables: CAD, M (CADMath), G (CADGeometry), E (CADEntities), S (CADState), D (CADDXF), L (CADLayouts), parametric, solid(recipe) (adds a 3D solid), console. Changes to the drawing are kept.

Inputs: script (required).

cad_export_dxfBInspect

Exports the current drawing to a standard AutoCAD 2000 (AC1015) ASCII DXF file compatible with AutoCAD, Civil 3D, SolidWorks, and LibreCAD.

Inputs: filePath (required).

cad_export_stlBInspect

Exports the closed 3D solids to a binary or ASCII STL file for 3D printing.

Inputs: filePath (required), ids, scale, binary.

cad_export_svgBInspect

Renders the drawing or paper space layout to an SVG vector file for instant preview and inspection.

Inputs: filePath (required), background.

cad_generate_parametricBInspect

Generates complex parametric structures: "structural_grid", "truss", "mechanical_flange", "gear", or "architectural_floorplan".

Inputs: type (required), params.

cad_get_statsAInspect

Returns comprehensive statistics of the current drawing: entity count, breakdown by type, layers, bounding box extents, blocks, and layouts.

Inputs: no named parameters.

cad_insert_blockBInspect

Places an instance (INSERT) of a block into the drawing with transform scale, rotation, and attribute values.

Inputs: name (required), position (required), scale, attributes, +1 more.

cad_list_commandsAInspect

Lists every implemented AutoCAD command with its aliases and description. Optional filter matches the name, an alias or words in the description (for example "layer" or "dim").

Inputs: filter.

cad_new_drawingAInspect

Initializes a fresh CAD drawing space, clearing existing entities and resetting layers.

Inputs: name.

cad_open_dxfAInspect

Opens an existing ASCII DXF file (AutoCAD R12 to 2018+) in place of the current drawing, so it can be edited with cad_run_commands and saved with cad_export_dxf. Returns counts, what was converted, and a warning listing objects that cannot be read (they would be missing from a saved file).

Inputs: filePath (required).

cad_open_sharedBInspect

Opens a shared drawing from Cloudflare D1 storage into the current CAD session by its share ID or URL.

Inputs: id (required), apiUrl, editToken.

cad_revoke_sharedAInspect

Revokes and deletes a shared drawing from Cloudflare D1 storage using its ownerToken.

Inputs: id (required), ownerToken (required), apiUrl.

cad_run_commandsAInspect

Runs AutoCAD command-line input in the current drawing, exactly as typed in the app. Statements are separated by ";" or newlines; inside a statement tokens are separated by spaces and the statement ends with Enter. Example: "LINE 0,0 100,0 100,50; CIRCLE 50,25 10; CHPROP ALL; C red; LAYMRG N DOORS; N WALLS Y; DRAWORDER ALL; F". Every statement ends with Enter, so keep the follow-up answers of one command step in the same statement ("CHPROP ALL; LA WALLS C red"; a question asked after Enter goes in the next statement: "LAYDEL N TEMP; Y"). Objects are selected with ALL or P (previous). Returns the command log and any problems. 3D: points x,y,z; 3DPOLY, ELEV, VIEW (Top, Front, SWiso ...), UCS. 3D solids: BOX, CYL, SPHERE, EXTRUDE, REVOLVE, UNION, SUBTRACT, INTERSECT, MASSPROP. Use cad_list_commands to see every command.

Inputs: commands (required), select.

cad_share_drawingBInspect

Shares the current drawing online via Cloudflare D1 storage (autocad.site). Returns view and edit URLs that can be shared with users or other agents.

Inputs: name, apiUrl, expiresDays.

cad_solidsBInspect

Inspects 3D solids: list (id, op, volume, bounds), measure (volume, area, centroid) or check (closed, curve error).

Inputs: ids, from, limit, action.

cad_update_sharedBInspect

Uploads and updates the current CAD session drawing to an existing shared drawing using its editToken.

Inputs: id (required), editToken (required), apiUrl.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Modern CAD CLI + MCP Server: 2D/3D drawing, editing, measurement, validation, batch automation, real-time collaboration (CRDT + WebSocket).
      22
      2
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Universal Industrial-grade MCP Server for CAD automation, Headless DXF engine, AECO standards, and CE3X ConTech bridge.
      15
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to automate 2D architectural drafting and CAD file management, including DXF/DWG parsing, SVG/PNG/PDF rendering, wall extrusion to 3D STL meshes, room and beam analysis, block/script library access, and persistent depot storage via a REST API and MCP tools.
      18
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.

    Resources