Dmytro Vakulenko
← Selected work

DWG MCP Server

Gives AI agents structured access to DWG and DXF files. No AutoCAD, no Docker, no Python required. Browse objects, edit properties, render to SVG or PNG.
Latest release v0.2.4 GPL-3.0 ↗

Point your AI agent at a drawing — it just works.

Every file is indexed the moment it opens, so searches across blocks, layers, and layouts stay fast, even on large real-world drawings.

No rescanning. No AutoCAD. No waiting.

Open source.

Quick start

One line. No build weekend.

Terminal

claude mcp add --scope user --transport stdio dwg-mcp -- npx -y @dmytro-prototypes/dwg-mcp-server

The npm launcher downloads the matching native build from GitHub Releases on first use, verifies its SHA-256 checksum, caches it, and runs it — it is the shortest way in if you have Node. Without Node, the installer scripts resolve the latest release, verify its SHA-256 checksum, and put a dwg-mcp-server executable on your PATH; they cover macOS Apple Silicon and Windows x64 only. They install the binary but write no client config, so add the MCP entry yourself afterwards: claude mcp add --scope user --transport stdio dwg-mcp -- dwg-mcp-server. On macOS the executable lands in ~/.local/bin, which may itself need adding to your PATH. Clients that do not pass MCP roots need DWG_MCP_ALLOWED_ROOTS set to the folders holding your drawings.

Listed in the official MCP registry as io.github.dimitrovakulenko/dwg-mcp-server ↗

CAPABILITIES

What it can do

11 MCP tools the agent can call on an opened drawing.
dwg.list_roots
List the folders available for DWG access.
dwg.open_file
Open a DWG or DXF from an allowed folder and return a document id.
dwg.close_file
Close a document and release its worker process.
dwg.list_types
List every DWG type the backend supports.
dwg.list_file_types
List only the types actually present in the opened drawing.
dwg.describe_type
Describe a type, its readable and writable properties, and its default projection.
dwg.get_objects
Fetch objects by handle, preserving order and reporting anything missing.
dwg.query_objects
Query with filters, scopes, relation traversal, sorting, projection, and pagination.
dwg.set_entity_properties
Change writable properties on one entity in memory. The source file is never modified.
dwg.list_render_views
List model space, paper-space layouts, and layout viewports.
dwg.render_view
Render a full view or a bounded region as SVG or PNG.

SVG is the canonical render output and PNG is rasterised from the same scene. Rendering expands block references and generated dimension blocks, draws 2D geometry, text, MTEXT and hatch contours, composes paper-space layouts through their viewports, and returns coverage diagnostics for anything it could not draw.

DOWNLOADS

Prebuilt binaries

Release v0.2.4, built and tested on GitHub Actions runners for four platforms.

Checksums above are the SHA-256 values published with release v0.2.4; every asset ships with a matching .sha256 file on GitHub. Verify with shasum -a 256 (macOS, Linux) or Get-FileHash (Windows) before unpacking. Each archive contains the MCP host, the statically linked Rust worker, the LibreDWG schema files, and the GPL-3.0 licence text. Drawings are read locally and never uploaded.

All assets and .sha256 files on GitHub ↗

Update feed

Releases, progress notes, and product decisions will be published here.

20 October 2026 · Release

v0.2.4 fixes paper-space rendering

Paper-space layouts drew every line inside a scaled block insert roughly as many times too thick as the insert scale, so whole sheets came out as black blobs; line weights now follow the insert scale correctly. MTEXT underline, overline, and strikethrough switches no longer leak their control letter into rendered text, and point entities are drawn according to PDMODE and PDSIZE. The release also ships the install.sh and install.ps1 installer scripts as assets.

28 August 2026 · Release

v0.2.3 published for four platforms

Native builds for macOS Apple Silicon, Windows x64, Linux x64, and Linux ARM64 are built and tested on GitHub Actions runners, published with SHA-256 checksum files, and fronted by the @dmytro-prototypes/dwg-mcp-server npm launcher. The server is also listed in the official MCP registry as io.github.dimitrovakulenko/dwg-mcp-server.

Current status

Open source and available

Eleven MCP tools cover roots and sessions, type discovery, handle lookup, structured queries, in-memory property edits, and model or paper-space rendering.
View source on GitHub ↗