cad_new_drawing
Initializes a fresh CAD drawing space, clearing existing entities and resetting layers.
name
io.github.blackmoon87Published by GitHub account blackmoon87v0.2.1Updated Oct 24, 2026
Headless CAD engine & MCP server for 2D/3D drafting, solids, DXF/SVG export, and automation.
Headless CAD engine and MCP server for 2D/3D drafting, solids, and DXF/SVG export.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.blackmoon87%2Fautocad-site-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Add this to your client's mcpServers config.
{
"mcpServers": {
"autocad-site": {
"type": "http",
"url": "https://acad-qlae.onrender.com/mcp"
}
}
}This repository has no README.
Initializes a fresh CAD drawing space, clearing existing entities and resetting layers.
nameCreates or configures CAD layers with custom colors (hex), linetypes (Continuous, Hidden, Center, Phantom), and lineweights (0.18, 0.25, 0.35, 0.50, etc.).
layersrequiredFast 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.
entitiesrequiredDefines a reusable Block containing geometric entities and optional attribute definitions (ATTDEF).
namerequiredentitiesrequiredbasePointattributesPlaces an instance (INSERT) of a block into the drawing with transform scale, rotation, and attribute values.
namerequiredscalepositionrequiredattributesrotationDegGenerates complex parametric structures: "structural_grid", "truss", "mechanical_flange", "gear", or "architectural_floorplan".
typerequiredparamsRuns 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.
selectcommandsrequiredLists 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").
filterExecutes 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.
scriptrequiredOpens 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).
filePathrequiredExports the current drawing to a standard AutoCAD 2000 (AC1015) ASCII DXF file compatible with AutoCAD, Civil 3D, SolidWorks, and LibreCAD.
filePathrequiredRenders the drawing or paper space layout to an SVG vector file for instant preview and inspection.
filePathrequiredbackgroundExports the closed 3D solids to a binary or ASCII STL file for 3D printing.
idsscalebinaryfilePathrequiredInspects 3D solids: list (id, op, volume, bounds), measure (volume, area, centroid) or check (closed, curve error).
idsfromlimitactionReturns comprehensive statistics of the current drawing: entity count, breakdown by type, layers, bounding box extents, blocks, and layouts.
Takes no parameters.
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.
nameapiUrlexpiresDaysOpens a shared drawing from Cloudflare D1 storage into the current CAD session by its share ID or URL.
idrequiredapiUrleditTokenUploads and updates the current CAD session drawing to an existing shared drawing using its editToken.
idrequiredapiUrleditTokenrequiredRevokes and deletes a shared drawing from Cloudflare D1 storage using its ownerToken.
idrequiredapiUrlownerTokenrequired75% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.
Declare a license in the repository or the registry entry.