MIDAS Gen NX / Civil NX
v0.3.6Read and carefully change the model open in MIDAS Gen NX or Civil NX on this PC.
A local MCP server that lets Claude (and other MCP clients) read the model open in MIDAS Gen NX or MIDAS Civil NX, and change it only through steps you see and confirm first. Built on the midas-nx SDK. Built by a MIDAS IT team member as a personal project; not an official MIDAS IT product. 사용 설명서 (한국어): docs/user_guide_ko.md · 소개 페이지: · AI용 요약: llms.txt
Summary extracted from the README.
midas-nx-mcp
A local MCP server that lets Claude (and other
MCP clients) read the model open in MIDAS Gen NX or MIDAS Civil NX, and
change it only through steps you see and confirm first. Built on the
midas-nx SDK.
Built by a MIDAS IT team member as a personal project; not an official MIDAS IT product.
Status: alpha. Verified live on Gen NX 2026 and Civil NX 2026 on small test models (see
PLAN.md); not yet used on large production models.
사용 설명서 (한국어): docs/user_guide_ko.md
· 소개 페이지: https://mcp.midasapi.space/
· AI용 요약: llms.txt
What you can ask
- "Summarise the Gen model." - node, element, material, section, load case counts
- "Show the DL reactions." - result tables after an analysis
- "Show me the model." - a picture of the NX window
- "Show the DL moment diagram.", "Show the WX deformed shape." - NX draws the result, you get the picture
- "Check the story drift." - ready-made checks in the client's prompt menu (reactions, story drift, model review)
- "Generate the KDS concrete load combinations." - previewed, applied only after you agree
- "Which design code is set?" - design parameter tables
- "Add a node at (4, 3, 0)", "Run the analysis" - previewed, applied only after you agree
Requirements
- Windows, with Gen NX or Civil NX running on the same PC and its Open API connected (Apps > API Settings)
- A MAPI key per product (Apps > API Settings in each program). Keys differ between Gen and Civil, and a wrong key still reports "connected", so do not swap them.
- uv (installs Python and the server for you); not needed for the Claude Desktop bundle below
Install
Claude Desktop - one click
Download midas-nx-mcp-<version>.mcpb from the
latest release
and open it (or drag it onto Settings > Extensions). Claude Desktop installs
Python and the server itself, and asks for your Gen and Civil keys; leave the
one you do not use empty. Change them later under Settings > Extensions.
Claude Desktop - by hand
Settings > Developer > Edit Config (not "Add custom connector": that is for remote servers) and add:
{
"mcpServers": {
"midas-nx": {
"command": "uvx",
"args": ["midas-nx-mcp"],
"env": {
"MIDAS_MAPI_KEY_GEN": "your Gen NX key",
"MIDAS_MAPI_KEY_CIVIL": "your Civil NX key"
}
}
}
}
Quit Claude Desktop completely (tray icon too) and start it again. Settings >
Developer should show midas-nx as running.
Claude Code
claude mcp add midas-nx -e MIDAS_MAPI_KEY_GEN=your-gen-key -- uvx midas-nx-mcp
Gemini CLI
Add the same mcpServers entry as for Claude Desktop to
%USERPROFILE%\.gemini\settings.json. Then run gemini in the folder you
work in and trust it: in an untrusted folder the server stays Disabled.
/mcp shows it connected; the tools appear as mcp_midas-nx_<tool>.
Signing in: a Google AI Pro or Ultra subscription, or a company Gemini Code
Assist Standard or Enterprise account, uses Login with Google. A free personal
account is refused there (IneligibleTierError); use an API key from Google
AI Studio as GEMINI_API_KEY and choose "Gemini API Key" as the sign-in method.
Other clients (Codex, ...)
Add a STDIO server with command uvx, argument midas-nx-mcp, and the
environment variables below.
Settings
| variable | default | meaning |
|---|---|---|
MIDAS_MAPI_KEY_GEN |
- | Gen NX key. Needed for product="gen" |
MIDAS_MAPI_KEY_CIVIL |
- | Civil NX key. Needed for product="civil" |
MIDAS_TIMEOUT |
20 |
seconds per call. Short on purpose: a dialog in NX blocks the API |
MIDAS_ANALYSIS_TIMEOUT |
300 |
seconds for run_analysis only |
MIDAS_SAVE_TIMEOUT |
120 |
seconds for save_copy only |
MIDAS_MAX_ROWS |
200 |
most rows one call returns; the rest are counted, not sent |
MIDAS_OUTPUT_DIR |
C:/temp |
where NX writes captures. Must exist |
Tools
Reading (nothing in the model changes):
| tool | what it returns |
|---|---|
check_connection(product) |
connected or not, program name |
list_tables(product?, search?) |
the /db and /DESIGN tables midas-nx knows |
describe_table(product, table) |
NX's own field schema for a /db table |
read_table(product, table, ids?, limit?) |
records, capped at MIDAS_MAX_ROWS |
model_summary(product) |
counts of the main tables, and the unit system |
read_model_info(product, what) |
project status, section properties, story check parameters, current selection |
list_result_tables(search?, category?) |
the result table types result_table accepts, as model / analysis / story / design, each with what NX needs first |
result_table(product, table_type, load_cases?, components?, keys?, limit?) |
one result table; nothing exported |
capture_view(product, width?, height?) |
the NX window as a PNG |
show_result(product, result, load_case, component?, show_values?, deform_scale?) |
has NX draw reactions, displacement, deformed shape, beam diagram or plate forces for a load case or combination, and returns the picture. Changes what the NX window shows, not the model |
Changing - each is called twice: first a preview with a confirm_token, then
the same call with that token. It applies only if nothing changed in between,
and reads the table back afterwards:
| tool | what it does |
|---|---|
run_analysis(product) |
runs the analysis. NX saves the open file first; a never-saved document is refused. A dialog NX opens meanwhile is reported at once |
save_copy(product) |
Save As to a generated name in MIDAS_OUTPUT_DIR; NX then works on the copy and the original stays as last saved. Gives a new document a file |
write_records(product, table, records, mode) |
creates or updates up to 50 /db or /DESIGN records; a record naming one that does not exist (an element's material, section, thickness or nodes, a load's load case or group, ...) is refused; the preview says when NX picks the new ids itself |
delete_records(product, table, ids) |
deletes up to 50 records by id; nodes, materials, sections and thicknesses still used by elements are refused; the preview names what NX deletes along with them (a load case's loads, a node's nodal loads, supports and masses, an element's beam loads, end releases and pressure loads); a load record (BMLD, CNLD, PRES) goes whole, with every load case in it, and the preview names them; to take out one case, delete the record and create it with the entries to keep in one apply_operations; a /DESIGN record NX resets instead of removing is reported as such |
apply_operations(product, operations) |
several creates, updates and deletes across tables under one preview and one token, e.g. the materials, sections, nodes, elements, load cases and loads of a small model; run in midas-nx's dependency order and checked as a whole first (a record an earlier step creates counts as existing); applied step by step with a read-back, stopping at the first failure with what is done, what failed and what did not run (nothing is rolled back), and in deleted_rows any record deleted to be written again and not yet written, the only copy of what it held; at most 20 operations and 200 records |
generate_load_combinations(product, kind) |
Gen only: NX adds its KDS concrete, steel or SRC combinations from the load cases; the existing ones stay |
Any write discards the analysis results in NX (even one that stores the same value); run the analysis again before reading results.
Prompts: check_reactions, check_story_drift, review_model - fixed review steps that use the read tools only.
Never exposed: new/open/import document, emptying a table.
Development
git clone https://github.com/Dennis5882/midas-nx-mcp
cd midas-nx-mcp
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[dev]"
copy .env.example .env # a checkout reads its .env; an installed package does not
pytest
ruff check src tests scripts
npx @modelcontextprotocol/inspector .venv\Scripts\python.exe -m midas_nx_mcp.server
AGENTS.md holds the safety rules every tool follows, and PLAN.md what has
been verified live and what is open.
Contact
Bugs and ideas for this server go to GitHub Issues; questions about the products, licensing or the Open API service itself go to MIDAS IT's official support channels. For anything else, the author is Dennis: sjj0507@midasit.com or LinkedIn.
License
MIT