Introducing OpenMHS: an open-source gateway for AI and lab hardware — collaborators welcome

Hi everyone,

I’m Karthik Nambiar, and I’m building OpenMHS, an open-source Rust gateway that puts permissions, command checks, readback verification, and an audit trail between AI agents and lab devices.

I’ve been exploring how this could work with OpenFlexure. I built an example that connects an MCP-capable AI agent to the OpenFlexure simulator through OpenMHS. The agent can request microscope-level tasks such as surveying a region, running a focus sweep, and producing a session report; stage movements go through the gateway.

In one recorded simulator session, the agent used the imaging tools for a 5×5 survey and focus sweep. OpenMHS recorded 34 verified movements, and the audit export verified offline. In a separate simulator workflow, a lost acknowledgement caused the workflow to pause and reconcile from the simulated stage state rather than resend the move. These are early demonstrations, not reliability claims: they use synthetic images and a simulated stage. Example walkthrough · Workflow and limitations

No physical microscope was used, and no OpenFlexure or LabThings code was modified. This does not imply endorsement or collaboration from either project. The current example can move the simulated stage; a human-approval option is available. There is no read-only mode for physical hardware yet, so I’m not asking anyone to connect a real microscope.

I’d welcome feedback from OpenFlexure and LabThings users:

  1. Which microscope workflow would be most useful to explore next?
  2. What would you want to see improved in this simulator integration?
  3. If you’re interested, would you help try the simulator example or advise on what a properly supervised future hardware evaluation should require?

The research index links the other experiments and their limitations. The project is on GitHub.