
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 函数
- 检索视图数据和选定元素
元素管理:
- 按范畴求元素
- 获取元素参数和位置
- 更新元素参数
- 删除元素
- 当前视图中的显示/高亮元素
- 将元素移动到新位置
创建工具:
- 创建关卡/楼层
- 创建楼层平面视图
- 创建网格线
- 创建墙壁和地板
- 创建房间和房间标签
- 制作门窗
- 创建机电元件(管道、管道、电缆托架)
- 创建家庭实例
- 链接 DWG 文件
- 创建表格
安装要求
- xml.Revit:版本 1.3.4.3 或更新版本
- 派森: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"
]
}
}
}