SuperAPIAI Directory

gx3-cli-mcp

github.com · AI coding

Unofficial, read-only analysis of Mitsubishi MELSEC GX Works3 PLC projects: trace ladder logic, find device reads and writes and search device comments.

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

About this tool

Purpose

gx3-cli-mcp is used to perform read-only analysis of Mitsubishi Electric MELSEC GX Works3 project files (.gx3) without opening GX Works3. Typical questions are troubleshooting why a coil in a ladder diagram is not conducting, where a device is written, which conditions must be true for a coil to conduct, which conditions come from outside the PLC, and which branches can never be true.

Main capabilities

The tool reads .gx3 projects on the local computer and answers related queries. It can trace ladder logic, find where devices are read and written, and supports device comment search. Every command supports --format json for scripting, and -o FILE to write results to a file. gx3-cli --help lists all commands by group. When a .gx3 file is passed in, it is extracted to .gx3_cache/<sha256>/ and that copy is analyzed.

In addition to the CLI, the same analysis capability is also available as a stdio MCP server, enabling AI agents to answer based on indexed facts rather than guessing about binary files. The MCP server exposes read-only analysis tools and a restricted command runner. For clients that cannot resolve console scripts from PATH, configure "command": "python", "args": ["-m", "gx3cli.gx3_mcp_server"].

Usage

Requires Python 3.10+. After installation, two console scripts are available: gx3-cli and gx3-mcp-server. It can be tried in 30 seconds without an actual project—start by generating a project. The tool has a guide command that reads the project and tells you which commands are worth running and why, for answering the question "there are sixty commands, where should I start?" After that, you can ask it questions.

For ladder CSV input, use gx3-cli rung-text --csv ladder.csv.

Applicable scenarios

Suitable for engineers who need to analyze GX Works3 ladder logic locally, and for scenarios where AI agents are used via the MCP server for read-only analysis. It can help locate the reason a coil is not conducting, where a device is written, the source of external conditions, and unreachable branches. live-read can read live device values via MC Protocol/SLMP, but only from the CLI, and it mustexplicitly provide connection parameters.

Limitations

The tool only performs read-only analysis of ladder data in local .gx3 projects; it does not edit projects, does not connect to a PLC to change anything, and does not replace GX Works3. Output is advisory only and should be verified in GX Works3 and through your own safety process before touching real equipment. 7z-style .gx3 requires 7-Zip to be installed or specified via GX3_7Z=C:\Program Files\7-Zip\7z.exe; encrypted containers will not be decrypted and must be exported as a folder from GX Works3. If PyPI is blocked, you can install it with pip install git+https://github.com/purinzan/gx3-cli-mcp.git . If parsing fails, gx3-cli failure-corpus capture can locally convert it into a regression sample; it is not sent anywhere. If the read is incorrect, first run gx3-cli doctor --root ... before filing an issue.

Regarding licensing, the tool is source-available rather than open source. You may read the source code and run it for evaluation and internal work (including inside a company), but it may not be redistributed, hosted as a service, or packaged into a paid product without written permission. There is no license key, activation, or paid plan.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools