Skip to main content

zumen-gate-mcp

An MCP server and command-line tool for the zumen-gate drawing API. It lets Claude and other MCP clients read, search, render, edit and convert CAD drawings: Jw_cad (JWW), DWG, DXF, SXF (SFC/P21), PDF, and more.

日本語の説明

  • Read: format, paper, scale, layers, entity counts and texts of a drawing.
  • Search: entities by layer, kind, text or area, with lengths and areas in real millimetres.
  • Render: a PNG of the drawing or a part of it, with the pixel-to-coordinate mapping.
  • Edit: change texts, layers, colors and coordinates, delete and add entities, or draw a new JWW or DXF from scratch, then write it back in its original format.
  • Convert: between drawing formats (DXF, DWG, JWW, SFC, P21, PDF, SVG, PNG, and STL/OBJ/STEP for 3D models).

Reading and converting run on the zumen-gate API with a deterministic CAD engine (no generative AI on the server). Edits run locally on a working copy of the drawing.

Get an API key

Register for free at zumen-gate.com and create a key under Account → API keys. The free plan includes a monthly allowance of calls; see the price list for paid outputs and more calls.

Install

You need uv (uvx runs the server without a separate install). Replace zg_live_... with your key. --root is the folder whose drawings the tools may read; outputs are written to zumen-gate-out/ inside it.

Claude Code

claude mcp add zumen-gate -e ZUMEN_GATE_API_KEY=zg_live_... -- uvx zumen-gate-mcp --root .

Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) and other clients that use the same format:

{
  "mcpServers": {
    "zumen-gate": {
      "command": "uvx",
      "args": ["zumen-gate-mcp", "--root", "/path/to/drawings"],
      "env": { "ZUMEN_GATE_API_KEY": "zg_live_..." }
    }
  }
}

Codex (~/.codex/config.toml)

[mcp_servers.zumen-gate]
command = "uvx"
args = ["zumen-gate-mcp", "--root", "/path/to/drawings"]
env = { ZUMEN_GATE_API_KEY = "zg_live_..." }

VS Code

code --add-mcp '{"name":"zumen-gate","command":"uvx","args":["zumen-gate-mcp","--root","${workspaceFolder}"],"env":{"ZUMEN_GATE_API_KEY":"zg_live_..."}}'

Claude Code plugin: this repository is also a plugin with a skill that teaches the model how to work with drawings. Add it with /plugin from a marketplace that lists it, or copy skills/zumen-gate/SKILL.md into your project's .claude/skills/.

Tools

Tool What it does Calls
list_formats Formats, extensions, which can be read and written, paid outputs 0
inspect_drawing Summary: format, paper, scale, layers, counts, texts 1
query_drawing Entities matching layer / kind / text / area, with totals 1
render_drawing PNG image and pixel-to-coordinate mapping 1
edit_drawing Local edits on a working copy, blank drawings, undo 0 (1 the first time)
convert_drawing Convert and save the outputs 1, or 10 for paid outputs
get_job State of a long conversion 0
account_status Calls left, expiry dates, this month's use 0

Every answer includes the calls counted and the calls left. Writing JWW, DWG, SFC, P21 or STEP is a paid output; without enough paid calls the conversion returns a preview and a loss report instead.

Command line

The same operations are available as zumen-gate:

export ZUMEN_GATE_API_KEY=zg_live_...
zumen-gate inspect plan.jww
zumen-gate query plan.jww --layer 壁 --kind LINE
zumen-gate render plan.jww --bbox 0 0 120 80
zumen-gate edit plan.jww --ops '[{"op": "replace_text", "pattern": "Old Co.", "replacement": "New Co."}]'
zumen-gate convert *.jww --to dxf
zumen-gate account

Settings

Setting Meaning
ZUMEN_GATE_API_KEY Your API key (required, except for list_formats)
ZUMEN_GATE_LOCALE ja or en for messages (default: from the system language)
--root The working folder (default: the current folder)
--only-text-feedback Return render_drawing as text only (no image)

How files are handled

  • Only files inside --root are read; symbolic links that lead outside are refused. Files are sent only if their extension (and, where the format has one, their signature) says they are drawings.
  • The original drawing is never modified. Edits are kept as versions in .zumen-gate/ inside the working folder; outputs go to zumen-gate-out/.
  • Text read from drawings is marked as data for the model, not instructions.
  • See the zumen-gate terms and privacy policy for how the API handles uploaded drawings.

Development

uv sync
uv run pytest
uv run ruff check src tests

License

MIT

Metadata

Release files for zumen-gate-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zumen-gate-mcp 0.1.0
File Size Uploaded Provenance Actions
zumen_gate_mcp-0.1.0.tar.gz 49.8 kB With provenance Details for zumen_gate_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zumen-gate-mcp 0.1.0
File Interpreter ABI Platform Actions
zumen_gate_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for zumen_gate_mcp-0.1.0-py3-none-any.whl

Total release size: 91.1 kB

Release files / zumen_gate_mcp-0.1.0.tar.gz

Download URL zumen_gate_mcp-0.1.0.tar.gz
Size 49.8 kB
Tags Source
SHA-256 checksum
How to use checksums
01ab1d05ae3525ee267e4d8de211d97ee931a4b7803cc65e64c733d38e0f2f58
BLAKE2b-256 checksum
How to use checksums
60c0873ee68c83306ca580dc43f47f543b6126e074f04f1660b68c24b73c1c29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / zumen_gate_mcp-0.1.0-py3-none-any.whl

Download URL zumen_gate_mcp-0.1.0-py3-none-any.whl
Size 41.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bbdb0cc3a7d31954deee4170897c582552d98c8f330835c171c5fad24b47a2f
BLAKE2b-256 checksum
How to use checksums
9a9bb18ac0c6ba5a9a7dd0f12e390070a989e8e8b878ce0b94d0f03707cebba3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for zumen-gate-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zumen_gate_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page