Skip to main content
Glama
IC-CAP MCP Server

IC-CAP MCP Server

by Solitario119

IC-CAP MCP Server

IC-CAP MCP Server connects ChatGPT desktop (Codex), Claude Code, ZCode, and other Model Context Protocol clients to Keysight IC-CAP. It provides 128 MCP tools and 15 embedded guides for project automation, measurement, simulation, optimization, and device-model extraction.

The gateway starts automatically with IC-CAP. An external broker isolates MCP dependencies from IC-CAP, reconnects after IC-CAP restarts, reports long-running job progress, captures supported Status-window feedback, and rejects unsafe paths before they reach the proprietary API.

Install in three steps

Requirements: Windows 11 x64, a Keysight IC-CAP installation using Python 3.8 through 3.12, and an MCP client. IC-CAP 2025 with Python 3.12 is the verified configuration; other accepted runtimes are compatibility candidates until they receive live IC-CAP testing.

  1. Download iccap-mcp-server-<version>-windows-x64-setup.exe from GitHub Releases.

  2. Run the installer, confirm the detected IC-CAP Python directory, and choose ChatGPT desktop (Codex), Claude Code CLI, and/or ZCode desktop.

  3. Restart IC-CAP once, then restart the selected MCP client or open a new task.

The installer is fully offline after download. Users do not need to install Python, Git, or pip. If the IC-CAP Python directory is protected, only the small bootstrap command requests administrator approval; the main installer remains per-user.

A standard IC-CAP installation does not require ICCAP_PYTHONHOME; setup searches for its built-in tools\python runtime. If IC-CAP uses a custom Python, select that same directory in setup.

IC-CAP Status should show:

IC-CAP MCP gateway ready: session=... pid=... port=...

For supported versions, client-specific checks, repair, diagnostics, upgrade, uninstall, and source installation, see the Windows installation guide.

Related MCP server: ansys-aedt-mcp

Test the connection

Start a new task in the configured MCP client and ask:

Perform a read-only IC-CAP MCP connection test. Call iccap_sessions_list,
iccap_health, iccap_status_get, and main_get_models. Do not simulate, save,
create, edit, delete, or run a macro. Report the session ID, IC-CAP PID,
gateway health, open models, and current Status warnings/errors.

If more than one IC-CAP process is open, select the intended session with iccap_session_select before reading model data. Gateway authentication tokens stay in the local session registry and are never returned by MCP tools.

What is included

  • Automatic gateway startup with no recurring Macro click.

  • Stdio transport for ChatGPT desktop (Codex), Claude Code, ZCode, and compatible clients.

  • Optional Streamable HTTP on loopback for URL-based clients.

  • Automatic discovery and reconnection after IC-CAP restarts.

  • Explicit session selection for multiple IC-CAP processes.

  • Asynchronous simulation, measurement, transform, Macro, and plot jobs.

  • Incremental Status output and supported optimizer progress.

  • Best-effort modal error-dialog capture and structured failures.

  • Stable validation, non-overwriting defaults, recovery checkpoints, and a redacted operation journal.

The process and failure boundaries are documented in Architecture and failure semantics.

Long-running work

setup_simulate, setup_measure, transform_execute, macro_execute, and plot_display accept run_async=true and return a job_id.

  • iccap_job_get returns state, result, errors, and parsed progress.

  • iccap_job_list lists recent jobs.

  • iccap_job_logs returns incremental Status output.

  • iccap_job_cancel requests IC-CAP Stop Activity when available.

  • iccap_status_get reads the current Status snapshot, including supported optimizer progress started manually in IC-CAP.

Cancellation is confirmed only when Stop Activity is found and invoked. A blocked native IC-CAP call cannot be killed safely by Python.

Safety boundary

  • Existing targets are preserved unless overwrite=true is explicit.

  • Overwrite and delete operations first create a managed Save As No Data checkpoint under %LOCALAPPDATA%\iccap-mcp\checkpoints.

  • A failed checkpoint blocks mutation unless allow_without_checkpoint=true is explicitly accepted.

  • IC-CAP locators must be absolute and are validated before dispatch.

  • Calls are serialized on the IC-CAP UI thread.

  • The redacted journal is stored at %LOCALAPPDATA%\iccap-mcp\operations.jsonl.

These safeguards cannot make proprietary C extensions transactional. A vendor crash, arbitrary Macro, instrument operation, malformed transform, or native deadlock can still block IC-CAP or lose work since the last save. Work on project copies and save verified milestones.

Configuration

Variable

Default

Purpose

ICCAP_PYTHONHOME

unset

Optional custom Python directory used by IC-CAP

ICCAP_MCP_GATEWAY_PORT

0

Gateway port; 0 selects a free loopback port

ICCAP_MCP_TOOL_TIMEOUT

60

Interactive broker wait timeout in seconds

ICCAP_MCP_JOB_TIMEOUT

86400

Long-job gateway deadline in seconds

ICCAP_MCP_WORKSPACE

./iccap_mcp_workspace

Allowed plot/export workspace

ICCAP_MCP_ALLOW_EXTERNAL_FILES

unset

Set 1 to allow MDM files outside the workspace

Do not expose the broker or in-process gateway to an untrusted network.

Development

The packaged installer is recommended for normal use. Contributors can use a separate Python 3.12 environment:

git clone https://github.com/Solitario119/iccap-mcp-server.git
cd iccap-mcp-server
py -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e ".[dev]"
.\.venv\Scripts\python.exe -m pytest -q

Build the offline runtime and installer with:

.\.venv\Scripts\python.exe -m pip install -e ".[installer-build]"
.\scripts\build_runtime.ps1 -Python .\.venv\Scripts\python.exe
.\scripts\build_installer.ps1 -SkipRuntime

Inno Setup 6 is required only to compile the installer. Live verification scripts under scripts/verify_live_*.py require a licensed IC-CAP process; mutation checks require an explicitly confirmed disposable model.

License and trademarks

Released under the MIT License. This independent open-source project is not affiliated with, endorsed by, or sponsored by Keysight Technologies. IC-CAP and Keysight are trademarks of their respective owner.

Available Tools

128 tools
dpar_createA

Create DUT parameters by declaring them in a circuit page: IC-CAP has no direct DPar constructor, so parameters materialize from $dpar(NAME=value) declarations. circuit='model' (default, per IC-CAP docs the declaration appears in every DUT's parameter set) or circuit='dut' (DUT Test Circuit only). Prior declarations of the same name are replaced; after writing, each parameter is verified to exist and initialized to its value. Requires the DUT to exist; verify results with dpar_exists/dpar_get.

Inputs: dut_path (required), parameters (required), circuit.

dpar_existsA

Check if a DUT parameter exists.

Inputs: param_path (required).

dpar_getB

Get a DUT parameter value. Supports same minvalmax options as mpar_get.

Inputs: param_path (required), minvalmax.

dpar_setC

Set a DUT parameter value.

Inputs: value (required), param_path (required), minvalmax.

dut_createB

Create a DUT (Device Under Test) object. Set overwrite=true explicitly to replace an existing DUT.

Inputs: dut_path (required), overwrite, allow_without_checkpoint.

dut_get_dparsA

Get all DUT parameters (DPar) with their values.

Inputs: dut_path (required).

dut_get_dvarsB

Get all DUT variables (DVar) with their values.

Inputs: dut_path (required).

dut_get_setupsA

Get all Setup names under a DUT.

Inputs: dut_path (required).

dvar_createB

Create a DUT variable (DVar). Common uses: DUT-level overrides of SIMULATOR, etc.

Inputs: var_path (required), value.

dvar_getC

Get a DUT variable value.

Inputs: var_path (required).

dvar_setB

Set a DUT variable value. Pass scalar values as strings and arrays as JSON array strings such as '["a","b"]'.

Inputs: value (required), var_path (required).

iccap_error_dialog_getA

Read Error Message dialogs from the selected IC-CAP process and dismiss them by default so modal UI errors do not leave automation blocked.

Inputs: dismiss, timeout_seconds.

iccap_healthB

Check the selected IC-CAP gateway and report its busy/session state plus feedback capabilities.

Inputs: no named parameters.

iccap_job_cancelB

Request IC-CAP Stop Activity for a running job; failure is reported explicitly.

Inputs: job_id (required).

iccap_job_getB

Get the state, result, error, and latest progress of a managed IC-CAP job.

Inputs: job_id (required).

iccap_job_listA

List recent managed IC-CAP jobs, newest first.

Inputs: limit.

iccap_job_logsB

Read incremental IC-CAP status output for a managed job.

Inputs: job_id (required), offset.

iccap_session_selectA

Select the IC-CAP session used by subsequent calls in this MCP process.

Inputs: session_id (required).

iccap_sessions_listA

List live IC-CAP sessions without exposing authentication tokens.

Inputs: no named parameters.

iccap_status_getA

Read the current IC-CAP Status window text and parse optimizer progress without modifying the project.

Inputs: max_chars.

input_BA

Get both measured and simulated data from an Input. Convenience method equivalent to get_data(msb='B').

Inputs: input_path (required), imag.

input_createC

Create and configure an Input object.

Mode (modedict) options:

  • V: Voltage mode (+Node, -Node, Unit, Compliance)

  • I: Current mode (ToNode, FromNode, Unit, Compliance)

  • F: Frequency mode

  • T: Time mode

  • P: Parameter mode (ParamName, Unit)

  • U: Voltage mode (+Node, -Node, Unit, Compliance)

  • W: Power mode

Sweep Type (sweepdict) options:

  • LIN: Linear sweep (SweepOrder, Start, Stop, # of Points)

  • LOG: Logarithmic sweep (SweepOrder, Start, Stop, # of Points, Dec or Oct)

  • LIST: List sweep (SweepOrder, # of Values, Values)

  • CON: Constant (Value)

  • SYNC: Synchronous sweep (Ratio, Offset, MasterSweep)

  • LSYNC: List synchronous (MasterSweep)

Inputs: input_path (required), mode, stop, unit, +17 more.

input_get_dataC

Get Input dataset as dictionary. Supports msb (M/S/B) and imaginary flag.

Inputs: input_path (required), msb, imag.

input_get_dfB

Get Input dataset as DataFrame with optional matrix indexing.

Inputs: input_path (required), m, n, msb, +1 more.

input_get_fieldA

Get a specific field value from an Input (e.g. 'Mode', 'Sweep Type', 'Start', 'Stop').

Inputs: field_name (required), input_path (required).

input_get_fieldsB

Get all configurable field names for an Input.

Inputs: input_path (required).

input_get_lengthA

Get the number of data points in the Input dataset.

Inputs: input_path (required).

input_get_modedictC

Get the mode dictionary showing available modes and their required fields.

Inputs: input_path (required).

input_get_sweepdictB

Get the sweep type dictionary showing available sweep types and their required fields.

Inputs: input_path (required).

input_get_typeA

Get the Input dataset type: 'M' (measured), 'S' (simulated), or 'B' (both).

Inputs: input_path (required).

input_MA

Get measured data from an Input. Convenience method equivalent to get_data(msb='M').

Inputs: input_path (required), imag.

input_SB

Get simulated data from an Input. Convenience method equivalent to get_data(msb='S').

Inputs: input_path (required), imag.

input_set_dataA

Set Input data from a dictionary. String keys such as '("M", "11")' are converted to tuple keys for IC-CAP. Data format: {"('M', '11')": [val1, val2, ...]}.

Inputs: data (required), input_path (required), force.

input_set_fieldC

Set a specific field value for an Input.

Inputs: value (required), field_name (required), input_path (required).

instrvar_existsC

Check if an instrument option field exists.

Inputs: field_name (required), input_output_path (required).

instrvar_getA

Get an instrument option field value. Path is constructed as input_output_path/field_name.

Inputs: field_name (required), input_output_path (required).

instrvar_setC

Set an instrument option field value.

Inputs: value (required), field_name (required), input_output_path (required).

ivar_createA

Create a system variable (IVar) at Main level. var_name is the variable name only (no path prefix).

Inputs: var_name (required), value.

ivar_getB

Get a system variable (IVar) value at Main level.

Inputs: var_name (required).

ivar_setA

Set a system variable (IVar) at Main level. Pass scalar values as strings and arrays as JSON array strings such as '["a","b"]'.

Inputs: value (required), var_name (required).

macro_createC

Create a Macro object. Optionally set its text content.

Inputs: macro_path (required), text, overwrite, macro_type, +1 more.

macro_executeC

Execute/Run a Macro. Use run_async=true for a managed observable job.

Inputs: macro_path (required), run_async.

macro_get_textC

Get the text content of a Macro.

Inputs: macro_path (required).

macro_set_textC

Set the text content of a Macro.

Inputs: text (required), macro_path (required), macro_type.

main_get_childB

Get a child object from Main by name. Optionally filter by type (Model, IVar).

Inputs: child_name (required), child_type.

main_get_ivarsA

List all system variables (IVar) with their names and values.

Inputs: no named parameters.

main_get_modelsA

List all Model names in the current IC-CAP session.

Inputs: no named parameters.

main_get_valofA

Get a variable or parameter value visible from Main (searches hierarchy: variables, parameters, tablevars, datasets).

Inputs: name (required).

main_saveA

Save an IC-CAP object to disk. For Save As, arg is the destination filename: a bare name is written into the MCP workspace, an absolute path must satisfy the workspace path policy (see ICCAP_MCP_ALLOW_EXTERNAL_FILES); .mdl is appended when missing. The result is verified against the file system and reports file_exists/file_size - success means the file is actually on disk. Use locator='/' for the full project or a model path for one model.

Inputs: locator (required), arg, action.

model_createA

Create a Model object. Model is the top-level container with circuit netlist, DUTs, parameters, and variables. Set overwrite=true explicitly to replace an existing Model.

Inputs: model_path (required), circuit, overwrite, allow_without_checkpoint.

model_export_structureA

Export a model's full structure to one JSON file in a single call: per DUT the DPAR values; per setup the inputs, outputs, setup variables, and every transform in order (PEL/Python program text, equation expressions, derivative sources with X/Y Data and Order, complete optimizer configuration with targets, parameter tables, and options). Replaces thousands of per-field tablevar_get calls for knowledge capture and build verification. file_path follows the workspace path policy (see ICCAP_MCP_WORKSPACE).

Inputs: file_path (required), model_path (required).

model_get_circuitB

Get the Model's SPICE circuit netlist.

Inputs: model_path (required).

model_get_dutsA

Get all DUT names under a Model.

Inputs: model_path (required).

model_get_macrosA

Get all Macro names under a Model.

Inputs: model_path (required).

model_get_mparsB

Get all Model parameters (MPar) with their values.

Inputs: model_path (required).

model_get_mvarsC

Get all Model variables (MVar) with their values.

Inputs: model_path (required).

model_set_circuitC

Set the Model's SPICE circuit netlist.

Inputs: circuit (required), model_path (required).

mpar_existsA

Check if a Model parameter exists. Useful for verifying circuit netlist defines the expected parameter.

Inputs: param_path (required).

mpar_getA

Get a Model parameter value. MPar objects are defined by the circuit netlist and cannot be created or deleted.

minvalmax options:

  • Value: Current parameter value (default)

  • Min/Max: Parameter range bounds

  • Opt Min/Opt Max: Optimization range bounds

Inputs: param_path (required), minvalmax.

mpar_setA

Set a Model parameter value. Use minvalmax to set bounds (Min, Max, Opt Min, Opt Max) instead of the current value.

Inputs: value (required), param_path (required), minvalmax.

mpar_set_boundsA

Batch-set parameter boundaries (Min, Max, Opt Min, Opt Max) for multiple MPar parameters in one call. Only works for MPar, not DPar.

Inputs: parameters (required).

mvar_createA

Create a Model variable (MVar). Common uses: SIMULATOR, PARAMETER_PRECISION, WORKING_PRECISION.

Inputs: var_path (required), value.

mvar_getC

Get a Model variable value.

Inputs: var_path (required).

mvar_setB

Set a Model variable value. Pass scalar values as strings and arrays as JSON array strings such as '["a","b","c"]'.

Inputs: value (required), var_path (required).

object_child_names_of_typeC

Get a list of child object names of a specific type.

Inputs: child_type (required), object_path (required), object_type.

object_copyA

Copy an IC-CAP object without replacing an existing destination unless overwrite=true.

Inputs: dest_path (required), source_path (required), overwrite, object_type, +1 more.

object_createA

Create a new IC-CAP object without replacing an existing object unless overwrite=true. Plot guard: when creating a Plot onto a name a Transform/Input/Output already uses, the Plot is auto-suffixed '_plot' ('_plot2', ... on collision) and the response reports name_adjusted/final_name, so no name conflict is ever created.

Inputs: object_path (required), overwrite, object_type, allow_without_checkpoint.

object_deleteA

Delete an IC-CAP object. Irreversible. Use object_type to disambiguate when Transform and Plot share the same name (e.g., object_type='Plot' to delete the Plot instead of the Transform).

Inputs: object_path (required), object_type, allow_without_checkpoint.

object_delete_childrenA

Delete all child objects of specified types.

Inputs: child_types (required), object_path (required), object_type, allow_without_checkpoint.

object_existB

Check if an IC-CAP object exists at the specified path.

Inputs: object_path (required), object_type.

object_find_child_varC

Find a variable in the child variable table of an object.

Inputs: var_name (required), object_path (required), object_type.

object_find_varB

Find a variable by name with scope control: 'upward_scope' (search hierarchy) or 'obj_owned' (direct children only).

Inputs: var_name (required), object_path (required), lookup_type, object_type.

object_get_childB

Get a specific child object by name with optional type filtering.

Inputs: child_name (required), object_path (required), child_type, object_type.

object_get_child_objectsA

Get all child objects of a specific type. WARNING: May hang when used on Transform paths; use setup_get_transforms instead.

Inputs: child_type (required), object_path (required), object_type.

object_get_fullnameC

Get the full path name of an IC-CAP object.

Inputs: object_path (required), object_type.

object_get_pathA

Get the parent path of an IC-CAP object (excluding object name).

Inputs: object_path (required), object_type.

object_get_precisionC

Get parameter precision and working precision of an IC-CAP object.

Inputs: object_path (required), object_type.

object_get_valA

Get the value of an IC-CAP object. For parameters: supports minvalmax. For datasets: supports msb.

Inputs: object_path (required), msb, minvalmax, object_type.

object_get_valofB

Get visible variable or parameter value from an object, searching the hierarchy.

Inputs: name (required), object_path (required), object_type.

object_renameA

Rename an IC-CAP object. Supported types: Model, Dut, Setup, Input, Output, Transform, Plot, Macro. NOT supported for: Par, MPar, DPar, TableVar, Main, InstrVar. Use object_type to disambiguate naming conflicts.

Inputs: new_name (required), object_path (required), object_type.

object_set_valB

Set the value of an IC-CAP object. For parameters: supports minvalmax. For datasets: supports msb and force.

Inputs: value (required), object_path (required), msb, force, +2 more.

optimizer_setupA

Configure an Optimize Transform in a single call. Replaces multiple transform_set_optim_field calls.

Sets Algorithm, Error type, Inputs table (Target/Simulated/X range), Parameters table (Name/Min/Max), and Options all at once. The Transform must already exist with Function='Optimize' (use transform_create with transform_type='Optimize' first).

CRITICAL: ALL optimizer parameters MUST have both min AND max bounds specified. Unbounded parameters cause optimization failures (e.g. IS/N compensation). The server serializes all IC-CAP API calls, so parallel calls are automatically queued. If any field fails to set, the call stops and reports which field failed.

Options are validated against the selected algorithm. Common options per algorithm:

  • Random (R): RMS error, Rand Iters (NOT Max Iters!), Rand Std Dev, Rand Reward, Rand Penalty, Rand Seed, Comb Filter

  • LM (L): RMS error, Max error, Max Evals, Param Tol, Function Tol, Comb Filter, Param Delta

  • Hybrid (H): RMS error, Max error, Rand Iters, Comb Filter, Param Tol, Function Tol, Param Delta

  • Minimax (N): RMS error, Max error, Max Evals, Param Tol, Function Tol, Max Iters, Comb Filter

  • All algorithms also support: X/Y Lower/Upper Bound

Inputs: transform_path (required), error, inputs, options, +2 more.

output_createB

Create and configure an Output object.

Mode (modedict) options:

  • V: Voltage measurement (+Node, -Node, Unit)

  • I: Current measurement (ToNode, FromNode, Unit)

  • C: Capacitance measurement (HighNode, LowNode, Unit)

  • G: Conductance measurement

  • S: S-parameters (Port1, Port2, ACGround, Unit)

  • H: H-parameters

  • Z: Z-parameters

  • Y: Y-parameters

  • M: Multi-port S-parameters (PortType, NumPorts, ACGround, Unit)

Type: M=measured, S=simulated, B=both

Inputs: output_path (required), mode, unit, port1, +13 more.

output_get_dataC

Get Output dataset as dictionary.

Inputs: output_path (required), msb, imag.

output_get_dfC

Get Output dataset as DataFrame with optional matrix indexing.

Inputs: output_path (required), m, n, msb, +1 more.

output_get_fieldA

Get a specific field value from an Output (e.g. 'Mode', 'Unit'). Only works on Output objects, NOT Plot objects.

Inputs: field_name (required), output_path (required).

output_get_fieldsA

Get all configurable field names for an Output. Only works on Output objects, NOT Plot objects.

Inputs: output_path (required).

output_get_lengthB

Get the number of data points in the Output dataset.

Inputs: output_path (required).

output_get_modedictC

Get the mode dictionary for an Output.

Inputs: output_path (required).

output_set_fieldC

Set a specific field value for an Output.

Inputs: value (required), field_name (required), output_path (required).

plot_capture_windowA

Capture an IC-CAP Plot window by name and save it to a local file for visual inspection.

Inputs: plot_name (required), save_dir, wait_seconds, filename_prefix, +2 more.

plot_displayA

Display a Plot in the IC-CAP GUI. Use run_async=true for a broker-managed job; direct gateway execution remains on the UI thread.

Inputs: plot_path (required), run_async, timeout_seconds.

plot_get_fieldsA

Return a Plot's complete field configuration in one call, without repeated tablevar_get round-trips or missed fields. Field names are enumerated from the live object, so the set always matches the Report Type — XY GRAPH: Report Type, Header, Footer, X Data, Curve Data, # of Traces, X/Y/Y2 Axis Type, Y2 Data, Y Data 0..7; SMITH PLOT: Sweep Data + Smith Data 0..7; POLAR PLOT: Sweep Data + Polar Data 0..7; RI GRAPH: Sweep Data + RI Data 0..7; SCATTER PLOT: single X Data + Y Data + axis types; HISTOGRAM / CDF PLOT: Data-set; MULTI PLOT: # of Plots, # of GUIs, Orientation, Plots Per Row, Plot 0..N. When any non-Plot object (Transform, Input, or Output — e.g. an output current named 'id' with a plot also named 'id') shares the Plot's name, the read runs inside an automatic rename-aside transaction (annotated conflict=true, resolved_as='Plot', via='rename_txn') and the original name is restored afterwards. In/Out Graphically are GUI runtime state, not table fields, and are not accessible via the API.

Inputs: plot_path (required).

plot_setupA

Create and fully configure a Plot in one call, never creating a name conflict. Supports all IC-CAP report types: XY GRAPH, SMITH PLOT, POLAR PLOT, RI GRAPH, SCATTER PLOT, HISTOGRAM, CDF PLOT, MULTI PLOT. Field mapping is live-verified per type: XY GRAPH traces go to 'Y Data 0..7' + '# of Traces'; SMITH/POLAR/RI use 'Sweep Data' + 'Smith/Polar/RI Data 0..7'; SCATTER PLOT takes a single 'Y Data' (only y_data[0] is used); HISTOGRAM/CDF PLOT take a single 'Data-set' (pass data_set, or y_data[0]); MULTI PLOT takes sub-plot names in y_data -> 'Plot 0..N' + '# of Plots' (set 'Orientation' afterwards via tablevar_set). Conflict guard: when a Transform/Input/Output already uses the requested name, the Plot is auto-suffixed '_plot' ('_plot2', ... on collision) and the response reports name_adjusted/final_name. Reconfiguring an existing conflicted Plot (overwrite=true) writes fields through a rename-aside transaction.

Inputs: plot_path (required), header, x_data, y_data, +8 more.

plot_show_absolute_errorC

Show absolute error (MAX/RMS) on Plot window. Equivalent to ShowAbsoluteError in IC-CAP GUI.

Inputs: plot_path (required), plot_number.

plot_show_relative_errorB

Show relative error (MAX/RMS) on Plot window. Equivalent to ShowRelativeError in IC-CAP GUI.

Inputs: plot_path (required), plot_number.

project_openA

Open a .mdl project file into the named model slot (IC-CAP's Open action reads the file over the target, destroying its previous contents). When the target model exists, a Save-As-No-Data checkpoint of its current contents is taken first and returned in the response. The file must exist and satisfy the workspace path policy (set ICCAP_MCP_ALLOW_EXTERNAL_FILES=1 to open from anywhere). Use this to restore a project after an IC-CAP restart.

Inputs: file_path (required), model_path (required).

setup_createA

Create a Setup object. Set overwrite=true explicitly to replace an existing Setup. Ordering: Transforms may be created before or after setup_import_mdm — both orders are supported (live-verified 2026-09-02: derivative, Optimize, and PythonLocal transforms created after import, no hangs). Importing data before creating program transforms lets their UPDATE_AUTO auto-execution run against real data.

Inputs: setup_path (required), overwrite, allow_without_checkpoint.

setup_export_mdmA

Export Setup measurement or simulation data to an .mdm file. File is written directly on the server side, suitable for large datasets. file_path should be an absolute path on the server machine.

Inputs: file_path (required), setup_path (required), data_type.

setup_get_infoA

Get complete Setup info: all input names, output names, transform names, plot names, and data length. Useful for verifying Setup structure.

Inputs: setup_path (required).

setup_get_inputsA

Get all Input names in this Setup.

Inputs: setup_path (required).

setup_get_lengthB

Get the data length of the Setup's dataset.

Inputs: setup_path (required).

setup_get_outputsA

Get all Output names in this Setup.

Inputs: setup_path (required).

setup_get_plotsA

Get all Plot names in this Setup.

Inputs: setup_path (required).

setup_get_svarsB

Get all Setup variables (SVar) with their names and values.

Inputs: setup_path (required).

setup_get_transformsA

Get all Transform names in this Setup.

Inputs: setup_path (required).

setup_import_mdmA

Import data from an .mdm file into a Setup using Import Create command. Automatically creates inputs/outputs structure from MDM file. Ordering: Transforms may be created before or after the import — both orders are supported and live-verified (2026-09-02: derivative/Optimize/PythonLocal created after import, no hangs, configuration read back effective). A bonus of importing first: program transforms whose Program starts with an UPDATE_AUTO line auto-execute on creation, so that execution runs against the already-imported data. Data is processed on the server side, suitable for large datasets.

Inputs: file_path (required), setup_path (required), data_type.

setup_measureB

Run measurement instruments on a Setup. Use run_async=true for a managed observable job.

Inputs: setup_path (required), run_async.

setup_simulateA

Run SPICE simulation on a Setup. The gateway executes it synchronously on IC-CAP's main thread; external MCP clients may submit it as a managed job.

Inputs: setup_path (required), run_async.

svar_createA

Create a Setup variable (SVar). Common uses: X_LOW, X_HIGH, sweep range parameters for optimizers.

Inputs: var_path (required), value.

svar_getB

Get a Setup variable value.

Inputs: var_path (required).

svar_setA

Set a Setup variable value. Pass scalar values as strings and arrays as JSON array strings such as '["a","b"]'.

Inputs: value (required), var_path (required).

tablevar_existsA

Check if a table field exists. Returns boolean. Use before tablevar_get/set to avoid errors on non-existent fields. On name-conflict paths (Plot sharing its name with a Transform/Input/Output) the untyped probe reflects the non-Plot side; pass object_type='Plot' to probe the Plot side through an automatic rename-aside transaction (annotated conflict=true, resolved_as='Plot').

Inputs: tablevar_path (required), object_type.

tablevar_getA

Get a table field value. Works on any IC-CAP object that has table fields: Transform ('transform_path/Program' for PEL content), Plot ('plot_path/Report Type', 'plot_path/X Data', 'plot_path/Y Data N'), etc. Use tablevar_exists first to verify the field exists. When a path has both a Transform and a Plot with the same name, reads default to the Transform and the result is annotated with conflict=true / resolved_as='Transform' (all common table fields are Transform-exclusive); pass object_type='Plot' to read the Plot side — when any non-Plot object (Transform, Input, or Output) shares the Plot's name, the read runs inside an automatic rename-aside transaction (conflict=true, resolved_as='Plot', via='rename_txn') that restores the original name afterwards. Reading a field the object does not own (e.g. Program on an empty-Function grouping transform, 'Plot 0' on an XY GRAPH) returns ICCAP_FIELD_NOT_APPLICABLE instead of touching the C API; use transform_get_fields / plot_get_fields to introspect first.

Inputs: tablevar_path (required), eval_var, object_type.

tablevar_setA

Set an existing table field; this tool cannot create fields. Use tablevar_exists first. On Transform/Plot name-conflict paths, writes default to the Transform (result annotated with conflict=true); pass object_type='Plot' to write the Plot side — on conflict paths this runs inside an automatic rename-aside transaction (necessary because a direct write on a conflict path silently targets the non-Plot object and reports success). Plot writes are validated against the plot's actual field set first: writing a field the current Report Type does not own (e.g. 'Plot 0' on an XY GRAPH, which STFV would accept while writing nothing) returns ICCAP_FIELD_NOT_APPLICABLE listing the available fields — never a false success. Transform-side writes are validated the same way against the Function type.

Inputs: value (required), tablevar_path (required), object_type.

transform_allocateB

Allocate data space for a Transform with specified size. Used to pre-allocate dataset before filling with data. Default creates both measured and simulated (B) data with dimension 1.

Inputs: length (required), transform_path (required), msb.

transform_createA

Create a Transform and optionally set its Function type and Program content in one call.

ORDERING: Transforms may be created before or after setup_import_mdm — both orders are supported (live-verified 2026-09-02). Engineer PEL programs conventionally start with an UPDATE_AUTO line, which makes the transform auto-execute on creation; with data already imported, that execution runs against real data.

TRANSFORM TYPES AND THEIR SYNTAX REQUIREMENTS:

  1. PythonLocal - Python script. Use transform_type='PythonLocal', program=''. Example: transform_create(transform_type='PythonLocal', program='print("hello")')

  2. PEL/Program - IC-CAP PEL script. Use transform_type='PEL', program=''. WARNING: PEL uses return statement to output data. Direct assignment like beta = ic/ib causes parse error "Direct assignment to the data set beta is not allowed. Use the RETURN statement." Correct: return ic/ib. WRONG: beta = ic/ib. Example: transform_create(transform_type='PEL', program='return ic/ib')

  3. Equation - Simple mathematical expression. Use transform_type='Equation' (or check funcdict for available types). Equations are evaluated directly; no return statement is needed. Note: IC-CAP requires lowercase 'equation' as function type; the handler auto-maps 'Equation' to 'equation'. Equation content is stored in the 'Input' field (NOT 'Program'); the handler handles this automatically. Example: transform_create(transform_type='Equation', program='ic/ib')

  4. Built-in - IC-CAP built-in extraction functions (e.g. BJTDC_is_nf, BJTDC_fwd_gummel, PNCAPsimu, RBBcalc). Use transform_type=''. Function is set automatically. Built-in transforms require table fields to be filled (data references to other setups/transforms). Inspect the transform's table fields with tablevar_get and consult the installed IC-CAP documentation for required fields. Example: transform_create(transform_type='BJTDC_is_nf') Then fill table fields: tablevar_set('/path/to/transform/Forward VC', 'fearly/vc')

  5. Optimize - Optimization transform. Use transform_type='Optimize'. Configure it with optimizer_setup or with transform_set_optim_field for individual fields. Example: transform_create(transform_type='Optimize') Then: optimizer_setup(transform_path='/path/to/optimize', ...)

Malformed transform types, programs, or fields can leave IC-CAP unresponsive. Always verify the created transform with transform_get_function.

Creating a Transform onto a name a Plot already uses creates a name conflict: the result then carries a warning (the Transform is never auto-renamed), and Plot-side field access afterwards requires object_type='Plot'. Prefer distinct names for new objects.

Consult the IC-CAP documentation installed with your licensed software for model- and version-specific transform fields.

Inputs: transform_path (required), program, function, overwrite, +2 more.

transform_executeA

Execute/Run a Transform. CRITICAL SAFETY CHECKS before executing:

  1. Verify the Transform exists (use transform_get_function or setup_get_transforms)

  2. Verify the Function type is correct (use transform_get_function)

  3. Verify Program content is non-empty for PEL/PythonLocal types (use tablevar_get on transform_path+'/Program')

  4. For built-in transforms, verify all required table fields are filled

An invalid function type, malformed PEL program, or missing table field can leave IC-CAP unresponsive and require a restart.

Inputs: transform_path (required), run_async.

transform_get_dataB

Get a Transform dataset as a dictionary. Returns measured (M), simulated (S), or both (B) data. Set imag=true to include imaginary components.

Inputs: transform_path (required), msb, imag.

transform_get_dfA

Get a Transform dataset as a DataFrame. Supports matrix indexing with m and n. Set imag=true to include imaginary components.

Inputs: transform_path (required), m, n, msb, +1 more.

transform_get_fieldsA

List the table fields readable on a Transform for its current Function type. Ownership: '' (empty, grouping node) owns no fields; 'equation' -> Input; 'derivative' -> Input, Output; 'Optimize' -> Algorithm/Error plus Target/Simulated/X Min/X Max/Name/Min/Max rows (actual row counts probed read-only) and algorithm-filtered option fields; program types -> Program. 'Function' itself is always readable. Use before tablevar_get/tablevar_set to introspect instead of triggering ICCAP_FIELD_NOT_APPLICABLE.

Inputs: transform_path (required), object_type.

transform_get_funcdictA

Get the dictionary of available Transform function types (funcdict). Returns list of function type names that this Transform can be set to.

Inputs: transform_path (required).

transform_get_functionA

Get the Transform's Function type (e.g. 'PythonLocal', 'PEL', 'Optimize'). This reads the 'Function' child field.

Inputs: transform_path (required).

transform_get_lengthA

Get the number of data points in the Transform's dataset. Returns 0 for an empty dataset.

Inputs: transform_path (required).

transform_get_optim_fieldA

Read an Optimize Transform's table field value. Counterpart to transform_set_optim_field.

'Algorithm' and 'Error' are write-only in the IC-CAP API: the table fields do not exist and GTFV rejects them, so this tool returns readable=false with an explanation instead of an error. Track the value you set via transform_set_optim_field (its response echoes current_value); to inspect a transform configured elsewhere, open its GUI. Indexed fields (Target[0], Name[0], etc.) and options read reliably.

Inputs: field_name (required), transform_path (required).

transform_set_functionA

Set the Transform's Function type (e.g. change from 'PythonLocal' to 'PEL'). This writes to the 'Function' child field. Note: For Optimize type, use transform_create with transform_type='Optimize' instead.

Inputs: function (required), transform_path (required).

transform_set_optim_fieldA

Set an Optimize Transform's table field value via STFV.

Configure IC-CAP optimizer Inputs, Parameters, and Options tables programmatically. Option field names are validated against the current algorithm; invalid names return success=false with an explanation.

Common fields:

  • Function: Set to "Optimize" to enable the optimizer

  • Algorithm: Optimization algorithm (full names or PEL short codes, auto-mapped). Unknown values are rejected before reaching IC-CAP (the native SetAlgorithm accepts anything without checking). On success the response carries current_value with current_value_source='this write': IC-CAP provides no way to read the algorithm back, so your own write is the authoritative record.

    • Full names: "Levenberg-Marquardt", "Random", "Hybrid", "Gradient", "Quasi-Newton", "Minimax", "Genetic", "Least Pth"

    • Short codes: "L", "R", "H", "B", "G", "N", "Q", "I"

  • Error: Error type (full names or PEL short codes, auto-mapped). Same write-only caveat as Algorithm.

    • Full names: "Relative", "Absolute" Short codes: "R", "A"

  • Inputs table (0-indexed rows):

    • "Target[i]": Target measured data, e.g. "ia.m"

    • "Simulated[i]": Simulated data, e.g. "ia.s"

    • "X Min[i]", "X Max[i]": X-axis range limits

  • Parameters table (0-indexed rows):

    • "Name[i]": Parameter name, e.g. "MAIN.IS"

    • "Min[i]": Parameter minimum bound

    • "Max[i]": Parameter maximum bound

  • Options table (algorithm-specific!):

    • Random (R): RMS error, Rand Iters, Rand Std Dev, Rand Reward, Rand Penalty, Rand Seed, Comb Filter

    • LM (L): RMS error, Max error, Max Evals, Param Tol, Function Tol, Comb Filter, Param Delta

    • Hybrid (H): RMS error, Max error, Rand Iters, Comb Filter, Param Tol, Function Tol, Param Delta

    • Minimax (N): RMS error, Max error, Max Evals, Param Tol, Function Tol, Max Iters, Comb Filter

    • All algorithms also support: X/Y Lower/Upper Bound

    • NOTE: Random uses 'Rand Iters' (NOT 'Max Iters'), LM uses 'Max Evals' (NOT 'Max Iters')

Inputs: value (required), field_name (required), transform_path (required).

var_get_table_sizeA

Get the size of an ICCAP_ARRAY type variable. Only works on variables whose value is an ICCAP_ARRAY (set via mvar_set with a JSON array like '["a","b"]'). Returns null for scalar string values.

Inputs: var_path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 128 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose. Even with many similar getters/setters for different object types, the prefixes (mvar, dvar, svar, etc.) disambiguate them. Convenience wrappers like input_M/S/B are explicitly documented as equivalents to input_get_data with different msb flags, avoiding confusion.

    Naming Consistency5/5

    Naming follows a consistent snake_case verb_noun pattern with object-type prefixes (object_, model_, dut_, setup_, input_, output_, transform_, plot_, macro_, mvar_, etc.). All tools adhere to this convention, with occasional compound names like 'object_get_fullname' and 'iccap_job_cancel' that still fit the pattern.

    Tool Count2/5

    128 tools is far above the 25+ threshold for 'too many'. While IC-CAP is a complex domain requiring many operations, the sheer number overwhelms the agent's ability to select the right tool efficiently, risking misselection and cognitive overload.

    Completeness5/5

    The tool surface appears comprehensive for the IC-CAP domain: it covers creation, deletion, renaming, copying, inspection, and execution for all major object types (Model, DUT, Setup, Input, Output, Transform, Plot, Macro, variables, parameters). It also includes simulation, measurement, data import/export, session management, job control, and error handling, leaving no obvious dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables AI agents to automate COMSOL Multiphysics simulations, including model management, geometry building, physics configuration, meshing, solving, and results visualization through the MCP protocol.
      78
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP-compatible agents to generate Qucs circuit schematics, run simulations, and parse results programmatically.
      2
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables coding agents to query KiCad project data (components, nets, measurements, DRC/ERC, BOM, renders) and edit open boards live via KiCad's IPC API.
      33
      MIT