midas-civil-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@midas-civil-mcp preview the Revit bridge JSON and give me the SHA-256"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cổng MCP an toàn cho MIDAS Civil
Cổng này cho phép mọi MCP client tạo và kiểm tra mô hình MCT cho MIDAS Civil 2022. Bản Civil 2022 không có Open API như CIVIL NX, vì vậy đường tích hợp ổn định là file/MCT Command Shell. Cổng không can thiệp đăng nhập, giấy phép hoặc cơ chế bảo vệ phần mềm.
Cơ chế an toàn
midas_preview_beamchỉ dựng MCT trong bộ nhớ, kiểm tra liên kết node–element–material–section và trả SHA-256.midas_commit_beamchỉ ghi khi AI gửi lại đúng tham số và đúng SHA-256 của bản xem trước.midas_preview_revit_bridgechuyển tệp xương hình học đã xuất từ Revit thành mô hình MIDAS có dầm hộp PSC rỗng, biến chiều cao theo từng mét trong bộ nhớ.midas_commit_revit_bridgechỉ ghi khi cả SHA-256 của dữ liệu Revit và SHA-256 của MCT đều còn khớp.File có sẵn không bị ghi đè nếu chưa cung cấp cả
overwrite=truevà SHA-256 hiện tại của file.Chỉ các lệnh MCT thuộc danh sách an toàn cho mô hình khung được chấp nhận. Không tự chạy phân tích và không đưa kết luận kỹ thuật.
Điều khiển giao diện cũng tách hai bước:
midas_ui_stage_mctchỉ đặt mã vào cửa sổ;midas_ui_run_stagedkiểm tra lại PID, tiêu đề cửa sổ và SHA-256 trước khi bấm Run.
Related MCP server: Creo MCP
Chạy máy chủ
git clone https://github.com/duy232633786-dot/midas-civil-mcp.git
cd midas-civil-mcp
npm install
$env:MIDAS_WORKDIR="$HOME\MIDAS-MCP-Work"
npm startMẫu cấu hình chung cho một MCP client:
{
"midas-civil": {
"command": "C:\\Program Files\\nodejs\\node.exe",
"args": ["C:\\path\\to\\midas-civil-mcp\\server.js"],
"env": {
"MIDAS_EXE": "C:\\Program Files\\MIDAS\\midas Civil\\CVLw.exe",
"MIDAS_WORKDIR": "C:\\path\\to\\MIDAS-MCP-Work"
}
}
}Mỗi ứng dụng AI đặt khối command, args, env vào vị trí cấu hình MCP riêng của ứng dụng đó.
Nạp mô hình vào MIDAS Civil 2022
Với bản xem trước không khai báo mctVersion, dùng quy trình tương thích nhất:
Tạo một mô hình mới, trống trong MIDAS.
Mở Tools > MCT Command Shell.
Dùng
midas_prepare_command_shellđể lấy nội dung đã kiểm tra.Dán nội dung, kiểm tra bằng mắt và bấm Run trong mô hình trống.
AI có thể làm bước 3–4 trực tiếp bằng midas_ui_stage_mct rồi midas_ui_run_staged. Công cụ Run chỉ hoạt động với nội dung vừa được chính máy chủ đặt vào cửa sổ và đòi hỏi xác nhận rằng mô hình đích được phép thay đổi, không có dữ liệu chưa lưu cần giữ. Nếu MIDAS đang mở một mô hình có giá trị, hãy lưu/đóng mô hình đó hoặc mở một phiên được cấp phép riêng trước.
Trong chế độ Command Shell, nội dung không chứa *ENDDATA; lệnh này chỉ được thêm khi có mctVersion và dùng file-import mode. Đây là khác biệt đã được kiểm chứng trực tiếp trên Civil 2022.
Nếu biết chính xác phiên bản MCT tương thích, điền mctVersion khi xem trước; khi đó file có thể dùng cho chế độ import. Không lấy số phiên bản sản phẩm để đoán số phiên bản MCT.
Chuyển cầu Revit sang MIDAS
Chạy
scripts/ExportRevitBridgeSkeleton.csxqua Revit MCP để đọc family, transform và các điểm thích ứng. Script chỉ xuất JSON, không sửa cấu kiện Revit.Đặt JSON trong
MIDAS_WORKDIRrồi gọimidas_preview_revit_bridge.Dùng cả
sourceSha256vàsha256nhận được để gọimidas_commit_revit_bridge.Nạp MCT bằng quy trình Stage → Run ở trên trong một mô hình MIDAS trống.
Bộ ánh xạ hiện hỗ trợ dầm hộp PSC rỗng rộng 12 m với chiều cao biến thiên parabol 10,5→3,5 m, chia phần tử 1 m theo bốn cánh hẫng; đồng thời giữ vòm–dàn thích ứng, tháp/trụ, dây văng, mố, đài và cọc. Asphalt, lan can, đèn, vạch sơn và các chi tiết không phục vụ mô hình phân tích được loại bỏ. Vật liệu, liên kết, cáp dự ứng lực, giai đoạn thi công, tải trọng và điều kiện biên vẫn là giả định khởi tạo, bắt buộc kỹ sư cầu kiểm tra trước khi phân tích.
Công cụ MCP
midas_inspect_installation: kiểm tra cài đặt ở chế độ chỉ đọc.midas_preview_beam: xem trước dầm và nhận SHA-256.midas_commit_beam: ghi đúng bản đã xem trước.midas_preview_revit_bridge: xem trước mô hình cầu phân tích từ JSON Revit, không ghi tệp.midas_commit_revit_bridge: ghi đúng MCT cầu đã xem trước với khóa kép nguồn–đầu ra.midas_validate_mct: kiểm tra MCT mà không ghi/chạy.midas_list_files,midas_read_file: xem workspace giới hạn.midas_prepare_command_shell: chuẩn bị nội dung và hướng dẫn nạp.midas_ui_inspect: liệt kê đúng PID và tiêu đề các cửa sổ MIDAS.midas_ui_stage_mct: đặt MCT đã xác minh vào Command Shell nhưng không bấm Run.midas_ui_run_staged: bấm Run sau lần xác nhận riêng và kiểm tra lại đích/nội dung.midas_ui_close_command_shell: đóng Command Shell mà không chạy.midas_open,midas_open_mct: mở MIDAS theo yêu cầu rõ ràng.midas_nx_status: kiểm tra cấu hình REST cho CIVIL NX mà không làm lộ MAPI-Key.
Tài liệu chính thức: MCT Command Shell, MCT Command List, MIDAS API Online Manual.
Các file mô hình, ảnh chụp và báo cáo kiểm chứng chạy thật trên máy của tác giả không được đưa vào repo công khai. Để dựng MCT từ một khung xương Revit: node build-revit-bridge.js <skeleton.json> [output.mct].
Giấy phép
MIT — xem LICENSE. MIDAS Civil là phần mềm thương mại của MIDAS IT; repo này không kèm phần mềm, giấy phép hay dữ liệu của MIDAS và không can thiệp cơ chế bảo vệ bản quyền.
Available Tools
16 toolsmidas_commit_beamA
Write exactly a previously previewed beam MCT file. Requires the matching preview SHA-256; overwrite requires the inspected existing-file SHA-256 too.
Inputs: file (required), expectedSha256 (required), spec, overwrite, +1 more.
midas_commit_revit_bridgeB
Write exactly a previously previewed Revit-to-MIDAS bridge MCT with variable-depth PSC box sections. Requires matching source and MCT hashes; overwrite is separately guarded.
Inputs: file (required), sourceFile (required), expectedSha256 (required), expectedSourceSha256 (required), +2 more.
midas_inspect_installationA
Read-only check of the configured MIDAS Civil executable and whether CVLw.exe is running. Never reads or changes licensing.
Inputs: no named parameters.
midas_list_filesB
List allowed text files in the controlled MIDAS workspace.
Inputs: no named parameters.
midas_nx_statusB
Report whether optional MIDAS CIVIL NX REST settings are present, without revealing the MAPI key or making a network request.
Inputs: no named parameters.
midas_openB
Explicitly launch MIDAS Civil visibly. Does not bypass licensing, login or authentication.
Inputs: no named parameters.
midas_open_mctA
Explicitly launch MIDAS Civil with a validated versioned MCT path. It does not silently execute MCT commands.
Inputs: file (required).
midas_prepare_command_shellB
Validate an MCT file and return its exact content plus visible MIDAS Civil 2022 MCT Command Shell loading steps. Does not paste or run it.
Inputs: file (required).
midas_preview_beamB
Generate and validate a simple supported beam in memory. Does not write files or control MIDAS. Returns the exact SHA-256 required for commit.
Inputs: spec.
midas_preview_revit_bridgeA
Read a controlled Revit bridge-skeleton JSON and generate a MIDAS frame with a one-metre, variable-depth PSC hollow box girder in memory. Does not write or control MIDAS. Returns source and MCT SHA-256 values required for commit.
Inputs: sourceFile (required).
midas_read_fileA
Read one allowed text file from the controlled MIDAS workspace and return its SHA-256.
Inputs: file (required).
midas_ui_close_command_shellAIdempotent
Close the MCT Command Shell without pressing Run, provided its target window still matches the staged record.
Inputs: targetProcessId (required), expectedWindowTitle (required).
midas_ui_inspectARead-onlyIdempotent
Read-only list of visible MIDAS Civil windows and whether MCT Command Shell is open.
Inputs: no named parameters.
midas_ui_run_stagedADestructive
Press Run only for MCT staged by this server, after rechecking process, window title and exact SHA-256. This modifies the open MIDAS model and requires explicit confirmation that no valuable unsaved model will be harmed.
Inputs: expectedSha256 (required), targetProcessId (required), expectedWindowTitle (required), confirmModifyOpenModel (required), +1 more.
midas_ui_stage_mctAIdempotent
Put a validated workspace MCT into the visible MCT Command Shell for an exact CVLw process. Requires the exact file SHA-256 and never presses Run.
Inputs: file (required), expectedSha256 (required), targetProcessId (required).
midas_validate_mctB
Fail-closed validation of MCT text using a safe beam-frame command subset. Does not write or execute anything.
Inputs: content (required), requireVersion, commandShellMode.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool targets a distinct resource and step in the workflow: launch (midas_open), inspect (installation/windows/NX settings), preview vs commit pairs, and UI stage/run/close. The main risk is midas_prepare_command_shell vs midas_ui_stage_mct, which both involve loading MCT into the Command Shell, though the 'return content and steps' vs 'put into visible shell' distinction is spelled out. The three inspect-style tools (inspect_installation, ui_inspect, nx_status) are separable but a careless agent could pick the wrong one.
All names use a predictable midas_<verb>_<noun> snake_case pattern, with clear namespace sub-prefixes for UI (midas_ui_*) and workflow pairs (preview_*/commit_*). Minor deviations exist, such as bare midas_open alongside midas_open_mct, and midas_nx_status where the verb is implicit rather than the leading token. Nothing approaches chaotic mixing of conventions.
16 tools is slightly above the comfortable range but each maps to a concrete, non-redundant step in a hash-guarded workflow (launch, inspect, preview, commit, validate, file read/list, UI control). The preview/commit duplication across two domains (beam, Revit bridge) inflates the count but is justified by differing input contracts.
The surface covers generation, validation, hashing, committing, launching, and UI execution, but the lifecycle has a visible dead end: after midas_ui_run_staged there is no tool to read back or extract analysis results from the model. Also missing are general workspace write/delete beyond the two commit tools, closing/quitting MIDAS, and opening an existing model file. These are notable gaps for an automation workflow, though agents can partially work around them via commit tools.
Maintenance
Related MCP Connectors
Build, check and report on MIDAS CIVIL NX bridge models and design tendons, with MIDAS IT plugins.
Read and edit the Revit 2024–2027 model on your PC. Needs the free Revit MCP add-in.
Physics-based validation of simulation results: receipts with per-check verdicts, via MCP.
Global CAD/BIM, industrial engineering (FEM, CFD) and property tools via one MCP endpoint.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI assistants to interact with bridge structural analysis software for modeling, construction stages, and code checking.1523 PyPI1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to inspect, measure, modify, import/export, and safely save CAD models through PTC's official VB API/COM bridge, including planning and validation for packaging and clearance workflows. Write operations are separated from read-only inspection with explicit confirmations, structured outputs, and audit logging.MIT
- AlicenseNot gradedqualityCmaintenanceEnables users to automate local FlexSim modeling through DSH's MCP client bridge: open models, execute verified UTF-8 scripts, inspect diagnostics and exported CSV data, and save models safely with overwrite protection and backups.MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to inspect models open in MIDAS Gen NX or MIDAS Civil NX, query tables and analysis results, capture window views, and preview then confirm limited model changes such as writing records or running analysis.16131 PyPIMIT