> For the complete documentation index, see [llms.txt](https://help.auxalia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.auxalia.com/revit-tools/en/ax-mcp-servers/technische-details.md). Agents can also search and read this documentation through its [MCP server](https://help.auxalia.com/~gitbook/mcp).

# Technical details

{% hint style="danger" %}
**Not released yet.** This page describes a feature in an upcoming release.
{% endhint %}

Learn how the MCP Assistant connects to Revit, what data it transfers, and how the add-in applies changes.

## How the components work together

The assistant consists of three components. All three run on your computer.

```
You ── AI client ── MCP server ── Revit add-in ── Your Revit model
           │
       AI provider
```

| Component        | Role                                                                                                                                                                          |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **AI client**    | The chat app, such as Claude Desktop. It sends your messages to the AI provider and calls the assistant's tools.                                                              |
| **MCP server**   | An auxalia program that your AI client starts and stops. It relays requests and responses between the AI client and Revit.                                                    |
| **Revit add-in** | Runs inside Revit and carries out requests in the open model while the [connection](https://help.auxalia.com/revit-tools/en/ax-mcp-servers/zugriff/modi.md#connection) is on. |

## What leaves your computer

* **The MCP server and Revit add-in communicate locally.** The connection is limited to your Windows user account.
* **The AI client receives Revit data read by the assistant.** The client sends this data and your chat messages to the AI provider.
* **You control the assistant's permissions.** Enable the tools you want to use on the [Tools](https://help.auxalia.com/revit-tools/en/ax-mcp-servers/zugriff/werkzeuge.md) page. The [access mode](https://help.auxalia.com/revit-tools/en/ax-mcp-servers/zugriff/modi.md) determines whether the assistant can change the model and when Revit asks for approval.

## How Revit handles changes

The Revit add-in checks generated code before running it and controls whether Revit commits or rolls back model changes. Depending on the way the code runs, the add-in uses a transaction or a transaction group.

### Code checks before execution

Before compiling, the add-in checks which Revit and Windows functions the code calls. In every [access mode](https://help.auxalia.com/revit-tools/en/ax-mcp-servers/zugriff/modi.md), it rejects code that would do any of the following.

* Save, synchronize with the central model, open documents, or close documents
* Run Revit commands
* Register event handlers or updaters to run later
* Circumvent the code checks

The add-in tells the assistant why it rejected the code.

### Execution modes

| Execution mode                | What Revit does                                                                                                                        | **Undo** entries       |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
| **Normal**                    | Runs the code in a single transaction. If the run succeeds, Revit commits the changes. If it fails, Revit rolls back the transaction.  | One on success         |
| **Dry run**                   | Runs the code and rolls back model changes at the end. Revit uses this option in **Read only** mode.                                   | None                   |
| **With its own transactions** | Lets the code use its own transactions for tasks such as editing and reloading a family. The add-in wraps them in a transaction group. | One per completed step |

**If a run with its own transactions fails,** changes from completed steps stay in the model. Each completed step appears separately in **Undo**. Ask the assistant which steps finished, then have it continue from the step that failed. In **Read only** mode, Revit also rolls back the model changes for this type of run.

During normal runs and dry runs, the add-in passes **Revit warnings** to the assistant so it can report them to you without blocking Revit with a dialog. In runs with their own transactions, the code handles warnings itself.

### Approval and results

* In **Ask** mode, Revit waits for your [approval](https://help.auxalia.com/revit-tools/en/ax-mcp-servers/zugriff/modi.md) before making a change.
* Use **Undo** to reverse committed model changes. Save the model yourself in Revit.
* If a request times out, it may still be running in Revit. Before retrying, the assistant checks its status.

### Limits

* **The code runs in Revit with your Windows permissions.** For example, a dry run can write files during an export. Those files remain after Revit rolls back the model changes.
* **A single long Revit operation**, such as a large recalculation, runs until it finishes. Revit stays busy in the meantime.
* **Code checks catch known risky calls.** They offer limited protection against deliberately malicious code.

## IT details

<details>

<summary>Programs and setup</summary>

* **Revit add-in.** Part of Auxalia.Next for Revit 2025, 2026, or 2027.
* **MCP server.** `auxalia-mcp-revit.exe` supports all three Revit versions. The AI client starts it and communicates with it over standard input and output (stdio). The server stops when the AI client closes.
* **AI client setup.** The MCP window adds an `auxalia-revit` configuration entry pointing to `auxalia-mcp-revit.exe`. It previews the change and backs up the file first.
* **Matching versions.** The add-in and MCP server must come from the same version. If they differ, the connection stays off, and the MCP window explains why.
* **Administrator rights.** You can install Auxalia.Next for your own Windows account without administrator rights. A machine-wide installation requires administrator rights. If both are present, the per-user installation takes precedence.
* **Installation folders.** The per-user folder is `%LOCALAPPDATA%\Programs\Auxalia.Next\`. The machine-wide folder is `%PROGRAMDATA%\Auxalia\Next\`. In either folder, the MCP server is under `Plugins\nx-mcp-server\Utilities\auxalia-mcp-revit.exe`.

</details>

<details>

<summary>Connection between the MCP server and Revit</summary>

* **TCP over 127.0.0.1 only** (loopback). The connection is local to your computer and requires no Windows Firewall exception.
* **Internet access.** The MCP server and Revit add-in communicate locally. The AI client makes the internet connection to the AI provider.
* **Auxalia.Next connections.** Sign-in and license checks run when you start them. Revit itself does not download updates.
* **Port 8080.** A second Revit session uses the first free port from 8090 to 8099. Set a fixed port using the `MCP_REVIT_PORT` environment variable.
* **Only your Windows user can connect.** Revit creates a random key in a file that only your Windows user can read. The MCP server sends it when connecting. Revit validates the key before it runs a request, including requests from processes on the same computer, such as a terminal server.
* **Revit accepts requests while the connection is on.** If the assistant asks to turn it on, approve the request in the confirmation dialog in Revit.

</details>

<details>

<summary>Settings, data, and logs</summary>

Settings and data apply to your Windows account and all supported Revit versions.

| Data                                 | Location                                                                                                                                                               |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| MCP settings                         | `%LOCALAPPDATA%\auxalia\Auxalia.Next\utilities\nx-mcp-server\state.json`                                                                                               |
| Your knowledge (rules and workflows) | `%LOCALAPPDATA%\auxalia\Auxalia.Next\utilities\nx-mcp-server\Knowledge\`                                                                                               |
| Connection key                       | `%LOCALAPPDATA%\auxalia\Auxalia.Next\utilities\nx-mcp-server\bridge.key`, readable only by your Windows user. Delete the file and restart Revit to generate a new key. |
| Logs                                 | `%LOCALAPPDATA%\auxalia\Auxalia.Next\logs\revit<year>\`, retained for 30 days                                                                                          |

* If Revit can't read the settings file, all tools stay locked.
* Uninstalling keeps these files.

</details>
