AutoCAD-MCP
Seamlessly connect AI assistants (Claude, ChatGPT, etc.) to AutoCAD through the Model Context Protocol (MCP). Enable natural language control of AutoCAD operations — from drawing creation and entity manipulation to layer management and file I/O.
Install / Use
claude mcp add codesknight -- npx -y github:codesknight/AutoCAD-MCPIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AutomationSupported Platforms
Our assessment of AutoCAD-MCP
AutoCAD-MCP scores 76/100 on our quality scale, 2463rd of 2,728 Automation skills we index.
Its MCP Server is 14 KB long, well organised into 18 sections and no code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated today, so AutoCAD-MCP is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
AutoCAD-MCP compared with similar skills
All 4 of these similar skills score higher than AutoCAD-MCP; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| AutoCAD-MCP (this skill)by codesknight | 76 | 10 | today | MCP Server |
| Agent-Reachby Panniantong | 100 | 115.6k | 4d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 91.9k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.6k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 81.1k | today | CLAUDE.md |
Frequently asked questions
- How do I install AutoCAD-MCP?
- Run
claude mcp add codesknight -- npx -y github:codesknight/AutoCAD-MCP. The install tabs above show the steps for each supported agent. - Which AI agents does AutoCAD-MCP work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is AutoCAD-MCP safe to use?
- It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is AutoCAD-MCP still maintained?
- The repository was last updated today, so AutoCAD-MCP is actively maintained.
Skill content
View source on GitHubConnect MCP-compatible AI clients to AutoCAD. Create geometry, inspect and edit entities, manage layers and blocks, and work with drawings through structured tools. Use Claude Desktop, Cursor, or the included Web UI with your own model provider.
<p align="center"> <a href="#quick-start">Quick start</a> · <a href="#web-ui">Web UI</a> · <a href="#backends">Backends</a> · <a href="#development">Development</a> · <a href="#documentation">Documentation</a> </p>See it in AutoCAD

Actual AutoCAD 2026 window captures using scripted MCP stdio calls through the COM backend. Edited step sequence: pauses trimmed and captions added. Capture details & verified geometry. The experimental HTTP backend has a separate Bridge validation report.
What you can do
| Capability | Examples | | --- | --- | | Create | Lines, circles, arcs, polylines, rectangles, text, hatches and dimensions | | Inspect & edit | Entity details, region queries, move/rotate/copy/scale/mirror/delete | | Organize | Layers, block insertion, block attributes and bulk attribute checks | | Use references | Local symbol catalogs and read-only layout extraction from reference drawings | | Choose a model | Streaming Web UI: Anthropic, OpenAI, OpenAI-compatible endpoints and Doubao | | Extend understanding | Optional local drawing VQA service |
47 registered MCP tools. Default COM provides the existing CAD tool surface. Eight additive tools expose runtime status, atomic batches, pagination and controlled working drawings with saved-artifact reopening; three explicit execution-evidence tools add document binding, scoped COM receipts and read-only request reconciliation. The previous 44 tool signatures remain compatible. Experimental HTTP supports a smaller, documented subset. See the tool migration matrix.
Companion agent — Cader: an extensible CAD Agent Harness that plans tasks, calls CAD tools through AutoCAD-MCP, and verifies results. AutoCAD-MCP provides the CAD operations; Cader coordinates the agent workflow.
An explicit seven-tool cader-cad/1 stdio profile provides versioned DTOs, native job identity and revision tracking. Two actual Cader CLI runs passed drawing → DWG save → read-only reopen → independent verification for the reviewed line/circle/text fixture. Evidence and limits.
The initial execution-evidence P0 report retains early failures and frozen-write evidence; subsequent joint regression passed the house and original circuit cases. The first P1 delivery adds COM artifact save, hashing and independent read-only reopening. Its native API regression reuses the accepted DWGs; Cader adoption of these new operations remains a separate check.
Quick start
1. Prepare the environment
- Windows with AutoCAD installed; development and native validation use AutoCAD 2026.
- Python 3.11+. The commands below use conda.
- A compatible AI client, or a model endpoint for the optional Web UI.
git clone https://github.com/codesknight/AutoCAD-MCP.git
cd AutoCAD-MCP
conda create -n autocad-mcp python=3.11 -y
conda activate autocad-mcp
python -m pip install -e .
<details>
<summary>Prefer Python venv?</summary>
py -3.11 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -e .
</details>
2. Open AutoCAD normally
Check the ProgID in config.json; the development machine uses AutoCAD.Application.25.1. Use one COM write-serving process per AutoCAD instance.
Before experimenting with write tools, ask the client to run new_drawing so test geometry goes into a fresh drawing.
3. Connect an MCP client
Find the absolute Python path in the environment where you installed the project:
python -c "import sys; print(sys.executable)"
Add this entry to your client's MCP configuration. For Claude Desktop on Windows, the file is usually %APPDATA%\Claude\claude_desktop_config.json.
{
"mcpServers": {
"autocad-mcp": {
"command": "C:\\Users\\<you>\\.conda\\envs\\autocad-mcp\\python.exe",
"args": ["-m", "autocad_mcp.server"]
}
}
}
Use the environment's python.exe directly. Tool discovery is lazy and does not require connecting to AutoCAD.
For development with MCP Inspector:
mcp dev src/autocad_mcp/server.py
4. Try a small task
Create a new blank drawing. Add a layer named DEMO, draw a line from (0, 0, 0) to (10, 0, 0), and add a circle centered at (20, 0, 0) with radius 5. Query the drawing and check the result.
Web UI
The Web UI connects through a real MCP client, with streamed replies and individual tool-call updates.
python -m pip install -e ".[web]"
From the project root, use two terminals in the same Python environment:
# Terminal 1 — MCP Streamable HTTP, loopback port 8931
python -m autocad_mcp.server --http
# Terminal 2 — Web UI backend, loopback port 8000
python -m uvicorn web.backend.app:app --host 127.0.0.1 --port 8000
Open 127.0.0.1:8000, select a provider/model, and supply your API credentials.
This UI is for local, single-user use: no authentication, in-memory history, and no conversation persistence across restarts.
<details> <summary>Credentials for scripted development</summary>Keep test credentials in an untracked .env and have your script read it. The Web UI does not automatically load these values.
doubao_base_url=https://ark.cn-beijing.volces.com/api/v3
doubao_model_name=ep-xxxxxxxx-xxxxx
doubao_api_key=YOUR_KEY
Call POST /api/chat/stream or POST /api/chat from the script. Never commit real credentials or paste them into documentation.
Backends
| | COM — default | .NET HTTP Bridge — experimental | | --- | --- | --- | | CAD execution | Python COM adapter on one STA worker | AutoCAD plugin, main-thread queue and transactions | | Current scope | Existing CAD tools | Thirteen legacy CAD tools, plus runtime and controlled-document tools; see migration evidence | | Atomic batch | Not supported | MCP tool for 1–200 transactional layer/line/circle/arc/rectangle/polyline/text/mtext/dimension operations | | Query pagination | Existing legacy query | MCP pages of up to 1,000 items, filters, field projection and revision-bound cursors | | Setup | Python + running AutoCAD | Matching .NET SDK, plugin build/NETLOAD, local token | | Write behavior | Existing COM workflow; one write entry point | Bridge-created documents only; explicit document binding | | Details | COM foundation | Install, configure & validate |
Both paths keep the MCP tool layer. Unsupported HTTP operations return an explicit error; writes never fall back to COM.
See controlled drawing, save and reopen contracts and runtime tool examples and recovery rules for explicit document IDs, batch steps and cursor handling.
See the native fault and reproducible performance report, including failed samples and qualification limits. COM remains the default.
MCP HTTP and the CAD Bridge are separate interfaces. --http selects MCP Streamable HTTP on port 8931. backend: "http" selects the CAD Bridge on port 8765. The default remains COM.
flowchart LR
Client["MCP clients"] -->|"stdio / Streamable HTTP"| MCP["Python MCP server & tools"]
Web["Web UI · model providers"] -->|"MCP Streamable HTTP"| MCP
MCP --> Factory["Backend factory"]
Factory -->|"default"| COM["COM · serial STA worker"]
Factory -->|"experimental HTTP"| Bridge[".NET Bridge · CAD queue / transactions"]
COM --> CAD["AutoCAD"]
Bridge --> CAD
MCP --> Optional["Local resources · optional VQA"]
Development
python -m pip install -e ".[dev]"
python -m pytest -q
Default tests run without AutoCAD. Real CAD tests require explicit opt-in:
# Open AutoCAD normally first; tests create scratch drawings.
python -m pytest tests/test_backend_integration.py --cad-integration -q -s
# Export actual MCP stdio tools/list without connecting to CAD.
python scripts/export_mcp_contract.py --output tools.json
The controlled-document qualification adds real DWG save/read-only reopen, extended batch rollback and file guards. The earlier runtime and drawing verification report documents 103 Python tests passed, 33 CAD tests skipped, 34 C# assertions, real MCP stdio pagination of 1,205 entities and five native drawing tools. It retains the native failure, correction and cleanup recheck. Earlier stdio/Streamable HTTP checks remain in the initial record. See CI runs for current branch results.
Native verification uses normal AutoCAD startup, then attachment; automatic startup compatibility remains under investigation. The harness closes its test drawings and stops its listener. Helpers must clean up CAD processes they create while preserving user-owned instances.
Documentation
| Start here | Details | | --- | --- | | Architecture | Layers, integrations and project structure | | HTTP Bridge guide | Build, authentication, protocol, validation and known issues | | Tool matrix | Per-tool migration and verification status | | Roadmap | Planned work and acceptance criteria | | Development log | Changes, experiments and incident records | | Project conventions | Development and drawing-safety rules |
<details> <summary>Repository layout</summary>src/autocad_mcp/ MCP server, tools, configuration and CAD backends
plugin/ Native Bridge and C# contract/hosting checks
web/ Web client, agent loop and model providers
tests/ Python regressions, MCP contracts and opt-in CAD tests
schemas/ Versioned Bridge JSON schemas
scripts/ Build, verification, asset and data utilities
docs/ Design, validation evidence, artwork and development log
</details>
Reference drawings, symbol DWGs and the optional VQA model/service are external resources, not bun
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
115.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
hyperframes
91.9kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ruflo
82.6k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
81.1kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
