原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

DWG MCP Server

作者:dimitrovakulenko版本 0.2.3i★ –i在你的电脑上运行
注册名称io.github.dimitrovakulenko/dwg-mcp-server

安装

概览

作者提供的说明(英文原文)

Read-only DWG file access for AI clients through MCP.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: DWG_MCP_ALLOWED_ROOTS

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "dwg": {
      "command": "npx",
      "args": [
        "-y",
        "@dmytro-prototypes/dwg-mcp-server"
      ],
      "env": {
        "DWG_MCP_ALLOWED_ROOTS": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add dwg --env DWG_MCP_ALLOWED_ROOTS=your-value -- npx -y @dmytro-prototypes/dwg-mcp-server

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "dwg": {
      "command": "npx",
      "args": [
        "-y",
        "@dmytro-prototypes/dwg-mcp-server"
      ],
      "env": {
        "DWG_MCP_ALLOWED_ROOTS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "dwg": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dmytro-prototypes/dwg-mcp-server"
      ],
      "env": {
        "DWG_MCP_ALLOWED_ROOTS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • DWG_MCP_ALLOWED_ROOTS env
    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 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 dimitrovakulenko 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18333 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18333 个服务器的 30% 更新
  • 基础检查结果等于或优于此分类中其他 18333 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

DWG MCP Server 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.2.3)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Signoff

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

Signoff

作者:ayuanxx-max

Five gates that make an agent's 'done' provable: run them, read the verdict, audit the record.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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.

After installing, point your MCP client at the installed executable. On macOS add ~/.local/bin to PATH first, or use the absolute path reported by the installer:

claude mcp add --scope user --transport stdio dwg-mcp -- dwg-mcp-server

If your MCP client, AI agent, or test harness does not support MCP roots, set DWG_MCP_ALLOWED_ROOTS to the folders that should be accessible.

Codex
codex mcp add dwg-mcp \

--env DWG_MCP_ALLOWED_ROOTS="$HOME" \ -- npx -y @dmytro-prototypes/dwg-mcp-server

Codex does not currently provide MCP client roots to stdio MCP servers. Configure explicit allowed roots for the folders that contain your drawings.

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

Claude Code provides MCP roots, so no extra path variable is usually needed.

Cursor
{

"mcpServers": { "dwg-mcp": { "command": "npx", "args": ["-y", "@dmytro-prototypes/dwg-mcp-server"] } } }

Exposed Tools

ToolPurpose
dwg.list_rootsList folders available for DWG access.
dwg.open_fileOpen a DWG or DXF from an available folder and return a documentId.
dwg.close_fileClose an opened document and release its worker process.
dwg.list_typesList the globally supported DWG types known to the backend.
dwg.list_file_typesList only the types that are present in a specific opened DWG.
dwg.describe_typeDescribe a supported type, including readable and writable properties and its default projection.
dwg.get_objectsFetch specific objects by handle, preserving the requested order and reporting missing handles.
dwg.query_objectsQuery objects with filters, scopes, relation traversal, sorting, projection, and pagination.
dwg.set_entity_propertiesChange properties marked writable on one entity in memory. Changes are discarded when the document closes.
dwg.list_render_viewsList renderable model space, paper-space layouts, and layout viewports.
dwg.render_viewRender a complete view or selected drawing region as PNG or SVG.

A typical flow is:

  1. Discover available folders with dwg.list_roots.
  2. Open a file from one of those folders with dwg.open_file.
  3. Inspect supported or file-local types with dwg.list_types, dwg.list_file_types, or dwg.describe_type.
  4. Fetch known handles with dwg.get_objects or search the drawing with dwg.query_objects.
  5. Optionally change properties reported as writable with dwg.set_entity_properties.
  6. Discover and render drawing views with dwg.list_render_views and dwg.render_view.
  7. Close the session with dwg.close_file, discarding in-memory changes.

Architecture

Runtime model

In the packaged deployment, DWG MCP Server is a standalone native application built for the host operating system. The Python host exposes the MCP tools, validates file access, and manages document sessions.

Each dwg.open_file call starts a dedicated Rust dwg-worker process for that DWG and returns a host-side documentId. All later file-scoped calls use that document id. dwg.close_file terminates the worker for that session.

Worker and query model

The Rust worker speaks newline-delimited JSON over stdin and stdout. When it opens a DWG through LibreDWG, it first builds an in-memory indexed document. That upfront indexing step is central to the design: the server pays the cost once when the file is opened, then answers later requests against the index instead of rescanning the DWG each time.

The indexed model stores object handles, kinds, type names, generic types, summary and full properties, and derived block, layout, and space membership. It also stores supported type metadata such as aliases, default projections, and property definitions.

When you request full object records, responses also include that derived membership under extendedData, including container block, layout, and model or paper space when known.

dwg.get_objects is direct lookup by handle. dwg.query_objects runs over indices for handle, type, generic type, kind, exact property values, block, layout, and space, then applies filters, scopes, relation traversal, sorting, projection, and pagination. This is what makes queries over blocks, layers, layouts, references, and related objects practical on an opened drawing.

dwg.set_entity_properties validates writes against the type catalog, updates the native LibreDWG document, rebuilds the index, and invalidates the cached rendering scene. Block-reference insertion points use OCS coordinates, block scaling rules are enforced, and attributed block references are rejected until their owned attributes can be transformed safely. The tool does not save or overwrite the source file.

The worker lazily compiles a separate rendering scene on the first render call. It expands block references and generated dimension blocks, draws common 2D geometry, text, MTEXT, hatch contours, and approximated point-list entities, and composes paper-space layouts through their viewports. SVG is the canonical render output; PNG is rasterized from the same SVG in memory. Render responses include coverage diagnostics for generated-block fallbacks and unsupported entity types. Automatic fit rejects extreme sparse extents, WIPEOUT boundaries mask earlier geometry, and explicit regions allow bounded rendering of dense views. See docs/rendering.md for the protocol and rendering model.

Access and packaging

DWG and DXF files must be opened from roots listed by dwg.list_roots. The server first asks the MCP client for roots. If the client, AI agent, or test harness does not support MCP roots, configure explicit allowed roots:

python3 -m dwg_mcp_server --allowed-root "$HOME/Downloads"

or:

DWG_MCP_ALLOWED_ROOTS="$HOME/Downloads;$HOME/Documents/dwg" \

python3 -m dwg_mcp_server

DWG_MCP_ALLOWED_ROOTS is an authorization fallback for clients without roots. It should be a semicolon-separated list of absolute directories.

Official releases contain a standalone MCP host, the statically linked Rust worker, and the LibreDWG schema files needed at runtime.

Native platforms

GitHub Actions builds and tests these release artifacts on their native runners:

SystemCPURust target
macOSApple Siliconaarch64-apple-darwin
WindowsIntel or AMD 64-bitx86_64-pc-windows-gnu
LinuxIntel or AMD 64-bitx86_64-unknown-linux-gnu
LinuxARM 64-bitaarch64-unknown-linux-gnu

x64, x86_64, and AMD64 name the same CPU architecture; the Windows and Linux artifacts work on both Intel and AMD processors.

Build and Test From Source

Local source builds use the vendored third_party/libredwg submodule by default.

Prerequisites
  • Rust toolchain
  • Python 3.11 or newer
  • autotools for local LibreDWG builds on macOS or Linux (autoreconf, aclocal, automake, autoconf, make)
Bootstrap
git submodule update --init --recursive

bash scripts/build-libredwg.sh

Build and test
cargo test --workspace

bash scripts/run-e2e-tests.sh

Run the MCP host locally

The Python host looks for dwg-worker under target/release or target/debug. If you want a release build explicitly:

cargo build -p dwg-worker --release

Then run the MCP host:

PYTHONPATH=server/src python3 -m dwg_mcp_server

If the worker binary lives somewhere else, set DWG_WORKER_BIN to that executable.

Publish a native release
  1. Set the same version in npm/package.json, server.json, and the Claude extension manifest when applicable.
  2. Configure npm trusted publishing for .github/workflows/native-release.yml.
  3. Push the matching v tag.

The Native Release workflow builds and tests all four platforms, creates the GitHub Release with checksum files, and then publishes the npm launcher. A manual workflow run can build one selected platform or all four as downloadable Actions artifacts without publishing.

Clean rebuild

Remove local Rust and Python build artifacts:

bash scripts/clean-build-artifacts.sh

To also wipe the host LibreDWG build under third_party/libredwg:

bash scripts/clean-build-artifacts.sh --with-libredwg

Official MCP Registry

Registry metadata lives in server.json under the GitHub-authenticated name io.github.dimitrovakulenko/dwg-mcp-server.

Before publishing a new registry version:

  1. Publish the matching npm package version from npm/.
  2. Confirm npm/package.json contains the same mcpName as server.json.
  3. Run the manual Publish MCP Registry GitHub Actions workflow, or run:
mcp-publisher login github

mcp-publisher publish

The registry validates the published npm package, so server.json must point to an npm version that already exists on the public npm registry.

License

This project is licensed under the GNU General Public License v3.0. See LICENSE for the full license text.

问 PopNx