Skip to main content
Glama
gabrielion

OPNsense MCP Server

by gabrielion

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AUDIT_LOGNoPath to a JSONL audit log file
LOG_LEVELNoLog level: ERROR, WARN, INFO, DEBUGINFO
READ_ONLYNoWhen 'true', all mutation tools are hidden and refusedfalse
AUTO_BACKUPNoWhen 'true', snapshot the full config before classified mutationsfalse
BACKUP_PATHNoAbsolute path for storing backup snapshots./backups
IAC_ENABLEDNoExpose the experimental iac_* toolsfalse
MCP_SSE_HOSTNoBind address for SSE transport (only loopback values accepted)127.0.0.1
MCP_SSE_PORTNoPort for SSE transport (e.g., 3000)
MCP_TRANSPORTNoTransport mode: 'stdio' (default) or 'sse'stdio
OPNSENSE_HOSTYesThe base URL of the OPNsense firewall, e.g., https://your-opnsense:port
MCP_CORS_ORIGINNoDeprecated alias for a single allowed origin
AUDIT_LOG_STRICTNoWhen 'true', refuse mutation if audit pre-write failsfalse
AUTO_BACKUP_KEEPNoNumber of backups to retain50
OPNSENSE_API_KEYYesThe API key for authentication
ALLOWED_RESOURCESNoComma-separated list of resource keys for mutation scoping
MCP_ALLOWED_HOSTSNoHost header allow-list for DNS-rebinding defense
OPNSENSE_SSH_HOSTNoSSH host for SSH-backed features (required if ENABLE_SSH_FEATURES=true)
AUTO_BACKUP_STRICTNoWhen 'true', refuse a mutation if the pre-change backup failsfalse
ENABLE_RAW_API_TOOLNoExpose the opn_api_call escape hatchfalse
ENABLE_SSH_FEATURESNoEnable SSH-backed featuresfalse
MCP_ALLOWED_ORIGINSNoExact origins allowed for CORS (wildcard or malformed values are fatal)
OPNSENSE_API_SECRETYesThe API secret for authentication
OPNSENSE_VERIFY_SSLNoWhether to verify TLS certificates (set to 'false' for self-signed certs)true
ENABLE_RESTORE_TOOLSNoRequired for restore_backup_sshfalse
ENABLE_CONFIGURE_TOOLNoExpose the runtime configure credential toolfalse
OPNSENSE_SSH_KEY_PATHNoAbsolute path to the SSH private key
OPNSENSE_SSH_USERNAMENoSSH username for SSH-backed features

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/gabrielion/OPNSenseMCP'

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