
Alicat Mass Flow & Pressure Controller
io.github.K-Dense-AI由 GitHub 账号 K-Dense-AI 发布v0.1.2更新于 Oct 25, 2026
MCP server for Alicat mass flow and pressure meters/controllers.
概览
该 MCP 服务器让助手通过 ASCII 串口连接读取并控制 Alicat 质量流量计、流量控制器和压力控制器。
- 可以做什么
- 读取实时数据帧:质量流量、体积流量、压力、温度、设定值、当前气体和状态码,以及设备身份、单位和满量程,并可查看原始命令日志用于调试。记录读数时间序列并给出均值、标准差、最小值和最大值,用于稳定性或稳定时间检查。修改控制器设定值以启动、调整或停止流量或压力,并保持、释放或关闭阀门。切换气体标定,并对流量或压力读数执行归零。在断电或更换线缆后重新连接仪器。
- 适用场景
- 当 Alicat 流量计或控制器连接到运行助手的机器,且你希望用对话方式读取数据、修改设定值、切换气体、归零或做短时记录,而不必手动操作前面板时适用。内置模拟器可在没有硬件时试用。
- 运行要求
- 以 Python 包(uvx labmcp-alicat)在桌面本地运行。需要与仪器之间的串口或串口转以太网连接,通过 LABMCP_ADDRESS 或地址参数指定;设备须处于轮询模式并设置单元 ID,控制器还需将设定值来源设为串口。可选环境变量 LABMCP_LIMITS、LABMCP_READ_ONLY 和 LABMCP_SIMULATE。无需账号或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Alicat Mass Flow & Pressure Controller,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Alicat Mass Flow & Pressure Controller — MCP Server
Let an AI agent read gas flow, pressure and temperature, set flow or pressure setpoints, switch the gas calibration, tare, and hold or close valves on Alicat Scientific mass flow meters and controllers and pressure controllers through Alicat's documented ASCII serial protocol.
Try it without hardware
The simulator is an MC-500SCCM-D on firmware 10v20 flowing N2, with a first-order flow response, a small sensor zero offset (remove it with tare_flow) and realistic data frames.
Connect your instrument
- Instrument setup: the factory settings are unit ID A, 19200 baud, 8 data bits, no parity, 1 stop bit, no flow control (MENU → SETUP → RS-232 Serial / RS-485 Serial). If several devices share one RS-485 port, give each a different unit ID. The device must be in polling mode (a letter ID, not
@streaming). - Controllers: set MENU → CONTROL → Setpoint Setup → Setpoint Source to Serial/Front Panel. With an analog setpoint source the controller silently ignores serial setpoints (
get_device_infowarns about this). - Find the port:
uvx labmcp ports - Test the connection:
Non-default baud rates go in the address:
serial://COM4?baudrate=115200.
Add to your MCP client
Claude Code
Claude Desktop / Cursor / Windsurf (claude_desktop_config.json, .cursor/mcp.json, …)
Add --read-only to allow reading flow but block setpoints, gas changes, tares and valve holds (close_valve stays available). For several devices on one bus, add one server entry per unit ID (--option unit_id=A, --option unit_id=B, ...). For other clients, generate the snippet with uvx labmcp config alicat --address /dev/ttyUSB0 --client vscode.
Tools
get_connection_info, get_command_log and reconnect are built into every LabMCP server.
Safety limits
Override at launch, e.g. --limit max_setpoint=500. The default of 100 is deliberately conservative: on a 500 SCCM controller it caps the agent at 100 SCCM until you raise it.
Example prompts
- "What is this controller, what gas is it set to, and what are its units and full scale?"
- "Set the N2 flow to 50 SCCM, log it every 0.5 s for 30 s and tell me how long it took to settle within 1%."
- "Switch the controller to CO2, then ramp the setpoint 0 → 20 → 40 → 60 SCCM, holding each step for 2 minutes, and summarise the mean flow and pressure at each step."
- "The flow reads 0.8 SCCM with the gas off. Close the valve, then tare the flow sensor."
- "Something is wrong with the bioreactor gassing: stop the flow now."
Notes
- Data frame parsing. On connect the server asks the device for its data-frame definition (
??D*) and parses every poll against it, so field names, order and engineering units come from the device itself (both the 6v+ column table and the older pre-6v table are understood). If a device does not answer??D*, frames are parsed by position using the default layouts in the Serial Primer (p. 8) and the manual;layout_sourcein every reading says which method was used. - Setpoints use
LSon firmware 9v00+ andSon older firmware. After every change the reply is checked: if the controller reports a different requested setpoint (out of range, negative on a unidirectional device, or an analog setpoint source), the tool reports an error with what the device is now using. close_valvesets the flow setpoint to 0 (on a flow controller this closes the valve) and then sendsHC(hold valves closed, firmware 5v07+), and confirmsHLDin the reply. On a pressure controller it only sendsHC, because a 0 pressure setpoint can open valves depending on the zero-pressure-control setting (Serial Primer p. 17).resume_control(C) releases the hold; it is marked as a hazard because flow restarts at the current setpoint.- Tares must be done with no flow.
tare_flowandtare_pressurerefuse if a flow controller's setpoint is not 0, or if the device still reads more than 2% of full scale. They cannot detect every unsafe situation (e.g. a meter with a small real flow), so still shut the gas off first. Gauge-pressure tares need the port open to atmosphere; absolute tares need the barometer option and an unpressurised line. log_flow_seriessave_pathmust be a new.csvfile:~is expanded, missing folders are created, and an existing file is never overwritten. The path is checked before logging starts.- Gas selection uses
GS(10v05+, not saved as the power-up gas unlesssave_as_power_up) or the olderG. Only gases installed on the device are accepted;list_gasesshows them. - Safety guard: a unit ID followed by digits (e.g.
A49408) is Alicat's legacy integer setpoint command. The driver refuses to send anything of that shape. - Meters and gauges silently ignore controller commands; the server refuses controller tools on devices whose data frame has no setpoint.
- Not supported: GP-firmware devices (they need
$$after the unit ID), streaming mode (@), Modbus/Profibus/EtherNet/IP variants, totalizer, batching, PID tuning and COMPOSER mix creation. - Frame layouts and reply formats were cross-checked against replies captured on real 5v12 to 10v20 devices published by the open-source alicatlib project and the numat/alicat driver.
Hardware verification
来源:servers/engineering/alicat-flow-controller/README.md,提交 46545ea
工具
0版本历史
2- v0.1.2最新Sep 27, 2026
- v0.1.0Sep 26, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分