gx3-cli-mcp
Trace a GX Works3 ladder without opening GX Works3 — read-only CLI + MCP server so anyone (or an AI agent) can find why a coil never turns on.
Install / Use
claude mcp add purinzan -- npx -y github:purinzan/gx3-cli-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AutomationSupported Platforms
Our assessment of gx3-cli-mcp
gx3-cli-mcp scores 83/100 on our quality scale, 2199th of 2,851 Automation skills we index.
Its MCP Server is 7.6 KB long, well organised into 16 sections with 5 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated yesterday, so gx3-cli-mcp is actively maintained.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 85/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
gx3-cli-mcp compared with similar skills
All 4 of these similar skills score higher than gx3-cli-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| gx3-cli-mcp (this skill)by purinzan | 83 | 10 | 1d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 108.4k | 2d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.7k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.8k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 94.7k | today | MCP Server |
Frequently asked questions
- How do I install gx3-cli-mcp?
- Run
claude mcp add purinzan -- npx -y github:purinzan/gx3-cli-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does gx3-cli-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is gx3-cli-mcp safe to use?
- It declares no license and scores 85/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is gx3-cli-mcp still maintained?
- The repository was last updated yesterday, so gx3-cli-mcp is actively maintained.
Skill content
View source on GitHubgx3-cli-mcp
<!-- mcp-name: io.github.purinzan/gx3-cli-mcp -->Work out why a coil never turns on, without opening GX Works3.
Reads a GX Works3 .gx3 project on your own machine and answers questions
about it — where a device is written, what has to be true for a coil to turn
on, which conditions come from outside the PLC, which branches can never be
true. Read-only: it never writes back to the project.
It is a CLI, and the same analysis is a stdio MCP server, so an AI agent can answer from indexed facts instead of guessing at a binary file.
日本語: 三菱電機 MELSEC の .gx3 を GX Works3 を開かずに解析する CLI / MCP
サーバーです。「このコイルがなぜ ON にならないか」をラダーから追います。
読み取り専用で、元のプロジェクトは書き換えません。
中文: 不用打开 GX Works3,也能分析三菱电机 MELSEC 的 .gx3 工程,
从梯形图追查「这个线圈为什么不导通」。只读,不改写原工程。
完整中文说明见 README.zh-CN.md。
Install
pip install gx3-cli-mcp
Python 3.10+. Installs two console scripts: gx3-cli and gx3-mcp-server.
Try it in 30 seconds
No project needed — generate one:
gx3-cli synthetic-project demo.gx3 --profile demo-line
gx3-cli guide --root demo.gx3
guide reads the project and tells you which commands are worth running on it,
and why. That is the answer to "there are sixty commands, where do I start".
On a project
gx3-cli doctor --root project.gx3 # does it read?
gx3-cli index-lite build --root project.gx3
gx3-cli xref build --root project.gx3
gx3-cli guide --root project.gx3 # what to run next
Then ask it something:
# where is this device written, and what reads it?
gx3-cli xref where-used M100 --root project.gx3
# why is this coil not turning on?
gx3-cli trace-device M100 --root project.gx3 --strict-logic --compact
# the whole program, one line per rung
gx3-cli rung-text --root project.gx3
# search the comment you remember, not the device number you don't
gx3-cli query-comment "clamp pressure" --root project.gx3
Every command takes --format json for scripting, and -o FILE to write
instead of print. gx3-cli --help lists all of them by group.
Passing a .gx3 extracts it to .gx3_cache/<sha256>/ and analyses that copy.
What it can tell you
| Question | Command |
|---|---|
| Why is this coil off? | trace-device, interlock-check |
| Where is this device written or read? | xref where-used, xref downstream |
| What does this program do? | rung-text, ladder-print, metrics |
| Show me the rung as a picture | ladder-layout --format svg |
| What comes from outside the PLC? | external-inputs, comm-refresh |
| What can never be true? | dead-logic |
| What looks wrong? | lint PROJECT (duplicate coils, multi-writer, operand widths, types) |
| What changed between versions? | diff, semantic-diff |
| Did it read the project correctly? | roundtrip |
Use with an AI agent
{
"mcpServers": {
"gx3": { "command": "gx3-mcp-server" }
}
}
Or "command": "python", "args": ["-m", "gx3cli.gx3_mcp_server"] if your
client cannot resolve console scripts from PATH. The server exposes read-only
analysis tools and a restricted command runner.
See Agent usage guide (JA) for how an agent should drive it.
Scope, honestly
Read-only analysis of ladder data in local .gx3 projects.
It does not edit projects, connect to a PLC to change anything, or replace GX
Works3. live-read can read live device values over MC Protocol/SLMP, CLI-only
and only with explicit connection parameters.
Output is advisory. Verify in GX Works3 and through your own safety process before touching real equipment.
If a project fails to parse, gx3-cli failure-corpus capture turns it into a
local regression sample without sending anything anywhere.
Troubleshooting
7z-style .gx3 — install 7-Zip, or point at it:
set GX3_7Z=C:\Program Files\7-Zip\7z.exe. Encrypted containers are not
decrypted; export the folder from GX Works3 instead.
PyPI blocked — pip install git+https://github.com/purinzan/gx3-cli-mcp.git
Something reads wrong — gx3-cli doctor --root ... first, then
open an issue.
Documentation
- User manual (JA) / (EN) / (ZH)
- Agent usage guide (JA)
- Ladder practical tips (JA) — field-oriented modification and review tips
- Security note (JA) — local data handling, read-only MCP policy
- Verification tracking — verification tasks and acceptance criteria
- Independent validation ledger (JA) — GX Works3 evidence tracked for Issue #49
- Doctor acceptance ledger (JA) — project-health acceptance tracked for Issue #135
- GX Works3 feature matrix (JA) — standard-feature coverage, gaps, and implementation priorities
- File usage guide (JA) — repository map
- Analysis benchmark (JA) — synthetic performance baseline and measurement limits
- Review questions (JA) — the questions to ask a change before opening a pull request, and the bugs each of them found
- Related projects (JA) — other GX Works3/MELSEC tools and what was taken from them
- llms.txt — machine-readable summary of what this is and is not
Agent skills: existing project audit · failure corpus
Analysis contract migration
Current query-by-query status and remaining acceptance work for #153: 解析契約の移行台帳.
License
Source-available, not open source. Full terms in LICENSE.txt; this is a summary and the license text governs.
You may read the source and run it for evaluation and internal work, including inside a company. You may not redistribute it, host it as a service, or ship it in a paid product without written permission. There is no licence key, activation or paid plan.
日本語: 社内での評価・業務利用は許諾されています。禁止しているのは再配布、 SaaS 提供、有償製品への組み込みです。実行にライセンスキーや課金は不要です。 商用利用の相談は Issue からどうぞ。
Listed on Glama
Indexed as an MCP server, with per-tool scores for how well each tool describes what it does. Useful as outside feedback on the tool surface — the low scores there are the ones whose descriptions need work.
Contributing: CONTRIBUTING.md · AGENTS.md
For ladder CSV input, use gx3-cli rung-text --csv ladder.csv. See the
CSV parser guide for verified scope and limitations.
Related Skills
Agent-Reach
108.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.7kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.8kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
94.7k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
