Skip to content

mcgpib

Control any GPIB instrument through conversation — multimeters, oscilloscopes, power supplies, signal generators.

22 Tools

Four tool categories covering the full stack: bridge management, bus operations, instrument interaction, and low-level diagnostics.

Multi-Bridge

Connect serial, TCP, and WiFi bridges simultaneously. Run cross-bus workflows with concurrent access across independent GPIB buses.

Zero-Config Discovery

Auto-scan buses on connect. Instruments are identified via *IDN? and registered for immediate use. No manual address mapping required.

Safety-Aware

Per-bridge locking prevents bus collisions. Configurable inter-command delays protect against ESP32 brownout. Init sequences enforce deterministic state.

graph LR
    LLM["Your LLM"]
    MCGPIB["mcgpib"]
    AR["AR488<br/>Bridge"]
    BUS["GPIB Bus"]
    INST["Instruments"]

    LLM -- "MCP" --> MCGPIB
    MCGPIB -- "Serial / TCP" --> AR
    AR -- "IEEE-488" --> BUS
    BUS --> INST

    style LLM fill:#78350f,stroke:#d97706,color:#fde68a
    style MCGPIB fill:#78350f,stroke:#d97706,color:#fde68a
    style AR fill:#334155,stroke:#94a3b8,color:#e2e8f0
    style BUS fill:#334155,stroke:#94a3b8,color:#e2e8f0
    style INST fill:#334155,stroke:#94a3b8,color:#e2e8f0

A typical session: discover what is on the bench, identify an instrument, take a measurement, and read the result.

> Scan the bus on bench-a
Bus scan on bench-a: 3 listener(s)
Address 5: Agilent Technologies E3631A (S/N: MY12345678)
Address 7: Tektronix TDS2024B (S/N: C031234)
Address 22: KEITHLEY INSTRUMENTS INC.,MODEL 2000,1234567,A01
> What voltage is the Keithley reading?
Sent to address 22: CONF:VOLT:DC 10,0.001
Sent to address 22: READ?
Response: +4.23451E+00
The Keithley 2000 at address 22 is reading 4.23451 VDC.
Terminal window
uvx mcgpib

Add to Claude Code:

Terminal window
claude mcp add mcgpib -- uvx mcgpib
CategoryToolsDescription
Bridge Management5Connect, disconnect, configure, and monitor AR488 bridges
Bus Operations6Scan, poll, clear, trigger, and reset the GPIB bus
Instrument7Query, write, identify, reset, and control instrument mode
Low-Level4Raw commands, bus diagnostics, and parallel poll