Pfeiffer Vacuum Gauge Controller

io.github.K-Dense-AI由 GitHub 账号 K-Dense-AI 发布v0.1.2更新于 Oct 27, 2026

MCP server for Pfeiffer Vacuum TPG 361/362/366 and TPG 261/262 gauge controllers.

已验证STDIO仅桌面开发者工具数据与分析

概览

AI 生成的概览

让 AI 助手通过串口或以太网读取、记录并控制 Pfeiffer Vacuum TPG 361/362/366 与 TPG 261/262 总压计控制器的 MCP 服务器。

可以做什么
  • 读取压力:读取单个通道或一次读取全部通道,并给出各通道状态与 mbar 数值。
  • 查看仪器信息:报告连接身份、地址、模拟或真实、是否只读及生效的安全限值,列出各通道的真空计类型,读取或清除控制器错误字。
  • 记录压力序列:按固定间隔采样,用于抽气曲线、漏率上升或烘烤测试,返回统计结果并可写入新的 CSV 文件。
  • 修改设置:切换显示单位,开启或关闭电离真空计,开启前会做压力检查。
  • 维护连接:断电或换线后重新连接,并查看原始命令日志以便排查。
适用场景
适合需要助手监视或记录 Pfeiffer TPG 控制器真空压力的场景,例如查看腔体与前级压力、采集抽气或漏率曲线,或在压力足够低时开启电离真空计。也可用内置模拟器在没有硬件的情况下试用。
运行要求
以本地 Python 包(labmcp-pfeiffer-tpg,通过 uvx 启动)经 stdio 运行。需要可访问的控制器:串口如 /dev/ttyUSB0 或 COM3,或 8000 端口的 TCP 地址,通过 LABMCP_ADDRESS 或 address 参数设置。控制器须使用助记符协议(AUTO 或 MNE)。可选变量:LABMCP_LIMITS、LABMCP_READ_ONLY、LABMCP_SIMULATE。
安装前请注意
开启电离真空计有风险:高压力下热阴极灯丝可能烧毁、冷阴极真空计可能污染,因此除非有有效读数不高于 max_switch_on_pressure_mbar,服务器会拒绝开启。关闭真空计可能改变接在阀门或泵联锁上的设定点继电器。切换单位与开关真空计会写入仪器,可用 LABMCP_READ_ONLY 阻止。该服务器仅在模拟器上测试,尚未在真实硬件上验证。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Pfeiffer Vacuum Gauge Controller,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Pfeiffer Vacuum Gauge Controller — MCP Server

Let an AI agent read and log chamber and foreline pressures, identify the connected gauges, change the pressure unit and switch ionisation gauges on and off (with a pressure check) on Pfeiffer Vacuum TPG total-pressure gauge controllers.

Packagelabmcp-pfeiffer-tpg
InstrumentsTPG 361 SingleGauge, TPG 362 DualGauge, TPG 366 MaxiGauge (ActiveLine gauges); TPG 261 / TPG 262 (compact gauges)
InterfacesTPG 36x: USB type B (virtual COM port), Ethernet (TCP port 8000); TPG 26x: RS-232
ProtocolPfeiffer mnemonics protocol, ACK/NAK + ENQ (TPG 361/362 communication protocol BG 5510 BEN, TPG 366 communication protocol BG 5511 BEN, TPG 262 operating instructions BG 805 196 BE section 5; originals in the Pfeiffer download center)
Status🧪 simulated: tested against a byte-level simulator of the protocol, not yet verified on hardware. Report a hardware test

Try it without hardware

bash
uvx labmcp-pfeiffer-tpg --simulate --check                      # TPG 362: FullRange gauge + Piraniuvx labmcp-pfeiffer-tpg --simulate --option model=tpg366 --check # 6 channels incl. a cold cathode gauge

The simulated chamber pumps down from 8e-5 mbar towards 2e-7 mbar (10 min time constant) and the foreline sits at about 2.4e-2 mbar.

Connect your controller

  1. Protocol (TPG 36x): the PROTOCOL parameter must be AUTO (factory setting) or MNE (mnemonics), not PV (Pfeiffer Vacuum telegram protocol).
  2. USB (TPG 36x): the USB type B port appears as a virtual COM port. Factory setting 9600 baud, 8N1 (parameter BAUD USB; 19200-115200 also possible).
  3. Ethernet (TPG 36x, TPG 366): set DHCP or a static IP (front panel or Pfeiffer's Ethernet Configuration Tool); the command port is fixed at 8000.
  4. RS-232 (TPG 261/262): 9600 baud 8N1 by default, only TXD/RXD used.
  5. Test the connection:
    bash
    uvx labmcp-pfeiffer-tpg --address /dev/ttyUSB0 --checkuvx labmcp-pfeiffer-tpg --address COM3 --checkuvx labmcp-pfeiffer-tpg --address "serial://COM3?baudrate=115200" --checkuvx labmcp-pfeiffer-tpg --address tcp://192.168.1.70:8000 --check
    The model is detected with AYT (TPG 36x); a controller that does not know AYT is treated as a TPG 26x. Use --option model=tpg261 (or tpg262, tpg361, tpg362, tpg366) to be explicit.

Add to your MCP client

Claude Code

bash
claude mcp add vacuum -- uvx labmcp-pfeiffer-tpg --address tcp://192.168.1.70:8000

Claude Desktop / Cursor / Windsurf (claude_desktop_config.json, .cursor/mcp.json, …)

json
{  "mcpServers": {    "vacuum": {      "command": "uvx",      "args": ["labmcp-pfeiffer-tpg", "--address", "tcp://192.168.1.70:8000"]    }  }}

Add --read-only to allow reading and logging but block unit changes and switching gauges on (switch_gauge_off stays available). For other clients, generate the snippet with uvx labmcp config pfeiffer-tpg --address tcp://192.168.1.70:8000 --client vscode (also cursor, codex, claude-code).

Tools

ToolKindDescription
get_command_log👁 readReturn the most recent raw commands sent to / replies received from the instrument (newest last). Useful for debugging and for recording what was done.
get_connection_info👁 readReport which instrument is connected (identity, address, simulated or real), whether the server is read-only, and the active safety limits. Call this first.
get_errors👁 readRead (and clear) the controller's ERROR word: controller error, no hardware, inadmissible parameter or syntax error. An empty list means no error.
get_gauge_types👁 readList the gauge connected to each channel (TID), what kind it is, and whether it is an ionisation gauge that is currently switched on or off (SEN).
log_pressure_series👁 readLog pressures at a fixed interval (e.g. a pump-down curve, leak-up/rate-of-rise test or bake-out). Returns per-channel statistics in log-space plus a downsampled series; the full series can be written to a new CSV file (an existing file is never overwritten). Bounded by max_log_duration_s and 2 h per call.
read_all_pressures👁 readRead every channel of the controller at once (PRX), with status per channel.
read_pressure👁 readRead one gauge channel: status, pressure in the display unit and in mbar.
reconnect🛑 safetyClose and re-open the connection to the instrument (e.g. after it was power cycled or a cable was re-plugged).
set_gauge_power⚠️ hazardSwitch an ionisation gauge (IKR, PKR, PBR, IMR) on or off (SEN). Switching a hot or cold cathode gauge on at high pressure can burn out the filament or contaminate the gauge, so switching ON is refused unless a valid reading from this gauge or reference_channel is at or below max_switch_on_pressure_mbar. Switching off may trip setpoint relays used as interlocks.
set_unit🎛 controlChange the pressure unit used on the display and interface (UNI). Readings in mbar are always included regardless of this setting.
switch_gauge_off🛑 safetySwitch an ionisation gauge off (e.g. before venting, or if the pressure is rising). Always allowed. Note that setpoint relays assigned to this channel may change state.

get_connection_info, get_command_log and reconnect are built into every LabMCP server.

Safety limits

LimitDefaultMeaning
max_switch_on_pressure_mbar1e-2 mbarAn ionisation gauge may only be switched on when a valid reading (its own, or reference_channel) is at or below this pressure
max_log_duration_s3600 sLongest log_pressure_series an agent may start

Override at launch: --limit max_switch_on_pressure_mbar=1e-3 --limit max_log_duration_s=7200. One log_pressure_series call logs at most 2 h (the tool's timeout); for a longer bake-out, log in consecutive calls to separate files. save_path must end in .csv and must not exist yet (an existing file is never overwritten); it is checked before logging starts.

Example prompts

  • "What's the chamber pressure right now, and is the foreline below 5e-2 mbar?"
  • "Log all gauges every 10 s for 30 minutes and tell me how many decades per minute the chamber is pumping down."
  • "Close the valve, then log channel 1 every 2 s for 5 minutes so I can estimate the leak-up rate."
  • "Which gauges are connected, and which ones are ionisation gauges that are switched off?"
  • "The chamber is below 1e-5 mbar on the FullRange gauge - switch on the cold cathode gauge on channel 3, using channel 1 as the reference."

Notes

  • Switching ionisation gauges on is the hazard. Hot-cathode (Bayard-Alpert) filaments can burn out and cold-cathode (Penning) gauges contaminate when operated at high pressure. set_gauge_power(on=True) requires a reading with status ok at or below max_switch_on_pressure_mbar from the gauge itself or from reference_channel on the same vacuum. An underrange reading from a Pirani is not accepted as proof (what the controller reports on underrange is not specified), so in a Pirani + Penning setup switch the Penning on at the controller, or use a FullRange gauge as the reference. The 1e-2 mbar default is the upper end of a typical cold cathode measuring range; check your gauge's manual and lower it for hot-filament gauges if recommended.
  • Switching a gauge off (switch_gauge_off, or set_gauge_power(on=False)) can change setpoint (switching-function) relays assigned to that channel, which may be wired to valve or pump interlocks.
  • Every pressure comes with the controller's status: ok, underrange, overrange, sensor error, sensor off, no sensor or identification error. pressure is only filled in when the status is ok; raw_value is what the controller sent. Values are converted to mbar (1 Torr = 1.333224 mbar); in V mode no conversion is made.
  • Every command waits for ACK/NAK; after a NAK the ERROR word (controller error, no hardware, inadmissible parameter, syntax error) is read and reported. get_errors reads and clears it.
  • Degas, filter, calibration factors, switching-function setpoints, gauge control (hot start/self control), the data logger and the Pfeiffer Vacuum (PV) telegram protocol are not exposed. RS-485 multi-drop operation has not been tested.

Hardware verification

ModelFirmwareInterfaceVerified byDate
none yet: be the first

来源:servers/physics/pfeiffer-vacuum-gauge/README.md,提交 46545ea

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.1.2最新Sep 27, 2026
  2. v0.1.0Sep 26, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分