Sigmatek LASAL MCP Server

Sigmatek LASAL MCP Server

Automates 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.

Category
访问服务器

README

Sigmatek LASAL MCP Server

An Model Context Protocol (MCP) server for automating the Sigmatek LASAL software suite. It enables AI coding assistants (like Gemini, Claude, 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 currently in active development, which means bugs and unpredictable behavior are highly likely. Do not use this on actual, active production projects without keeping a secure copy/backup of your files, or utilizing a robust version control system (like Git) to easily revert unwanted changes.

Features

  • Project Navigation: Select the active project directory and auto-resolve .lcp and .lvp paths.
  • 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 .st source 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.
  • 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.

Prerequisites

  • Windows OS (Sigmatek LASAL suite runs exclusively on Windows).
  • Node.js (v18 or higher recommended).
  • Sigmatek LASAL Suite:
    • LASAL CLASS 2 (for PLC engineering).
    • VISUDesigner (for HMI design).

Installation & Setup

  1. Clone the repository:
    git clone <repository-url>
    cd Lasal-MCP

  2. Install dependencies:
    npm install

  3. Build the server:
    npm run build

Configuration

Environment Variables

If Sigmatek LASAL is installed in non-standard paths, configure them using the following environment variables:

  • LASAL_CLASS2_EXE: Full path to Lasal2.exe (Defaults to C:\Program Files (x86)\Sigmatek\Lasal\Class2\Bin\Lasal2.exe).
  • LASAL_VISUDESIGNER_EXE: Full path to VISUDesigner.exe (Defaults to C:\Program Files\Sigmatek\Lasal\VISUDesigner\VISUDesigner.exe).

Connecting to MCP Clients

Claude Desktop

Add the following config to your %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"
}
}
}
}

Available Tools

Tool Name Description
select_project Set the active project root directory path.
open_class2 / close_class2 Open or close the LASAL CLASS 2 IDE.
open_visudesigner / close_visudesigner Open or close the VISUDesigner HMI editor.
inspect_project Get structural details of networks, classes, objects, and connections.
inspect_visu_project Get HMI details of stations, datapoints, schemes, and languages.
read_class_source / write_class_source Read or write raw Structured Text (.st) code for classes.
apply_project_changes Perform structural modifications (creating networks, instantiating classes).
apply_visu_changes Modify HMI elements, CSV translations, media files, and schemes.
compile_project Compile the PLC project.
set_target_ip Set the online target IP address.
download_project / download_visu_project Download PLC runtime or HMI visualisation to hardware.
get_plc_state / start_plc / stop_plc Monitor and control PLC runtime state.
read_plc_values / write_plc_values Query or update live channel values on the PLC.
deploy_all Sequence compilation, PLC download, HMI update, and HMI download in one call.

Development

  • Run in developer mode (watch mode):
    npm run dev

  • Use the MCP Inspector to debug and test tools interactively:
    npm run inspector

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选