
zedmoster/revit-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
zedmoster/revit-mcp は [https://github.com/zedmoster/revit-mcp.] からインポートされた MCP サーバー候補です
概要
zedmoster/revit-mcp は [https://github.com/zedmoster/revit-mcp.] からインポートされた MCP サーバー候補です
概要(AI 翻訳)
日本語 | 文言
xml. Revit.MCP は、モデルコンテキストプロトコル(MCP)を介して Autodesk Revit と統合するための包括的な一連のツールを提供します。 このライブラリは、AI アシスタントと Revit 間でブリッジとして機能し、強力なオートメーション機能とビルドモデルとのプログラム的な相互作用を可能にします。
主な特長
ツールライブラリには、Revit の自動化とインタラクションの多くの機能が含まれています。
基本操作:
- Revitプラグインから利用可能なコマンドを入手
- Revit で指定されたコマンドを実行する
- パラメータで特定のRevit関数を呼び出す
- ビューデータと選択した要素の取得
要素管理:
- カテゴリで要素を探す
- 要素パラメータと場所を取得する
- 要素パラメータを更新する
- 要素の削除
- 現在のビューで表示/ハイライト要素
- 要素を新しい位置に移動する
作成用具:
- レベル/フロアを作成する
- フロアプランビューを作成する
- グリッドラインを作成する
- 壁や床を作る
- 部屋と部屋のタグを作成する
- ドアおよび窓を作成して下さい
- MEPの要素(管、管、ケーブルの皿)を作成して下さい
- 家族のインスタンスを作成する
- リンクDWGファイル
- シートを作成する
インストール要件
- xml.Revit:バージョン1.3.4.3以降 -Python: 3.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
xml.Revit.MCP Tools Overview
xml.Revit.MCP provides a comprehensive set of tools for integrating with Autodesk Revit through the Model Context Protocol (MCP). This library serves as a bridge between AI assistants and Revit, enabling powerful automation capabilities and programmatic interaction with building models.
Key Features
The tool library includes numerous functions for Revit automation and interaction:
Basic Operations:
- Get available commands from Revit plugin
- Execute specified commands in Revit
- Call specific Revit functions with parameters
- Retrieve view data and selected elements
Element Management:
- Find elements by category
- Get element parameters and locations
- Update element parameters
- Delete elements
- Show/highlight elements in current view
- Move elements to new positions
Creation Tools:
- Create levels/floors
- Create floor plan views
- Create grid lines
- Create walls and floors
- Create rooms and room tags
- Create doors and windows
- Create MEP elements (ducts, pipes, cable trays)
- Create family instances
- Link DWG files
- Create sheets
Installation Requirements
- xml.Revit: Version 1.3.4.3 or newer
- Python: 3.10 or newer
- UV Package Manager: Required for installation
- Revit: Compatible with versions 2019-2024 (with plugin)
Installation Process
-
First, install the UV package manager:
pip install uv -
Install the revit-mcp package:
pip install revit-mcp -
Test the installation:
uvx revit-mcpYou should see:
RevitMCPServer - INFO - Successfully connected to Revit on startup
Integration with AI Assistants
Claude for Desktop
Edit claude_desktop_config.json to include:
Cursor
Edit mcp.json to include:
Cline
Edit cline_mcp_setting.json to include:
{
"mcpServers": {
"RevitMCPServer": {
"disabled": false,
"timeout": 30,
"command": "uvx",
"args": ["revit-mcp"],
"transportType": "stdio",
"autoApprove": [
"active_view",
"call_func",
"create_cable_trays",
"create_door_windows",
"create_ducts",
"create_family_instances",
"create_floors",
"create_floor_plan_views",
"create_grids",
"create_levels",
"create_pipes",
"create_room_separation_lines",
"create_room_tags",
"create_rooms",
"create_sheets",
"create_walls",
"delete_elements",
"execute_commands",
"find_elements",
"get_commands",
"get_locations",
"get_selected_elements",
"get_view_data",
"link_dwg_and_activate_view",
"move_elements",
"parameter_elements",
"show_elements",
"update_elements"
]
}
}
}
Extending Functionality
インストール
uvx revit-mcp設定
{
"mcpServers": {
"RevitMCPServer": {
"disabled": false,
"timeout": 30,
"command": "uvx",
"args": ["revit-mcp"],
"transportType": "stdio",
"autoApprove": [
"active_view",
"call_func",
"create_cable_trays",
"create_door_windows",
"create_ducts",
"create_family_instances",
"create_floors",
"create_floor_plan_views",
"create_grids",
"create_levels",
"create_pipes",
"create_room_separation_lines",
"create_room_tags",
"create_rooms",
"create_sheets",
"create_walls",
"delete_elements",
"execute_commands",
"find_elements",
"get_commands",
"get_locations",
"get_selected_elements",
"get_view_data",
"link_dwg_and_activate_view",
"move_elements",
"parameter_elements",
"show_elements",
"update_elements"
]
}
}
}