Connecting Google Antigravity to PVX.AI

Overview

PVX.AI runs an MCP (Model Context Protocol) server inside AutoCAD. Google Antigravity can connect to it, so its agent can read the open drawing and run PVX.AI tools when you ask. This article shows how to add the server in the Antigravity App, the Antigravity IDE and the Antigravity CLI. All three run on your own computer and keep their MCP servers in a configuration file named mcp_config.json.

Antigravity Remote Agents cannot use PVX.AI. They run in an environment managed by Google, and the PVX.AI server only listens on your own computer (127.0.0.1). Use a local Antigravity App, IDE or CLI session.

Menu names can differ between versions of Antigravity; Google’s Antigravity MCP 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.
  • Google Antigravity (App, IDE or CLI) installed 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. The server starts by itself. Its default address is http://127.0.0.1:52780/mcp; if that port was busy, the address is different, and Connecting Other MCP Clients to PVX.AI over HTTP shows how to read it.

2. Open the Antigravity MCP configuration

  • Antigravity App: click Customizations in the sidebar, then Installed, and scroll to MCP Servers. Click Copy Config File Path in the section header and open that file in a text editor. A server that is not in the list behind Add MCP Server is added in this file.
  • Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers and View raw config.
  • Antigravity CLI: edit the file directly. The global file is ~/.gemini/config/mcp_config.json (~ is your user folder). The IDE uses the same global file, so View raw config in the IDE opens it as well.

3. Add the PVX.AI server

Option A, by HTTP address. Antigravity connects to remote servers over Streamable HTTP, which is what PVX.AI uses. Add this entry inside mcpServers (use your own address if it is not the default):

{
  "mcpServers": {
    "pvxai-solar-design": {
      "serverUrl": "http://127.0.0.1:52780/mcp"
    }
  }
}

Use the key serverUrl. Antigravity does not accept httpUrl. No headers or token are needed.

Option B, through the bridge. A fixed address stops working when the port moves. The bridge program shipped with PVX.AI finds the running AutoCAD by itself on every start. Copy %ProgramFiles%\Autodesk\ApplicationPlugins\PVXAI.Cad.bundle\pvxai-solar-design.mcpb to a folder such as C:\PVXAI-Bridge, rename the copy to end in .zip, and extract it. Then point Antigravity at server\PVXAI.Bridge.exe (double backslashes in JSON, no arguments):

{
  "mcpServers": {
    "pvxai-solar-design": {
      "command": "C:\\PVXAI-Bridge\\server\\PVXAI.Bridge.exe"
    }
  }
}

Use one option, not both. Save the file.

4. Reload and check the tools

  • App: in Customizations > Installed > MCP Servers, click More actions (⋮) next to pvxai-solar-design and choose Restart.
  • IDE: under the installed MCP servers, reload the server list. If the server does not appear or still shows an error, restart the IDE.
  • CLI: start agy, type /mcp and press Enter. The MCP manager shows the server status and lets you reload the configuration.

The server should show as connected with 14 tools, such as system, query, solar_layout and solar_electrical.

5. Make a first request and approve it

Start with a question that changes nothing, for example: “Using the PVX.AI tools, how many racks and strings are in this drawing, and what is the DC capacity?” Antigravity asks before each MCP tool call: an approval card appears, and you click Allow. To stop being asked for PVX.AI tools, add mcp(pvxai-solar-design/*) as an Allow rule; Google’s Agent permissions page says where rules go (in the CLI, ~/.gemini/antigravity-cli/settings.json). The Claude Desktop article has more examples of what you can ask; they work the same here.


Tips & Recommendations

  • Built-in prompts: PVX.AI also offers ready-made MCP prompts (for example design_from_brief and review_design). Describe the task in plain words instead, such as “design the plant from this brief, stage by stage”.
  • Approvals: keeping MCP calls on Ask lets you see each change before it runs. Removing racks, clearing electrical design or resetting terrain also runs as a preview first and needs a second, confirmed call.
  • Long operations: Antigravity waits up to 3 minutes per tool call by default. PVX.AI runs long operations as jobs and answers within 55 seconds, so leave timeoutSeconds unset.
  • Undo: the agent cannot undo. Press Ctrl+Z in AutoCAD.
  • Credits: an action run through Antigravity uses credits the same way as the same action on the ribbon.

Troubleshooting

  • The server shows an error with Option A: AutoCAD is not running, or the port moved. Read the current address (see the HTTP article) or switch to Option B, then restart the server in Antigravity.
  • The server does not start with Option B: check the path to PVXAI.Bridge.exe and that every backslash is doubled.
  • Nothing appears after editing: check that the file is valid JSON and that you edited the file Antigravity uses (Copy Config File Path or View raw config shows it).
  • Every call answers “unauthorized”: the license no longer includes the Claude (MCP) integration. Check and re-activate your license.
  • Calls time out: a dialog is probably open in AutoCAD. Close it and try again. Before retrying an action that uses credits, check the drawing: it may have finished.

Related