rungkit
Write PLC ladder logic as text, edit it over MCP and test it on a scan simulator
rungkit is an open-source MCP server for industrial automation. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- Web, CLI, API
- Runs
- Locally
- What it can do
- Can change data (2 tools)
- Version
- 0.4.1
- Listing updated
Similar MCP servers
Install
In Claude Desktop → Settings → Extensions
https://github.com/Piyoone3939/rungkit/releases/download/v0.4.1/rungkit-mcp-darwin-amd64.mcpbDownload the bundle and open it with Claude Desktop, or drag it onto Settings → Extensions and click Install. This server is only published as a Claude Desktop bundle.
Using several servers? Build one config file with the MCP config generator.
About rungkit
Rungkit keeps a PLC ladder diagram as a series-parallel tree, so an AI agent can make structured edits instead of rewriting raw code. Programs are stored as readable ladder text, and the diagram can be viewed and adjusted in a browser without installing anything.
An agent connected over MCP can open, edit, undo and save a program, then run scenario files on a built-in scan simulator to confirm the logic behaves as intended. Diagnostics come back with codes and line positions so problems can be fixed one at a time.
The toolkit targets Mitsubishi MELSEC iQ-R and FX5 profiles as well as IEC 61131-3, and exports to several formats including Structured Text, PLCopen XML and GX Works3 CSV. It does not connect to real controllers, so output must be reviewed and loaded with the vendor's own tools.
Tools this server provides (10)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 of 10 tools change data; 5 names don't say.
From the server's own tool labels and tool names; not verified by us.
- open_program
- Open a program file
- new_program
- Start a new program
- save_program
- Save the program; files change only on save
- read_programName suggests: reads
- Show the program with rung and element IDs
- edit_programName suggests: changes
- Apply a list of edit commands, all or nothing
- undo
- Undo the last edit
- redo
- Redo an undone edit
- check_programName suggests: reads
- Report errors and warnings with codes and IDs
- run_scenarioName suggests: changes
- Run scenarios on the simulator
- export_programName suggests: reads
- Export to melsec, gxw3, st, plcopen, json, ldt, ascii or svg
What it does
- Structured ladder editing
- Edit rungs through discrete commands that add, replace, move or delete contacts, coils and branches.
- Scan simulator
- Runs programs scan by scan on virtual time and checks them against .ldtest scenarios.
- Diagnostics with codes
- Reports errors and warnings with codes, line and column so issues can be fixed individually.
- Browser editor
- Write ladder text and see the diagram and results update live, with scenario runs and export.
- Multiple export formats
- Exports to MELSEC instruction list, Structured Text, PLCopen XML, JSON, SVG and ASCII.
- Vendor profiles
- Profiles for Mitsubishi MELSEC iQ-R, FX5 and IEC 61131-3 device addressing and instructions.
Good for
- Have an AI agent draft or modify conveyor or machine ladder logic and verify it on the simulator
- Review and visualise existing ladder text as a diagram before handing it to a PLC engineer
- Convert ladder programs between MELSEC instruction lists, Structured Text and PLCopen XML
- Write test scenarios that check timer and counter behaviour across scans
- Exchange PLCopen XML programs with other IEC 61131-3 editors
Pricing
Open source
Free and open source under MIT or Apache-2.0.
Prices change. Check piyoone3939.github.io before you buy.
rungkit FAQ
Does rungkit connect to a real PLC?
No. It does not download, monitor or force values on physical controllers; output must be loaded with the vendor's tool.
How do I add rungkit to an AI client?
Run claude mcp add rungkit -- rungkit mcp, or install the MCP Bundle for your operating system in an app that supports MCPB.
Which PLC families are supported?
Profiles exist for Mitsubishi MELSEC iQ-R and FX5, plus the generic IEC 61131-3 profile.
Can the MCP server modify files anywhere on my computer?
No. It reads and writes only inside the folder it was started in, unless that root is changed with the -root option.
Is rungkit free?
Yes. rungkit is open source, so you can use and self-host it for free.
What are the best alternatives to rungkit?
The closest alternatives to rungkit are plctap, PLCs.ai, fieldpuppet, Talk2Tia and TiaCommander.
Where this comes from
- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.