R

Rustpanosmcp

by mechubsec · io.github.mechubsec/rustpanosmcp

Enables authenticated, scoped control of Palo Alto Networks PAN-OS firewalls through the Model Context Protocol, covering device inventory lookups, fact gathering, operational commands, and configuration retrieval. It supports bearer-token access with per-token device and tool scopes, TLS and stdio transports, and a guarded candidate-configuration lifecycle with audit logging.

oci Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-mechubsec-rustpanosmcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "TLS_KEY=<YOUR_VALUE>",
        "-e",
        "LAB_MODE=<YOUR_VALUE>",
        "-e",
        "TLS_CERT=<YOUR_VALUE>",
        "-e",
        "TRANSPORT=<YOUR_VALUE>",
        "-e",
        "STATE_FILE=<YOUR_VALUE>",
        "-e",
        "TOKENS_FILE=<YOUR_VALUE>",
        "-e",
        "ALLOWED_HOST=<YOUR_VALUE>",
        "-e",
        "AUDIT_FORMAT=<YOUR_VALUE>",
        "-e",
        "AUDIT_REDACT=<YOUR_VALUE>",
        "-e",
        "ALLOW_NO_AUTH=<YOUR_VALUE>",
        "-e",
        "ALLOWED_ORIGIN=<YOUR_VALUE>",
        "-e",
        "AUDIT_JOURNALD=<YOUR_VALUE>",
        "-e",
        "AUDIT_LOG_FILE=<YOUR_VALUE>",
        "-e",
        "DEVICE_MAPPING=<YOUR_VALUE>",
        "-e",
        "ALLOW_DIRECT_COMMIT=<YOUR_VALUE>",
        "-e",
        "ALLOW_INSECURE_BIND=<YOUR_VALUE>",
        "-e",
        "AUDIT_HMAC_KEY_FILE=<YOUR_VALUE>",
        "-e",
        "APPROVAL_TIMEOUT_SECS=<YOUR_VALUE>",
        "ghcr.io/mechubsec/rustpanosmcp:0.17.1"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-mechubsec-rustpanosmcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "TLS_KEY=<YOUR_VALUE>",
        "-e",
        "LAB_MODE=<YOUR_VALUE>",
        "-e",
        "TLS_CERT=<YOUR_VALUE>",
        "-e",
        "TRANSPORT=<YOUR_VALUE>",
        "-e",
        "STATE_FILE=<YOUR_VALUE>",
        "-e",
        "TOKENS_FILE=<YOUR_VALUE>",
        "-e",
        "ALLOWED_HOST=<YOUR_VALUE>",
        "-e",
        "AUDIT_FORMAT=<YOUR_VALUE>",
        "-e",
        "AUDIT_REDACT=<YOUR_VALUE>",
        "-e",
        "ALLOW_NO_AUTH=<YOUR_VALUE>",
        "-e",
        "ALLOWED_ORIGIN=<YOUR_VALUE>",
        "-e",
        "AUDIT_JOURNALD=<YOUR_VALUE>",
        "-e",
        "AUDIT_LOG_FILE=<YOUR_VALUE>",
        "-e",
        "DEVICE_MAPPING=<YOUR_VALUE>",
        "-e",
        "ALLOW_DIRECT_COMMIT=<YOUR_VALUE>",
        "-e",
        "ALLOW_INSECURE_BIND=<YOUR_VALUE>",
        "-e",
        "AUDIT_HMAC_KEY_FILE=<YOUR_VALUE>",
        "-e",
        "APPROVAL_TIMEOUT_SECS=<YOUR_VALUE>",
        "ghcr.io/mechubsec/rustpanosmcp:0.17.1"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-mechubsec-rustpanosmcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "TLS_KEY=<YOUR_VALUE>",
        "-e",
        "LAB_MODE=<YOUR_VALUE>",
        "-e",
        "TLS_CERT=<YOUR_VALUE>",
        "-e",
        "TRANSPORT=<YOUR_VALUE>",
        "-e",
        "STATE_FILE=<YOUR_VALUE>",
        "-e",
        "TOKENS_FILE=<YOUR_VALUE>",
        "-e",
        "ALLOWED_HOST=<YOUR_VALUE>",
        "-e",
        "AUDIT_FORMAT=<YOUR_VALUE>",
        "-e",
        "AUDIT_REDACT=<YOUR_VALUE>",
        "-e",
        "ALLOW_NO_AUTH=<YOUR_VALUE>",
        "-e",
        "ALLOWED_ORIGIN=<YOUR_VALUE>",
        "-e",
        "AUDIT_JOURNALD=<YOUR_VALUE>",
        "-e",
        "AUDIT_LOG_FILE=<YOUR_VALUE>",
        "-e",
        "DEVICE_MAPPING=<YOUR_VALUE>",
        "-e",
        "ALLOW_DIRECT_COMMIT=<YOUR_VALUE>",
        "-e",
        "ALLOW_INSECURE_BIND=<YOUR_VALUE>",
        "-e",
        "AUDIT_HMAC_KEY_FILE=<YOUR_VALUE>",
        "-e",
        "APPROVAL_TIMEOUT_SECS=<YOUR_VALUE>",
        "ghcr.io/mechubsec/rustpanosmcp:0.17.1"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-mechubsec-rustpanosmcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "TLS_KEY=<YOUR_VALUE>",
        "-e",
        "LAB_MODE=<YOUR_VALUE>",
        "-e",
        "TLS_CERT=<YOUR_VALUE>",
        "-e",
        "TRANSPORT=<YOUR_VALUE>",
        "-e",
        "STATE_FILE=<YOUR_VALUE>",
        "-e",
        "TOKENS_FILE=<YOUR_VALUE>",
        "-e",
        "ALLOWED_HOST=<YOUR_VALUE>",
        "-e",
        "AUDIT_FORMAT=<YOUR_VALUE>",
        "-e",
        "AUDIT_REDACT=<YOUR_VALUE>",
        "-e",
        "ALLOW_NO_AUTH=<YOUR_VALUE>",
        "-e",
        "ALLOWED_ORIGIN=<YOUR_VALUE>",
        "-e",
        "AUDIT_JOURNALD=<YOUR_VALUE>",
        "-e",
        "AUDIT_LOG_FILE=<YOUR_VALUE>",
        "-e",
        "DEVICE_MAPPING=<YOUR_VALUE>",
        "-e",
        "ALLOW_DIRECT_COMMIT=<YOUR_VALUE>",
        "-e",
        "ALLOW_INSECURE_BIND=<YOUR_VALUE>",
        "-e",
        "AUDIT_HMAC_KEY_FILE=<YOUR_VALUE>",
        "-e",
        "APPROVAL_TIMEOUT_SECS=<YOUR_VALUE>",
        "ghcr.io/mechubsec/rustpanosmcp:0.17.1"
      ]
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-mechubsec-rustpanosmcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "TLS_KEY=<YOUR_VALUE>",
        "-e",
        "LAB_MODE=<YOUR_VALUE>",
        "-e",
        "TLS_CERT=<YOUR_VALUE>",
        "-e",
        "TRANSPORT=<YOUR_VALUE>",
        "-e",
        "STATE_FILE=<YOUR_VALUE>",
        "-e",
        "TOKENS_FILE=<YOUR_VALUE>",
        "-e",
        "ALLOWED_HOST=<YOUR_VALUE>",
        "-e",
        "AUDIT_FORMAT=<YOUR_VALUE>",
        "-e",
        "AUDIT_REDACT=<YOUR_VALUE>",
        "-e",
        "ALLOW_NO_AUTH=<YOUR_VALUE>",
        "-e",
        "ALLOWED_ORIGIN=<YOUR_VALUE>",
        "-e",
        "AUDIT_JOURNALD=<YOUR_VALUE>",
        "-e",
        "AUDIT_LOG_FILE=<YOUR_VALUE>",
        "-e",
        "DEVICE_MAPPING=<YOUR_VALUE>",
        "-e",
        "ALLOW_DIRECT_COMMIT=<YOUR_VALUE>",
        "-e",
        "ALLOW_INSECURE_BIND=<YOUR_VALUE>",
        "-e",
        "AUDIT_HMAC_KEY_FILE=<YOUR_VALUE>",
        "-e",
        "APPROVAL_TIMEOUT_SECS=<YOUR_VALUE>",
        "ghcr.io/mechubsec/rustpanosmcp:0.17.1"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-mechubsec-rustpanosmcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "TLS_KEY=<YOUR_VALUE>",
        "-e",
        "LAB_MODE=<YOUR_VALUE>",
        "-e",
        "TLS_CERT=<YOUR_VALUE>",
        "-e",
        "TRANSPORT=<YOUR_VALUE>",
        "-e",
        "STATE_FILE=<YOUR_VALUE>",
        "-e",
        "TOKENS_FILE=<YOUR_VALUE>",
        "-e",
        "ALLOWED_HOST=<YOUR_VALUE>",
        "-e",
        "AUDIT_FORMAT=<YOUR_VALUE>",
        "-e",
        "AUDIT_REDACT=<YOUR_VALUE>",
        "-e",
        "ALLOW_NO_AUTH=<YOUR_VALUE>",
        "-e",
        "ALLOWED_ORIGIN=<YOUR_VALUE>",
        "-e",
        "AUDIT_JOURNALD=<YOUR_VALUE>",
        "-e",
        "AUDIT_LOG_FILE=<YOUR_VALUE>",
        "-e",
        "DEVICE_MAPPING=<YOUR_VALUE>",
        "-e",
        "ALLOW_DIRECT_COMMIT=<YOUR_VALUE>",
        "-e",
        "ALLOW_INSECURE_BIND=<YOUR_VALUE>",
        "-e",
        "AUDIT_HMAC_KEY_FILE=<YOUR_VALUE>",
        "-e",
        "APPROVAL_TIMEOUT_SECS=<YOUR_VALUE>",
        "ghcr.io/mechubsec/rustpanosmcp:0.17.1"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
HOST No Numeric bind address for Streamable HTTP. Off-loopback HTTP requires TLS or --allow-insecure-bind. Equivalent to the --host option. Default: 127.0.0.1
PORT No TCP port for Streamable HTTP. Equivalent to the --port option. Default: 30031
TLS_KEY No Absolute PEM private-key path; requires TLS_CERT. Equivalent to the --tls-key option.
LAB_MODE No Run without two-person control: change sets are approved on creation. Off by default. Equivalent to the --lab-mode option. Default: false
TLS_CERT No Absolute PEM certificate path; requires TLS_KEY. Equivalent to the --tls-cert option.
TRANSPORT No MCP transport to use. Possible values: stdio, streamable-http. Equivalent to the --transport option. Default: stdio
STATE_FILE No Absolute private JSON file for persistent change-set and operation state. Equivalent to the --state-file option.
TOKENS_FILE No Absolute digest-only bearer-token file path; the file must be mode 0600 or the server refuses to start. Equivalent to the --tokens-file option.
ALLOWED_HOST No Additional accepted HTTP Host authority; repeat for multiple values. Equivalent to the --allowed-host option.
AUDIT_FORMAT No Audit log format: text (default, human-readable) or json (machine-parseable). Equivalent to the --audit-format option. Default: text
AUDIT_REDACT No Per-field redaction policy (e.g., devices=hmac,host=drop). Equivalent to the --audit-redact option.
ALLOW_NO_AUTH No Disable bearer auth for a loopback-only development listener. Equivalent to the --allow-no-auth option. Default: false
ALLOWED_ORIGIN No Accepted browser Origin URL; repeat for multiple values. Equivalent to the --allowed-origin option.
AUDIT_JOURNALD No Enable the journald audit sink for target="audit" events. Equivalent to the --audit-journald option. Default: false
AUDIT_LOG_FILE No Optional dedicated JSON audit log file path. Equivalent to the --audit-log-file option.
DEVICE_MAPPING No Path to the validated JSON device inventory. Equivalent to the --device-mapping option. Default: devices.json
ALLOW_DIRECT_COMMIT No Allow committing an operation with no change-set approval at all. Off by default. Equivalent to the --allow-direct-commit option. Default: false
ALLOW_INSECURE_BIND No Permit a non-loopback plaintext listener behind a trusted TLS proxy. Equivalent to the --allow-insecure-bind option. Default: false
AUDIT_HMAC_KEY_FILE No Path to the HMAC key file for audit redaction; required when audit redaction requests hmac. Equivalent to the --audit-hmac-key-file option.
APPROVAL_TIMEOUT_SECS No Seconds a change-set approval stays valid before it expires. Equivalent to the --approval-timeout-secs option. Default: 900

Similar servers