CAD MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CAD MCP ServerSummarize the CAD file drawing.dxf"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CAD MCP Server
An MCP server that lets Claude (and any other
MCP client) read, analyze, and edit CAD files — both DXF and DWG —
powered by ezdxf.
It runs as a small local Python process over stdio. Your CAD files never leave your machine.
DXF — read and edit directly, no extra setup.
DWG — Autodesk's proprietary binary format.
ezdxfcannot parse it alone, so DWG is converted to DXF automatically via the free ODA File Converter (one-time install). Once installed, DWG works everywhere DXF does.
Quick start (easiest — no clone, no pip)
If you have uv installed, you don't clone
anything or manage dependencies — uvx fetches and runs the server for you.
Install uv once:
# Windows (PowerShell):
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# macOS / Linux:
curl -LsSf https://astral.sh/uv/install.sh | shThen add the server in one line:
# Claude Code:
claude mcp add cad -- uvx --from git+https://github.com/Codemod3/cad-mcp cad-mcpFor Claude Desktop, drop this into your config (see paths below) — no clone, no paths to edit:
{
"mcpServers": {
"cad": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Codemod3/cad-mcp", "cad-mcp"]
}
}
}That's it. First run downloads deps automatically; later runs are instant. Restart the client and the tools appear. (DWG still needs the free ODA File Converter; DXF works immediately.)
Prefer to clone and manage Python yourself? See Manual install.
Related MCP server: Greenloom CAD MCP Server
What it can do
Read / analyze (never modifies files)
Tool | What it does |
| Overview — version, units, layers, entity counts, extents |
| All layers with color, linetype, on/frozen/locked state |
| All entities on a specific layer |
| Filter by type (LINE, CIRCLE, TEXT, …), optional layer filter |
| Extract all TEXT and MTEXT annotations |
| Extract all DIMENSION annotations |
| List named block definitions |
| Inspect entities inside a block |
Edit (writes to a copy — your original is never touched)
Tool | What it does |
| Copy the original DXF/DWG to |
| Draw a line |
| Draw a circle |
| Draw an arc |
| Add a text label |
| Draw connected segments (LWPOLYLINE), optionally closed |
| Create a layer |
| Delete one entity by its handle |
| Convert the edited |
Editing model — safe by design:
Call
cad_create_editable_copyon your original → it returns the copy's path.Pass that copy path to every edit tool. Edits save in place and stack, so keep drawing on the same file.
Your original is never modified.
DWG can't be written directly, so edits always happen on the
.dxfcopy; runcad_export_dwgat the end if you need a.dwgback.
Requirements
Python 3.10+ (only for the manual install;
uvxhandles this for you)The Python packages in
requirements.txt(installed below)DWG only: the free ODA File Converter
Check your Python:
python --version # must be 3.10 or newer (try python3 on macOS/Linux)Manual install
Use this if you'd rather clone the repo and manage Python yourself.
1. Get the code
git clone https://github.com/Codemod3/cad-mcp.git
cd cad-mcp2. Install dependencies
Recommended — use a virtual environment so nothing pollutes your system Python:
python -m venv .venv
# Windows (PowerShell):
.venv\Scripts\Activate.ps1
# macOS / Linux:
source .venv/bin/activate
pip install -r requirements.txtOr install as a proper command (cad-mcp) via pip:
pip install .3. Verify it runs
python server.pyIt should print a startup line to stderr and then wait silently (it's listening
for an MCP client over stdio). Press Ctrl+C to stop. If you see no import
errors, you're ready to connect a client.
Connect to a client
Point your MCP client at server.py. Use the full absolute path to the file,
and the same Python that has the dependencies installed.
Claude Desktop
Edit the config file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"cad": {
"command": "python",
"args": ["C:\\full\\path\\to\\cad-mcp\\server.py"]
}
}
}On macOS/Linux use
"python3"and a/full/path/to/cad-mcp/server.py. If you used a virtualenv, pointcommandat that venv's python, e.g.C:\\path\\to\\cad-mcp\\.venv\\Scripts\\python.exe.
Restart Claude Desktop. The CAD tools appear automatically.
Claude Code (CLI)
Easiest — no clone (needs uv):
claude mcp add cad -- uvx --from git+https://github.com/Codemod3/cad-mcp cad-mcpIf you cloned the repo instead:
claude mcp add cad -- python "C:\full\path\to\cad-mcp\server.py"Scope (where the server is available):
claude mcp add cad --scope user -- uvx --from git+https://github.com/Codemod3/cad-mcp cad-mcp # all your projects
claude mcp add cad --scope project -- uvx --from git+https://github.com/Codemod3/cad-mcp cad-mcp # writes .mcp.json for teammatesThe repo also ships a ready .mcp.json — run Claude Code inside the project
folder and the server loads automatically, no command needed.
Verify with /mcp, then just ask Claude to read or edit a CAD file. Remove with
claude mcp remove cad.
DWG support
DWG files need the free ODA File Converter installed once:
Download for your OS: https://www.opendesign.com/guestfiles/oda_file_converter
Install it. Default Windows path:
C:\Program Files\ODA\ODAFileConverter <version>\ODAFileConverter.exeEnsure it's on your
PATH, or leave it at the default location whereezdxffinds it automatically.
Then use .dwg files exactly like .dxf — conversion is automatic. If the
converter is missing, DWG tools return a clear error and DXF keeps working.
Usage examples
Once connected, just talk to Claude:
"Summarize this DXF file: C:\drawings\floor_plan.dxf"
"What layers are in site_plan.dwg?"
"Extract all the text annotations from my drawing."
"Make an editable copy of plan.dxf, then add a circle radius 5 at (10,10) on a new layer called NOTES."
"Draw the outline of a 20×10 room as a closed polyline, then export it to DWG."
Supported entity types (read)
LINE, CIRCLE, ARC, LWPOLYLINE, TEXT, MTEXT, INSERT (block refs), DIMENSION, LEADER, ELLIPSE, SPLINE — all other types are still captured with their common attributes (layer, color, handle).
Development
Run the test suite (offline, DXF only — no ODA converter needed):
pip install -r requirements.txt pytest pytest-asyncio
python -m pytestTroubleshooting
Symptom | Fix |
Tools don't appear in the client | Use the absolute path to |
| The |
DWG tools error about ODA | Install the ODA File Converter and make sure it's on |
"Cannot edit a .dwg file in place" | Expected — run |
Client shows a broken/empty connection | Something printed to stdout. This server logs only to stderr; if you added prints, remove them — stdout is the MCP protocol channel. |
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables natural language control of AutoCAD drawings via LLMs like Claude, supporting drawing, layer management, and SQLite-backed entity analysis.
- AlicenseAqualityCmaintenanceEnables automated CAD operations via natural language, supporting both AutoCAD LT on Windows and headless DXF generation on any platform.8MIT
- Alicense-qualityCmaintenanceEnables Claude to control AutoCAD—draw, edit, query, layers, blocks, annotations, screenshots, plot to PDF—using plain language.2MIT
- AlicenseCqualityBmaintenanceEnables generating CAD files through DXF drafting and OpenSCAD operations, with natural-language planning via local Ollama.23MIT
Related MCP Connectors
DXF and PDF/X-4 for AI agents: structured facts, PNG renders, an interactive in-chat viewer.
Convert Revit files to XKT, IFC, or DWG and query BIM data via natural language.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Codemod3/CAD-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server