opcua-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_NAME | No | Server name reported to clients. | OPC-UA MCP Server |
| CONFIG_FILE | No | Path to an optional config file. Default is ./config.{yaml,yml,toml,json,...} if present. | |
| MCP_VERSION | No | Server version reported to clients. | 1.0.0 |
| DO_NOT_TRACK | No | Set to 1 to opt out of telemetry (cross-project convention). | |
| MCP_HTTP_PATH | No | HTTP endpoint path. | /mcp |
| STORE_DB_PATH | No | Database file path. | mcp_opcua_store.db |
| OPCUA_ENDPOINT | No | OPC-UA server endpoint. | opc.tcp://localhost:4840 |
| OPCUA_KEY_FILE | No | Client private key file path. Required if OPCUA_AUTH_MODE=certificate. | |
| OPCUA_PASSWORD | No | Password for OPC-UA authentication. Required if OPCUA_AUTH_MODE=username. | |
| OPCUA_USERNAME | No | Username for OPC-UA authentication. Required if OPCUA_AUTH_MODE=username. | |
| OPCUA_AUTH_MODE | No | Authentication mode: anonymous, username, or certificate. | anonymous |
| OPCUA_CERT_FILE | No | Client certificate file path. Required if OPCUA_AUTH_MODE=certificate. | |
| SERVER_LOG_FILE | No | Log file path, required if SERVER_LOG_OUTPUT=file. | |
| MCP_ENABLE_TOOLS | No | Enable tools. | true |
| SEARCH_MIN_SCORE | No | Minimum match score. | 0.1 |
| SERVER_HTTP_PORT | No | Port for HTTP transport. | 8080 |
| SERVER_LOG_LEVEL | No | Log level: debug, info, warn, error. | info |
| SERVER_TRANSPORT | No | Transport for the MCP server: 'stdio' or 'http'. | stdio |
| STORE_BROWSE_TTL | No | Freshness window for cached browse results. | 5m |
| OPCUA_MAX_RETRIES | No | Connection retry attempts. | 3 |
| OPCUA_RETRY_DELAY | No | Delay between retries. | 1s |
| OPCUA_SERVER_CERT | No | Server certificate file path. | |
| SEARCH_INDEX_PATH | No | Search index directory. | ./search_index |
| SERVER_LOG_FORMAT | No | Log format: json or text. | json |
| SERVER_LOG_OUTPUT | No | Log output: stdout, stderr, or file. Forced to stderr in stdio mode. | stdout |
| MCP_ENABLE_PROMPTS | No | Enable prompts. | false |
| SEARCH_MAX_RESULTS | No | Max results per search. | 100 |
| STORE_BATCH_WINDOW | No | How often subscription notifications flush to the store. | 25ms |
| STORE_OPEN_TIMEOUT | No | How long to wait for the file lock on open. | 5s |
| STORE_TYPEINFO_TTL | No | Freshness window for cached type info. | 24h |
| OPCUA_MCP_TELEMETRY | No | Set to false to opt out of this project's telemetry. | |
| OPCUA_SECURITY_MODE | No | OPC-UA security mode: None, Sign, SignAndEncrypt. | None |
| SEARCH_ENABLE_CACHE | No | Master switch for read-through caching. | true |
| MCP_ENABLE_RESOURCES | No | Enable resources. | true |
| SEARCH_ENABLE_SEARCH | No | Enable the Bleve search index. | true |
| OPCUA_REQUEST_TIMEOUT | No | Per-request timeout. | 30s |
| OPCUA_SECURITY_POLICY | No | OPC-UA security policy: None, Basic128Rsa15, Basic256, Basic256Sha256, Aes128_Sha256_RsaOaep. | None |
| OPCUA_SESSION_TIMEOUT | No | Session timeout. | 60s |
| SERVER_LOG_ADD_SOURCE | No | Add source file/line to log entries. | false |
| STORE_BATCH_MAX_ITEMS | No | Max notifications flushed per batch. | 250 |
| SEARCH_ENABLE_DISCOVERY | No | Enable background node discovery. | true |
| STORE_NOTIFY_CHAN_BUFFER | No | Buffer size for incoming subscription notifications. | 1024 |
| SEARCH_DISCOVERY_INTERVAL | No | How often to re-crawl the address space. | 30s |
| SEARCH_DISCOVERY_ROOT_NODE | No | Root node to crawl from (Objects folder). | i=85 |
| SEARCH_MAX_DISCOVERY_DEPTH | No | Maximum crawl depth. | 10 |
| SEARCH_MAX_NODES_PER_BROWSE | No | Cap on nodes returned per browse call. | 10000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivitySlowing
ResponsivenessResponsive