SuperAPIAI Directory

labview-mcp

github.com · AI developer platforms

labview-mcp is an open-source MCP server that lets AI coding agents such as Claude Code, Codex, and Cursor read, create, edit, run, and test NI LabVIEW VIs (virtual instruments). LabVIEW code is a binary graphical format, so text-based coding agents cannot directly open .vi files; this tool drives an installed LabVIEW through its ActiveX server, giving agents actionable information such as text, images, and numeric values. Users describe their needs in natural language, and the agent can build or modify VIs in LabVIEW, run them, and check the results. The project requires Windows, LabVIEW 2015 or later (the free Community Edition works) with VI Server ActiveX enabled, and Python 3.10 or later. The current version is v0.40.1; reading and running work with any VI, and creation supports controls, constants, functions, subVIs, loops, shift registers, case structures, event structures, property nodes, and invoke nodes, as well as projects and builds. Hardware I/O, flat sequence structures, in-place structures, user events, and more are not yet supported. This project is not affiliated with NI.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

labview-mcp is an open-source MCP server designed to let AI coding agents (such as Claude Code, Codex, and Cursor) work in the NI LabVIEW environment. LabVIEW code is a binary graphical format, so text-based coding agents cannot directly open .vi files. labview-mcp acts as the agent's "eyes and hands": it drives the user's installed LabVIEW through its ActiveX server and provides the agent with actionable information such as text, images, and numeric values. Users describe their needs in natural language, and the agent can build or modify VIs in LabVIEW, run them, and check the results.

Key capabilities:

  • Reading: can read any VI, including broken VIs. All 964 example VIs shipped with LabVIEW can be read. vi_dump supports two reading methods (dfir and scan) and reports which one was used.
  • Creation: creates VIs from a vi_create specification, supporting controls, constants, functions, subVIs, For/While loops, shift registers (including stacked), case structures (which can be nested arbitrarily), user interfaces (front panel styles such as buttons, LEDs, knobs, gauges, and charts), event structures (control events and VI events, timeouts, event data), property nodes, and invoke nodes.
  • Editing: vi_edit makes in-place modifications to existing VIs, including deleting, replacing, and adding code, and supports operating inside existing loops and case frames.
  • Running and testing: vi_run can run a VI, pass in inputs, and read outputs; for UIs, it can simulate clicks, set controls, read values, wait, and perform other steps.
  • Projects and builds: agents can put VIs into projects, add application (EXE), packed library, and source distribution build specifications, perform builds, and mass-compile folders.

Usage: Requires Windows, LabVIEW 2015 or later (the free Community Edition works) with ActiveX enabled in Tools ▸ Options ▸ VI Server, and Python 3.10 or later. Other MCP clients run the command python -m labview_mcp over stdio. Users can make natural language requests to the agent, such as "show the block diagram of C:\path\to\My.vi" or "explain what each branch of Main.vi does"Such as "Run Scale.vi and check whether the output matches the Python reference".

Applicable scenarios: Suitable for engineers and developers who want to use AI agents to accelerate LabVIEW development, understand existing VIs, generate test cases, build user interfaces, create state machines or queue message handlers, and perform project builds.

Limitations:

  • Hardware I/O (DAQmx, VISA instruments), flat sequence structures and in-place structures, user events, and wrapping existing code into new structures are not yet supported.
  • Testing currently covers only LabVIEW 2026 (English version).
  • Password-protected VIs will be refused for reading.
  • Stress testing of the creation feature shows that 262 of 964 bundled examples can be fully reconstructed, and 64 have differences after reconstruction, usually large advanced examples.
  • Strings are stored according to the Windows ANSI code page, and some characters may be replaced.
  • This project is a personal open-source project and is not affiliated with or endorsed by NI (Emerson). LabVIEW is a trademark of National Instruments Corp.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools