Skip to main content
MCP server CX Codex

Opentrons OT-2 / Flex — Claude Code MCP server: features & setup

Connects Opentrons Flex and OT-2 liquid-handling robots to AI agents via HTTP API. Uploads protocols, inspects deck layouts, and tracks runs safely.

Install into Claude Code · Platform CLI All methods and platforms ↓
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 opentrons -- uvx labmcp-opentrons
Open on GitHub

What Opentrons OT-2 / Flex does

The labmcp-opentrons package interacts with the robot-server API on port 31950 over Wi-Fi, Ethernet, or USB connections. It allows assistants to inspect mounted pipettes, read module states like temperature blocks or shakers, and transfer protocols directly to the robot for validation.

It omits single-move pipetting commands. Starting a run requires a closed door, released emergency stop, and clean protocol validation. You can also pass --read-only to monitor deck status safely without allowing motion commands, while cancel and pause tools remain available. The package was tested against an in-memory emulator rather than physical hardware.

What it helps with

  • upload protocol scripts and verify expected deck slot layouts
  • monitor active run stages and temperature module readouts
  • halt or pause liquid handler operations during unexpected errors
  • inspect attached pipettes and gripper configurations remotely

Example prompts for the agent

  • Check the Opentrons robot connection and report attached hardware modules.
  • Upload pcr_prep.py, verify the slot setup, and inspect protocol warnings.
  • Pause the current run and confirm the emergency stop state.

How to install Opentrons OT-2 / Flex

Platform CLI

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 opentrons -- uvx labmcp-opentrons

Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-opentrons <command>

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Opentrons OT-2 / Flex

How do I install Opentrons OT-2 / Flex in Claude Code?

Run this command in your terminal: claude mcp add labmcp-opentrons -- uvx labmcp-opentrons.

Can I try this server without a physical robot?

Yes, you can run the built-in emulator locally by executing uvx labmcp-opentrons --simulate --check.

Which hardware and software versions are supported?

It supports Opentrons Flex and OT-2 units running robot software 5.1 or newer.

Similar MCP servers

All MCP servers for Science and research →

From the same set28

SiLA 2 Bridge Connects AI agents to laboratory instruments via the SiLA 2 standard over gRPC. Useful for running automated pipetters and plate readers. CX Codex +1 ★ 23repo stars Generic SCPI Instrument Connect an AI agent to SCPI measurement equipment through VISA, TCP, or serial links. Use it to read instrument data or send commands from a chat. CX Codex +1 ★ 23repo stars Rigol Oscilloscope Controls Rigol oscilloscopes over SCPI via USB or LAN. Allows agents to adjust timebases, capture calibrated waveforms, read voltages and take screenshots. CX Codex +1 ★ 23repo stars Pfeiffer Vacuum Gauge Controller Read pressure and gauge status from Pfeiffer TPG controllers, log measurements, and control ionisation gauges. Useful for tracking a pump-down or checking a vacuum setup. CX Codex +1 ★ 23repo stars Ocean Insight Spectrometer Connect an Ocean Insight spectrometer to an AI agent to capture spectra and measure absorbance or transmittance. A simulator lets you try the server before connecting hardware. CX Codex +1 ★ 23repo stars NI-DAQmx DAQ Devices An MCP server that hands an AI agent control over National Instruments hardware through the NI-DAQmx driver: voltage and thermocouple reads, digital line reads, analog and digital writes. CX Codex +1 ★ 23repo stars New Era Syringe Pump Controls New Era NE-1000 syringe pumps through RS-232 serial commands. Useful for microfluidic dosing, liquid handling, and automated lab experiments with an AI agent. CX Codex +1 ★ 23repo stars LC-MS Worklist Builder Builds and checks LC-MS sample queues, then writes files for import into vendor software. Use it to prepare a run list without starting an acquisition. CX Codex +1 ★ 23repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor