
Revit MCP
io.github.shuotao由 GitHub 帳號 shuotao 發布v1.6.0更新於 Oct 25, 2026
MCP Server for Revit integration - AI-Powered Revit Control
概覽
本機 MCP 橋接服務,讓 AI 用戶端透過 239 個 BIM 工具操控 Autodesk Revit,並將呼叫轉送給 Revit 增益集。
- 可以做什麼
- 以自然語言完成 Revit 建模與出圖工作,例如為視圖中的牆標註尺寸、檢查帷幕牆高程
- 套用建築法規、數量估算與合規檢查等 BIM 標準作業流程
- 偵測衝突,並在支援 MCP Apps 的宿主中顯示可互動的衝突審查面板
- 在工作階段中查詢目前的 Revit 視圖、樓層、選取集與文件狀態
- 適用情境
- 適合在 Windows 上使用 Revit 2022-2026 的 BIM 工程師與建築師,希望在現有 AI 用戶端內完成依標準的建模、出圖與合規工作流程。
- 執行需求
- Windows 10 或更新版本並安裝 Autodesk Revit 2022-2026;建置 C# 增益集需要 .NET Framework 4.8(Revit 2022-2024)或 .NET 8(Revit 2025-2026);npm 的 stdio 橋接需要 Node.js LTS,建議 20.x 以上。增益集須另行建置並部署,Revit 需執行並在功能區啟用 MCP 服務,橋接連線本機 8964 連接埠。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Revit MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Revit MCP - AI-Powered Revit Control
English | 繁體中文
Revit MCP lets AI clients call Autodesk Revit tools through the Model Context Protocol (MCP). The MCP server forwards tool calls to a local Revit add-in, and the add-in executes the corresponding Revit API workflow.
- Demo video: Revit MCP - AI-Powered BIM Workflow Demonstration
- Knowledge site: https://shuotao.github.io/REVIT_MCP_study/
- Default WebSocket port:
8964
What is this?
Talk to Revit in plain language. Ask your AI client to "dimension every wall on this view" or "check the curtain-wall elevations", and Revit does it — through 239 MCP tools backed by 90 professional BIM SOPs (building code, quantity take-off, compliance checks).
Who it's for: BIM engineers and architects who use Revit and want AI-assisted, standards-based workflows. You'll need Revit (2022–2026) on Windows and to be comfortable installing an add-in.
Quickstart (3 steps)
- Install the Revit add-in. Build and deploy the C# add-in — see Manual Setup. This is the half that actually talks to Revit.
- Point your AI client at the MCP server. No cloning needed — it runs straight from npm:
- Open Revit, enable the MCP service in the ribbon, and start asking. Full setup: AI Client Configuration.
Questions or want to show what you built? → Discussions
Current Project Counts
When these numbers change, update CLAUDE.md, README.zh-TW.md, this file, docs/DOCUMENT_AUDIENCE_INVENTORY.md, and run:
New: Interactive Clash Viewer (MCP Apps)
detect_clashes can now render an interactive clash-review UI inline in the conversation, via the MCP Apps extension (io.modelcontextprotocol/ui). This requires an MCP host that supports the extension. It is purely additive:
- Interactive rendering only happens in GUI hosts that support MCP Apps (Claude Desktop, the claude.ai web app, VS Code GitHub Copilot). A terminal CLI like Claude Code can't render the panel and always shows the text result — this is expected, not a fault.
- Hosts without MCP Apps support keep getting
detect_clashes's normal text result — nothing changes for them. - The stdio connection and the existing Revit add-in are unaffected; no reinstall or reconfiguration is needed.
See docs/MIGRATION_GUIDE.md for the full MCP 2026-07-28 upgrade notes.
Architecture
External AI clients do not need an API key inside this repository. Their account and authorization are managed by the AI client itself. Only an embedded Revit chat feature that directly calls an AI API would need an API key.
Requirements
One-Click Setup
Recommended for new users:
For AI agents or non-interactive setup:
The setup script checks prerequisites, installs dependencies, builds the MCP server, builds and deploys the Revit add-in, and helps configure common AI clients.
Install from MCP Registry
The MCP server is published on the MCP Registry as io.github.shuotao/revit-mcp-server (npm package @shuotao/revit-mcp-server). Run it directly with:
Note: this npm package is only the Node stdio bridge. The C# Revit add-in (MCP/) must still be installed separately — follow Manual Setup below for your Revit version.
Manual Setup
1. Build the MCP Server
AI clients launch:
2. Build the Revit Add-in
Choose the configuration that matches your Revit version:
Expected output:
Example for Revit 2024:
3. Deploy the Add-in
Recommended:
The script copies every DLL in the build output (13 for R22-R24, 8 for R25-R26 — both are correct), checks the build generation matches the target Revit before copying, verifies each file by SHA256 afterwards, and rotates old backups.
For manual deployment, place the .addin file and DLL under the matching Revit Addins directory, and keep the relative assembly path in RevitMCP.addin:
Do not create version-specific .addin files, and do not hardcode absolute DLL paths.
AI Client Configuration
Project-level .mcp.json:
VS Code config in .vscode/mcp.json:
Other AI clients use the same concept: launch MCP-Server/build/index.js with node.
Config template per client:
Replace <YOUR_PROJECT_PATH> in the templates with the actual project path on your machine.
Switching Between AI Clients
The Revit-side WebSocket service holds an exclusive lock: only one AI client can be connected at a time. A second client that tries to connect is cleanly rejected (HTTP 409), not swapped in — the first connection stays stable. Multiple AI clients are therefore used by switching, not concurrently:
Before that lock check even runs, any handshake carrying a browser Origin header is rejected outright with HTTP 403. This closes a separate risk: a malicious page open in your browser could otherwise drive the add-in without your knowledge, since WebSocket handshakes aren't covered by the browser's same-origin policy. It has no settings opt-out and does not affect the MCP bridge, which never sends an Origin header.
- In the Revit ribbon, click the "切換/釋放連線" (Switch/Release Connection) button to release the current connection.
- Start or reconnect the other AI client; once its MCP server connects to
localhost:8964, it takes the lock. - The "MCP 設定" dialog shows which client currently holds the connection (e.g.
claude-code,claude-ai). - If the connection misbehaves, use the same ribbon button, or restart the MCP service from the Revit ribbon to reset it.
Startup Flow
- Start Revit.
- Open or create a Revit project.
- Enable the MCP service from the Revit ribbon.
- Confirm the Revit add-in is listening on
localhost:8964. - Start or restart the AI client so it loads the MCP server.
- Call Revit MCP tools from the AI client.
If localhost:8964 is unreachable, Revit may not be running, the MCP service may be off, the port may be occupied, or the AI client and Revit add-in may be using different port settings.
Project Structure
AI Docs and Human Docs
See docs/DOCUMENT_AUDIENCE_INVENTORY.md.
Domain, Skill, and Tool Responsibilities
domain/*.md: BIM SOPs, regulatory logic, and calculation methods. Shared by humans and AI..claude/skills/*/SKILL.md: AI workflow orchestration.MCP-Server/src/tools/*.ts: MCP tool definitions and input schemas.MCP/Core/Commands/*.cs: Revit API implementation.
If a Domain file and a Skill disagree on method, the Domain file wins.
QA/QC
After documentation, tool, Domain, Skill, build, or deployment changes, run:
Before deployment, run a full check:
QA/QC checks:
- forbidden legacy files and paths
- required file structure
- README / CLAUDE / docs count alignment
- Domain table forward and reverse coverage
- local Markdown link rot
- Domain frontmatter
- document audience classification
- mojibake risk in canonical docs
Troubleshooting
AI cannot find Revit tools
Check:
npm run buildhas been run inMCP-Server.- The AI client's MCP config points to the correct
MCP-Server/build/index.js. - The AI client has been restarted or has reloaded MCP servers.
MCP Server cannot connect to Revit
Check:
- Revit is running.
- The MCP service is enabled in the Revit ribbon.
localhost:8964is not occupied.- If HTTP.sys / PID 4 is holding the port, try:
Revit does not show the MCP Tools panel
Confirm the .addin file and DLL were deployed under the matching %APPDATA%\Autodesk\Revit\Addins\{version} directory, then restart Revit.
Important Rules
- Keep one
MCP/RevitMCP.csproj. - Keep one
MCP/RevitMCP.addin. - Do not create version-specific
.csprojor.addinfiles. - Do not create nested
MCP/MCP/directories. - Do not change
.addin<Assembly>to an absolute path. - Do not convert Domain files to English-only.
- Do not bypass the MCP server with hand-written WebSocket JSON.
- For live Revit view, level, selection, or document state, AI must query live state in the current turn.
Document Navigation
License
MIT License
來源:README.md,提交 93365e7
工具
0版本歷史
1- v1.6.0最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。