This release is a pre-release and may not be stable for production use.
OpenRoIS MCP server: physical robots, virtual avatars and AI services as tools for an AI agent
pip install openrois-mcp Copy PIP instructions
An MCP server that gives an AI agent the physical robots, virtual avatars, and AI services behind an OpenRoIS gateway, through the standard interfaces of the OMG RoIS Framework 2.0.
An agent such as Claude Code or Claude Desktop finds the components, reads their profiles, reads state, follows events and, when you allow it, runs commands. It needs no knowledge of any robot's own API. The server is built on openrois-sdk.
git clone https://github.com/openrois/openrois.git pip install -e ./openrois/services/mcp The server needs Python 3.12 or later and a running gateway. The Docker Compose stack at the repository root serves simulated components through one:
docker compose up --build -d # a gateway on ws://127.0.0.1:8765 with the mock adapter Use It from an Agent Claude Code claude mcp add openrois -- openrois-mcp --gateway-url ws://127.0.0.1:8765 --allow-actions Leave out --allow-actions to let the agent look but not act.
Add the server to claude_desktop_config.json:
{ "mcpServers": { "openrois": { "command": "openrois-mcp", "args": ["--gateway-url", "ws://127.0.0.1:8765", "--allow-actions"] } } } Give the full path of openrois-mcp in command if Claude Desktop does not find it on its PATH.
The gateway does not authenticate connections in the alpha releases, and an agent with actions allowed can move a physical robot. The server limits what an agent can do:
The engine tells clients apart by their RoIS session. It gives an actuation component (one that moves, speaks, or shows) to one session at a time, and sends a command's completion to the session that ran it. Each server process holds one session.
The last four exist only with --allow-actions.
get_events returns entries of these kinds: event, completed (a command ended), error, profile_changed (components joined or left), lost (binds and subscriptions the engine dropped), connection_closed and idle_release.
subscribe, run_commands, set_parameters, get_events and wait_for_event each return a cursor. The first wait_for_event without since after subscribe, run_commands or set_parameters starts at the cursor that call returned. So an event a component sends while a command runs, before the command completes, still reaches the wait that follows, as in subscribe, then run_commands with a person detector's start, then wait_for_event("person_detected"). Any other wait without since starts at the newest entry, so asking again later waits for a fresh count instead of returning an old one. To read every entry in turn, pass the cursor of the last wait as since. A wait that times out returns the cursor it started at.
Some components, such as a person detector, send events only between their start and stop commands. A read-only server cannot start them.
{ "steps": [ {"component_ref": "mock/navigation", "command_type": "start"}, { "branch_list": [ [{"component_ref": "robot/speech", "command_type": "speak", "arguments": {"text": "Hi"}}], [{"component_ref": "robot/head", "command_type": "nod"}] ], "delay_time": 500 } ] } A step is a command, or a parallel group whose branches run at the same time, each branch in order, after delay_time milliseconds. Arguments are plain JSON values: the server types them from the component profile. With wait (the default), the call returns when every command has ended or the timeout passes, with each status: OK, ERROR, ABORT, TIMEOUT, OUT_OF_RESOURCES, RUNNING for a command that had not ended yet, or CONNECTION_LOST when the gateway connection went during the wait.
A command that did not end OK comes with a hint. One that ended ERROR also carries the component's component_status and the error entries its engine sent after the command started. One that ended ABORT after a failed command names it.
Many commands, such as the start of a reaction or of speech, take no arguments and read the component's parameters instead. A set_parameter step sets them in the same call, right before the command that reads them:
Every component must be bound by this session first. Otherwise the call fails before anything is sent:
{"step": "bind", "component_ref": "mock/navigation", "return_code": "NOT_BOUND", "hint": "not bound by this session, call bind first"} With auto_bind, the server binds the components itself, all or nothing: if a bind fails, it releases the binds this call made, runs nothing, and names the component and the code, for example OUT_OF_RESOURCES with the hint that another session holds it. A component this session holds is bound again too, which renews a bind the engine dropped. Binds stay until release, the end of the session, or the idle release.
A RoIS call that does not return OK becomes a tool error that names the method, the return code and what to do, such as rois.query.query returned UNSUPPORTED for mock/navigation: the component does not declare this, see describe_component. The hint of ERROR depends on the call: for a query or a subscribe, the component cannot serve now, for example because its device is unreachable. For a command operation, the session holds no bind, or the engine dropped it. A value the component refused names the queries that list valid values, such as available_reactions.
When the engine of a component leaves the gateway or reconnects to it, the engine drops the binds and subscriptions of every session on its components. The server notices, adds a lost entry that names them, and says so in the notice of the next tool response. bind always asks the engine, so binding again works.
When the gateway connection drops, the server does not reconnect in the middle of a call. A wait on commands ends at once with CONNECTION_LOST. The next tool response, even a failed one, says in its notice that the binds and subscriptions of the old session are gone, and the next call opens a new session.
Each flag has an environment variable, and a flag overrides its variable.
pip install -e ../../interfaces/python -e ../../sdk/python -e ".[dev]" pytest # unit tests OPENROIS_GATEWAY_URL=ws://127.0.0.1:8765 pytest # also against the compose stack mypy ruff check src/ tests/ License Apache-2.0. See LICENSE.
Both files in this release have provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




