Overview
PVX.AI runs an MCP (Model Context Protocol) server inside AutoCAD. It lets an AI client read the open drawing and run PVX.AI tools on request. Claude Desktop reaches it through the extension that ships in the installer. This article covers the direct route: connecting any other MCP client to the server’s HTTP address. Use it for Claude Code, another AI app or agent framework, MCP Inspector or your own tooling, or when Claude Desktop cannot install the extension.
If you use Claude Desktop and the extension installs, use the extension instead (see Designing with Claude: the PVX.AI Claude Desktop Extension). It finds the server by itself, even when the address changes.
The server starts by itself when PVX.AI loads with a license that includes the Claude (MCP) integration. It listens only on 127.0.0.1, so only programs on the same computer can reach it.
That decides which AI products can connect. A client that runs on your computer (a desktop app, an editor extension or a command-line tool) can reach the server. A chat app in a browser or on a phone connects from its vendor’s servers, so it cannot. For these products there is a guide with the exact steps:
- ChatGPT and Codex (OpenAI)
- GitHub Copilot (VS Code, Visual Studio, Copilot CLI)
- Google Antigravity
- Gemini CLI and Gemini Code Assist
- Grok (xAI)
For any other client, follow the steps below.
Prerequisites
- Windows, with PVX.AI 2.15 or later installed in AutoCAD 2023 or newer.
- A PVX.AI license that includes the Claude (MCP) integration.
- An MCP client that supports the HTTP transport (called Streamable HTTP in the MCP specification), running on the same computer as AutoCAD.
Step-by-Step Guide
1. Start AutoCAD and open a drawing
Start AutoCAD with PVX.AI and open the drawing you want to work on. Check that the PVX.AI tab is on the ribbon. There is nothing to switch on.
2. Find the server address
The default address is http://127.0.0.1:52780/mcp. If that port is busy when AutoCAD starts, the server tries the next four ports and then any free port, so the address can change. The address actually in use is written to a file in %LOCALAPPDATA%\PVXAI\mcp\, one file per running AutoCAD. To read it, run this in PowerShell:
$latest = Get-ChildItem "$env:LOCALAPPDATA\PVXAI\mcp\instance-*.json" |
Sort-Object LastWriteTime -Descending | Select-Object -First 1
$info = Get-Content $latest.FullName -Raw | ConvertFrom-Json
if ($info.status -eq 'failed') { "MCP server failed to start: $($info.error)" }
else { "URL: $($info.url) (port source: $($info.portSource))" }
If you run more than one AutoCAD, each has its own address, and the snippet shows the most recently started one. No password or token is needed.
3. Add the server to your client
Most clients take a JSON entry like this (the exact file and key names depend on the client):
{
"mcpServers": {
"pvxai-solar-design": {
"type": "http",
"url": "http://127.0.0.1:52780/mcp"
}
}
}
In Claude Code, you can add it with one command instead:
claude mcp add --transport http pvxai-solar-design http://127.0.0.1:52780/mcp
Use the address from step 2 if it is not the default.
4. Check the connection
Open http://127.0.0.1:52780/health/ready in a browser (with your port if it differs). It answers "status":"ready" once AutoCAD has finished starting. Then check the server in your client (in Claude Code: claude mcp list, or /mcp inside a session). The client should list 14 tools, such as system, query, solar_layout and solar_electrical.
5. Make your first requests
Start with a question that changes nothing, for example: “How many racks and strings are in this drawing, and what is the DC capacity?” Then ask for changes in plain words. The Claude Desktop article has more examples of what you can ask; they work the same from any client.
Tips & Recommendations
Clients that start servers as a local command
Some clients add an MCP server as a program to run instead of an address. PVX.AI ships one for this: PVXAI.Bridge.exe. It is inside the file pvxai-solar-design.mcpb in the installation folder, %ProgramFiles%\Autodesk\ApplicationPlugins\PVXAI.Cad.bundle. Copy that file to a folder of your own, rename the copy so it ends in .zip, extract it, and give your client the full path to server\PVXAI.Bridge.exe as the command, with no arguments. The bridge finds the running AutoCAD by itself, so it keeps working when the address changes. After a PVX.AI update, extract it again.
Keeping a fixed address
Port 52780 sits in the range Windows hands out to outgoing connections, so on some computers it is occasionally taken. A fixed address in a client config only works while the server gets that port. To keep the address stable, set the PVX_MCP_PORT environment variable to a free port below 49152, then restart AutoCAD and update your client config:
setx PVX_MCP_PORT 41780
To stop the server from starting at all, set PVX_MCP_ENABLED to false the same way and restart AutoCAD.
What your client should expect
- While AutoCAD is still starting, the client can connect and list tools, but tool calls are refused for a few seconds with a “not ready” answer. Retry.
- MCP clients give up on a call after about 60 seconds. Long operations (placement on large sites, grading, stringing, cabling) therefore run as jobs, and the client waits for them in steps of up to 55 seconds. The server tells AI clients how to do this.
- One job runs at a time. Other requests that need AutoCAD are refused until it finishes; status checks still answer.
- Removing racks, clearing electrical design or resetting terrain runs as a preview first and needs a second, confirmed call to apply.
- The client cannot undo. Press Ctrl+Z in AutoCAD to reverse a change.
- An action run through MCP uses credits the same way as the same action on the ribbon.
Troubleshooting
- No file in %LOCALAPPDATA%\PVXAI\mcp\: the server is not running. Check that the PVX.AI tab is on the ribbon, that your license includes the Claude integration, and that
PVX_MCP_ENABLEDis not set tofalse. - The file says “failed”: PVX.AI loaded but could not open any port, often because a firewall or security product blocks local listeners. The
errorline says why. Fix it and restart AutoCAD. - The client worked yesterday and now cannot connect: the port probably moved. Run the snippet in step 2, or set a fixed port.
- Every call answers “unauthorized”: the license no longer includes the Claude integration (the server re-checks it every hour). Check your license and re-activate it.
- Calls time out: a dialog is probably open in AutoCAD. The client cannot click through PVX.AI dialogs; close it and try again. Before retrying an action that uses credits, check the drawing: it may have finished.
- Logs: PVX.AI writes its log, and a record of every change made through MCP, to %LOCALAPPDATA%\PVXAI\Logs.
Security
The server listens on 127.0.0.1 only, so nothing is exposed to your network or the internet. It uses no token; instead, it refuses requests sent from web pages of other sites. Only programs running on your own computer can use it.
