Sigmatek LASAL MCP Server
The Sigmatek LASAL MCP Server enables AI assistants to automate the full Sigmatek LASAL engineering workflow for PLC and HMI development — from project inspection and code editing to compilation, deployment, and live runtime control.
Project Management
Select the active LASAL project directory and resolve project files
Inspect CLASS 2 project structure: classes, networks, objects, channels, and connections
Inspect VISUDesigner HMI projects: stations, datapoints, text lists, and schemes
Source Code & Structural Editing
Read and write Structured Text (
.st) and header (.h) files for CLASS 2 classesApply transactional structural changes: create/delete/rename networks, add/remove/rename objects, connect/disconnect channels, set init values, and delete classes — with rollback support
IDE Control
Open and close the LASAL CLASS 2 and VISUDesigner IDEs
Build & Deployment
Compile CLASS 2 projects in configurable modes (RebuildAll, BuildChanges, etc.) and retrieve compiler logs, errors, and warnings
Download compiled projects to target PLCs over TCP
Set target PLC/HMI IP addresses in project configuration
Run a full deploy pipeline in one call: compile → download to PLC → update VISUDesigner stations → optionally download to HMI
PLC Runtime Control
Start, stop, and query the runtime state of a PLC (Running, Stopped, Offline)
Read and write live channel values on a running PLC
VISUDesigner (HMI) Automation
Apply headless HMI changes: sync datapoints, manage text lists and translations (CSV import/export), configure schemes, manage media assets, add/remove code modules, and edit datapoint/datatype properties
Download VISUDesigner projects to HMI devices
HMI Simulation & Diagnostics
Start/stop a local HMI web runtime (LasalVISUDataService) and automate testing via headless browser
Access PLC diagnostics: tracing, file transfer, and static code analysis
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., "@Sigmatek LASAL MCP ServerCompile and download the PLC project to the target hardware."
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.
Sigmatek LASAL MCP Server
A Model Context Protocol (MCP) server for automating the Sigmatek LASAL software suite. It enables AI coding assistants (like Claude, Gemini, or Cursor) to inspect projects, apply structural CLASS 2 or VISUDesigner HMI changes, compile, download to hardware, read/write live PLC values, and control PLC execution.
Warning: This is NOT an official Sigmatek product. This project is in active development — bugs and unpredictable behavior are likely. Do not use on production projects without backups or version control.
Features
Project Navigation: Select the active project directory and auto-resolve
.lcpand.lvppaths.CLASS 2 Automation:
Inspect project structure (classes, networks, connections, server/client channels).
Open and close the CLASS 2 IDE.
Apply structural edits (create/delete/rename networks, add/remove/rename objects, connect/disconnect channels, set init values).
Read and write class
.stsource files directly.Compile projects and read compiler logs (errors and warnings).
VISUDesigner Automation:
Inspect HMI projects (stations, datapoints, text lists, schemes).
Open and close VISUDesigner.
Apply changes headlessly (sync datapoints, edit properties, configure schemes, manage media assets, add code modules).
CSV translation import and export.
Direct dashboard/window/style editing via JSON.
PLC Runtime & Live Connection:
Configure target online IP addresses.
Download projects to the target PLC or HMI.
Read and write live channel values from a running PLC.
Start, stop, or query the current PLC runtime state.
PLC diagnostics (tracing, file transfer, static code analysis).
HMI Simulation:
Local HMI web runtime via LasalVISUDataService.
Headless Edge browser automation for testing.
Related MCP server: B&R Automation Studio MCP Server
Prerequisites
Windows OS (Sigmatek LASAL suite runs exclusively on Windows).
Node.js v18 or higher.
Sigmatek LASAL Suite:
LASAL CLASS 2 (PLC engineering).
VISUDesigner (HMI design).
Installation & Setup
git clone <repository-url>
cd Lasal-MCP
npm install
npm run buildConfiguration
Environment Variables
Variable | Default | Purpose |
|
| CLASS 2 IDE path |
|
| VISUDesigner path |
| auto-discovered (latest version) | DataService path |
| auto-discovered | Edge browser path |
|
| Compile timeout (ms) |
|
| Download timeout (ms) |
|
| Visu operation timeout (ms) |
|
| Script execution timeout (ms) |
|
| Local HMI runtime directory |
|
| Hours before temp files are cleaned |
Connecting to MCP Clients
Claude Desktop
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"lasal-mcp": {
"command": "node",
"args": ["C:/path/to/Lasal-MCP/dist/server.js"],
"env": {
"LASAL_CLASS2_EXE": "C:\\Program Files (x86)\\Sigmatek\\Lasal\\Class2\\Bin\\Lasal2.exe",
"LASAL_VISUDESIGNER_EXE": "C:\\Program Files\\Sigmatek\\Lasal\\VISUDesigner\\VISUDesigner.exe"
}
}
}
}Claude Code
Add to .claude/settings.json or run claude mcp add:
{
"mcpServers": {
"lasal-mcp": {
"command": "node",
"args": ["C:/path/to/Lasal-MCP/dist/server.js"]
}
}
}Available Tools
Tool | Description |
| Set the active project root directory. |
| Check project, stations, engines, processes, HMI health. |
| Open or close the CLASS 2 IDE. |
| Open or close VISUDesigner. |
| Scan CLASS 2 structure (classes, networks, connections). |
| Scan HMI config (stations, datapoints, schemes). |
| Read or write Structured Text (.st) source code. |
| Set the target PLC/HMI IP in the .lss file. |
| Structural edits with transactional rollback. Supports |
| Compile or download to PLC. |
| Start, stop, or query PLC runtime state. |
| Read/write live channel values on a running PLC. |
| Apply VISUDesigner changes or download to HMI. |
| Direct read/write of dashboards, windows, styles in LVP JSON. |
| Start/stop local HMI web simulation (DataService). |
| Headless Edge browser for HMI testing. |
| Tracing, file transfer, static code analysis. |
| Full pipeline: compile, download, start PLC, sync visu, start HMI. |
Development
npm run dev # Watch mode
npm test # Run tests (Vitest)
npm run test:watch # Tests in watch mode
npm run lint # ESLint
npm run format # Prettier
npm run inspector # MCP Inspector for interactive debuggingArchitecture
See ARCHITECTURE.md for the full codebase layout, key patterns (engine mutex, script execution, file encoding, transactional edits), and environment variable reference.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/Svel26/Lasal-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server