dimitrovakulenko avatar

DWG MCP Server

dimitrovakulenko/dwg-mcp-server

Gives Claude read-only access to AutoCAD DWG files through LibreDWG. Each opened file spawns a dedicated Rust worker that builds an in-memory index of objects, handles, types, blocks, layouts, and spaces, then answers queries against that index instead of rescanning the file. You get eight tools: list accessible folders, open and close files, enumerate types globally or per-document, describe type schemas, fetch objects by handle, and run filtered queries with scope traversal, sorting, and pagination. The query engine supports filters on type, block membership, layout, model versus paper space, and property values. Ships as a Python stdio server that launches a Docker container with a prebuilt static worker binary. Useful when you need an AI agent to inspect drawing structure, search for entities, or navigate block and layer hierarchies without manual parsing.

GitHub stars
21
tools
11
transport
STDIO
env var
1
last updated
Aug 28, 2026

Tools

11 tools

Public tool metadata for what this MCP can expose to an agent.

dwg.list_rootsList folders available for DWG access.

List folders available for DWG access.

No parameter schema in public metadata yet.

dwg.open_fileOpen a DWG or DXF from an available folder and return a `documentId`.

Open a DWG or DXF from an available folder and return a `documentId`.

No parameter schema in public metadata yet.

dwg.close_fileClose an opened document and release its worker process.

Close an opened document and release its worker process.

No parameter schema in public metadata yet.

dwg.list_typesList the globally supported DWG types known to the backend.

List the globally supported DWG types known to the backend.

No parameter schema in public metadata yet.

dwg.list_file_typesList only the types that are present in a specific opened DWG.

List only the types that are present in a specific opened DWG.

No parameter schema in public metadata yet.

dwg.describe_typeDescribe a supported type, including readable and writable properties and its default projection.

Describe a supported type, including readable and writable properties and its default projection.

No parameter schema in public metadata yet.

dwg.get_objectsFetch specific objects by handle, preserving the requested order and reporting missing handles.

Fetch specific objects by handle, preserving the requested order and reporting missing handles.

No parameter schema in public metadata yet.

dwg.query_objectsQuery objects with filters, scopes, relation traversal, sorting, projection, and pagination.

Query objects with filters, scopes, relation traversal, sorting, projection, and pagination.

No parameter schema in public metadata yet.

dwg.set_entity_propertiesChange properties marked writable on one entity in memory. Changes are discarded when the document closes.

Change properties marked writable on one entity in memory. Changes are discarded when the document closes.

No parameter schema in public metadata yet.

dwg.list_render_viewsList renderable model space, paper-space layouts, and layout viewports.

List renderable model space, paper-space layouts, and layout viewports.

No parameter schema in public metadata yet.

dwg.render_viewRender a complete view or selected drawing region as PNG or SVG.

Render a complete view or selected drawing region as PNG or SVG.

No parameter schema in public metadata yet.

Sponsors

Configuration

DWG_MCP_ALLOWED_ROOTS

Semicolon-separated absolute directories allowed for DWG access when the MCP client, AI agent, or test harness does not provide MCP roots. Optional when MCP roots are supported.

Readme

DWG MCP Server

DWG and DXF file format access for AI via MCP.

Connect DWG and DXF files to Claude, ChatGPT, Codex, Cursor, and other MCP clients. DWG MCP Server provides structured access to DWG data so AI can understand and reason about drawings. Source files remain read-only; supported entity properties can be changed in memory for inspection and rendering.

Quick Start

Use DWG MCP Server from the MCP client of your choice. The npm package downloads the matching native build from GitHub Releases on first use, verifies its SHA-256 checksum, caches it, and runs it directly. Docker and a separate Python installation are not required.

Native installers

macOS Apple Silicon:

curl -fsSL https://raw.githubusercontent.com/dimitrovakulenko/dwg-mcp-server/main/scripts/install.sh | sh

Windows x64 (PowerShell):

irm https://raw.githubusercontent.com/dimitrovakulenko/dwg-mcp-server/main/scripts/install.ps1 | iex

Both installers download the latest native release and verify its SHA-256 checksum before installation.


View the full README on GitHub

Details

Repository
github.com/dimitrovakulenko/dwg-mcp-server
Website
github.com/dimitrovakulenko/dwg-mcp-server
Package
@dmytro-prototypes/dwg-mcp-server
Transport
STDIO
Registry
MCP registry, active