ntop-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NTOP_CL_PATH | No | Path to ntopcl.exe. Optional if ntopcl.exe is already in PATH, D:\NTOP, or C:\Program Files\nTopology\nTopology. | |
| NTOP_WORKDIR | No | Path to your nTop projects working directory. | |
| NTOP_GUI_PATH | No | Path to ntop.exe. Optional if ntop.exe is already in PATH, D:\NTOP, or C:\Program Files\nTopology\nTopology. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
MCP server for nTop (nTopology): inspect and edit .ntop notebook block graphs directly, generate JSON templates, run nTop Automate (ntopcl) headlessly (sync/async), execute batch parameter sweeps, and analyze exported STL/OBJ/3MF meshes and CSV/JSON tables.
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
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| check_ntop_environmentA | Check nTop installation (ntopcl/ntop GUI), version, working directory, and active jobs. |
| set_workdirA | Set the default working directory for resolving relative .ntop and export paths. Args: path: Directory path to set as working directory (created if it does not exist). |
| list_ntop_filesB | List .ntop notebooks and related CAD/mesh/data files in a directory. Args: directory: Target directory (defaults to current workdir). recursive: If True, search subdirectories recursively. |
| open_in_ntop_guiA | Launch or safely reload an .ntop notebook in the desktop nTop GUI with duplicate-window and unsaved-change protection. Args: notebook_path: Path to the .ntop file. prevent_duplicate: If True (default), refuse to open a second window if this file is already open in ntop.exe. reload_if_open: If True, safely close existing ntop.exe window(s) for this file (after checking Autosave) and reopen cleanly. force_if_unsaved: Only used with reload_if_open=True; bypasses the Autosave unsaved-change guard. |
| inspect_notebookA | Inspect an .ntop file's metadata, nTop version, sections, inputs, output block, and sub-functions. Reads the .ntop binary container directly without starting ntopcl (instant). Args: notebook_path: Path to the .ntop notebook. |
| list_notebook_variablesC | List all promoted variables (core.var<...>) in an .ntop notebook with their IDs, types, units, and values. Args: notebook_path: Path to the .ntop notebook. |
| read_notebook_graphA | Read the block graph (IDs, functions, input wiring, literal values) of an .ntop notebook. Args: notebook_path: Path to the .ntop notebook. filter_text: Optional substring filter matched against block ID, name, function, type, or section. section_name: Optional notebook section name filter (case-insensitive substring). variables_only: If True, return only promoted variable blocks (core.var<...>). include_leaves: If True, also include raw anonymous leaf blocks (func == ""). limit: Maximum number of blocks to return (default 150). |
| validate_notebook_graphB | Validate an .ntop notebook's block graph for dangling inputs, duplicate IDs, and Automate readiness. Args: notebook_path: Path to the .ntop notebook. |
| set_notebook_literalB | Update a literal value (scalar/real, integer, bool, enum, vector/point, text) inside an .ntop file. Supports human-friendly unit strings for |
| set_notebook_outputA | Assign the notebook's Output block so Args: notebook_path: Source .ntop file path. target: Block ID or unique block name to designate as the notebook output. output_path: Optional destination .ntop file path. overwrite: If True and output_path is omitted, overwrite notebook_path in place (with timestamped snapshot). |
| rewire_block_inputA | Rewire an input slot of a block to another block ID and/or update its expression string. Args: notebook_path: Source .ntop file path. block_target: Block ID or unique block name to edit. input_index: 0-based index into the block's inputs array. new_instance_id: New source block ID to connect (or -1 to disconnect). expression: Optional expression string for this input slot. output_path: Optional destination .ntop file path. overwrite: If True and output_path is omitted, overwrite notebook_path in place (with timestamped snapshot). |
| prune_notebook_graphB | Prune blocks unreachable from the notebook output block and save to a new .ntop file. Args: notebook_path: Source .ntop file path. output_path: Destination .ntop file path for the pruned notebook. output_target: Optional block ID or name to set as output before pruning. |
| add_notebook_sectionC | Add a new named Section to an existing .ntop notebook. |
| add_notebook_literalC | Add a new literal leaf block ( Supports human-friendly unit strings for |
| add_notebook_blockC | Add a new compute block to an existing .ntop notebook and wire its inputs. |
| add_notebook_variableC | Add a promoted top-level variable ( |
| batch_edit_notebookA | Atomically apply multiple graph edits (with All operations run in memory first; the file is only saved if graph validation passes
(and if Supported |
| set_block_visibilityC | Control viewport visibility, solo mode, color ( |
| package_custom_blockA | Package a notebook branch into a standalone reusable Custom Block When Args:
notebook_path: Source |
| promote_to_inputB | Promote an existing notebook variable ( Enables passing parameter values via |
| list_notebook_snapshotsB | List timestamped backup snapshots saved in |
| undo_notebook_editB | Restore an .ntop notebook from its latest (or named) snapshot in Saves the current state as a |
| generate_templatesB | Run Args: notebook_path: Path to the .ntop notebook. output_dir: Optional directory to persist the generated JSON templates (uses a temp dir if omitted). timeout_seconds: Optional timeout override in seconds. |
| run_notebookA | Execute an .ntop notebook headlessly via nTop Automate ( Args:
notebook_path: Path to the .ntop notebook.
inputs: Either full nTop JSON schema ( |
| run_notebook_asyncB | Submit a long-running nTop Automate ( Monitor progress with |
| get_job_statusA | Get status, elapsed time, parsed logs, and output of a background ntopcl job. Args:
job_id: The job identifier returned by |
| list_jobsA | List all submitted background ntopcl jobs and their current states. |
| cancel_jobC | Cancel/terminate a currently running background ntopcl job. |
| run_parameter_sweepA | Run a batch DOE / parameter sweep across multiple input sets using Provide EITHER Args:
notebook_path: Path to the .ntop notebook.
parameter_sets: Explicit list of parameter dictionaries, one per run.
parameter_grid: Cartesian grid dictionary of parameter value lists.
output_dir: Directory to store |
| evaluate_blockA | Non-invasively evaluate any block (scalar, implicit body, plane, etc.) via Runs on an isolated temporary copy so your original |
| export_block_meshA | Non-invasively mesh an implicit/mesh block and export to Never modifies your Args:
notebook_path: Path to the source |
| build_block_catalogA | Scan a directory of Args:
directory: Folder containing |
| search_blocksA | Search verified nTop block signatures (function names, output types, input slots) across built-in & local catalog. Args:
query: Keyword substring (e.g. |
| analyze_meshA | Analyze an exported STL (binary/ASCII), OBJ, or 3MF mesh file. Returns triangle/vertex counts, bounding box, surface area, signed/absolute volume, and topology checks (open boundary edges, non-manifold edges, watertightness). Args:
mesh_path: Path to a |
| read_export_tableA | Read and summarize an exported CSV, TSV, or JSON table produced by nTop. Args:
file_path: Path to |
| get_ntop_guideA | Retrieve built-in nTop Automate and MCP workflow documentation. Args:
topic: One of |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| resource_environment | Current nTop environment status as a JSON resource. |
TDQS
Scored across 36 tools
Most tools target clearly distinct operations (inspect vs edit vs execute vs mesh-analyze vs catalog). The main overlap is that batch_edit_notebook subsumes single-op tools like set_notebook_literal, add_notebook_block, rewire_block_input, and set_notebook_output, which could cause an agent to hesitate between the atomic and batch variants. Descriptions generally clarify the boundary, so confusion is minor.
Nearly all tools use snake_case with a verb_noun or verb_object pattern (read_notebook_graph, set_notebook_literal, run_notebook, analyze_mesh). A few deviations exist, like promote_to_input and open_in_ntop_gui, which use prepositions/less standard phrasing. Overall the pattern is predictable and readable.
36 tools is heavy, above the comfortable range, but the domain genuinely spans notebook editing, GUI control, headless execution, async jobs, parameter sweeps, mesh export, and block cataloging. The set is organized into coherent clusters rather than being padded, though a few editing tools could be consolidated.
The surface covers reading, editing, validating, executing, sweeping, exporting, and analyzing notebooks and meshes thoroughly. The main gap is the absence of delete/remove operations for blocks, sections, and variables, plus no explicit cleanup for snapshots, but these are minor workarounds rather than dead ends.