Mettler Toledo Balance

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

MCP server for Mettler Toledo laboratory balances (MT-SICS): weigh, tare, zero, log drift, adjust.

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

概览

AI 生成的概览

本地 MCP 服务器,通过 MT-SICS 驱动梅特勒-托利多实验室天平,让助手称量、去皮、清零、记录漂移并执行校准。

可以做什么
  • 读取当前净重、去皮值、内部温度和防风门位置,并记录连续称重序列及统计摘要,用于监测漂移或蒸发。
  • 执行去皮、清除去皮、预设去皮值、清零,并在天平显示屏上显示或恢复重量显示。
  • 开合电动防风门,并使用内置参考砝码执行内部校准。
  • 查看连接信息与原始命令日志,断电后重新连接,并将天平复位到开机状态。
适用场景
适用于实验室中通过串口、USB 或以太网连接梅特勒-托利多天平的场景,希望助手读取重量、去皮容器、监测漂移或蒸发,或在实验流程中执行校准。
运行要求
以 Python 包形式本地运行(uvx labmcp-mettler-toledo),通过 stdio 通信,仅限桌面环境。需要天平设置为 MT-SICS 模式,并通过 LABMCP_ADDRESS 提供串口或 TCP 地址。可用 LABMCP_SIMULATE 启用内置模拟器,无需硬件。未声明身份验证。
安装前请注意
去皮、清零、校准和开关防风门等工具会改变设备状态,可用 LABMCP_READ_ONLY 禁用。防风门移动可能夹到手指或碰到物品,校准需空载且不受扰动的秤盘。LABMCP_LIMITS 可覆盖最大记录时长等安全限制。该服务器仅在模拟器上测试,尚未在真实硬件上验证。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Mettler Toledo Balance — MCP Server

Let an AI agent weigh samples, tare containers, log drift and evaporation, run internal adjustments and drive the draft shield on Mettler Toledo balances through the open MT-SICS interface command set.

Packagelabmcp-mettler-toledo
InstrumentsExcellence XPR/XSR, XP/XS, XA/XE, MS/ML, NewClassic ME/MS, and other MT-SICS balances and weighing terminals
InterfacesRS-232, USB (virtual COM port), Ethernet (XPR/XSR, or any serial-to-Ethernet adapter)
ProtocolMT-SICS levels 0–2 (reference manual)
Status🧪 simulated: tested against a wire-level MT-SICS simulator, not yet verified on hardware. Report a hardware test

Try it without hardware

bash
uvx labmcp-mettler-toledo --simulate --check

Connect your balance

  1. Balance setup: in the balance menu, set the interface (RS232/USB/Ethernet) to MT-SICS (sometimes called "Host" or "Dialog"). Factory settings are 9600 baud, 8 data bits, no parity, 1 stop bit, Xon/Xoff.
  2. Find the port: uvx labmcp ports
  3. Test the connection:
    bash
    uvx labmcp-mettler-toledo --address /dev/ttyUSB0 --check          # Linuxuvx labmcp-mettler-toledo --address /dev/tty.usbserial-XXXX --check  # macOSuvx labmcp-mettler-toledo --address COM4 --check                  # Windowsuvx labmcp-mettler-toledo --address tcp://192.168.1.60:8001 --check  # Ethernet
    Non-default settings go in the address: serial://COM4?baudrate=19200&xonxoff=false.

Add to your MCP client

Claude Code

bash
claude mcp add balance -- uvx labmcp-mettler-toledo --address /dev/ttyUSB0

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

json
{  "mcpServers": {    "balance": {      "command": "uvx",      "args": ["labmcp-mettler-toledo", "--address", "/dev/ttyUSB0"]    }  }}

Add --read-only to allow weighing but block taring, zeroing and door movement. For other clients, generate the snippet with uvx labmcp config mettler-toledo --address /dev/ttyUSB0 --client vscode (also cursor, codex, claude-code).

Tools

ToolKindDescription
clear_tare🎛 controlClear the tare memory (tare = 0).
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_draft_shield👁 readReport the position of the motorised draft-shield doors (Excellence/XPR balances only).
get_tare👁 readReturn the weight currently stored in the tare memory.
log_weight_series👁 readRecord a series of immediate (unfiltered) readings to monitor drift, evaporation, moisture uptake or stabilisation. Returns every reading plus summary statistics.
read_temperature👁 readRead the balance's internal temperature probe(s) in °C (MT-SICS M28, if supported).
read_weight👁 readRead the current net weight from the balance.
reconnect🛑 safetyClose and re-open the connection to the instrument (e.g. after it was power cycled or a cable was re-plugged).
reset_balance🛑 safetyAbort whatever the balance is doing (an adjustment, a repeating weight stream, a pending command) and reset it to its power-on state without zeroing (MT-SICS @). Clears the tare. Motorised draft-shield doors have their own obstruction detection and reverse if blocked.
run_internal_adjustment🎛 controlAdjust (calibrate) the balance with its built-in reference weight (MT-SICS C3). The pan must be empty and the balance undisturbed. Takes roughly 1-3 minutes.
set_draft_shield⚠️ hazardOpen or close the motorised draft-shield doors. Make sure nothing (and no one's fingers) is in the way of the doors.
set_tare_preset🎛 controlPreset a known tare weight (e.g. a container weighed earlier).
show_message🎛 controlShow a short message on the balance display (e.g. 'Add sample 3'). Use show_weight_display to return to the normal weight display.
show_weight_display🎛 controlSwitch the balance display back to showing the weight.
tare🎛 controlTare the balance: store the current load (e.g. an empty container) as the tare weight. Returns the stored tare weight.
zero🎛 controlZero the balance with the current load. Also clears the tare memory.

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

Safety limits

LimitDefaultMeaning
max_series_duration_s600 sLongest weight-logging series an agent may start

Override at launch: --limit max_series_duration_s=3600. Whatever the limit says, a single series is capped at one hour (the tool's time limit).

Example prompts

  • "Tare the balance, then tell me when the reading is stable after I add the sample."
  • "Log the weight every 10 s for 5 minutes and tell me the evaporation rate in mg/min."
  • "Weigh out ~250 mg: tell me how much more to add, reading every few seconds, until I'm within ±2 mg."
  • "Run an internal adjustment and confirm it succeeded before we start the calibration curve."

Notes

  • read_weight(stable=True) sends S, which waits for stability. If the balance cannot settle (draughts, vibration), it returns S I. The server reports this as an error, so retry or use stable=false.
  • Weights are in the balance's unit 1 (normally grams). Units shown on the display (unit 2) don't affect the interface.
  • Draft-shield (WS) and temperature (M28) commands exist only on balances with that hardware; other balances answer ES/L, which the server reports clearly.
  • run_internal_adjustment waits for the final C3 A without blocking the connection: reset_balance aborts a running adjustment, and other commands are refused until it ends (their replies would be mixed up with the result).
  • Before each command the server discards anything the balance sent unasked (e.g. a print-key transmission) and checks that the reply belongs to the command, so one late reply cannot shift every later reply by one.
  • show_message accepts printable ASCII only, and set_tare_preset only a unit symbol: a line break would otherwise reach the balance as a second MT-SICS command.

Hardware verification

ModelFirmwareInterfaceVerified byDate
none yet: be the first

来源:servers/chemistry/mettler-toledo-balance/README.md,提交 46545ea

工具

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

版本历史

2
  1. v0.1.3最新Sep 27, 2026
  2. v0.1.1Sep 26, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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