Back to Home
uiff icon

u-os-mcp-server

Verified Safe

by uiff

Overview

Acts as a gateway for AI agents to interact with a Weidmueller u-OS Data Hub via NATS, enabling reading and writing of PLC variables.

Installation

Run Command
docker run -i --rm --network host -v $(pwd)/credentials.env:/app/credentials.env mcp-nats-server --nats-url nats://127.0.0.1:4222 --nats-creds /app/credentials.env

Environment Variables

  • CLIENT_ID
  • CLIENT_SECRET

Security Notes

The server correctly uses `serde` for JSON-RPC parsing, minimizing parsing vulnerabilities. Credentials are loaded from a file (`credentials.env`) via `OAuth2Credentials::from_env_file`, which is a standard and relatively secure approach for secrets, though proper file system permissions are critical. Communication is over stdin/stdout, reducing network attack surface compared to a direct API. The `write_variable` function currently only supports string values and is noted as incomplete, which is a functional limitation rather than an immediate security flaw, but future implementations should include robust type validation to prevent improper data writes to the PLC. No 'eval' or direct command injection vectors were found.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2025-11-29

Tags

NATSPLCAI GatewayIndustrial IoTRust