vn-revit-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| VN_REVIT_MCP_REVIT | No | Năm bản Revit cần dùng khi đang mở nhiều Revit, ví dụ 2025 (lỗi `ambiguous_revit`). | |
| VN_REVIT_MCP_PYREVIT | No | Đường dẫn tới pyrevit.exe, dùng khi lệnh `pyrevit` không có trong PATH (lỗi `cli_not_found`). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
vn-revit-mcp đọc mô hình Revit đang mở qua pyRevit (agent runtime) và trả số liệu đã đổi sang mét.
Quy tắc:
Gọi kiem_tra_ket_noi trước. Không có Revit nào thì hướng dẫn người dùng theo 'goi_y'.
Số liệu lấy từ mô hình Revit, chưa phải bản vẽ phát hành. Khi báo cáo, ghi rõ nguồn là mô hình Revit.
Không tự điền đơn giá, hao hụt. Chỗ thiếu ghi [Chờ bổ sung].
dat_tham_so sửa mô hình: mặc định chỉ chạy thử (dry_run). Chỉ chạy thật khi người dùng đồng ý rõ ràng; khi đó Revit còn hiện hộp duyệt Giữ/Hủy để người dùng quyết định.
Mọi công cụ nhận tham số tùy chọn 'revit' (năm, ví dụ "2025", hoặc số process) khi mở nhiều Revit.
Vẽ, dựng mô hình (tường, sàn, cửa...): vn-revit-mcp không vẽ. Dùng MCP của pyRevit (run_modify) theo skill ve-revit, rồi quay lại đây kiểm khối lượng.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| kiem_tra_ket_noiA | Kiểm tra pyRevit và các phiên Revit đang chạy agent host. Gọi đầu tiên. |
| thong_tin_du_anD | Tên mô hình, phiên bản Revit, danh sách tầng (cao độ m), view đang mở, phase. |
| dem_theo_hang_mucC | Đếm số phần tử mô hình theo từng hạng mục (category). |
| thong_ke_cuaA | Thống kê cửa đi, cửa sổ theo family, loại, kích thước (mm) và tầng. chi_tiet=True trả thêm từng cửa (id, tầng, cao bệ, ký hiệu). |
| thong_ke_phongB | Danh sách phòng: số, tên, tầng, diện tích (m2), chu vi (m); tổng theo tầng; phòng lỗi. |
| khoi_luong_tuongB | Khối lượng tường theo loại và tầng: chiều dài (m), diện tích (m2), thể tích (m3), độ dày (mm). |
| khoi_luong_sanB | Khối lượng sàn theo loại và tầng: diện tích (m2), thể tích (m3), độ dày (mm). |
| khoi_luong_ket_cauB | Thể tích (m3) cột, dầm, móng kết cấu theo vật liệu và loại. |
| kiem_tra_tham_soB | Tìm phần tử của một hạng mục chưa có hoặc để trống một tham số. hang_muc: tên BuiltInCategory (OST_Doors) hoặc tên quen dùng (cua, tuong, phong, cot, dam...). tham_so: tên tham số đúng như trong Revit, ví dụ "Mark" hoặc "Comments". |
| xuat_excel_khoi_luongA | Xuất bảng khối lượng (tường, sàn, kết cấu, cửa, phòng) ra file Excel. thu_muc: thư mục tuyệt đối để lưu; bỏ trống thì lưu vào Documents\vn-revit-mcp. File đánh số NN_ và không bao giờ ghi đè. Hao hụt và mã hiệu để trống cho kỹ sư điền. Chỉ đọc mô hình, không sửa gì trong Revit. |
| dat_tham_soA | Gán giá trị cho một tham số trên tối đa 200 phần tử. chay_thu=True (mặc định): chỉ xem trước, mô hình được hoàn tác. chay_thu=False: sửa thật; Revit hiện hộp duyệt, người dùng bấm Giữ hoặc Hủy. Tham số độ dài, diện tích nhận giá trị theo đơn vị hiển thị của dự án (ví dụ "2500" mm). Chỉ dùng chay_thu=False khi người dùng đã đồng ý rõ ràng. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Each tool has a recognizable target: connection check, project info, room stats, wall/floor/structure quantities, door-window stats, parameter audit, export, and parameter write. The main overlap is dem_theo_hang_muc (generic per-category counting) versus the specialized thong_ke_cua / thong_ke_phong / khoi_luong_* tools, which also report counts, so an agent may hesitate on which to use for e.g. doors.
All names are consistently snake_case Vietnamese, but the pattern mixes verb-first (thong_ke_cua, kiem_tra_ket_noi, dem_theo_hang_muc, dat_tham_so, xuat_excel_khoi_luong) with noun-phrase names (thong_tin_du_an, khoi_luong_tuong, khoi_luong_san). Still predictable and readable, with khoi_luong_* forming a clear family.
11 tools is a well-scoped set for a Revit quantity-takeoff server, with one connection check, several domain-specific measurement tools, one audit, one export, and one guarded write. No tool looks redundant padding.
Coverage of the takeoff workflow is strong: connection, project context, counts, rooms, walls, floors, structure, openings, parameter auditing, Excel export, and a dry-run-guarded parameter write. Minor gaps exist — no generic element listing/details beyond counts, and no way to query other categories (e.g. ceilings, roofing) or export formats besides Excel — but core workflows are closed.