autocad
Provides tools for interacting with open AutoCAD drawings, enabling AI agents to count blocks, list layers, read xrefs, create layers, and measure geometry.
Click on "Deploy 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., "@autocadCount all blocks named 'Door' in the current drawing."
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.
AutoCAD MCP · L4 Engenharia
Conector que liga o Claude (ou outro cliente MCP) ao AutoCAD 2024+ no Windows. Você pergunta pelo chat da IA, ele vai no desenho aberto e responde: conta blocos, lista layers, lê xrefs, cria layers, mede geometria.
Baseado em puran-water/autocad-mcp (licença MIT, mantida neste repositório). Adaptações da L4:
Reconexão automática quando o AutoCAD é reiniciado (o original guardava o handle da janela antiga e dava timeout silencioso). Ver
backends/file_ipc.py, método_dispatch.Auto-load do LISP em todo desenho via
acaddoc.lsp(semAPPLOADmanual). Template eminstall/acaddoc.lsp.template.Instalação guiada em português por prompt, em
install/INSTALAR.md.
Página com vídeo e passo a passo: https://gestaol4.vercel.app/autocad
Requisitos
Windows 10/11. Não funciona no Mac (AutoCAD LT Mac não tem AutoLISP; backend usa Win32).
AutoCAD 2024 ou mais novo, full ou LT.
Python 3.10 a 3.12.
Um cliente MCP: Claude Desktop (aba Code), Claude Code ou Codex (OpenAI).
Related MCP server: AutoCAD 2024 MCP
Instalação rápida
Baixe o zip em Releases ou clone este repo para
C:\Users\<user>\autocad-mcp.Abra a pasta no assistente (Claude Desktop, aba Code, ou Codex) e cole o prompt de
install/INSTALAR.md. Ele fazuv sync, registra o servidorautocad, cria oacaddoc.lspe testa.Abra um DWG. No aviso de segurança do AutoCAD, clique Always Load (só na primeira vez).
Instalação manual (sem assistente):
cd C:\Users\<user>\autocad-mcp
pip install uv
uv sync --python 3.12
# Claude
claude mcp add autocad --scope user --env AUTOCAD_MCP_BACKEND=auto -- .\.venv\Scripts\python.exe -m autocad_mcp
# Codex
codex mcp add autocad --env AUTOCAD_MCP_BACKEND=auto -- .\.venv\Scripts\python.exe -m autocad_mcpCodex instalado pela Microsoft Store não expõe o comando codex. Nesse caso, acrescente em %USERPROFILE%\.codex\config.toml e reinicie o app:
[mcp_servers.autocad]
command = "C:/Users/<user>/autocad-mcp/.venv/Scripts/python.exe"
args = ["-m", "autocad_mcp"]
env = { AUTOCAD_MCP_BACKEND = "auto" }Depois copie install/acaddoc.lsp.template para %APPDATA%\Autodesk\AutoCAD <versão>\R<xx>\enu\Support\acaddoc.lsp, trocando __REPO__ pelo caminho da pasta com barras normais (C:/Users/<user>/autocad-mcp).
Como funciona
8 tools MCP (drawing, entity, layer, block, annotation, pid, view, system) sobre stdio. No Windows com AutoCAD aberto, o backend file_ipc escreve um JSON em C:\temp, digita (c:mcp-dispatch) na linha de comando via Win32 (sem roubar foco) e o lisp-code/mcp_dispatch.lsp responde em outro JSON. Sem AutoCAD aberto, cai no backend ezdxf (headless, gera DXF).
Geometria dentro de xrefs exige entrar na definição de bloco via AutoLISP (system → execute_lisp). Visual LISP COM está disponível no AutoCAD full para bounding boxes.
Problemas comuns
Sintoma | Causa | Fix |
| AutoCAD fechado, ou linha de comando ocupada | Esc duas vezes; conferir se o DWG está aberto |
Linha de comando não mostra |
|
|
Backend | Janela do AutoCAD não encontrada | Abrir o AutoCAD antes do cliente MCP, ou |
E no Revit?
Este conector lê e conta no AutoCAD. Para modelar, parametrizar e quantificar no Revit, a L4 mantém o John: Parts por camada, parâmetros EAP em massa, tabelas de quantitativo, cota corrida, diagnóstico do modelo. Mesmo assistente, mesma forma de pedir.
→ https://gestaol4.vercel.app/john
Licença
MIT. Copyright original de AutoCAD MCP Server Contributors; adaptações © L4 Engenharia. Texto completo em LICENSE.
README original do projeto upstream: README_upstream.md.
This server cannot be deployed
Maintenance
Related MCP Connectors
Revit MCP: lets AI read and edit your open model. Windows, best supported on Revit 2021+, free beta.
Official Microsoft MCP Server to query Microsoft Entra data using natural language
Read and edit the Revit 2024–2027 model on your PC. Needs the free Revit MCP add-in.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI/natural-language-driven 2D drafting automation on a running Windows AutoCAD, exposing drawing, dimensioning, layer/block management, and mechanical drawing tools such as title blocks, BOM, and balloons to any MCP client.205 PyPI2MIT
- FlicenseBqualityAmaintenanceNatural-language MCP bridge for AutoCAD 2024. Enables users to inspect and edit DWG drawings, manage layers, entities, layouts, styles, and system variables; draw 2D geometry and 3D solids; perform measurements and transactional edits; and export to DWG, STL, PDF, DWF, SVG, or raster formats through a local named-pipe connection.211-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to control supported CAD applications through natural-language instructions and unified MCP tools for drawing, layers, blocks, entities, files, and data export.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants like Claude Desktop or Cursor to control supported CAD applications through MCP tools for drawing, layer, block, entity, data export, and file/session operations using natural language or direct tool calls.-