# SRS Residual Gas Analyzer

This MCP server lets an AI agent inspect SRS residual-gas analyzers, read spectra and pressure, screen gas peaks, and run helium leak checks.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 23
- 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/physics/srs-rga
- Updated: 2026-09-26
- HTML: https://affpapa.org/en/nevibecode/mcp/srs-residual-gas-analyzer

## What it does

SRS Residual Gas Analyzer connects an agent to SRS RGA100, RGA200, and RGA300 quadrupole mass spectrometers. The available operations cover partial-pressure readings at selected m/z values, analog or histogram spectra, total pressure, helium leak monitoring, and a first-pass gas assignment. The server also exposes instrument status, recent command traffic, and safety shutoff actions.

Communication uses RS-232 with RTS/CTS handshaking or TCP through a serial-to-Ethernet adapter. Pressure interlocks protect the filament, CDEM, and ionizer, while `--read-only` blocks changes such as switching and calibration. A simulated device can be checked with `uvx labmcp-srs-rga --simulate --check`. The package has been tested against a wire-level simulator, not on physical hardware, so real-instrument setup needs care.

## 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 srs-rga -- uvx labmcp-srs-rga
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-srs-rga <command>

### Codex

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

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "srs-rga": {
            "command": "uvx",
            "args": [
                "labmcp-srs-rga"
            ],
            "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-srs-rga <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "srs-rga": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "labmcp-srs-rga"
            ],
            "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-srs-rga <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> srs-rga uvx labmcp-srs-rga
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-srs-rga <command>

## When to use it
- read residual-gas spectra from a vacuum system
- measure total and partial pressure
- check suspected joints with helium
- classify major peaks by m/z
- put the analyzer into a safe state

## Example prompts
- Check the connected SRS analyzer and report the filament and CDEM state.
- Run a histogram scan and identify the main residual gases from its peaks.
- Start a helium leak check at m/z 4 and report responses above the baseline.

## Similar
- [Zotero MCP](https://affpapa.org/en/nevibecode/mcp/zotero-mcp.md) — MCP server · ★ 5585
- [arxiv-mcp-server](https://affpapa.org/en/nevibecode/mcp/arxiv-mcp-server.md) — MCP server · ★ 3235
- [PaperBanana](https://affpapa.org/en/nevibecode/mcp/paperbanana.md) — MCP server · ★ 2418
- [MATLAB MCP Server](https://affpapa.org/en/nevibecode/mcp/matlab-mcp-server.md) — MCP server · ★ 1723
- [Hex Research](https://affpapa.org/en/nevibecode/mcp/hex-research.md) — MCP server · ★ 584
- [DocsAgent — Zotero, Obsidian & Apple Notes MCP Server](https://affpapa.org/en/nevibecode/mcp/docsagent-zotero-obsidian-apple-notes-mcp-server.md) — MCP server · ★ 578

From the same set: [k-dense-ai/lab-instrument-mcps](https://affpapa.org/en/nevibecode/by/k-dense-ai/lab-instrument-mcps.md) — 15 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
