OPC UA companion spec types, namespace dependencies, and engineering units for AI agents
OPC UA MCP Server
Published by IndustriAgentsConnect AI assistants to industrial OPC UA: browse, read, history, subscriptions, events and alarms.
- CATEGORY
- More to explore
- DEPLOYMENT
- Local package
- LATEST SOURCE VERSION
- 0.6.0
- SOURCE CHECKED
- Dec 1, 2026
Quick answers
How do I add OPC UA MCP Server to Claude Code, Cursor or Codex?
Claude CodeCommand
Run this in your terminal:
claude mcp add --env 'OPCUA_SERVER_URL=<your-opcua-server-url>' --env 'OPCUA_CLIENT_KEY=<your-opcua-client-key>' --env 'OPCUA_PASSWORD=<your-opcua-password>' --env 'OPCUA_USER_KEY=<your-opcua-user-key>' --env 'OPCUA_PROFILE=<your-opcua-profile>' --env 'OPCUA_AUDIT_CHAIN_KEY_FILE=<your-opcua-audit-chain-key-file>' --transport stdio opc-ua -- npx -y opcua-mcp-serverReplace the <your-…> placeholder with your own OPCUA_SERVER_URL and OPCUA_CLIENT_KEY and OPCUA_PASSWORD and OPCUA_USER_KEY and OPCUA_PROFILE and OPCUA_AUDIT_CHAIN_KEY_FILE.
CursorConfig
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{
"mcpServers": {
"opc-ua": {
"command": "npx",
"args": [
"-y",
"opcua-mcp-server"
],
"env": {
"OPCUA_SERVER_URL": "<your-opcua-server-url>",
"OPCUA_CLIENT_KEY": "<your-opcua-client-key>",
"OPCUA_PASSWORD": "<your-opcua-password>",
"OPCUA_USER_KEY": "<your-opcua-user-key>",
"OPCUA_PROFILE": "<your-opcua-profile>",
"OPCUA_AUDIT_CHAIN_KEY_FILE": "<your-opcua-audit-chain-key-file>"
}
}
}
}Replace the <your-…> placeholder with your own OPCUA_SERVER_URL and OPCUA_CLIENT_KEY and OPCUA_PASSWORD and OPCUA_USER_KEY and OPCUA_PROFILE and OPCUA_AUDIT_CHAIN_KEY_FILE.
CodexCommand
Run this in your terminal:
codex mcp add opc-ua --env 'OPCUA_SERVER_URL=<your-opcua-server-url>' --env 'OPCUA_CLIENT_KEY=<your-opcua-client-key>' --env 'OPCUA_PASSWORD=<your-opcua-password>' --env 'OPCUA_USER_KEY=<your-opcua-user-key>' --env 'OPCUA_PROFILE=<your-opcua-profile>' --env 'OPCUA_AUDIT_CHAIN_KEY_FILE=<your-opcua-audit-chain-key-file>' -- npx -y opcua-mcp-serverReplace the <your-…> placeholder with your own OPCUA_SERVER_URL and OPCUA_CLIENT_KEY and OPCUA_PASSWORD and OPCUA_USER_KEY and OPCUA_PROFILE and OPCUA_AUDIT_CHAIN_KEY_FILE.
VS CodeConfig
Add this to .mcp.json at the root of your workspace:
{
"mcpServers": {
"opc-ua": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"opcua-mcp-server"
],
"env": {
"OPCUA_SERVER_URL": "<your-opcua-server-url>",
"OPCUA_CLIENT_KEY": "<your-opcua-client-key>",
"OPCUA_PASSWORD": "<your-opcua-password>",
"OPCUA_USER_KEY": "<your-opcua-user-key>",
"OPCUA_PROFILE": "<your-opcua-profile>",
"OPCUA_AUDIT_CHAIN_KEY_FILE": "<your-opcua-audit-chain-key-file>"
}
}
}
}Replace the <your-…> placeholder with your own OPCUA_SERVER_URL and OPCUA_CLIENT_KEY and OPCUA_PASSWORD and OPCUA_USER_KEY and OPCUA_PROFILE and OPCUA_AUDIT_CHAIN_KEY_FILE.
Claude DesktopConfig
Add this to claude_desktop_config.json, then restart Claude:
{
"mcpServers": {
"opc-ua": {
"command": "npx",
"args": [
"-y",
"opcua-mcp-server"
],
"env": {
"OPCUA_SERVER_URL": "<your-opcua-server-url>",
"OPCUA_CLIENT_KEY": "<your-opcua-client-key>",
"OPCUA_PASSWORD": "<your-opcua-password>",
"OPCUA_USER_KEY": "<your-opcua-user-key>",
"OPCUA_PROFILE": "<your-opcua-profile>",
"OPCUA_AUDIT_CHAIN_KEY_FILE": "<your-opcua-audit-chain-key-file>"
}
}
}
}Replace the <your-…> placeholder with your own OPCUA_SERVER_URL and OPCUA_CLIENT_KEY and OPCUA_PASSWORD and OPCUA_USER_KEY and OPCUA_PROFILE and OPCUA_AUDIT_CHAIN_KEY_FILE.
ChatGPTNot available
ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.
ChatGPT setup guideWhich apps can use OPC UA MCP Server?
Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.
Does OPC UA MCP Server need an API key?
To run it on your computer, set OPCUA_SERVER_URL, OPCUA_CLIENT_KEY, OPCUA_PASSWORD, OPCUA_USER_KEY, OPCUA_PROFILE and OPCUA_AUDIT_CHAIN_KEY_FILE first, with values from the publisher.
Is OPC UA MCP Server official?
It's published by IndustriAgents. The Official MCP Registry accepts names under io.github.midhunxavier only from the GitHub account or organisation midhunxavier. We last checked its listing on Dec 1, 2026. A listing shows where a server comes from; it isn't a security review.
Published packages
npm · opcua-mcp-server@0.6.0