otgate — OT policy gateway
io.github.alikup-ai/otgate-opcua
v0.1.1Updated Nov 7, 2026stdio · PyPI
Gates an LLM agent's writes to an OPC UA server on ranges, rate of change and live interlocks.
Install
Nothing to fill in: copy and run.
Run in your terminal
claude mcp add otgate-opcua -e OTGATE_BACKEND=fake -e OTGATE_POLICY=examples/reactor_policy.yaml -e OTGATE_AUDIT=audit.jsonl -- uvx otgate==0.1.1Configuration
6 settings.
OTGATE_BACKENDEnv var· optionalBackend to gate: 'fake' for the bundled in-memory reactor simulator, 'asyncua' for a real OPC UA server. Start with 'fake' — it needs no plant and no extra dependency.Default:fakeOTGATE_POLICYEnv var· optionalPath to the policy YAML. Any tag not listed in it is denied by default.Default:examples/reactor_policy.yamlOTGATE_AUDITEnv var· optionalPath to the append-only JSONL audit log. Every call, allowed or not, produces exactly one line.Default:audit.jsonlOTGATE_SHADOWEnv var· optionalSet to 1 to run in shadow mode: allowed writes are recorded as 'WOULD execute' and never reach the backend. Use this to watch an agent for a while before letting it touch anything.OTGATE_RATE_HISTORYEnv var· optionalPath to a JSONL file that keeps the rate-of-change time base across restarts. Without it a restart loses the time base, and rate limits fall back to a one-interval allowance.OTGATE_OPCUA_ENDPOINTEnv var· optionalOPC UA endpoint, e.g. opc.tcp://localhost:4840. Required when OTGATE_BACKEND=asyncua.
Links
Listed in the official MCP Registry since Nov 7, 2026. Mirrored daily; last checked Nov 26, 2026.