
通过pyRevit提供Autodesk Revit 2024/2025/2026/2027的MCP服务器——48个用于建筑设计、编辑、分析、冲突检测、机电处理、互操作、文档和模型持久化的工具
概览
基于 pyRevit 的 Autodesk Revit 2024/2025/2026/2027 MCP 服务器——48 个用于建筑设计、编辑、分析、冲突检测、机电处理、互操作、文档和模型持久化的工具。 支持任何MCP客户端:Claude Desktop、Claude Code、Cursor、Windsurf、Copilot或其他兼容MCP的应用程序。 MCP服务器运行在您的机器上,并通过pyRevit的路由API与Revit通信。任何兼容MCP的AI客户端都可以连接到它。 pyRevit 是一个免费的插件,允许脚本在 Revit 内运行。这个 MCP 服务器需要它来与 Revit 通信。 1. 进入https://github.com/pyrevitlabs/pyRevit/releases 2.下载最新的(例如pyRevit_CLI_x.x.x.x_admin_signed.exe) 3.运行安装程序——接受所有默认设置,点击每个界面 4.打开(或重启)Revit——你应该会看到功能区顶部5个标签页。在pyRevit标签页中,点击(齿轮图标)6。在设置窗口中,进入左侧的部分7。勾选8的选项。
概述(AI 翻译)
基于 pyRevit 的 Autodesk Revit 2024/2025/2026/2027 MCP 服务器——48 个用于建筑设计、编辑、分析、冲突检测、机电处理、互操作、文档和模型持久化的工具。
支持任何MCP客户端:Claude Desktop、Claude Code、Cursor、Windsurf、Copilot或其他兼容MCP的应用程序。
工作原理
MCP服务器运行在您的机器上,并通过pyRevit的路由API与Revit通信。任何兼容MCP的AI客户端都可以连接到它。
先修条件
| 要求 | 详情 |
|---|---|
| Windows 10/11 | Revit 仅支持 Windows |
| Autodesk Revit | 2024、2025、2026 或 2027 |
| pyRevit | 安装并加载于Revit中 |
| uv | Python package manager (install) |
| 一个在Revit中打开的项目 | 工具需要激活文档 |
安装pyRevit(如果还没安装)
pyRevit 是一个免费的插件,允许脚本在 Revit 内运行。这个 MCP 服务器需要它来与 Revit 通信。
- 前往https://github.com/pyrevitlabs/pyRevit/releases
- 下载最新的 .exe 安装程序(例如
pyRevit_CLI_x.x.x.x_admin_signed.exe) - 运行安装程序 — 接受所有默认设置,点击下一步通过每个界面
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Revit MCP Server
MCP server for Autodesk Revit 2024/2025/2026/2027 via pyRevit — 48 tools for building design, editing, analysis, clash detection, MEP, interop, documentation, and model persistence.
Works with any MCP client: Claude Desktop, Claude Code, Cursor, Windsurf, Copilot, or any other MCP-compatible application.
How It Works
AI Client ──stdio/SSE/HTTP──> MCP Server (Python/FastMCP) ──HTTP :48884──> pyRevit Routes ──> Revit API
The MCP server runs on your machine and communicates with Revit through pyRevit’s Routes API. Any MCP-compatible AI client can connect to it.
Prerequisites
| Requirement | Details |
|---|---|
| Windows 10/11 | Revit is Windows-only |
| Autodesk Revit | 2024, 2025, 2026, or 2027 |
| pyRevit | Installed and loaded in Revit |
| uv | Python package manager (install) |
| A project open in Revit | Tools require an active document |
Install pyRevit (if not already installed)
pyRevit is a free add-in that lets scripts run inside Revit. This MCP server needs it to communicate with Revit.
- Go to https://github.com/pyrevitlabs/pyRevit/releases
- Download the latest .exe installer (e.g.
pyRevit_CLI_x.x.x.x_admin_signed.exe) - Run the installer — accept all defaults, click Next through each screen
- Open (or restart) Revit — you should see a pyRevit tab in the ribbon at the top
- In the pyRevit tab, click Settings (gear icon)
- In the Settings window, go to the Routes section on the left
- Check the box to Enable Routes Server
- Click Save Settings and let pyRevit reload
To verify: open a browser and go to http://localhost:48884/ — you should see a response (not a “connection refused” error).
Quick Start
1. Get the code
git clone https://github.com/Demolinator/revit-mcp-server.git
cd revit-mcp-server
uv sync
2. Load the extension into pyRevit
startup.py and revit_mcp/ run inside Revit, so pyRevit has to load this folder as an extension.
Don’t install “MCP Server for Revit Python” from the pyRevit Extensions manager. That entry installs the original upstream project, which lacks most of the 48 routes this server calls.
- Pick a folder for your pyRevit extensions, e.g.
C:\pyRevitExtensions. - Link this repo into it under a name ending in
.extension(a junction keeps it updated whenever yougit pull):
(Copying the folder there with that name works too; you’ll just need to copy it again after updates.)New-Item -ItemType Junction -Path C:\pyRevitExtensions\revit-mcp.extension -Target C:\path\to\revit-mcp-server - In Revit: pyRevit tab → Settings → Custom Extension Directories → add
C:\pyRevitExtensions. - In the same Settings window, under Routes, turn on Routes Server (port
48884). - Save Settings and Reload.
3. Check Revit is answering
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"revit": {
"command": "uv",
"args": ["run", "--directory", "C:\path\to\revit-mcp-server", "main.py"]
}
}
}