Connecting Grok to PVX.AI with Grok Build

Overview

PVX.AI runs an MCP (Model Context Protocol) server inside AutoCAD, so an AI client can read the open drawing and run PVX.AI tools on request. The server listens only on your own computer (127.0.0.1). Of xAI’s products, the one that can use it is Grok Build, xAI’s agent for the terminal, because its MCP client runs on your computer.

Grok on grok.com, in X and in the mobile apps, Grok Bot and the xAI API cannot connect to PVX.AI. Their MCP connections start from xAI’s cloud, not from your computer. xAI’s documentation says its servers reject localhost and private addresses such as 127.0.0.1, and the PVX.AI server does not accept connections from outside your computer.

Install Grok Build only with xAI’s own installer shown below, not from third-party copies. This article covers Grok Build as published by xAI; menu names can differ between versions, and xAI’s MCP Servers documentation is the reference.


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. The same integration serves Grok Build.
  • Grok Build installed on the same computer as AutoCAD, and an xAI account (or an xAI API key) to sign in with.

Step-by-Step Guide

1. Install Grok Build

Open PowerShell (not WSL, because AutoCAD runs on Windows) and run xAI’s installer. Then run grok once: it opens your browser to sign in. If PowerShell cannot find grok, open a new PowerShell window.

irm https://x.ai/cli/install.ps1 | iex

2. Start AutoCAD and find the address

Start AutoCAD with PVX.AI and open a drawing. The server starts by itself. Its default address is http://127.0.0.1:52780/mcp; if that port was busy, it uses another one. The HTTP article under Related has a PowerShell snippet that shows the address in use. No password or token is needed.

3. Add PVX.AI to Grok Build

Option A, by address. Run this in PowerShell (use your address from step 2 if it differs):

grok mcp add --transport http pvxai-solar-design http://127.0.0.1:52780/mcp

Option B, through the bridge. This option follows the server when its port changes. Copy pvxai-solar-design.mcpb from %ProgramFiles%\Autodesk\ApplicationPlugins\PVXAI.Cad.bundle to a folder such as C:\PVXAI, rename the copy to end in .zip and extract it. Then register the bridge:

grok mcp add pvxai-solar-design -- "C:\PVXAI\server\PVXAI.Bridge.exe"

Grok Build keeps its MCP servers in %USERPROFILE%\.grok\config.toml. You can also declare a server there directly; use one of these entries, not both:

# Option A
[mcp_servers.pvxai-solar-design]
url = "http://127.0.0.1:52780/mcp"

# Option B
[mcp_servers.pvxai-solar-design]
command = 'C:\PVXAI\server\PVXAI.Bridge.exe'

4. Check that the tools are listed

Run grok mcp list and grok mcp doctor pvxai-solar-design. Then start grok in a working folder and type /mcps: pvxai-solar-design should be listed and switched on (press r there to refresh after editing the config file). Grok Build names a server’s tools <server>__<tool>, so PVX.AI’s tools appear as pvxai-solar-design__system, pvxai-solar-design__solar_layout and so on; there should be 14.

5. Make a first read-only request

Ask something that changes nothing, for example: “Using PVX.AI, how many racks and strings are in the open drawing, and what is the DC capacity?” Then ask for changes in plain words. The Claude Desktop article under Related lists what you can ask; the same requests work here.

PVX.AI also publishes six ready-made workflows (MCP prompts) such as design_from_brief and review_design. Grok Build’s documentation does not say that it shows MCP prompts, so describe the job in your own words instead.


Tips & Recommendations

Approving tool calls

  • In its default mode, Grok Build asks before each tool call and offers to always allow that tool. Allowing the read-only tools is convenient; keep the prompt for tools that change the drawing.
  • Shift+Tab cycles through Grok Build’s modes. Its Auto and Always-approve modes approve tool calls without asking (Auto only when that feature is available); use them only when you are happy for Grok to change the drawing without asking.
  • Removing racks, clearing electrical design or resetting terrain runs as a preview first and needs a second, confirmed call. Grok cannot undo: press Ctrl+Z in AutoCAD.
  • Long operations run as jobs that the client waits for in steps of up to 55 seconds. One job runs at a time.
  • An action run through Grok uses credits the same way as the same action on the ribbon.

Troubleshooting

  • grok mcp doctor reports a connection error (Option A): AutoCAD is not running, or the port moved. Check the address with the snippet in the HTTP article, or switch to Option B, or fix the port with PVX_MCP_PORT as described there.
  • The bridge starts but no tools appear (Option B): check the path in config.toml, and read %USERPROFILE%\.grok\logs\mcp\pvxai-solar-design.stderr.log. If Grok says the PVX.AI plugin is not running, open AutoCAD with PVX.AI and send another message; nothing needs restarting.
  • PVX.AI appears twice: Grok Build also reads Claude Code’s MCP settings. If you added PVX.AI to Claude Code too, keep one entry. grok inspect shows where each server came from.
  • Calls time out or answer “unauthorized”: close any open dialog in AutoCAD, and check that your license still includes the Claude (MCP) integration. The HTTP article covers both.

Do not try to make the PVX.AI server reachable from the internet so that grok.com can use it. The server has no password by design and must stay on your own computer.

Related