The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Alicat Mass Flow & Pressure Controller listing page.
LabMCP lets an AI assistant such as Claude operate your laboratory instruments. You describe what you want in plain language, and the assistant weighs, heats, stirs, pumps, measures and logs for you. It stays inside safety limits you set, keeps a record of every command, and has a practice mode that needs no hardware.
It supports balances, hotplate stirrers, syringe pumps, spectrometers, mass spectrometers, potentiostats, lock-in amplifiers, temperature controllers, vacuum gauges, flow controllers, biosensors, clinical analyzers and more. You don't need to know how to program. Setup means installing one free helper program and pasting a few lines into your AI app's settings.
Free and open source, built by K-Dense.
⭐ Help other scientists find this. If LabMCP is useful to you, please star the repo.
Each connector has a practice mode (a simulator) that behaves like the real instrument and gives realistic replies. Nothing is connected, so nothing can go wrong.
You need: a Mac, Windows or Linux computer, and an AI app that supports MCP. Claude Desktop is the easiest place to start.
uv (once)uv is a free tool that downloads and runs LabMCP for you. Open a terminal:
Paste the line for your system and press Enter:
Close the terminal and open it again so it finds the new program.
In Claude Desktop, go to Settings → Developer → Edit Config. This opens a file called claude_desktop_config.json. Paste the following into it and save. If the file already has an "mcpServers" section, add only the "balance" line inside it.
Quit Claude Desktop completely, then reopen it.
Mac tip: if Claude reports that it can't find
uvx, runwhich uvxin Terminal and replace"uvx"in the file with the full path it prints (usually/Users/<your-name>/.local/bin/uvx).
Using a different app? For Claude Code, run claude mcp add balance -- uvx labmcp-mettler-toledo --simulate in a terminal. For Cursor, VS Code, Codex and Windsurf, see docs/clients.md.
"What instrument is connected? Tare it, then log the weight every second for 10 seconds."
The first request can take a minute while the connector downloads. Your AI app will usually ask your permission before it takes an action. Say yes.
Want a whole lab? examples/ sets up six practice instruments at once (balance, stirrer, pH probe, syringe pump, potentiostat and spectrometer).
Find your instrument below and click its name. Each page covers the settings to change on the instrument itself, the safety limits you can set, and everything the AI can do with it.
Reading the tables:
uvx).| Server | Instruments | Interface | Tools | Status | Install |
|---|---|---|---|---|---|
| Atlas Scientific EZO Sensors Read pH, ORP, dissolved oxygen, conductivity/TDS/salinity, temperature, humidity, CO2 or pressure; calibrate, set temperature compensation, log series. | Atlas Scientific: EZO-pH, EZO-ORP, EZO-DO, EZO-EC … | UART (USB-serial adapter), Ethernet (serial bridge) | 13 | 🧪 simulated | uvx labmcp-atlas-ezo |
| Micro-Manager Microscope Snap images (stats + preview + TIFF), z-stacks and time-lapses, move XY/Z within step and soft limits, channel/objective presets, exposure, shutter, autofocus. | Micro-Manager (open source; hundreds of camera, stage, filter and light-source vendors): Any microscope with a Micro-Manager hardware configuration (.cfg), Micro-Manager demo configuration | USB, Serial, Camera Link / CoaXPress / GigE (through Micro-Manager device adapters) | 19 | 🧪 simulated | uvx labmcp-micro-manager |
| New Era Syringe Pump Set the syringe (presets or diameter), infuse or withdraw an exact volume at a set rate, track dispensed volume, stop. | New Era Pump Systems: NE-1000, NE-1002X, NE-1010, NE-4000 … | RS-232, USB (RS-232 adapter), Serial-to-Ethernet | 11 | 🧪 simulated | uvx labmcp-new-era |
| Opentrons OT-2 / Flex Upload and analyze protocols, review deck layout, start/pause/stop/resume runs, track progress, home, lights, read pipettes and modules, switch modules off. | Opentrons: Flex, OT-2 | Ethernet, Wi-Fi, USB (network over USB) | 18 | 🧪 simulated | uvx labmcp-opentrons |
| Tecan Cavro Syringe Pump Initialize, aspirate and dispense microlitre volumes at set flow rates, switch valve ports, read plunger/valve status, terminate moves. | Tecan: Cavro XLP 6000, Cavro XMP 6000, Cavro XCalibur | RS-232, RS-485 (via adapter), Serial-to-Ethernet | 9 | 🧪 simulated | uvx labmcp-cavro |
| Server | Instruments | Interface | Tools | Status | Install |
|---|---|---|---|---|---|
| IKA Hotplate & Overhead Stirrer Read plate/probe temperature and speed, set and start heating and stirring, hardware watchdog, wait for temperature, stop all. | IKA: C-MAG HS 7 control, IKA Plate (RCT digital), EUROSTAR 60 control, EUROSTAR 100 control | RS-232, USB (virtual COM) | 14 | 🧪 simulated | uvx labmcp-ika |
| JULABO Circulator Read bath/external temperature and heating power, set setpoint, start/stop tempering, decode status and alarms, wait for temperature. | JULABO: CORIO CD, CORIO CP, MAGIO MS, DYNEO DD | USB (virtual COM), RS-232 | 10 | 🧪 simulated | uvx labmcp-julabo |
| LC-MS Worklist Builder Build, randomise, validate, convert and export LC-MS sample queues as vendor import files (never starts a run). | Multi-vendor: Waters MassLynx 4.x, SCIEX OS, Agilent MassHunter Acquisition, Thermo Xcalibur | File | 12 | 🧪 simulated | uvx labmcp-ms-worklist |
| Mass Spectrometry Data (mzML, Bruker TDF, vendor conversion) Read and analyse LC-MS data from any vendor via open formats: find runs, run metadata, TIC/BPC, XICs with apex and area, spectra, MS2 search by precursor, quick QC, and conversion of vendor files with the user's own msconvert or ThermoRawFileParser. | Vendor-neutral: Any LC-MS run in mzML/mzMLb, Bruker timsTOF (TDF .d), Thermo .raw, Waters .raw, Agilent .d, SCIEX .wiff/.wiff2, Shimadzu .lcd, Bruker BAF (via conversion) | File | 12 | 🧪 simulated | uvx labmcp-ms-data |
| Mettler Toledo Balance Weigh (stable/immediate), tare, zero, log drift series, internal adjustment, draft shield, display messages. | Mettler Toledo: Excellence XPR/XSR, XP/XS, XA/XE, MS/ML … | RS-232, USB (virtual COM), Ethernet | 17 | 🧪 simulated | uvx labmcp-mettler-toledo |
| Ocean Insight Spectrometer Acquire averaged/smoothed spectra with saturation checks, auto integration time, dark and reference storage, absorbance and transmittance spectra, peak positions with FWHM, detector TEC (QE Pro). | Ocean Insight (Ocean Optics): USB2000+, USB2000, USB4000, USB650 … | USB | 16 | 🧪 simulated | uvx labmcp-ocean-spectrometer |
| PalmSens Potentiostat Cyclic, linear-sweep and differential-pulse voltammetry, chronoamperometry and raw MethodSCRIPT, with peak summaries and CSV export. | PalmSens: EmStat Pico, EmStat4 LR/HR (incl. EmStat4S/4M/4X), Sensit Wearable / Sensit BT, Nexus | USB (virtual COM port), UART / RS-232 | 10 | 🧪 simulated | uvx labmcp-palmsens |
| Sartorius Balance Weigh (stable/immediate), tare, zero, log drift series, internal adjustment, ambient filter, keypad lock. | Sartorius: Cubis MSE, Cubis II MCA, Secura, Quintix … | RS-232, USB (virtual COM), Ethernet (Cubis II) | 10 | 🧪 simulated | uvx labmcp-sartorius |
| Thermo Orbitrap (Instrument API) Adapter for the licensed Thermo IAPI (bring your own assemblies): instrument status, live scan buffer with MS-order filters, validated and rate-limited custom and repeating scans, acquisitions to raw files, stop/cancel. | Thermo Fisher Scientific: Orbitrap Fusion, Orbitrap Fusion Lumos, Orbitrap Eclipse, Orbitrap Ascend … | .NET API (Windows) | 15 | 🧪 simulated | uvx labmcp-thermo-iapi |
| Server | Instruments | Interface | Tools | Status | Install |
|---|---|---|---|---|---|
| Keithley SourceMeter SMU Configure a voltage or current source with compliance, switch the output on/off, measure V and I, run bounded linear/log/dual IV sweeps with resistance fit and CSV export, 2/4-wire sense. | Keithley (Tektronix): 2400, 2401, 2410, 2420 … | GPIB, USB (USBTMC), Ethernet (LXI / raw socket), RS-232 | 12 | 🧪 simulated | uvx labmcp-keithley-smu |
| Lake Shore Temperature Controller Read all sensor inputs with status, heater status, set setpoints/ramps/heater ranges/PID, wait for stable temperature, all heaters off. | Lake Shore Cryotronics: Model 335, Model 336, Model 350 | USB (virtual COM), Ethernet (TCP 7777, 336/350), IEEE-488 (GPIB) | 11 | 🧪 simulated | uvx labmcp-lakeshore |
| Pfeiffer Vacuum Gauge Controller Read and log pressures with status per channel, identify gauges, change units, switch ionisation gauges on/off with a pressure interlock, read errors. | Pfeiffer Vacuum: TPG 361, TPG 362, TPG 366 MaxiGauge, TPG 261 … | USB (virtual COM), Ethernet (TCP 8000), RS-232 (TPG 26x) | 11 | 🧪 simulated | uvx labmcp-pfeiffer-tpg |
| SRS Lock-in Amplifier Read X/Y/R/θ snapshots, set reference frequency/harmonic/phase, sine amplitude, sensitivity, time constant, auto phase/gain/range, bounded frequency sweeps. | Stanford Research Systems: SR830, SR810, SR860, SR865A | GPIB, RS-232, USB (USBTMC), Ethernet (VXI-11) | 15 | 🧪 simulated | uvx labmcp-srs-lockin |
| SRS Residual Gas Analyzer Analog and histogram spectra, partial pressures at chosen m/z, total pressure, helium leak checks, gas identification; filament, CDEM and degas with pressure interlocks. | Stanford Research Systems: RGA100, RGA200, RGA300 | RS-232, TCP | 18 | 🧪 simulated | uvx labmcp-srs-rga |
| Thorlabs Optical Power Meter Read optical power (W and dBm), log power stability series, set wavelength correction, averaging and range, dark-zero the sensor, read sensor head temperature. | Thorlabs: PM100D, PM100A, PM100USB, PM400 … | USB (USBTMC / VISA) | 11 | 🧪 simulated | uvx labmcp-thorlabs-pm |
| Server | Instruments | Interface | Tools | Status | Install |
|---|---|---|---|---|---|
| ASTM LIS Analyzer Receiver Receive-only LIS: ACK/NAK frames with checksum validation, reassemble messages, and query results by sample, patient, test or time. Patient name/DOB redacted by default. Research use only. | Any (ASTM E1381/E1394, CLSI LIS1-A/LIS2-A2): Hematology analyzers, Clinical chemistry analyzers, Immunoassay analyzers, Urinalysis and coagulation analyzers … | RS-232, TCP/IP (client), TCP/IP (listener) | 8 | 🧪 simulated | uvx labmcp-astm-lis |
| Bluetooth LE Health Sensors Scan, read device info/battery, record heart rate with RR intervals and HRV, read SpO2, blood pressure, temperature and weight. Research use only, not a medical device. | Any (Bluetooth SIG standard profiles): Heart-rate chest straps and armbands (Heart Rate Service), Pulse oximeters (Pulse Oximeter Service), Blood pressure monitors (Blood Pressure Service), Thermometers (Health Thermometer Service) … | Bluetooth Low Energy | 11 | 🧪 simulated | uvx labmcp-ble-health |
| BrainFlow Biosensing Boards List boards, stream, record N seconds (stats + downsampled traces + CSV), EEG band powers, event markers, per-channel signal quality (flat, railed, mains noise). Research use only. | OpenBCI, Interaxon (Muse), Neurosity, g.tec, BrainBit, Mentalab, EmotiBit and others (via BrainFlow): OpenBCI Cyton / Cyton+Daisy / Ganglion / Galea (USB, BLE, WiFi Shield), Muse 2 / Muse S / Muse S Athena / Muse 2016, Neurosity Crown / Notion 1 / Notion 2, g.tec Unicorn Hybrid Black … | USB (serial dongle), Bluetooth LE, WiFi, Vendor SDK (via BrainFlow) | 12 | 🧪 simulated | uvx labmcp-brainflow |
| Server | Instruments | Interface | Tools | Status | Install |
|---|---|---|---|---|---|
| Alicat Mass Flow & Pressure Controller Read mass/volumetric flow, pressure and temperature, set setpoints, select gases, tare, hold or close valves, log flow series. | Alicat Scientific: MC/MCR/MCS/MCE/MCV/MCW mass flow controllers, M/MS/MW mass flow meters, PC/PCD pressure controllers, P pressure gauges … | RS-232, RS-485, USB (virtual COM), Ethernet (serial bridge) | 14 | 🧪 simulated | uvx labmcp-alicat |
| Bench DC Power Supply Read setpoints and measured V/I/CV-CC per channel, set voltage and current limits, switch outputs on/off, set OVP/OCP, read errors. | Rigol, Siglent, Aim-TTi: Rigol DP832/DP831/DP822/DP821/DP811/DP813, Rigol DP711/DP712, Rigol DP932A/U/E, Siglent SPD3303X/X-E … | USB (USB-TMC / virtual COM), LAN (VISA / raw socket), RS-232, GPIB (via VISA) | 12 | 🧪 simulated | uvx labmcp-bench-psu |
| LabJack T-series DAQ Read analog inputs, stream waveforms, read thermocouples and the device temperature, read/set digital I/O and set DACs, with voltage and stream limits. | LabJack: T4, T7, T7-Pro, T8 | USB, Ethernet, WiFi (T7-Pro) | 12 | 🧪 simulated | uvx labmcp-labjack |
| NI-DAQmx DAQ Devices List devices, acquire finite analog voltage and thermocouple data, read/write digital lines and set analog outputs, with voltage, rate and sample limits. | National Instruments (NI): USB-6001/6002/6003, USB-6008/6009, USB-621x, USB/PCIe-63xx (M/X series) … | USB, PCI/PCIe, PXI, Ethernet (cDAQ) | 11 | 🧪 simulated | uvx labmcp-ni-daqmx |
| Rigol Oscilloscope Read settings, autoscale, run/stop/single, set channels, timebase and edge trigger, take measurements, capture scaled waveforms (screen or deep memory) and screenshots. | Rigol: DS1000Z / MSO1000Z (DS1054Z, DS1104Z...), DS1000Z-E (DS1202Z-E), MSO5000, DHO800 / DHO900 … | USB (USB-TMC), LAN (VXI-11 / raw socket) | 16 | 🧪 simulated | uvx labmcp-rigol-scope |
| Server | Instruments | Interface | Tools | Status | Install |
|---|---|---|---|---|---|
| EPICS Channel Access Read PVs with units, precision, alarms, timestamps and limits; monitor PVs for a bounded time; guarded writes (allow-list regex, access rights, DRVH/DRVL control limits, put-callback completion); configurable safe-state action. | EPICS collaboration (any EPICS IOC): Any EPICS IOC serving Channel Access (EPICS Base 3.14-7.x, areaDetector, motor, asyn, PyDevice, caproto IOCs), CA gateways | Ethernet (CA over UDP/TCP 5064/5065) | 10 | 🧪 simulated | uvx labmcp-epics |
| Generic SCPI Instrument Identify, query, write and batch raw SCPI with a query-only read path, configurable command allow/deny lists, error-queue checks, binary block transfer and a user-defined safe state. | Any (SCPI / IEEE 488.2): Digital multimeters, Oscilloscopes, Source-measure units, DC power supplies and electronic loads … | GPIB (VISA), USBTMC (VISA), LAN VXI-11 / HiSLIP (VISA), LAN raw socket (e.g. port 5025), RS-232 / USB-serial | 15 | 🧪 simulated | uvx labmcp-scpi |
| Modbus TCP/RTU Device Read and write named, typed, scaled points from a YAML/JSON register map with per-point min/max, raw register/coil access, and a map-defined safe state. | Any (Modbus): PID temperature controllers (e.g. Watlow, Eurotherm, Omega, Autonics), Recirculating chillers and thermostats, PLCs and remote I/O, Process sensors and transmitters … | Ethernet (Modbus TCP), RS-485 / RS-232 (Modbus RTU, ASCII), Serial-to-Ethernet gateways | 13 | 🧪 simulated | uvx labmcp-modbus |
| SiLA 2 Bridge Discover SiLA servers, read features/commands/properties with typed schemas from the FDL, read and subscribe to properties, run commands with client-side FDL validation and an allow-list, track observable commands, cancel via CancelController. | SiLA consortium standard (any SiLA 2 server): Any SiLA 2 server: devices and middleware with SiLA 2 interfaces (liquid handlers, incubators, readers, robots, schedulers), sila_python, sila_java, sila_csharp, sila_cpp and vendor SiLA 2 servers | Ethernet (gRPC over HTTP/2, TLS), mDNS discovery | 13 | 🧪 simulated | uvx labmcp-sila2 |
The Universal Protocols connectors work with many instruments from many brands, as long as the instrument speaks that standard (its manual will say, e.g., "SCPI commands" or "Modbus").
Don't see your instrument? Request it. Some manufacturers (for example Keysight and Rohde & Schwarz) publish their own AI connectors. We list those rather than duplicate them.
Once practice mode works, switching to the real instrument is one change in the same settings file.
Plug the instrument into the computer that runs your AI app (by USB, serial cable or network) and switch it on. Click your instrument's name in the table above to check whether anything needs changing on the instrument, such as enabling remote control or setting its communication speed (baud rate).
Find its address, meaning where the computer sees it. In a terminal, run:
It lists what's connected. Tip: run it once with the instrument unplugged and once plugged in. The new entry is your instrument.
| If the instrument connects by… | Its address looks like |
|---|---|
| USB or serial cable | COM3 (Windows), /dev/tty.usbserial-XXXX (Mac), /dev/ttyUSB0 (Linux) |
| Network (Ethernet or Wi-Fi) | tcp://192.168.1.50:5025: the instrument's IP address and port, found in its network settings menu |
| Serial, with non-standard settings | serial:///dev/ttyUSB0?baudrate=19200&parity=E, needed only if the instrument's communication settings were changed from the factory defaults |
| GPIB, USBTMC, LXI (via VISA) | GPIB0::22::INSTR or visa://TCPIP0::192.168.1.50::INSTR |
Test the connection (replace COM3 with your address):
A working connection reports the instrument's model. If it doesn't, see troubleshooting.
Update your settings file: replace "--simulate" with "--address", "COM3", save, and restart your AI app.
Or let LabMCP write the entry for you: uvx labmcp config mettler-toledo --address COM3.
Several instruments? Add one entry per instrument, each with its own name ("balance", "stirrer", "pump", …). The assistant can then use them together.
AI assistants operating physical equipment need guardrails. LabMCP has several layers of them, and you stay in charge:
--simulate.--read-only. The AI can read measurements but can't change anything. Stop and switch-off actions still work.--limit max_temperature_c=60 to stay below your solvent's boiling point. Requests above a limit are refused before anything is sent to the instrument. Each instrument's page lists its limits and their defaults.Options go in the same list as the address in your settings file, for example:
Read SAFETY.md before connecting anything hazardous. LabMCP is a research tool, not a certified safety system or medical device.
| Feature | What it means for you |
|---|---|
| Practice mode | --simulate answers exactly like the real instrument, so you can rehearse an experiment before running it. |
| Read-only mode | --read-only lets the AI observe but never change settings. |
| Safety limits | --limit … refuses dangerous setpoints before they reach the instrument. |
| Asks before risky actions | Heating, moving, dispensing and powering actions are flagged, so your AI app asks first. |
| Record of every command | Every command and reply is logged, like a lab notebook. Ask "show me the command log", or save it to a file with --audit-log run.jsonl. |
| Knows what it's connected to | Ask "what instrument is connected?" to get the model, whether it's in practice mode, and the active limits. |
| Clear error messages | "Overload: too much weight on the pan", not a cryptic code. |
| Connection check | --check tests the connection from a terminal before you start. |
| Works with any cable | USB, serial (RS-232), network, GPIB and more. Just change --address. |
| Works with many AI apps | Claude Desktop, Claude Code, Cursor, VS Code, Codex, Windsurf and other MCP apps. |
Add several instruments and the assistant can coordinate them:
Do I need to know how to program? No. You install uv once and paste a few lines into your AI app's settings. LabMCP downloads and runs everything else.
Which AI app should I use? Any app that supports MCP. Claude Desktop is the simplest to set up. Claude Code, Cursor, VS Code, Codex and Windsurf also work (setup for each).
Does it cost anything? LabMCP is free and open source. Your AI app may need its own subscription.
Which computer does it run on? The one physically connected to the instrument. To control an instrument from another computer, see remote instruments.
Does my data leave the lab? LabMCP runs on your computer and talks to the instruments directly. Your AI app sends the results to its AI provider, just like anything else you type into it, so follow your institution's data policies.
Why not just ask the AI to write its own code for the instrument? It can try, but it would start from scratch every time, with no safety limits, no command record, no practice mode, and no protection against a mistyped command. LabMCP encodes each instrument's manual once, carefully, for everyone.
Something isn't working. See the troubleshooting table. If that doesn't help, open an issue.
My instrument's manufacturer has its own AI connector. Great, use it. We only build connectors for instruments without one, and list the official ones.
Is this validated for GxP or clinical use? No. See SAFETY.md.
No coding needed for the most valuable contribution: testing a connector on your real instrument. All connectors are currently 🧪 simulated: they stay that way until someone who owns the instrument confirms they work. Run the connection check, try a few requests, and file a short report. You can also request an instrument, or add 👍 to existing requests.
Each connector is a separate Python package (labmcp-<name>), so people install only what they need. All of them share the labmcp core, so they behave the same way: same options, same safety model, same built-in tools. See docs/architecture.md.
To add an instrument:
Then follow docs/writing-a-server.md and CONTRIBUTING.md.
Wanted next. Each needs a published protocol or SDK from the manufacturer, and someone to test it on real hardware:
Request an instrument or vote with 👍 on existing requests.
Apache-2.0. If LabMCP helps your research, please cite it (CITATION.cff).
Made by K-Dense, with contributions from scientists and engineers everywhere.