otgate MCP
An OT-aware authorization gateway that sits between an LLM agent and an industrial OPC UA server, applying a process-aware access policy including value ranges, rate limits, and interlocks to every call the agent makes. It intercepts calls to apply policy and record an audit line, addressing OWASP ASI02 Tool Misuse & Exploitation by ensuring agents stay within granted privileges regarding parameter pollution, excessive execution, and unsafe system states.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Apply value range policies to OPC UA tag writes
- Enforce rate limits on agent execution frequency
- Check live interlocks before allowing writes
- Record audit lines for every agent call
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
otgate 0.1.1
{
"version": "0.1.1",
"transport": "stdio",
"identifier": "otgate",
"registryType": "pypi",
"environmentVariables": [
{
"name": "OTGATE_BACKEND",
"default": "fake",
"description": "Backend 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."
},
{
"name": "OTGATE_POLICY",
"default": "examples/reactor_policy.yaml",
"description": "Path to the policy YAML. Any tag not listed in it is denied by default."
},
{
"name": "OTGATE_AUDIT",
"default": "audit.jsonl",
"description": "Path to the append-only JSONL audit log. Every call, allowed or not, produces exactly one line."
},
{
"name": "OTGATE_SHADOW",
"description": "Set 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."
},
{
"name": "OTGATE_RATE_HISTORY",
"description": "Path 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."
},
{
"name": "OTGATE_OPCUA_ENDPOINT",
"description": "OPC UA endpoint, e.g. opc.tcp://localhost:4840. Required when OTGATE_BACKEND=asyncua."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"otgate-mcp": {
"command": "uvx",
"args": [
"otgate==0.1.1"
],
"env": {
"OTGATE_BACKEND": "<YOUR_OTGATE_BACKEND>",
"OTGATE_POLICY": "<YOUR_OTGATE_POLICY>",
"OTGATE_AUDIT": "<YOUR_OTGATE_AUDIT>",
"OTGATE_SHADOW": "<YOUR_OTGATE_SHADOW>",
"OTGATE_RATE_HISTORY": "<YOUR_OTGATE_RATE_HISTORY>",
"OTGATE_OPCUA_ENDPOINT": "<YOUR_OTGATE_OPCUA_ENDPOINT>"
}
}
}
}Cline
{
"mcpServers": {
"otgate-mcp": {
"command": "uvx",
"args": [
"otgate==0.1.1"
],
"env": {
"OTGATE_BACKEND": "<YOUR_OTGATE_BACKEND>",
"OTGATE_POLICY": "<YOUR_OTGATE_POLICY>",
"OTGATE_AUDIT": "<YOUR_OTGATE_AUDIT>",
"OTGATE_SHADOW": "<YOUR_OTGATE_SHADOW>",
"OTGATE_RATE_HISTORY": "<YOUR_OTGATE_RATE_HISTORY>",
"OTGATE_OPCUA_ENDPOINT": "<YOUR_OTGATE_OPCUA_ENDPOINT>"
}
}
}
}VS Code
{
"servers": {
"otgate-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"otgate==0.1.1"
],
"env": {
"OTGATE_BACKEND": "<YOUR_OTGATE_BACKEND>",
"OTGATE_POLICY": "<YOUR_OTGATE_POLICY>",
"OTGATE_AUDIT": "<YOUR_OTGATE_AUDIT>",
"OTGATE_SHADOW": "<YOUR_OTGATE_SHADOW>",
"OTGATE_RATE_HISTORY": "<YOUR_OTGATE_RATE_HISTORY>",
"OTGATE_OPCUA_ENDPOINT": "<YOUR_OTGATE_OPCUA_ENDPOINT>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"otgate-mcp": {
"command": "uvx",
"args": [
"otgate==0.1.1"
],
"env": {
"OTGATE_BACKEND": "<YOUR_OTGATE_BACKEND>",
"OTGATE_POLICY": "<YOUR_OTGATE_POLICY>",
"OTGATE_AUDIT": "<YOUR_OTGATE_AUDIT>",
"OTGATE_SHADOW": "<YOUR_OTGATE_SHADOW>",
"OTGATE_RATE_HISTORY": "<YOUR_OTGATE_RATE_HISTORY>",
"OTGATE_OPCUA_ENDPOINT": "<YOUR_OTGATE_OPCUA_ENDPOINT>"
}
}
}
}Let your agent find its tools
Find servers like otgate MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.