
autocad-mcp
io.github.OrygnsCode/autocad-mcp
Lets AI agents work in AutoCAD and its toolsets, starting with Plant 3D: P&ID, piping, isometrics.
Documentation
autocad-mcp
An MCP server that lets AI agents work in AutoCAD and its industry toolsets the way an engineer does.
Install | Connect your client | What's covered | Tool reference | Changelog
autocad-mcp runs inside AutoCAD and works through each toolset's own API, so an agent reaches the engineering data a toolset keeps, not just the geometry on screen.
AutoCAD Plant 3D 2027 is the first toolset it supports, and it goes deep. More of AutoCAD's toolsets, such as Electrical and Mechanical, are planned.
It is not a remote control for drawing lines. In Plant 3D a valve on a P&ID is a row in the project database, the line it sits on is another row, and the connection between them is a third. autocad-mcp works at that level: equipment, valves, instruments, line numbers, tags, specs and connectivity, in the P&ID and in the 3D model, and the deliverables that come out of them.
https://github.com/user-attachments/assets/8b50cdba-1fd4-49a2-9968-7776f135a7e2
Unit 100, built by Claude through autocad-mcp from an empty project. Every request, drawing and film is at autocad-mcp.orygn.tech.
[!NOTE] This is a preview. 89 of the 97 Plant 3D commands that make sense for an agent are fully covered and the other 8 are partly covered (see which). It is early, and your feedback decides what gets finished next.
What an agent can do with it in Plant 3D
- P&ID: place and tag equipment, valves and instruments; draw lines and connect them; manage line groups and off-page connectors; label objects; run Plant's validation and work through what it finds.
- 3D piping: place pipe, fittings and valves from the project's specs; route pipe from a nozzle or an open pipe end, level or sloped, with the joints, flanges and welds the spec calls for; join parts already placed with the joint Plant's routing would make (flanged with gasket and bolt set, socket weld, threaded, wafer, an olet tapped into its pipe); split, merge and substitute parts, including another kind of valve in the same place; add, change and remove nozzles; place and convert pipe supports and set their dimensions.
- Pipe specs: read what a spec allows, and add parts from Autodesk's catalogues to a project spec or take them out again, as the Specs and Catalogs Editor does. Valve bodies come in with their actuators, so a spec can carry real control valves.
- Equipment and steel: place parametric equipment, import Inventor equipment packages, turn plain solids into equipment; place members, plates, grating, stairs, ladders and railings, and cut, trim, mitre and extend them.
- Isometrics: produce registered isometrics and their bills of materials by line number, quick isos and DWF sets, and set up what goes on the sheet: messages, reference dimensions, title block, tables, themes.
- Orthographics: create, edit and regenerate views, annotate them, place bills of materials, and trace a graphic back to the 3D object it shows.
- Project data: create projects and set them up (tag formats, picklists, specs) before a drawing exists, open drawings, read and change project settings, run reports, export and import through the Data Manager, compare projects.
- Undo that tells you whether it worked:
p3d_undowithverifychecks the drawing and the project data afterwards and reports what actually came back, not just that the command ran.
How it works
flowchart LR
client["Your AI client"] -- "stdio" --> server["autocad-mcp server"]
server -- "local named pipe" --> plugin["Plugin inside AutoCAD"]
plugin --> toolset["Toolset module<br/>(Plant 3D today)"]
toolset --> project[("Your project<br/>drawings and database")]
Your MCP client talks to a small server on your machine. The server talks to a plugin running inside AutoCAD over a local named pipe protected by a per-session token. There is no language model inside autocad-mcp and no cloud service, and it makes no network connections of its own.
Running inside AutoCAD is what makes the engineering data reachable. From outside, through COM or AutoLISP, a P&ID is just blocks and polylines. The trade-off is that AutoCAD has to be running on the same machine. Each toolset is a module of its own inside the plugin, which is how new toolsets get added.
Requirements
- Windows 11
- AutoCAD Plant 3D 2027, signed in. The installer checks which AutoCAD you have and stops before installing anything if it isn't 2027.
- An MCP client, such as Claude Desktop or Claude Code
The server is self-contained, so you don't need .NET installed.
Install
- Download
autocad-mcp-0.1.0-win-x64.zipfrom Releases. Right-click it, choose Extract All, and open the folder it creates. - Close AutoCAD, then double-click
install.cmd. Windows first says the publisher could not be verified, because the release isn't code-signed yet: choose Run. It then asks once for administrator rights, naming Windows PowerShell, which runs the plugin step. The installer puts the plugin into AutoCAD's trusted plugin folder, installs the server, and offers to add it to each AI client it finds. - Start AutoCAD Plant 3D, then double-click
verify.cmdin the same folder. It checks that AutoCAD loaded the plugin and that the server can reach it. - Restart your AI client and ask it to call
acad_session.
To remove everything, close AutoCAD and double-click uninstall.cmd: the plugin, the server, and this install's entry
in each AI client.
The plugin goes into %PROGRAMFILES%\Autodesk\ApplicationPlugins, the one plugin folder AutoCAD trusts without a digital
signature, so that step needs administrator rights. The server and your client settings stay in your own profile.
install.cmd -PerUser installs the plugin into your profile instead and needs no admin rights, but AutoCAD will then ask
about the plugin at every start until you choose Always Load.
Without a signature, your browser may also warn about the download. Each release lists its SHA-256 checksum, and the zip
includes SHA256SUMS.txt for every file inside it.
From a terminal in that folder (right-click inside it and choose Open in Terminal), install.cmd also takes these:
| Run | What it does |
|---|---|
.\install.cmd -Register | Only adds the server to the AI clients found now, with no administrator prompt. Use it after installing a new client. |
.\install.cmd -NoRegister | Installs without touching any client's settings, and prints the entry to add yourself. |
.\install.cmd -Yes | Adds the server to every client found without asking. |
.\install.cmd -PerUser | Installs the plugin for you only, with no administrator prompt (see above). |
.\install.cmd -Verify | The same check as verify.cmd. |
.\install.cmd -Uninstall | The same as uninstall.cmd. |
With npm
If you have Node.js 18 or later, the same release also installs from npm. Close AutoCAD, then in a terminal:
npx @orygn/autocad-mcp install
Then start AutoCAD Plant 3D and run npx @orygn/autocad-mcp verify. npx @orygn/autocad-mcp uninstall removes it,
register adds it to AI clients installed later, and --per-user, --yes and --no-register work like the switches
above.
Connect your AI client
install.cmd looks for these clients and asks before adding the server to each one:
| Client | Where the entry goes |
|---|---|
| Claude Desktop | its claude_desktop_config.json, in the folder the app reads. Current Windows versions keep it somewhere other than %APPDATA%\Claude, and the installer finds the right one. |
| Claude Code | added through claude mcp add-json, for all your projects |
| Cursor | %USERPROFILE%\.cursor\mcp.json |
| Windsurf | %USERPROFILE%\.codeium\windsurf\mcp_config.json |
| VS Code | your user mcp.json (the default profile) |
Everything else in those files is kept: your other servers, and anything you've added to the autocad entry, such as an
env block. The installer saves a copy of each file before changing it. It won't rewrite a file that has comments in it;
it prints the entry for you to add instead.
Restart the client afterwards. Claude Desktop keeps running in the system tray when its window is closed, so quit it from
there. If Claude Desktop has never been opened, open it once, quit it, then run install.cmd again. A client already set
up isn't asked about again.
For any other MCP client, add this entry to its configuration:
{
"mcpServers": {
"autocad": {
"command": "cmd.exe",
"args": ["/c", "C:\\Users\\<you>\\.mcp-servers\\autocad-mcp\\run.cmd"]
}
}
}
Or add it to Claude Code yourself, from Command Prompt:
claude mcp add --scope user autocad -- cmd.exe /c "%USERPROFILE%\.mcp-servers\autocad-mcp\run.cmd"
Safety
[!WARNING] Writes are on by default, and this changes real project data. Work on a copy of any project that matters, the same way you would trial any automation before running it on production drawings.
The server tells the agent to name the project and say so before its first change in a session. Autodesk's shipped sample projects are never written to. The AI model you connect decides what to do, so check what it changes before relying on it, as you would anyone's work.
Two switches change how writes work. They can be used together:
| Start the server with | What happens |
|---|---|
--read-only or AUTOCAD_MCP_READ_ONLY=1 | Every write is refused, and the 14 tools that only write are not offered. Reading works as normal. |
--require-approval or AUTOCAD_MCP_REQUIRE_APPROVAL=1 | Every write is refused until it is approved. The refusal shows exactly what the write would do, and an approval covers that one call only. |
The agent shows you the held write and asks; when you agree, it records the approval with p3d_approve. In Claude
Desktop's Manual permission mode, keep p3d_approve on Allow once, so every approval is your own click.
To use one, add it to args after the launcher path, or put the variable in an env block in the same entry. Running
install.cmd again keeps both.
Tools
18 tools are on by default: enough to open a project, read it, and build and connect a model. The rest come in groups,
because many MCP clients put every tool's description into every message and share one tool budget across every server
you connect. Claude Desktop and Claude Code look tools up only when they need them, so install.cmd sets them up with
all 40. To choose the groups yourself, put AUTOCAD_MCP_TOOL_GROUPS in the entry's env block: the installer then
leaves that choice alone.
autocad-mcp --tool-group iso --tool-group pipe # or AUTOCAD_MCP_TOOL_GROUPS=iso,pipe
autocad-mcp --tool-group all # all 40
| Group | Adds |
|---|---|
base | plain AutoCAD drafting and inspection, and a round-trip connectivity check |
iso | isometrics and orthographics |
pipe | editing pipe already placed, and nozzles |
reports | reports and centre of gravity |
steel | structural steel |
events | what changed in a drawing while the agent wasn't looking |
A tool that isn't on is still described to the agent, so it can tell you which group to turn on. Every tool, action and parameter is in the tool reference.
Limitations
- AutoCAD Plant 3D 2027 on Windows only. Plant 3D 2026 and 2025 aren't supported yet. If a project ties you to an earlier version, open an issue and say which one; that tells us where to look next.
- One AutoCAD at a time. The server drives the AutoCAD running on the same machine. With more than one open,
acad_sessionlists them and lets you pick. - AutoCAD and your AI client need the same rights. If AutoCAD runs as administrator and the client doesn't, Windows
keeps the two apart and the tools can't reach AutoCAD. Start AutoCAD normally;
verify.cmdand the tools say so when this is the cause. - Some options aren't offered yet. Where a part of a command isn't covered, the tool does the rest of the job and says what it left out. COVERAGE.md lists them command by command. In routing, for example, pipe bends drawn point by point, branch fittings picked from the spec's branch table, cutback elbows and size changes along a run are still to come.
- Plant's isometric server sometimes crashes, most often while it draws reference dimensions. That is a fault in Plant
3D itself. Plant never finishes that run;
p3d_isometricends it right away, says it ended abnormally, and tells you to produce the line again, which works. Restart AutoCAD before producing more isometrics after a crash. - AutoCAD sometimes shows "Unhandled exception has occurred in a component in your application" (Object reference not set to an instance of an object), most often just after a drawing closes. Click Continue. Until someone does, AutoCAD can't take tool calls; they time out and name the box, so your agent can ask you to answer it.
- A plot that switches layouts leaves the drawing marked as changed.
acad_plothas to make the layout it plots current and then puts yours back, and AutoCAD counts that as a change, so closing the drawing asks to save. Nothing in it changed; the plot's result says so (unsavedAfter). - A tag format with a fixed prefix may not tag pipe supports. A format such as
PS-followed by a number, written through the tools for the Support class, can leave the tags reading?. Putting the whole tag in the support's Number works. acad_plotcan cut off an isometric whose page setup scales it to fit. Plot those with AutoCAD's PLOT for now.- A
modify_equipmentchange that breaks a pipe joint can leave Plant's "Plant 3D Piping Errors" window open. Click Close in it and AutoCAD takes calls again. modify_equipmentresets aPartSubTypeset by hand. Set it again afterwards withset_properties.- In a 3D drawing,
p3d_validateactioncheckdoesn't report missing tags yet.p3d_findshows them.
Feedback and bug reports
This is a preview, so reports genuinely help. Open an issue with:
- what you asked the agent to do, and what happened instead
- the tool call and its result, if your client shows them
- your AutoCAD Plant 3D version
- the logs,
%LOCALAPPDATA%\autocad-mcp\plugin.logandloader.log(they can contain project and drawing names, so look them over first)
For a security problem, please don't open a public issue. See SECURITY.md.
Licence
Free to use, for personal or commercial work, under the licence. The source code is not published.
AutoCAD and AutoCAD Plant 3D are registered trademarks of Autodesk, Inc. autocad-mcp is an independent product of Orygn LLC and is not affiliated with, endorsed by or supported by Autodesk.
@orygn/autocad-mcpnpm install @orygn/autocad-mcp