RepositoryC#
bimwright

bimwright/rvt-mcp

BIMwright AI-native Revit MCP server (Revit 2022–2027)

168stars
52forks
20issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: autodesk

#1 Repository of the week

1
TINIX TRENDING·Topic: aec

#1 Repository of the week

2
TINIX TRENDING·Topic: bim

#2 Repository of the week

rvt-mcp

rvt-mcp

MCP gateway for Autodesk Revit — local tools for agents, optional personal bake loop

build license Revit 2022-2027 MCP tools latest release changelog

English · Tiếng Việt · 简体中文 · 日本語


What it is

rvt-mcp is a local bridge between an MCP client and a running Revit session. A .NET 8 server talks MCP over stdio; a thin add-in per Revit year (2022–2027) runs inside Revit and is reached over localhost TCP (≤2024) or a named pipe (≥2025). Nothing leaves the machine, it is C# end to end, and lengths are millimetres at the tool boundary. Details: ARCHITECTURE.md.

Agents get a typed tool surface for common Revit work, a C# escape hatch for everything else, and an optional way to turn repeated patterns into personal tools (ToolBaker): start from a shared runtime and grow your tools on top. Family Editor authoring is out of scope for now (roadmap).


Install

Use the setup ZIP from GitHub Releases: a self-contained server plus the Revit 2022–2027 add-ins, no .NET SDK or source clone needed. AI agents: follow AGENTS.md and do not clone or build unless the user asked for a developer setup.

$tag = (Invoke-RestMethod https://api.github.com/repos/bimwright/rvt-mcp/releases/latest).tag_name
$zip = "$env:TEMP\RvtMcp.Setup-$tag-win-x64.zip"
$dir = "$env:TEMP\RvtMcp.Setup-$tag-win-x64"
Invoke-WebRequest "https://github.com/bimwright/rvt-mcp/releases/download/$tag/RvtMcp.Setup-$tag-win-x64.zip" -OutFile $zip
Expand-Archive $zip -DestinationPath $dir -Force

powershell -ExecutionPolicy Bypass -File "$dir\install.ps1" -WhatIf
powershell -ExecutionPolicy Bypass -File "$dir\install.ps1"

Close Revit first. The installer finds each Revit 2022–2027 that has a Revit.exe, installs the matching add-ins and the server at %LOCALAPPDATA%\RvtMcp\rvt\server\current\rvt-mcp.exe, verifies both and rolls back on error. It does not touch MCP client configs. Details and other install paths (developer, NuGet server only): docs/install.md.

Connect your MCP client

Register one stdio server named rvt-mcp whose command is the server path above, written out as an absolute path, using the client's own mcp add command, settings UI or config file. Any stdio MCP client works (Claude Code, Claude Desktop, Codex, Cursor, VS Code, Gemini CLI, OpenCode, Kilo, …). Verified per-client steps: docs/mcp-client-wiring.md.

Check that it works

  1. Open Revit with a model.
  2. Start the MCP connection from the ribbon (Add-Ins tab → RvtMcp panel).
  3. From the MCP client, list tools, then call revit_get_current_view_info.

You should get something like:

{ "viewName": "Level 1", "viewType": "FloorPlan", "levelName": "Level 1", "scale": 100 }

If that fails, the install is not done yet — fix the client config or add-in load first.

Upgrade

Close Revit and the MCP client, extract the new release ZIP to a new folder, then run its install.ps1 -WhatIf followed by install.ps1 — do not uninstall first. The server path stays the same, so clients only need a restart. Coming from v0.6.2 or earlier? Point your clients at the current path above, then remove old server folders with install.ps1 -PruneOldServers. More: docs/install.md.

Uninstall

From the setup ZIP folder:

powershell -ExecutionPolicy Bypass -File .\uninstall.ps1 -WhatIf
powershell -ExecutionPolicy Bypass -File .\uninstall.ps1 -Yes

Removes the add-ins and the server but keeps settings, translations, ToolBaker data and logs unless you add -Purge. Remove the rvt-mcp entry from your MCP clients yourself. More: docs/install.md.


Tools

ModeToolsNotes
Default40query + create + view + meta
--toolsets all229Full catalog
all + adaptive bake232Adds 3 suggestion-lifecycle tools

Counts exclude your personal baked tools. Other toolsets stay off until you ask for them, e.g. --toolsets query,view,meta,mep or --toolsets all; --read-only drops every write-capable toolset (including create).

ToolsetWhat it covers
queryView, selection, filters, stats, parameters, relationships, worksets, groups/assemblies
createGrids, levels, rooms, line/point/surface-based elements, groups
viewCreate views, sheets layout helpers, capture image, crop/scale
metaBatch execute (max 20), multi-Revit targets, project info, purge unused (MVP), message, send_code
lintView naming patterns, firm-profile detect, warnings summary
scheduleList/create schedules, fields, formulas, data
familiesLoad/unload, types, instances, audit, export .rfa (project-side)
modifyOperate/color elements, set parameters, change type, workset assign
deleteDelete by id
annotationTags, text, dimensions, regions, keynotes, checks
exportPDF/DWG/IFC/NWC helpers, room data, and related export tools
mepSystems, connectors, networks, place terminals/fixtures, etc.
graphicsView filters, overrides, visibility/phase
toolbakerlist/run baked tools; suggestion tools only if adaptive on
sheetsSheets, titleblocks, revisions, renumber
materialsMaterials, appearance, assignment, takeoff
geometryBBox, measure, clash, volume/area, …
roomsRooms/areas/spaces, finishes, separators
linksRevit/CAD links, coordinate audit, acquire/publish coordinates
parametersProject/shared parameters
organizationSaved selections, view templates
workflowsComposite clash/audit/sheet/takeoff-style flows
structuralColumns, beams, foundations, rebar, loads, …
keiActive KEI project DB path, query/write SQLite (WAL-safe), equipment import

send_code, ToolBaker, ribbon and languages

  • revit_send_code_to_revit (on by default) compiles and runs a C# body inside Revit when no typed tool fits; --read-only or --disable-toolbaker removes it. See docs/send-code.md, and docs/stairs-workflow.md for stairs.
  • ToolBaker: revit_list_baked_tools / revit_run_baked_tool need --toolsets toolbaker. Adaptive bake (--enable-adaptive-bake, off by default) suggests tools from repeated calls; nothing is added until you accept one. Bake compiles inside Revit — no Visual Studio needed. See docs/bake.md.
  • Ribbon: start or stop the connection, open History to search and re-run past calls, and switch completion Toasts (on by default).
  • UI languages: the add-in UI comes in 15 languages and follows Revit's UI language; change it with the Language combo in the ribbon slide-out. Tool names and payloads stay English. See docs/localization.md.

Configuration

Precedence, high wins: CLI → env (BIMWRIGHT_*) → %LOCALAPPDATA%\RvtMcp\rvtmcp.config.json.

SettingCLIEnvJSON
Target year--target 2024BIMWRIGHT_TARGETtarget
Toolsets--toolsets query,createBIMWRIGHT_TOOLSETStoolsets
Read-only--read-onlyBIMWRIGHT_READ_ONLY=1readOnly
LAN bind (plugin)—BIMWRIGHT_ALLOW_LAN_BIND=1allowLanBind
ToolBaker surface--enable-toolbaker / --disable-toolbakerBIMWRIGHT_ENABLE_TOOLBAKERenableToolbaker
Adaptive bake--enable-adaptive-bake / --disable-adaptive-bakeBIMWRIGHT_ENABLE_ADAPTIVE_BAKE=1enableAdaptiveBake
Cache send_code bodies (bake clusters)--cache-send-code-bodies / --no-…BIMWRIGHT_CACHE_SEND_CODE_BODIES=1cacheSendCodeBodies
Persist send_code journal--persist-send-code-bodies / --no-…BIMWRIGHT_PERSIST_SEND_CODE_BODIES=1persistSendCodeBodies
Journal TTL--persist-send-code-bodies-for 4hBIMWRIGHT_PERSIST_SEND_CODE_BODIES_TTLpersistSendCodeBodiesUntil
Completion toast (default on)ribbon ToastBIMWRIGHT_ENABLE_TOAST=0enableToast
UI language (add-in)ribbon LanguageBIMWRIGHT_UI_LANGUAGEuiLanguage

After changing server flags, restart the MCP connection so the client picks up the new tool list.


Supported Revit versions

RevitPlugin TFMTransport
2022–2024.NET Framework 4.8TCP
2025–2026.NET 8 (net8.0-windows7.0)Named Pipe
2027.NET 10 (net10.0-windows7.0)Named Pipe

Full Revit desktop only; Revit Viewer is not a supported target. CI builds all six add-ins, but runtime depth varies by year — recheck baked tools and custom C# on the years you use.


Security and privacy

  • Local by default: loopback TCP or a local named pipe, with a per-session auth token in the discovery files under %LOCALAPPDATA%\RvtMcp\.
  • Tool arguments are schema-checked before handlers run; errors returned to the model are sanitized.
  • send_code runs arbitrary C# in the Revit process — powerful and risky. Use --read-only or --disable-toolbaker if that is unacceptable.
  • Adaptive bake, body cache and send_code journals are opt-in and stay under your user profile; defaults do not write raw send_code bodies to long-lived logs.

More: SECURITY.md, docs/bake.md.


Docs

DocTopic
AGENTS.mdAgent install protocol
docs/install.mdInstaller details, upgrade, uninstall, developer and NuGet installs
docs/mcp-client-wiring.mdPer-client MCP wiring
ARCHITECTURE.mdProcesses, transport, DTO rules
docs/send-code.mdsend_code source forms and failure handling
docs/bake.mdAdaptive bake and body privacy
docs/localization.mdUI languages, overrides, hot reload
docs/roadmap.mdNear-term hardening and non-goals
docs/kei-equipment-import.mdKEI SQLite tools (--toolsets kei)
CONTRIBUTING.mdBuild, test, add a tool
CHANGELOG.mdRelease notes

Community contributions

Bug reports, reproducible examples and proposals help improve rvt-mcp. Thanks to:

ContributorContribution
@thiagobarretosn-hueReproducible reports on MEP network membership and pipe system handling (#11, #12).
@razmikbHosted-family placement and stair/send-code failure reports that led to placement checks, helper-class support and broader failure-handling tests (#13, #14).
@ThestreetarckitectFamily Authoring Tool Suite proposal that helped clarify the roadmap and scope (#7).

bimwright

Open-source tools connecting AI assistants to BIM and CAD applications.

The name bimwright combines BIM with wright, an old word for a maker or builder—as in shipwright.


License

Apache-2.0 — LICENSE.

Forks and rebrands are welcome — the license terms are all that's required (keep LICENSE and the copyright notices, mark changed files). If rvt-mcp helped you, a star or a mention of BIMwright in your product is appreciated but entirely optional. Issues and PRs are always welcome.

Revit and Autodesk are trademarks of Autodesk, Inc. bimwright is independent and not affiliated with Autodesk.

Similar Projects

Discover other similar projects and AI models.

RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

315.1k
Dec 1, 2026
RepositoryPython
NousResearch/hermes-agent

The agent that grows with you

267.7k
Dec 2, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryGo
JuliusBrussee/caveman

why use many token when few token do trick. Skill + local proxy for coding agents: shorter answers, smaller tool output, every original recoverable.

124.4k
Dec 1, 2026
RepositoryTypeScript
thedotmack/claude-mem

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

121.3k
Dec 2, 2026
RepositoryJavaScript
DietrichGebert/ponytail

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

203.5k
Nov 22, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026
RepositoryRust
farion1231/cc-switch

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

158.7k
Dec 2, 2026
RepositoryTypeScript
pingdotgg/t3code

The best way to control Claude Code, Codex and more from any computer or phone

87.1k
Dec 2, 2026