# Sartorius Balance

Sartorius Balance — an MCP server for Sartorius laboratory balances over SBI protocol. The agent weighs samples, tares containers, logs drift and runs internal adjustments.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 32 repo stars
- Author: K-Dense-AI
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/K-Dense-AI/lab-instrument-mcps/tree/HEAD/servers/chemistry/sartorius-balance
- Updated: 2026-09-26
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/sartorius-balance

## What it does

The server connects to Sartorius balances (Cubis MSE, Cubis II MCA, Secura, Quintix, Practum, Entris II and older CP/CPA series with `--option legacy=true`) via RS-232, USB or Ethernet and sends ASCII commands over the SBI protocol. The agent can read current weight, wait for a stable value, zero or tare the balance, record a weight series to track evaporation or moisture uptake, adapt the filter for draughty or vibrating benches, lock the keypad and run internal adjustment with the built-in weight on isoCAL models.

The server uses factory interface settings: 9600 baud, 8 data bits, odd parity, 1 stop bit. The balance must be set to SBI protocol with manual output, no stability check and auto print off. Without Python and the `uvx` package the server will not start. The `--read-only` flag allows weighing only and blocks taring, zeroing and adjustment. The `max_series_duration_s` limit caps logging series length at 600 seconds by default; override it at launch.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `LABMCP_ADDRESS`, `LABMCP_SIMULATE`, `LABMCP_READ_ONLY`, `LABMCP_LIMITS` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env LABMCP_ADDRESS=<LABMCP_ADDRESS> --env LABMCP_SIMULATE=<LABMCP_SIMULATE> --env LABMCP_READ_ONLY=<LABMCP_READ_ONLY> --env LABMCP_LIMITS=<LABMCP_LIMITS> --transport stdio sartorius-balance -- uvx labmcp-sartorius
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-sartorius <command>

### Codex

**Platform CLI**
```bash
codex mcp add sartorius-balance --env LABMCP_ADDRESS=<LABMCP_ADDRESS> --env LABMCP_SIMULATE=<LABMCP_SIMULATE> --env LABMCP_READ_ONLY=<LABMCP_READ_ONLY> --env LABMCP_LIMITS=<LABMCP_LIMITS> -- uvx labmcp-sartorius
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-sartorius <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "sartorius-balance": {
            "command": "uvx",
            "args": [
                "labmcp-sartorius"
            ],
            "env": {
                "LABMCP_ADDRESS": "<LABMCP_ADDRESS>",
                "LABMCP_SIMULATE": "<LABMCP_SIMULATE>",
                "LABMCP_READ_ONLY": "<LABMCP_READ_ONLY>",
                "LABMCP_LIMITS": "<LABMCP_LIMITS>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-sartorius <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "sartorius-balance": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "labmcp-sartorius"
            ],
            "env": {
                "LABMCP_ADDRESS": "<LABMCP_ADDRESS>",
                "LABMCP_SIMULATE": "<LABMCP_SIMULATE>",
                "LABMCP_READ_ONLY": "<LABMCP_READ_ONLY>",
                "LABMCP_LIMITS": "<LABMCP_LIMITS>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-sartorius <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e LABMCP_ADDRESS=<LABMCP_ADDRESS> -e LABMCP_SIMULATE=<LABMCP_SIMULATE> -e LABMCP_READ_ONLY=<LABMCP_READ_ONLY> -e LABMCP_LIMITS=<LABMCP_LIMITS> sartorius-balance uvx labmcp-sartorius
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-sartorius <command>

## When to use it
- weigh samples and wait for stable readings
- tare containers and zero the balance
- log a series of readings to calculate evaporation or drift rate
- switch the balance filter to handle draughts or vibration
- run internal adjustment with the built-in weight

## Example prompts
- Log the weight every 10 seconds for 5 minutes and calculate the evaporation rate in mg/min
- Set the balance filter to handle drafts and lock the keypad

## Similar
- [Arduino MCP Server](https://affpapa.org/en/nevibecode/mcp/arduino-mcp-server.md) — MCP server · ★ 26 repo stars
- [ginkgo-cloud-lab](https://affpapa.org/en/nevibecode/skills/ginkgo-cloud-lab.md) — skill · 2100 installs
- [instrument-data-to-allotrope](https://affpapa.org/en/nevibecode/skills/instrument-data-to-allotrope.md) — skill · 2500 installs
- [benchling-integration](https://affpapa.org/en/nevibecode/skills/benchling-integration.md) — skill · 2100 installs
- [mcp](https://affpapa.org/en/nevibecode/mcp/scispot-repo-mcp.md) — MCP server
- [DAQiFi](https://affpapa.org/en/nevibecode/mcp/daqifi.md) — MCP server · ★ 5 repo stars

From the same set: [k-dense-ai/lab-instrument-mcps](https://affpapa.org/en/nevibecode/by/k-dense-ai/lab-instrument-mcps.md) — 30 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
