Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

zwcad-mcp

Latest version: v1.4.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
PyPI package Publisher: asd8086
6 Stars
0 Forks
17 Versions
3.0K Downloads
Python Repo language

Scan summary

zwcad-mcp was last scanned on 1 Dec 2026 at version 1.4.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 17 versions; the latest 5 were published within 6 days (26 Nov – 1 Dec 2026).
  • Findings: No rules fired in version 1.4.0.
  • Downloads: 3,048 downloads.

Versions

17 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.4.0 LATEST 1 Dec 2026 No rules fired
1.3.3 1 Dec 2026 No rules fired
1.3.2 1 Dec 2026 No rules fired
1.3.1 27 Nov 2026 Not shown
1.3.0 26 Nov 2026 Not shown

No rules fired in 1.4.0

Findings

Findings for v1.4.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.4.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

ZWCAD MCP

中望CAD(ZWCAD)MCP 服务。让大模型通过 MCP 协议 直接操控中望CAD 平台与中望机械CAD,完成绘图、标注、图层/块/样式管理, 以及图框、标题栏、明细表(BOM)等机械操作。

共计 40 个工具:平台 27 个(不依赖机械环境)+ 机械 11 个(需中望机械CAD)+ 诊断 2 个。

走 npm 渠道或离线包时是 41 个——启动器会额外注入 zwcad_wait_ready, 用于等待 Python 运行时就绪。PyPI 版直接跑 Python,没有这一层。

安装

pip install zwcad-mcp

依赖 fastmcp、pyzwcad、pyzwcadmech、comtypes、pywin32,pip 会自动安装。

运行

三种方式等价,任选一种:

uvx zwcad-mcp              # 有 uv 时最省事,无需预装
zwcad-mcp                  # pip 安装后的 console script
python -m zwcad2d          # 模块方式,一定可用

这是一个 stdio 方式的 MCP 服务,通常由客户端拉起,不需要你手动执行。

给 Agent 平台接入:如果平台托管 Python 环境,用 uvx zwcad-mcp 最直接—— 它会自动创建隔离环境、安装依赖并启动,平台不需要预装本包。 若平台只能提供 Python 而不能保证有 uv,改用 python -m zwcad2d(需先 pip install zwcad-mcp)。

这是一个 stdio 方式的 MCP 服务,通常由客户端拉起,不需要你手动执行。

环境要求

  • Windows 10/11 x64
  • Python 3.10+
  • 中望CAD 或 中望机械CAD 已启动,且至少打开一张 DWG

接入客户端

把下面整段放进客户端的 MCP 配置文件(Claude Desktop 的 claude_desktop_config.json、 Cursor 的 .cursor/mcp.json 等):

{
  "mcpServers": {
    "zwcad-2d": {
      "command": "python",
      "args": ["-m", "zwcad2d"],
      "env": { "PYTHONUTF8": "1" }
    }
  }
}

如果用的是虚拟环境,把 python 换成该环境的完整路径,例如 D:\\project\\.venv\\Scripts\\python.exe。

也可以用 uvx 免预装拉起:

{
  "mcpServers": {
    "zwcad-2d": {
      "command": "uvx",
      "args": ["zwcad-mcp"],
      "env": { "PYTHONUTF8": "1" }
    }
  }
}

验证是否可用

服务启动后,让 AI 调用诊断工具:

zwcad_diagnose(probe_cad: true)

返回里 platform.available 为 true 表示已连上 ZWCAD。

排障

现象 处理
ModuleNotFoundError: No module named 'zwcad2d' 确认 pip install zwcad-mcp 与运行用的是同一个 Python
报「未找到可用的 Python」或导入依赖失败 补装依赖:pip install fastmcp pyzwcad pyzwcadmech comtypes pywin32
platform.available=false ZWCAD 未启动,或未打开 DWG。启动后重连客户端
机械工具报 TYPELIB_NOT_LOADED 需中望机械CAD 已启动;平台工具不受影响
关于 -2147312566(加载类型库/DLL 时出错)

这是机械类型库的已知情况,不是文件缺失或权限问题。根因:ZwmToolKit.tlb 内部引用了另一个仅在 ZWCAD 进程运行时才可解析的类型库。

  • ZwmToolKit.tlb 本身可被正常加载,14 个类型中仅 ZwmBalloonWrapper 的第二个基类型解析失败
  • 该接口自身 cFuncs=0、cVars=0,是无方法的空壳,跳过不损失功能
  • 处置:确保 ZWCAD 已启动并打开 DWG,然后完全重启 MCP 客户端

三条渠道的对比

同一个服务共发布三处,工具集与版本号完全一致,区别只在启动方式:

渠道 启动 需要 Python 需要 Node 需要联网
PyPI(本页) python -m zwcad2d 3.10+ 自备 ❌ 安装时需要
npm npx -y zwcad-mcp 启动器自动准备 18+ 首次需要
离线包 node bridge.js ❌ 自带 推荐 18+ ❌ 不需要

如果你的机器已经有可用的 Python 环境,本页这套更轻:没有中间层,启动即用。

如果你的机器不能联网、没有 Python、也不允许自行安装,用离线包: 从 Releases 下载 zwcad-mcp-<版本>-win-x64-offline.zip,解压即用。

使用统计

用于改进工具稳定性,PyPI 版默认开启(离线包默认关闭)。仅上报随机匿名 installId、工具名、调用成败与按小时聚合次数、版本/平台与客户端名称;不采集任何敏感信息(不触碰图纸内容、文件路径、工具参数、返回值及个人/机器身份信息)。

设环境变量 TELEMETRY=0(或在 ~/.zwcad-mcp/telemetry.json 写 {"enabled": false})可彻底关闭。

源码与反馈

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases zwcad-mcp

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229