Skip to main content
Glama
Svel26

Sigmatek LASAL MCP Server

by Svel26

Sigmatek LASAL MCP Server

A Model Context Protocol (MCP) server for automating the Sigmatek LASAL software suite. It gives AI coding assistants (Claude, Gemini, Cursor, etc.) the ability to compile, deploy to hardware, control PLCs, read/write live values, run HMI simulations, and automate a headless browser — while the agent edits project files directly.

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.

Design Philosophy

The MCP only exposes tools for operations that require an external engine or hardware — compiling, deploying, PLC control, browser automation. For everything else (reading/editing .st, .lcp, .lcn, .lss, .lvp, dashboard JSON), the AI agent works with the files directly using its native file tools. This keeps the tool set small, reliable, and focused.

Related MCP server: B&R Automation Studio MCP Server

Features

  • Build & Deploy: Compile CLASS 2 projects, download to PLC, full deploy pipelines.

  • PLC Control: Start/stop PLC runtime, read/write live channel values, query state.

  • CLASS 2 Batch Engine: Create/delete networks, add/remove objects, manage connections, configure tasks — operations that require the CLASS 2 scripting engine.

  • VISUDesigner Engine: Sync datapoints, manage text lists/schemes/media, publish, download to HMI.

  • HMI Simulation: Local web runtime via LasalVISUDataService with headless Edge browser automation for visual verification.

  • PLC Diagnostics: Tracing, file transfer, static code analysis.

  • Project Guide: Built-in resource (lasal://guide) documenting all LASAL file formats so the agent can edit project files directly.

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 build

Configuration

Environment Variables

Variable

Default

Purpose

LASAL_CLASS2_EXE

C:\Program Files (x86)\Sigmatek\Lasal\Class2\Bin\Lasal2.exe

CLASS 2 IDE path

LASAL_VISUDESIGNER_EXE

C:\Program Files\Sigmatek\Lasal\VISUDesigner\VISUDesigner.exe

VISUDesigner path

LASAL_DATASERVICE_EXE

auto-discovered (latest version)

DataService path

LASAL_EDGE_EXE

auto-discovered

Edge browser path

LASAL_MCP_TIMEOUT_COMPILE

600000

Compile timeout (ms)

LASAL_MCP_TIMEOUT_DOWNLOAD

600000

Download timeout (ms)

LASAL_MCP_TIMEOUT_VISU

300000

Visu operation timeout (ms)

LASAL_MCP_TIMEOUT_SCRIPT

120000

Script execution timeout (ms)

LASAL_MCP_HMI_DIR

C:\lslvisu

Local HMI runtime directory

LASAL_MCP_SCRATCH_MAX_AGE_H

24

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

Engine & Hardware Tools (MCP)

Tool

Description

select_project

Set the active project root directory.

lasal_status

Check project, stations, engines, processes, HMI health.

manage_class2

Open or close the CLASS 2 IDE.

manage_visudesigner

Open or close VISUDesigner.

build_project

Compile or download to PLC.

control_plc

Start, stop, or query PLC runtime state.

plc_values

Read/write live channel values on a running PLC.

apply_project_changes

CLASS 2 batch engine operations (networks, objects, connections, tasks).

visu_project

VISUDesigner engine operations (text lists, schemes, media, publish, download).

hmi_runtime

Start/stop local HMI web simulation (DataService).

hmi_browser

Headless Edge browser for HMI testing and screenshots.

plc_diagnostics

Tracing, file transfer, static code analysis.

deploy_all

Full pipeline: compile → download → start PLC → sync visu → start HMI.

Direct File Editing (no MCP needed)

The agent edits these files directly with its native file tools:

File

Format

Encoding

What it contains

.lsm

XML

latin1

Solution — lists all stations

.lss

XML

latin1

Station settings — target IP, project references

.lcp

XML

latin1

CLASS 2 project manifest — class and network file paths

.st

XML + ST

latin1

Class source — XML header + Structured Text body

.lcn

XML

latin1

Network definitions — objects, connections, init values

.lvp

Mixed

utf-8

VISUDesigner project manifest

Dashboard JSON

JSON

utf-8

HMI dashboards, windows, controls, property bindings

See the built-in lasal://guide resource for detailed file format documentation.

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 debugging
Install Server
F
license - not found
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    -
    quality
    D
    maintenance
    Enables AI assistants to interact with SIEMENS PLC S7-1500/1200 controllers through their JSON-RPC API, supporting authentication, tag browsing, variable read/write operations, alarm management, and diagnostic buffer access.
    Last updated
    10
  • A
    license
    -
    quality
    D
    maintenance
    Enables 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.
    Last updated
    12
    MIT
  • F
    license
    -
    quality
    B
    maintenance
    MCP server that connects AI assistants to Siemens TIA Portal via the Openness API. AI-assisted PLC programming, project management, hardware configuration, cross-reference analysis, and deployment. 16 tools, 166 actions.
    Last updated
    16

View all related MCP servers

Related MCP Connectors

  • AI-powered browser automation — navigate, click, fill forms, and extract data from any website.

  • AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).

  • Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.

View all MCP Connectors

Latest Blog Posts

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