RemoteConnect MCP Server
Provides tools for interacting with Schneider Electric RemoteConnect and Control Expert/UnitySoControl automation projects, including browsing and editing IEC logic, managing variables, hardware, Modbus scan configuration, networks, and building or analyzing projects.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RemoteConnect MCP Serverinspect my RemoteConnect project and list its program sections"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RemoteConnect MCP Server
An MCP server for Schneider Electric RemoteConnect and its SCADAPack x70
UnitySoControl logic editor. It discovers paired .PRJ/.RCZ/.STU/.STA
files and lets AI agents inspect, edit, rebuild, and save IEC logic safely.
Inspired by tiaportal-mcp for Siemens TIA Portal. Where TIA Portal exposes the Openness API, Control Expert exposes the Unity Developer's Edition (UDE) COM automation server (PSBroker.PServerBroker) — this server drives it through pywin32 and exposes it as MCP tools over stdio.
AI agent ──MCP/stdio──> remoteconnect-mcp ──COM/UDE──> UnitySoControlWhat the AI can do
Projects: create from scratch for any CPU in the hardware catalog (M340, M580, Premium, Quantum...), open/save
.stu/.sta, import/export.xef/.zefBrowse: tasks, sections, variables, DFB/DDT types, CPU/hardware info, build state
Program: create/read/delete sections in ST, LD, FBD, SFC, IL; write logic by importing Control Expert XML (the AI reads an existing section's XML once and mirrors the schema — validated round-trip for all five languages)
Hardware: walk the full bus → drop → rack → module topology, add/remove IO modules by catalog part number, change the CPU
Modbus / DTMs (validated live on M580): browse the DTM topology, add slave DTMs (
add_dtm("Modbus Device", ..., parent_dtm="BMEP58_ECPU_EXT")— the protocol id isModbusand is auto-tried), set device IP addresses, read the scanner state (get_dtm_control_parameters), and add Modbus scan requests (read/write addresses + sizes) by editing the master DTM dataset throughget_master_dtm_dataset/set_master_dtm_dataset— aManagedModbusRequesttemplate with the numbering rules is built into the tool description; a written scan line buildsbuilt_okand shows up as aModbusScanLinein the scanner configNetworks (Premium/Quantum): create logical Ethernet networks and set their IP service configuration
Variables: list/create/update/delete global variables incl. type, comment, address (
%MW...), initial valueBuild: analyze and build the project, get the resulting build state
UI: pop the Control Expert window open so a human can watch or take over, and open an animation table's editor live (
open_animation_table) to watch values animate while the AI drives a testOnline (opt-in): connect to PLC/simulator, download/upload, run/stop
Live values (opt-in): read and write running PLC/simulator values over Modbus TCP (
modbus_connect→read_tags/write_tags) — the UDE/COM API has no live tag access, so this is the channel for testing logic against a running controller (located%M/%MWtags; mirror unlocated DFB internals to%MWfirst)
Related MCP server: control-expert-mcp
Requirements
Windows with EcoStruxure Control Expert (or Unity Pro) installed and licensed — tested against Control Expert 14.0, but any version that registers
PSBroker.PServerBroker.1should work (the UDE automation server ships with Control Expert itself; the separate UDE package is only needed for documentation)Python 3.10+ with
pywin32The server must run on the same machine as Control Expert (DCOM remoting is possible but not configured here)
Install
cd remoteconnect-mcp
python -m venv .venv
.venv\Scripts\pip install -e .Hook up an AI client
The server speaks MCP over stdio. Point your client at the venv's Python:
RemoteConnect / SCADAPack x70
RemoteConnect stores IEC logic in a .STU/.STA file beside its .PRJ and
optional .RCZ configuration files. Set the OEM product context before
starting the MCP server so the broker launches UnitySoControl rather than the
standard Control Expert product context:
$env:CE_MCP_XPDF_CONTEXT = "C:\ProgramData\Schneider Electric\CommonControlExpert\16.2\Xpdf\SCBForSCADAPack.xpdf"Use inspect_remoteconnect_project with any member of the bundle to discover
the paired files, then open_remoteconnect_logic to open the logic project.
The .PRJ inspector is read-only and intentionally does not deserialize or
rewrite opaque DTM engineering data.
Claude Desktop
%APPDATA%\Claude\claude_desktop_config.json (see samples/claude_desktop_config.json):
{
"mcpServers": {
"control-expert": {
"command": "C:\\path\\to\\control-expert-mcp\\.venv\\Scripts\\python.exe",
"args": ["-m", "control_expert_mcp"]
}
}
}Claude Code
claude mcp add control-expert -- C:\path\to\control-expert-mcp\.venv\Scripts\python.exe -m control_expert_mcpVS Code (GitHub Copilot agent mode)
.vscode/mcp.json (see samples/vscode-mcp.json):
{
"servers": {
"control-expert": {
"type": "stdio",
"command": "C:\\path\\to\\control-expert-mcp\\.venv\\Scripts\\python.exe",
"args": ["-m", "control_expert_mcp"]
}
}
}Tools
Tool | Purpose |
| Server version, open project, CPU, build state |
| Read-only discovery and summary of paired RemoteConnect |
| Read-only FDT/DTM topology and configuration-record inventory; never deserializes opaque vendor payloads |
| Parse Object Bulk Edit logs into per-object changes, warnings, errors, and an |
| Read native RemoteConnect |
| Apply exact-row typed patches to a new |
| Open a bundle's paired UnitySoControl logic file using the configured OEM context |
| Add variables/ST, full rebuild, and save only a clean result to a new |
| Open |
| Create a project for a CPU (e.g. |
| Persist / close (close discards unless |
| Build or analyze; returns resulting build state |
| Tasks, sections (+language), events, fct modules |
| Variables with type/comment/address/initial value |
| Variable editing |
| Section logic as Control Expert XML |
| Write ST logic as plain IEC text (no XML) — creates or replaces a section, with inline variable declarations |
| Authoring guide + validated example for ST/LD/FBD/SFC/IL — the exchange-XML structure rules an AI client needs to write graphical logic (FBD pin-geometry rule, LD line/cell model, SFC chart layout) |
| Pre-validate candidate exchange-XML against the installed |
| Drop any project DFB into Ladder, no template — reads the DFB interface and generates the correct (CE-owned) pin geometry automatically, then bind pins |
| Clone a GUI-authored block-in-LD template and rebind instance + variables (fallback for elementary EFBs / exact GUI geometry) |
| Section management (ST/LD/FBD/SFC/IL) |
| Add MAST/FAST/AUX/SAFE task |
| The main write path — import section logic, variables, DFB/DDT types, configuration, or whole-project exchange files (inline XML or file) |
| Export variables / program / configuration / one DFB / one section as XML |
| Full application export to |
| DFB + DDT types |
| CPU + bus → drop → rack → module tree |
| Add/remove rack modules by part number + catalog version (e.g. |
| Build out remote drops/racks (e.g. an X80 EIO drop + |
| Swap the CPU reference |
| Watch/animation tables (accepts hierarchical paths like |
| DTM Browser topology with names, types, addresses |
| Add communication DTMs or slave devices (e.g. |
| Set a slave's IP / bus address (+ optional gateway/subnet — fixes the "IP Address and Gateway address are not in the same domain" build warning) |
| M580 CPU embedded Ethernet: IP/subnet/gateway + Security-screen services (tftp/eip/dhcp_bootp/ftp/web/snmp). Enabling tftp+eip+dhcp_bootp clears the remote-EIO CRA build error |
| Modbus TCP I/O scanner config XML ( |
| A slave DTM's own dataset (identity + bus address) |
| The master/CPU DTM dataset (via ZEF round-trip) — |
| Logical networks on Premium/Quantum |
| Make the Control Expert window visible (read-only by default so it can follow along / open editors while the client keeps write) |
| Open an animation table's editor in the live CE window so a human watches values animate during a test |
| Online: setup/connect/disconnect/state/transfer/run/stop |
| Open/close a Modbus TCP link to the CPU/simulator's server ( |
| Read/write LIVE located-tag values ( |
How the AI writes logic
Program sections are exchanged as Control Expert XML. An ST section looks like:
<STExchangeFile>
<fileHeader company="Schneider Automation" product="Control Expert V14.0 - 190112"
dateTime="date_and_time#2026-6-11-1:0:0" content="Structured source file"
DTDVersion="41"></fileHeader>
<contentHeader name="Project" version="0.0.000"></contentHeader>
<program>
<identProgram name="Logic01" type="section" task="MAST"></identProgram>
<STSource>
IF StartButton AND NOT StopButton THEN
MotorRun := TRUE;
ELSE
MotorRun := FALSE;
END_IF;
</STSource>
</program>
</STExchangeFile>import_xml(kind="section", xml_content=...) creates the section if it doesn't exist, or deletes-and-replaces it on conflict. The agent should declare referenced variables first (create_variable) or include a <dataBlock>, then build_project to validate.
Online tools (live PLC / simulator) — disabled by default
Tools that touch a controller (plc_connect, plc_transfer, plc_command, ...) are not registered unless you set the environment variable:
CE_MCP_ENABLE_ONLINE=1Starting/stopping a PLC or downloading an application affects the physical process. Only enable this on test benches or with the simulator, and keep a human in the loop.
Simulator commissioning (validated end to end): launch the PLC simulator first — start_simulator or PLC_Simulator\sim.exe from the Control Expert install (it sits in the tray) — then plc_setup_connection("simulator", "127.0.0.1") → plc_connect("simulator") → plc_transfer("pc_to_plc") → plc_command("run"). The project must build clean (built_ok) before download. plc_state reports connection + run/stop and whether PC == PLC.
Known limitation: a freshly started simulator with no station loaded (
plc_state=no_conf) rejectsplc_transferwith "Family check failed" — the API download (unlike the Control Expert GUI's) requires the sim to already have a station of a matching family. Seed it once by transferring any project from the Control Expert GUI (PLC → Simulation Mode → Connect → Transfer); the loaded station persists while sim.exe runs, and all API downloads work from then on (stop the PLC first — transfer to a running PLC fails).
Live values over Modbus TCP (validated end to end)
The UDE/COM automation API serves the project database — it has no live tag-value read/write (animation tables only render in the GUI; IVariable exposes only the offline initial value). Live values go over the CPU's Modbus TCP server instead — the same channel SCADA/Vijeo use:
modbus_connect(host="127.0.0.1") # the sim's Modbus server; or a real CPU IP, port 502
read_tags("EMFM1FLOW, RESIDUAL2CLTHSP, %MW0, %MW2:REAL")
write_tags({"RESIDUAL2CLTHSP": 4.0, "%MX100.0": true})Tags are global variable names (address + IEC type resolved from the project) or explicit addresses with optional
:TYPE(%MW86,%MW2:REAL,%MW70:UDINT,%M3,%MW10.2bit). Decoding is type-driven (INT/UINT, DINT/UDINT, REAL, BOOL coil/word-bit).Only LOCATED
%M/%MWtags are reachable. Unlocated DFB internals (e.g.Pump1.Running) must be mirrored to%MW/%Min the program first (see thetest_logic_liveprompt).32-bit
REAL/DINTuse Schneider low-word-first order by default; password_order="high_first"if a server differs.The Control Expert simulator exposes a Modbus server on
127.0.0.1:502, so the whole read/write test loop works against the sim — no hardware required.
Prompts (guided workflows)
The server ships MCP prompts (src/control_expert_mcp/prompts.py) — reusable recipes that encode the validated flows and their non-obvious gotchas so a client doesn't rediscover them by trial and error. In Claude Code they appear as /mcp__control-expert__<name> slash commands; other MCP clients list them in their prompt picker.
Prompt | What it walks you through |
| Build → start sim → connect → transfer → run, incl. the manual first-transfer / "Family check failed" seed step |
| The Modbus test loop for a DFB instance, incl. mirroring unlocated internals to |
| The |
|
|
| Add a Modbus-TCP slave DTM under the M580 CPU and configure a scan line |
Extending the server
When you add a tool or capability, also add (or extend) an MCP prompt in prompts.py that walks a client through using it. This is a project convention, not an afterthought: a good prompt turns an hour of trial-and-error into one slash command.
Write a prompt for anything a client cannot guess from the tool description alone — an environment flag (CE_MCP_ENABLE_ONLINE), a manual GUI step (the simulator family-check seed), an ordering constraint (stop the PLC before transfer), or an addressing rule (located-only Modbus, low-word-first REALs). Rules of thumb:
Each new workflow → a prompt; each new tool → at least a mention in a relevant prompt.
Put the gotcha in the prompt text explicitly (the steps that cost you time while building it).
Mirror the validated sequence (tool names + argument shapes), and reference related prompts by name.
Keep the standing orientation in the server
instructionsstring short; put step-by-step recipes in prompts.
Troubleshooting
Catalog object not foundonnew_project— the CPU part number/version must exactly match the hardware catalog of your Control Expert version (spacing matters:BMX P34 2020, firmware like02.70is required).application object reference is not found in the catalogonadd_io_module— same rule for modules: the catalog version is mandatory (02.00for most M340 IO modules,01.00for racks/power supplies).new_projectfails with a bareException occurredfor a CPU family — your Control Expert license/DTM library probably doesn't include that platform. The error carries no description; test the same CPU in the Control Expert GUI to confirm.add_dtmsays "protocol Id parameter is empty or invalid" / "Impossible to create a new DTM object" — slave DTMs need the FDT protocol name as protocol_id (Modbusfor the generic Modbus TCP device; the server auto-triesModbusandEtherNet/IPwhen empty) and a device_type_name that exactly matches the DTM catalog (Modbus Device). List the catalog names withtools/list_dtm_catalog.py.set_master_dtm_datasetcrashes the server (RPC failed) — almost always malformed request XML; in particularrequestUniqueIDmust be a fresh GUID, not an integer. Mirror the validated template in the tool description exactly.Write access mode is already reserved by another client— Control Expert (the GUI) or another automation client has the project open for writing. Close it there first. The server holds one write token per session by design.Broker creation fails — Control Expert isn't installed, or its COM registration is broken (re-register by repairing the installation).
First call is slow —
open_project/new_projectstart the Unity server process and can take 30–120 s for large projects. Configure generous tool timeouts in your client.Import fails with
Invalid file— the XML doesn't match the exchange schema. Export a similar object first (read_section,export_xml) and mirror its structure, includingfileHeader/contentHeader.
Architecture notes
All COM calls run on a single dedicated STA worker thread (COM apartment affinity); MCP tool calls are marshalled onto it (the dispatcher is reentrant — nested bridge calls on the worker thread execute directly).
Hardware and DTM objects expose their members on secondary dual interfaces (
IProject3,IConfiguration2,IBus,IModule,IPServerDtm*, ...) that the default dispinterface doesn't include. The bridge QIs each object with IIDs harvested fromHKCR\Interfaceand wraps the result as IDispatch (_qi), which is the only way to reachDTMRoot,InternalBuses,AddChild, etc. from late-bound clients.The write-access token (
app.Project(1)) is acquired once per session and cached; failed-call tracebacks are stripped so they can't pin COM references and deadlockProjectClose.Projectis a parameterized COM property — it is invoked with explicitDISPATCH_PROPERTYGETflags because pywin32 dynamic dispatch can't call it.Import temp files get the extension matching the XML root element (
STExchangeFile→.xst,VariablesExchangeFile→.xsy, ...) because Control Expert picks the parser from the extension.Enum constants (languages, export options, PLC commands...) were extracted from
PServer.tlb— see src/control_expert_mcp/constants.py.
Disclaimer
Not affiliated with Schneider Electric. The UDE automation interface is provided by Schneider "as is" and is no longer commercialized; this project drives it at your own risk. Never point online tools at production equipment without qualified supervision.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with B\&R Automation Studio projects by building code, running ARsim simulators, and reading or writing OPC UA variables. It facilitates industrial automation development and real-time variable integration through natural language commands.13MIT
- AlicenseBqualityBmaintenanceMCP server that enables AI agents to read, edit, and create PLC projects in EcoStruxure Control Expert via COM automation.52MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered PLC programming with natural language to ladder logic conversion, L5X and .ACD project generation, and semantic search through L5X files and documentation.35
- FlicenseAqualityBmaintenanceAutomates the Sigmatek LASAL software suite for PLC and HMI engineering, enabling AI assistants to inspect projects, apply structural changes, compile, download to hardware, and control PLC runtime.21
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Manage SRG+ hubs, channels, content, assets, users, and workspaces from any MCP-aware AI agent.
Create and manage AI agents that collaborate and solve problems through natural language interacti…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/apexsotjo-blip/remoteconnect-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server