Revit MCP server · AI coding Skills · Model verification
A Revit development framework for AI coding agents: Skills with coding rules, a bridge into a running Revit, and a searchable API reference. The aim is to turn what I have learned in Revit development into reusable Skills and an Agent workflow: to lower the barrier to development and debugging, and to constrain the model with clear rules and verification steps so that the generated code is more reliable.
The second demonstration focuses on a 3D preview and selecting the actual elements the AI should work on. The first introduces shortcuts for referencing model elements. Both connect the modeling request to data in a running Revit session.
Part 2 · v2: 3D selection and live Revit data
Inspect a 3D preview, select the actual elements the AI should work on, and let the agent read live Revit data for those elements. The video description also discusses using the Revit API to check model state and testing DeepSeek alongside GPT-6 and Claude Opus.
Shortcut commands let designers reference elements in the Revit model directly while working with AI through MCP. The first video also introduces the idea of combining element selection and parameter adjustments into reusable workflows.
revit-bridge is maintained in the revitbridge GitHub organization. It combines task Skills, an MCP server, a Revit add-in and optional API reference retrieval. These guides cover installation, verification and compatibility.
The project has three modules. Each can be installed on its own, and they can be combined:
Skills
Coding rules and procedures written for the LLM
Tells it in advance about the pitfalls I have hit, so it makes fewer known mistakes
Agent · revit-bridge
A bridge into Revit, plus automatic testing
Lets it read data, dry-run code and test the product on a real model
Docs · revit-api-docs
A searchable Revit API reference
One lookup when an API is uncertain gives the exact interface
II
Skills
The Skills give the LLM Revit programming rules and procedures: model changes must sit inside a Transaction, how to handle failures, and the API differences between Revit versions.
These rules come from repeated development and correction in real projects. An LLM can already do a great deal of the coding, but it still makes mistakes that look reasonable and yet block the task.
For example, when changing a wall's thickness, some agents first check the wall type with IsVerticallyCompound and refuse to run when it is true. For the ordinary wall in the test, that check made the add-in exit before it changed anything. In the tests, 20 of the 39 products built without a connection to Revit contained this check. When generated code cannot be debugged directly against Revit, such problems are usually found only when the user runs it and reports back to the LLM, which costs debugging time and tokens.
The Skills are organised in a lightweight way and can be used quickly in dsh, Codex and Claude Code. The current repository documents eight Skills:
revit-core
Required reading before writing Revit C#: the snippet contract, internal units, ElementId and other version differences, the Revit 2024 to 2027 runtime matrix
revit-task-brief
Rewrites a designer's one-sentence request into a testable brief
revit-bridge
The procedure for creating, changing and querying elements in the open model through the bridge
revit-addin-dev
Creating, continuing, debugging and migrating a standalone Revit C# add-in
revit-addin-test
Testing a compiled add-in in a real Revit
revit-addin-release
Multi-year builds, the installer and acceptance on a real machine
revit-journal-analysis
Diagnoses Revit journal files with quoted evidence for crashes, model-open errors, loaded add-ins and session termination
revit-install
Guides Windows installation of Autodesk products and Revit content libraries from local media or the official Web Install; no bridge connection is required
Checked November 30, 2026 against the upstream Skill catalog and revit-install source. This machine-setup Skill is separate from installing revit-bridge-addin. It is not included in the addin or bridge profiles; select it by name when needed. Run uvx revit-bridge skills list to check the Skills available in your package version. This documentation check adds no installation test results.
Every rule has the same structure: scenario, wrong code, right code, versions and source. Here is the ElementId example from revit-core:
Show the rule revit-core/elementid-value
---
schema_version: 1
id: revit-core/elementid-value
revision: 1
title: "ElementId: use Value (long); IntegerValue is obsolete in 2024-2025 and gone from 2026"
summary: "`ElementId.Value` (long); `IntegerValue` is obsolete in 2024-2025 and gone from 2026"
stage: [orient, write, fix]
kind: pitfall
revit: ">=2024 <2028"
order: 30
triggers:
symbols: [IntegerValue, ElementId]
errors: [CS1061, CS0618]
---
## Scenario
Element ids are 64-bit: `ElementId.Value` returns `long`. Code written for older Revit uses `IntegerValue` (`int`) and `new ElementId(int)`.
## Wrong
```csharp
int id = wall.Id.IntegerValue; // 2024-2025: warning CS0618 (obsolete); 2026 and later: CS1061
```
## Right
```csharp
List<long> ids = new FilteredElementCollector(document)
.OfClass(typeof(Wall))
.ToElementIds()
.Select(id => id.Value)
.ToList();
long first = ids.Count > 0 ? ids[0] : ElementId.InvalidElementId.Value;
Element again = document.GetElement(new ElementId(first));
return new { Count = ids.Count, First = first, Found = again != null };
```
## Versions
- 2024.0 to 2025.4: `IntegerValue` and the `ElementId(Int32)` constructor are marked obsolete; the property's message: "This property is deprecated in Revit 2024 and may be removed in a future version of Revit. Please use the Value property instead."
- 2026.0, 2026.4, 2026.5, 2027.0, 2027.2: both are gone. `Value` (`Int64`) and `ElementId(Int64)` exist in every version checked.
## Source
- revit-api-docs data set (Revit 2026): `ElementId.Value` "Provides the value of the element id as a 64-bit integer" (`public long Value { get; }`); the `ElementId` member list has `ElementId(Int64)` and no `IntegerValue`.
- Metadata of the Revit API assemblies 2024.0, 2024.3, 2025.0, 2025.4, 2026.0, 2026.4, 2027.2 and the installed 2026.5 and 2027.0, including the obsolete messages quoted above (2025.5 not checked).
III
Agent
The Agent module is built around revit-bridge. It connects the Skills, automatic testing and API documentation search into one development flow. This is also closer to the project's original goal: to let a developer write, verify and deliver with tools that are as light as possible.
Skills alone have two limits: they cannot check an exact API definition, and they cannot connect to a running Revit to test. revit-bridge fills both gaps. The agent can simulate user operations in the real model, read the result and iterate on the error messages; it calls the documentation search only when an API is uncertain.
The overall workflow:
Scroll sideways to see the whole diagram.
The tool and the job at each step:
Rewrite the brief
skill revit-task-brief
Turns a one-sentence request into numbered behaviour, inputs with units, cancel and failure rules, and how it will be accepted
Read the open model
the bridge's query tools
Gets the project's real families, types and marks instead of assuming "the project should have them"
Write the core logic
skills revit-core, revit-addin-dev
The core logic lives in its own file, takes plain values only, and touches no dialog and no pick
Look up the docs
revit-docs
Only when an API is uncertain, not at every step
Compile check
check_code
Compiles in Revit without running
Dry run
dry_run_code
Really runs the code on the open model and then always rolls it back; returns what would be added, modified and deleted, and every warning and error Revit raised
Test in the real Revit
test_addin_command
Loads the built DLL, picks by element id, feeds the input file, reads the result back, then restores the model
The compile check, the dry run and the real-Revit test are three verification points. When any of them fails, the agent goes back to coding with the specific diagnostics. In this flow the dry run's changes are rolled back and the model is restored after the test, so no person has to step in on each iteration and no test change stays in the model.
IV
Docs
revit-docs (package name revit-api-docs) comes from the data module of the original revit-rag project and holds the Revit 2026 API reference. I separated it so that the Agent can call it on demand, and to leave room for further retrieval experiments. I ran two rounds of retrieval evaluation and changed the database structure and the retrieval strategy according to the results.
Two terms first:
Jev is a reranking service from TypeSafe; the model version during the tests was jev-1.14.0. Retrieval first recalls a set of candidate entries; Jev gives each candidate a relevance score from 0 to 1, and the candidates are reordered by that score.
nDCG@5 measures whether the correct API entry is in the top 5 and how high it ranks. The maximum is 1.
Based on the two rounds, I changed the database structure and the retrieval. Data set v1.1 has 28,862 entries. After the changes I evaluated data set v1.1 again with 223 queries:
Configuration (data set v1.1)
nDCG@5
BM25 only, no key needed
0.557
Vector + BM25 fused, no rerank
0.647
Vector + BM25 fused, with Jev rerank
0.842
The results show that Jev's main value is more accurate ranking. A query with reranking now takes about 0.4 to 0.5 seconds.
In the real Agent workflow, documentation search does not run through every step. It is triggered on demand when an API definition is in doubt.
Both evaluation rounds and every change to the database are in the report.
V
Test Results
To evaluate this approach I chose four coding-agent lines, Grok, GPT, Gemini and DeepSeek, and designed two Revit add-in development tasks. All add-ins the agents produced were accepted by a script in the same Revit 2026 test model. With revit-bridge connected, all 38 valid runs met the completion bar; without it, the overall completion rate was below one half.
The tests ran from 14 to 16 November 2026: 154 runs, 135 of them valid.
Full setup (skills + bridge + docs)
38 / 38
Both tasks completed in every run
Native (prompt only)
19 / 38
Completed
Skills only, no bridge
16 / 40
Completed, no better than native
Model tokens used by the automatic judging
0
A script reads the model data back, no screenshots
Prerequisite: Python 3.11+ with uv for uvx. For the bridge, install revit-bridge-addin in Revit 2020, 2021 or 2023–2026; dry runs and add-in tests require 0.5.0 or later. In v0.6.0, click Add-Ins > Revit Bridge to enable the listener; Shift+click opens its settings. Enable it after each Revit start unless automatic startup is enabled. In v0.5.0, the button is Revit MCP Switch. Follow the setup guide to verify the connected model. The four add-in phase Skills work without the bridge.
Claude Code
Installs the plugin’s bundled Skills, the MCP server and the confirmation hook. Run /reload-plugins or start a new Claude Code conversation. Skills only, in one project: uvx revit-bridge skills install --to .claude/skills.
claude plugin marketplace add revitbridge/revit-bridge
claude plugin install revit-bridge@revit-bridge
Codex
Copies the package’s bundled Skills into the project's .agents/skills; in an add-in repository without the bridge, add --profile addin. For the bridge Skills, also register uvx revit-bridge as a stdio MCP server. Start a new Codex conversation, then invoke $revit-task-brief.
revit-bridge is an open-source framework for AI-assisted Revit development. It combines reusable coding Skills, an MCP server connected to a Revit add-in, and optional Revit API documentation search. The bridge can read the open model, check C# code, dry-run changes and test a compiled add-in.
When should I use the bridge instead of Skills alone?
Use the bridge when the task depends on real families, types, parameters or geometry in an open model, or when generated code needs to be verified in Revit. The four add-in phase Skills also work without an MCP connection. Testing and acceptance still require a real Revit installation.
Does revit-bridge support Revit 2027?
The current bridge installation instructions list Revit 2020, 2021 and 2023–2026. The add-in development Skills cover Revit 2024–2027; that does not mean the live bridge supports all of those versions. Check the add-in repository for the exact release you use.
Does the evaluation guarantee that generated add-ins will work?
No. The full setup completed 38 of 38 valid runs in the published evaluation, but that evaluation covered two tasks and one Revit 2026 model. Read the method and limitations before applying those results to another project.
How can an AI coding agent start using it?
Install the Skills in the project, configure uvx revit-bridge as a stdio MCP server, and install and enable revit-bridge-addin in a supported Revit version. Start with a task brief and inspect the model before changing it. See the setup guide for commands and a first-task example.