Bimwright RVT MCP 标志

Bimwright RVT MCP

组织
bimwright

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

发布者bimwright
代码仓库rvt-mcp
语言C#
复刻数
11
星标数
60
可用工具
0
传输类型stdio
分类
许可协议Apache-2.0
链接
  • 将工具接入 AI 工作流

    Bimwright RVT MCP 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 60 个星标和 11 个复刻。


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.


Install

For users: let your AI agent do it. You don't need to run anything yourself. Copy the line below, paste it into your AI agent (Claude Code, Codex, Cursor, …) and go get a coffee while it does the job. The agent follows AGENTS.md and asks you before it installs anything or edits your client config.

text
Install rvt-mcp for me: https://github.com/bimwright/rvt-mcp

Or run the installer yourself. Close Revit, then in PowerShell:

powershell
$tag = (Invoke-RestMethod https://api.github.com/repos/bimwright/rvt-mcp/releases/latest).tag_name
$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 "$dir.zip"
Expand-Archive "$dir.zip" -DestinationPath $dir -Force
powershell -ExecutionPolicy Bypass -File "$dir\install.ps1"

One run sets up both sides: the add-in for every Revit 2022–2027 on the machine, and the rvt-mcp entry in every MCP client it finds (each config is backed up first). Add -WhatIf to preview, -Client claude,cursor to wire only those clients, or -Client none to skip client configs and register the server yourself — it lives at %LOCALAPPDATA%\RvtMcp\rvt\server\current\rvt-mcp.exe (per-client steps).

Check it works: restart your AI client, open a model in Revit, start MCP from the ribbon (Add-Ins → RvtMcp) and ask the agent to call revit_get_current_view_info. It should return the active view's name and type.

Upgrade: run the new release's installer the same way — no uninstall first; clients only need a restart. Uninstall: uninstall.ps1 -Yes in the same folder removes the add-ins and the server (settings stay unless you add -Purge); run install.ps1 -Uninstall -Client auto first to also remove the client entries. More, including developer and NuGet installs: docs/install.md.


Videos

Community videos of rvt-mcp at work. Install steps shown in a video can be older than this README — follow the steps above.


Tools

ModeToolsNotes
Fresh install227install.ps1 seeds "toolsets": ["all"] in rvtmcp.config.json
Bare rvt-mcp.exe42query + create + view + meta
--toolsets all227Full catalog
all + adaptive bake230Adds 3 suggestion-lifecycle tools

Counts exclude your personal baked tools. The installer writes the seeded default only when rvtmcp.config.json doesn't already set toolsets — your own list survives upgrades, and removing the key (or setting your own CSV) returns a bare server to the 42-tool surface. --read-only drops every write-capable toolset (including create) regardless of source.

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, recent models, 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, …

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 button in the ribbon slide-out — it opens Settings → General → Language (BIMWRIGHT_UI_LANGUAGE still wins). Tool names and payloads stay English. See docs/localization.md.

Why activity toasts exist

Toasts are work feedback, not just decoration. They grew out of three practical needs:

  • Free users from watching the chat. In real-world MCP workflows, an AI agent can work for a long time while Revit gives little visible feedback. Watching the chat just to check whether the agent is doing anything wastes attention. The activity card reports completed tool calls so users can turn to other work between updates.
  • Support multitasking. The maintainer develops and repeatedly tests several desktop applications in parallel. Compact notifications make it easier to follow those sessions without keeping every chat in view.
  • Modernize the experience. Revit-side feedback makes automation feel more responsive and understandable, without interrupting work with modal dialogs.

A toast reports a tool result, not progress inside a running tool or completion of the entire task. Repeated results share one card; notifications may wait while Revit is minimized or blocked by a modal dialog. They do not replace reviewing the agent's work.

Each card names the gateway and Revit year (for example rvt-mcp 2022), the latest tool, and the Success · Failed · Capture counts. A capture preview stays on the card for at least 5 seconds.

Notifications are on by default and can be turned off. In Settings → Toast, choose the idle duration (10/20/30/60 seconds; default 20) and Show branding (off by default), which shows the wordmark on hover. The choice applies immediately and is saved across Revit restarts; users do not need to display branding to get activity feedback.

Prompts

Four ready-made workflows ship as MCP prompts — pick /mcp__rvt-mcp__revit_<name> (Claude Code) or the prompts menu (Claude Desktop), and the agent follows the script with the tools it already has:

  • revit_getting_started — orient in the open model (read-only, works on defaults).
  • revit_model_audit — health audit: warnings, families, dry-run purge candidates (needs workflows,families,lint,meta).
  • revit_pre_issue_check — checks resolved sheets before issue (needs sheets,view,annotation,lint,meta). Supply sheet numbers/IDs, an explicit number/name filter, or all; a named sheet set needs its member sheets. Sampled model warnings and incomplete checks are reported as NOT VERIFIED, not a sheet-level pass.
  • revit_stairs — guided stair creation through send_code (writes only after your confirmation). Includes the transaction/failure/cleanup template; no source checkout is needed.

If a prompt's toolsets aren't enabled, it answers with the exact --toolsets line to add — nothing runs half-configured. Read-only protection stays on when the missing tools allow it; prompts requiring write-capable toolsets explain the conflict rather than silently changing configuration. Prompts are instructions for the agent, not server-enforced workflow locks.


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
Toast branding (default off, saved)Settings → Toast → Show branding—showBranding
Toast idle duration (default 20 s)Settings → Toast → Idle duration—toastIdleSeconds
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
CONTRIBUTING.mdBuild, test, add a tool
CHANGELOG.mdRelease notes

Community contributions

Code, 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).
@PhanCongVuDucPull request #15: the fix that lets send_code run with no model open, the revit_switch_target hint fix, and the revit_open_model proposal, shipped in reworked form in v0.8.1.

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.

See how the gateway names are chosen.


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 an independent open-source project and is not affiliated with, sponsored by, or endorsed by Autodesk, Inc.

安装

TypingMind
{
  "mcpServers": {
    "rvt-mcp": {
      "command": "bimwright-rvt",
      "args": [
        "--target",
        "R23"
      ],
      "env": {
        "TARGET": "<TARGET>"
      }
    }
  }
}

将 Bimwright RVT MCP MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Bimwright RVT MCP 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 Bimwright RVT MCP 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Bimwright RVT MCP MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "rvt-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Bimwright RVT MCP MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Bimwright RVT MCP MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Bimwright RVT MCP 帮我完成这项任务吗?
Bimwright RVT MCP
当然,我看过了。
以下是我使用 Bimwright RVT MCP 得到的结果。

常见问题

Bimwright RVT MCP MCP 服务器有什么用途?

Bimwright RVT MCP 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Bimwright RVT MCP MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Bimwright RVT MCP。

为什么在 TypingMind 中使用 Bimwright RVT MCP MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Bimwright RVT MCP 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Bimwright RVT MCP MCP 连接到 TypingMind?

Bimwright RVT MCP 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Bimwright RVT MCP MCP 在 TypingMind 中提供哪些工具?

Bimwright RVT MCP 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Bimwright RVT MCP MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Bimwright RVT MCP 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇