Work / MR2-Configurator-MCP-CLI
MR2-Configurator-MCP-CLI: MR Configurator2 MCP server & CLI for MELSERVO servo drives
MCP server and CLI for Mitsubishi MR Configurator2: AI agents read and write MELSERVO servo drives and .mrc2 projects, headless
What is it made of?
mr-configurator2 · melservo · servo · industrial-automation · mitsubishi · claude · mcp · mcp-server
Source on GitHub ↗ · Need one like it? →
How does it work?
Mitsubishi MR Configurator2 for AI agents and the command line.
MR2-Configurator-MCP-CLI connects Claude, or any other agent that speaks the Model Context Protocol (MCP), to MR Configurator2, Mitsubishi Electric's setup software for MELSERVO servo amplifiers. The agent reads and writes drive parameters, checks alarms and status, tests the I/O and builds .mrc2 project files. It works through the engines MR Configurator2 itself uses, without opening the program's window. People can run the same commands in a terminal with mrc2.
The source lives in a private repository. This repo is a public overview.
What you can ask for
"Read the drive on USB and tell me why it's in alarm."
"Save everything on this drive to a project file before I change anything."
"Set PA09 to 20 on this drive and read it back."
"Make an MR-JET-G project with PA06 = 3 and PB07 = 23.5."
"Switch output CN3-13 on and off so I can check the wiring."
"Why won't the motor turn?"
Anything that changes the drive or can move the motor waits for your confirmation.
Use cases
- Commissioning a new machine: Reads each drive, sets the parameters from your sheet and reads every value back
- Before changing a running machine: Saves the drive's settings to a .mrc2 file you can open in MR Configurator2
- Many axes or series production: Builds a project file per axis, or writes the same settings to every drive, with the same checks each time
- A machine that stopped: Reads the alarm, the alarm history, the status monitor, the I/O and the drive's list of reasons it won't rotate, then explains them
- Wiring checks: Forces outputs on and off and reads the inputs while you check each wire at the panel
- Remote support: Works on the customer's PC over SSH. Nobody has to be logged in, and MR Configurator2 doesn't have to be running
- Reviewing a project: Lists only the parameters that differ from the factory setting, with names and units
- Records and audits: Each command and its result is plain text that can be kept with the machine's documents and run again later
- Training and demos without a motor: Builds project files for any of the 63 models, and runs a drive in motor-less operation
Compared with using MR Configurator2 by hand
- Read a drive's parameters. MR Configurator2 by hand: Connect, open the parameter window, read, scroll through each group. With MR2-Configurator-MCP-CLI: One request; all 320 parameters of an MR-JE-B as data in about 20 seconds
- Find what differs from factory. MR Configurator2 by hand: Compare value by value with the manual or a default project. With MR2-Configurator-MCP-CLI: Listed directly, against MR Configurator2's factory values
- Write parameters. MR Configurator2 by hand: Type each value, write, check that it took. With MR2-Configurator-MCP-CLI: Checked against MR Configurator2's own ranges and digit options before anything is written, then each value is read back. If one value in a batch is wrong, nothing is written
- New project. MR Configurator2 by hand: New project dialog, pick the model, then edit parameter by parameter. With MR2-Configurator-MCP-CLI: One command for any of the 63 models, edits included. The file opens normally in MR Configurator2
- The same settings on 20 drives. MR Configurator2 by hand: The same clicks 20 times. With MR2-Configurator-MCP-CLI: One script, with the same checks on every drive
- A machine that stopped. MR Configurator2 by hand: Alarm display, alarm history, monitor, I/O and the no-rotation check, one window at a time. With MR2-Configurator-MCP-CLI: One request, and the agent reads them all
- Remote support. MR Configurator2 by hand: Remote desktop, with someone logged in at the PC. With MR2-Configurator-MCP-CLI: SSH only, with no desktop session needed
- Record of what was done. MR Configurator2 by hand: Clicks leave no trace. With MR2-Configurator-MCP-CLI: Each command and result can be logged and reviewed
- AI agents. MR Configurator2 by hand: Can't use a GUI reliably. With MR2-Configurator-MCP-CLI: An MCP server with two tools
Tools
MCP tools
- mrc2: Runs one command from the list below and returns JSON
- mrc2_run: Runs a short Python script against the engines in one session, so several calls share one connection. Only the script's result comes back
Commands
- models: The 63 amplifier models in MR Configurator2's catalogue
- `catalog MODEL [PA04\. What it does: monitor\. pins\. graph]`. Parameter definitions with ranges, units, factory values and digit options; monitor items; connector pins
- api [REGEX]: The 218 calls of the servo communication engine, with their signatures
- api --vt [REGEX]: The 627 lower-level engine and project-data methods
- env: MR Configurator2 and engine versions, servo USB devices and COM ports on the PC
- amp info: Amplifier and motor model, option card, encoder and current alarm. The model is detected automatically
- amp alarms: Current alarm and the alarm history
- amp monitor: Status display values with names and units
- amp params [--group PA]: Every parameter on the drive, labelled from MR Configurator2's catalogue
- amp set PA09=20 --yes: Writes parameters by number or symbol, checked first and read back
- project new MODEL -o FILE [PA05=...]: A new one-axis .mrc2 project with factory settings
- project info FILE: Project name, connection settings and axes
- project params FILE [--changed] [--find TEXT]: Parameter values with number, symbol, name, unit and factory value
- project set FILE PA05=12345 -o OUT: Edits parameters, with range and digit-option checks
Scripts (run or mrc2_run) can make any engine call, work on project files and run any command above. I/O diagnosis, forced outputs, test operation, alarm reset and the drive's rotation check are done from scripts for now.
How it was checked
- New projects for every model. What was done: A project created and re-opened for each of the 63 models in MR Configurator2's catalogue. Result: 63 of 63 passed
- A new project in MR Configurator2. What was done: An MR-JET-G project with PA06 = 3 and PB07 = 23.5, opened in MR Configurator2. Result: Opened with no warnings. The two values show as changed and the rest at factory
- Edit and re-open. What was done: Parameters edited in MR-JE-A and MR-JET-G projects, saved and re-opened in a fresh session. Result: The new values read back and the original files were unchanged
- Reading a drive. What was done: An MR-JE-70B on USB with no motor connected: model detection, the current alarm and a 16-entry history, 52 monitor values, 320 parameters. Result: All read. The 320 parameters took about 20 seconds
- Writing a drive. What was done: PA09 changed from 28 to 27 and back to 28. Result: Each value read back from the drive. A batch with one out-of-range value wrote nothing
- I/O and outputs. What was done: I/O diagnosis, and outputs CN3-13, CN3-15 and CN3-9 forced on and off. Result: Each state confirmed by the drive's own output diagnosis
- Diagnosis and test mode. What was done: The rotation check, data saved at the time of the alarm, test mode in and out, alarm reset, motor-less operation. Result: All worked. Motor-less operation cleared the missing-encoder alarm
- Backup. What was done: Every setting read from the drive into a new .mrc2 file. Result: The file reopens with the drive's non-factory values
A command takes about 2 seconds, and a project edit about 10.
Works with
- Claude Code, Claude Desktop, Cursor and other MCP clients.
- MR Configurator2 version 1.165X, the version it was tested with.
- The agent runs on a Mac, Linux or Windows machine. MR Configurator2 stays on its Windows PC and is reached over SSH, or everything runs on that one PC.
- Amplifiers on USB (tested) or RS-232C.
Safety
- Writing parameters, resetting alarms, test operation, forced outputs and raw protocol frames need an explicit confirmation.
- Values are checked against MR Configurator2's limits before anything is written, and read back afterwards.
- There is no default PC. Each project names the PC it works on.
- Only one program can hold the servo link at a time, so close MR Configurator2's online connection first.
Limits
- Real motion hasn't been tested yet, because the test drive had no motor.
- Online parameter reads and writes for MR-J5, MR-JET-G and a few other newer series aren't supported by the engine version tested. Their project files work.
- These features are built into the MR Configurator2 program, outside the engines it uses, and aren't covered yet: one-touch tuning, the graph display, the drive recorder, machine diagnosis, safety parameters and converting projects between models.
- Connections through a PLC or motion controller aren't covered yet.
- MR Configurator2 has to be installed and licensed on the Windows PC.
Contact
For access, licensing or a demo:
MR2-Configurator-MCP-CLI is proprietary. This repository is an overview; the source is private. MR Configurator2, MELSERVO and MELSOFT are trademarks of Mitsubishi Electric Corporation. This project is independent and is not affiliated with or endorsed by Mitsubishi Electric.
What do people ask about it?
Is there an MCP server for Mitsubishi MR Configurator2?
Yes: MR2-Configurator-MCP-CLI. It connects Claude, or any other agent that speaks the Model Context Protocol (MCP), to MR Configurator2, Mitsubishi Electric's setup software for MELSERVO servo amplifiers. The agent reads and writes drive parameters, checks alarms and status, tests the I/O and builds .mrc2 project files. It works through the engines MR Configurator2 itself uses, so the program's window never opens. The MCP server has two tools: one runs a single command, the other runs a short Python script in one session.
Can an AI agent read and change MELSERVO servo parameters?
Yes. On an MR-JE-70B connected over USB it read the model, the current alarm with a 16-entry history, 52 monitor values and all 320 parameters, the parameters in about 20 seconds. Writes are checked against MR Configurator2's own ranges and digit options before anything is sent, and each value is read back. In the test, PA09 went from 28 to 27 and back to 28, and a batch with one out-of-range value wrote nothing.
Can MR Configurator2 be used from the command line, without opening it?
Yes. The same commands run in a terminal as mrc2: amplifier information, alarms, the status monitor, parameters, and new or edited .mrc2 projects for any of the 63 amplifier models in MR Configurator2's catalogue. A command takes about 2 seconds and a project edit about 10. MR Configurator2 stays installed and licensed on its Windows PC, and the agent or the terminal can sit on a Mac, a Linux machine or another Windows PC and reach it over SSH. Nobody has to be logged in at that PC.
Which servo amplifiers does it work with?
Project files work for all 63 models in MR Configurator2's catalogue: a project was created and re-opened for each one. Online work was tested on an MR-JE-70B over USB, and RS-232C is supported. Online parameter reads and writes for the MR-J5, the MR-JET-G and a few other newer series are not supported by the engine version tested, although their project files work. It was tested with MR Configurator2 version 1.165X.
Can the agent move a motor or change a drive on its own?
No. Writing parameters, resetting alarms, test operation, forced outputs and raw protocol frames each need an explicit confirmation. Real motion has not been tested yet, because the test drive had no motor. Only one program can hold the servo link at a time, so MR Configurator2's own online connection has to be closed first.
What does it not cover yet?
One-touch tuning, the graph display, the drive recorder, machine diagnosis, safety parameters and converting projects between models are built into the MR Configurator2 program, outside the engines it uses, and are not covered. Connections through a PLC or a motion controller are not covered either.
Is MR2-Configurator-MCP-CLI open source?
No. It is proprietary: the GitHub repository is an overview and the source is private. It is independent of Mitsubishi Electric. Ask through the contact page about access, licensing or a demo.
What else did I build?
GXBridge-MCP
Control Mitsubishi GX Works3 and your PLC with AI — an MCP server for any agent GX Works3 · Mitsubishi PLC
TIA-Portal-MCP
TIA Portal MCP server: control Siemens TIA Portal, STEP 7 and S7-1200/S7-1500 PLCs with AI (Claude, Cursor, any MCP client). Write LAD/SCL PLC code, configure hardware and WinCC HMI, compile, test in PLCSIM and download. TIA Portal · Siemens Plc
eplanbridge
Drive EPLAN Pro Panel 2022.0.3 from outside the application — and build a 6-axis robot-arm control schematic with it. EPLAN Pro Panel · EPLAN