
demolinator/revit-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
PyRevitによるAutodesk Revit 2024/2025/2026/2027用のMCPサーバー — 設計、編集、解析、衝突検知、MEP、インターループ、ドキュメント、モデルの永続性のための48ツール
概要
PyRevitによるAutodesk Revit 2024/2025/2026/2027用のMCPサーバー — 設計、編集、解析、衝突検知、MEP、インターロップ、ドキュメント、モデルの永続性のための48ツール。 MCP クライアントと連携: Claude デスクトップ、Claude コード、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 admin signed.exe) 3. インストーラーを実行 — すべてのデフォルトを受け入れ、各画面 4 をクリックします。 オープン(または再起動) Revit — リボンのタブがトップ5に表示されます。 pyRevit タブで、(歯車アイコン)6をクリックします。 [設定]ウィンドウで、左7のセクションに移動します。 箱を8に点検して下さい.
概要(AI 翻訳)
PyRevitによるAutodesk Revit 2024/2025/2026/2027用のMCPサーバー — 設計、編集、解析、衝突検知、MEP、インターロップ、ドキュメント、モデルの永続性のための48ツール。
MCP クライアントと連携: Claude デスクトップ、Claude コード、Cursor、Windsurf、Copilot、その他の MCP 互換アプリケーション。
使い方
MCP サーバーはマシン上で実行され、pyRevit のルート API を介して Revit と通信します。 MCP互換のAIクライアントが接続できます。
前提条件
| 条件 | 詳細情報 | お問い合わせ |Windows 10/11 | Windows専用 | | ※Autodesk Revit** | 2024年 2025年 2026年 2027年 | |pyRevit | Revitにインストール・読み込み | |uv | Pythonパッケージマネージャ(インストール) | |Revitでプロジェクトがオープン | ツールはアクティブなドキュメントが必要です |
pyRevit をインストール (インストールされていない場合)
pyRevit は、Revit 内でスクリプトを実行できる無料のアドオンです。 このMCPサーバーはRevitと通信する必要があります。
- [https://github.com/pyrevitlabs/pyRevit/releasesに移動
- 最新の**.exeインストーラーをダウンロード**(例[
pyRevit_CLI_x.x.x.x_admin_signed.exe]) - インストーラーを実行 — すべてのデフォルトを受け付け、各画面でNextをクリックします。
このページは 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 MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"revit": {
"command": "uv",
"args": ["run", "--directory", "C:\path\to\revit-mcp-server", "main.py"]
}
}
}