Skip to main content
Glama
mwieczorkiewicz

opcua-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_NAMENoServer name reported to clients.OPC-UA MCP Server
CONFIG_FILENoPath to an optional config file. Default is ./config.{yaml,yml,toml,json,...} if present.
MCP_VERSIONNoServer version reported to clients.1.0.0
DO_NOT_TRACKNoSet to 1 to opt out of telemetry (cross-project convention).
MCP_HTTP_PATHNoHTTP endpoint path./mcp
STORE_DB_PATHNoDatabase file path.mcp_opcua_store.db
OPCUA_ENDPOINTNoOPC-UA server endpoint.opc.tcp://localhost:4840
OPCUA_KEY_FILENoClient private key file path. Required if OPCUA_AUTH_MODE=certificate.
OPCUA_PASSWORDNoPassword for OPC-UA authentication. Required if OPCUA_AUTH_MODE=username.
OPCUA_USERNAMENoUsername for OPC-UA authentication. Required if OPCUA_AUTH_MODE=username.
OPCUA_AUTH_MODENoAuthentication mode: anonymous, username, or certificate.anonymous
OPCUA_CERT_FILENoClient certificate file path. Required if OPCUA_AUTH_MODE=certificate.
SERVER_LOG_FILENoLog file path, required if SERVER_LOG_OUTPUT=file.
MCP_ENABLE_TOOLSNoEnable tools.true
SEARCH_MIN_SCORENoMinimum match score.0.1
SERVER_HTTP_PORTNoPort for HTTP transport.8080
SERVER_LOG_LEVELNoLog level: debug, info, warn, error.info
SERVER_TRANSPORTNoTransport for the MCP server: 'stdio' or 'http'.stdio
STORE_BROWSE_TTLNoFreshness window for cached browse results.5m
OPCUA_MAX_RETRIESNoConnection retry attempts.3
OPCUA_RETRY_DELAYNoDelay between retries.1s
OPCUA_SERVER_CERTNoServer certificate file path.
SEARCH_INDEX_PATHNoSearch index directory../search_index
SERVER_LOG_FORMATNoLog format: json or text.json
SERVER_LOG_OUTPUTNoLog output: stdout, stderr, or file. Forced to stderr in stdio mode.stdout
MCP_ENABLE_PROMPTSNoEnable prompts.false
SEARCH_MAX_RESULTSNoMax results per search.100
STORE_BATCH_WINDOWNoHow often subscription notifications flush to the store.25ms
STORE_OPEN_TIMEOUTNoHow long to wait for the file lock on open.5s
STORE_TYPEINFO_TTLNoFreshness window for cached type info.24h
OPCUA_MCP_TELEMETRYNoSet to false to opt out of this project's telemetry.
OPCUA_SECURITY_MODENoOPC-UA security mode: None, Sign, SignAndEncrypt.None
SEARCH_ENABLE_CACHENoMaster switch for read-through caching.true
MCP_ENABLE_RESOURCESNoEnable resources.true
SEARCH_ENABLE_SEARCHNoEnable the Bleve search index.true
OPCUA_REQUEST_TIMEOUTNoPer-request timeout.30s
OPCUA_SECURITY_POLICYNoOPC-UA security policy: None, Basic128Rsa15, Basic256, Basic256Sha256, Aes128_Sha256_RsaOaep.None
OPCUA_SESSION_TIMEOUTNoSession timeout.60s
SERVER_LOG_ADD_SOURCENoAdd source file/line to log entries.false
STORE_BATCH_MAX_ITEMSNoMax notifications flushed per batch.250
SEARCH_ENABLE_DISCOVERYNoEnable background node discovery.true
STORE_NOTIFY_CHAN_BUFFERNoBuffer size for incoming subscription notifications.1024
SEARCH_DISCOVERY_INTERVALNoHow often to re-crawl the address space.30s
SEARCH_DISCOVERY_ROOT_NODENoRoot node to crawl from (Objects folder).i=85
SEARCH_MAX_DISCOVERY_DEPTHNoMaximum crawl depth.10
SEARCH_MAX_NODES_PER_BROWSENoCap on nodes returned per browse call.10000

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mwieczorkiewicz/opcua-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server