zscaler/zscaler-mcp-server

By zscaler

Updated 7 days ago

Zscaler MCP Server for Zscaler Zero Trust Exchange. ZPA, ZIA, ZDX, ZCC, EASM & more.

Image
Networking
Security
Developer tools
0

6.7K

zscaler/zscaler-mcp-server repository overview

Zscaler MCP Server

GitHub PyPI Docs License: MIT

A Model Context Protocol (MCP) server that connects AI agents with the Zscaler Zero Trust Exchange platform. 200+ tools across 8 services — read-only by default, with opt-in write operations.

Supported Services

ServiceToolsDescription
ZPA59Private Access — app segments, access policies, connectors, PRA
ZIA76Internet Access — firewall, URL filtering, SSL inspection, DLP
ZDX18Digital Experience — app scores, device health, alerts (read-only)
Z-Insights16Analytics — web traffic, cyber incidents, shadow IT (read-only)
ZCC4Client Connector — device enrollment, forwarding profiles (read-only)
ZTW19Workload Segmentation — IP groups, network services
EASM7Attack Surface — findings, lookalike domains (read-only)
ZIdentity10Identity — users, groups (read-only)

Quick Start

Pull the image
docker pull zscaler/zscaler-mcp-server:latest
Create a .env file
ZSCALER_CLIENT_ID=your-client-id
ZSCALER_CLIENT_SECRET=your-client-secret
ZSCALER_CUSTOMER_ID=your-customer-id
ZSCALER_VANITY_DOMAIN=your-vanity-domain
Run (stdio transport — default)
docker run -i --rm --env-file .env zscaler/zscaler-mcp-server:latest
Run (HTTP transport)
# streamable-http on port 8000
docker run --rm -p 8000:8000 --env-file .env \
  zscaler/zscaler-mcp-server:latest \
  --transport streamable-http --host 0.0.0.0

# SSE on custom port
docker run --rm -p 8080:8080 --env-file .env \
  zscaler/zscaler-mcp-server:latest \
  --transport sse --host 0.0.0.0 --port 8080
Run with specific services
docker run -i --rm --env-file .env \
  zscaler/zscaler-mcp-server:latest \
  --services zia,zpa,zdx
Run with write operations enabled
docker run -i --rm --env-file .env \
  -e ZSCALER_MCP_WRITE_ENABLED=true \
  -e ZSCALER_MCP_WRITE_TOOLS="zpa_create_*,zia_update_*" \
  zscaler/zscaler-mcp-server:latest

AI Agent Configuration

Claude Desktop / Cursor / VS Code
{
  "mcpServers": {
    "zscaler-mcp-server": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "--env-file", "/absolute/path/to/.env",
        "zscaler/zscaler-mcp-server:latest"
      ]
    }
  }
}
Remote HTTP (via mcp-remote)
{
  "mcpServers": {
    "zscaler-mcp-server": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote",
        "http://YOUR_SERVER:8000/mcp",
        "--header", "Authorization: Bearer sk-your-api-key"
      ]
    }
  }
}

Environment Variables

Required (Zscaler API Credentials)
VariableDescription
ZSCALER_CLIENT_IDOneAPI OAuth client ID
ZSCALER_CLIENT_SECRETOneAPI OAuth client secret
ZSCALER_CUSTOMER_IDCustomer/tenant ID (required for ZPA)
ZSCALER_VANITY_DOMAINYour Zscaler vanity domain
Server Configuration
VariableDefaultDescription
ZSCALER_MCP_TRANSPORTstdioTransport: stdio, sse, streamable-http
ZSCALER_MCP_HOST127.0.0.1Bind host for HTTP transports
ZSCALER_MCP_PORT8000Bind port for HTTP transports
ZSCALER_MCP_SERVICES(all)Comma-separated services to enable
ZSCALER_MCP_DEBUGfalseEnable debug logging
Security
VariableDefaultDescription
ZSCALER_MCP_WRITE_ENABLEDfalseEnable write (create/update/delete) tools
ZSCALER_MCP_WRITE_TOOLSMandatory allowlist when write enabled (wildcards supported)
ZSCALER_MCP_AUTH_ENABLEDfalseEnable MCP client authentication (HTTP only)
ZSCALER_MCP_AUTH_MODEAuth mode: api-key, jwt, or zscaler
ZSCALER_MCP_ALLOW_HTTPfalseAllow plaintext HTTP on non-localhost

Supported Tags

  • latest — Built from the master branch on every merge
  • X.Y.Z (e.g., 0.7.0) — Built from GitHub releases (semver)

Platforms

  • linux/amd64
  • linux/arm64

Image Details

  • Base image: python:3.13-alpine
  • Runs as: Non-root user (app)
  • Entrypoint: zscaler-mcp
  • Size: ~120 MB (compressed)

Documentation

License

MIT — Copyright (c) 2025 Zscaler

Tag summary

Content type

Image

Digest

sha256:e64fb9c97

Size

64.6 MB

Last updated

7 days ago

docker pull zscaler/zscaler-mcp-server:0.13