
Zscaler Zero Trust Exchange
io.github.zscaler由 GitHub 账号 zscaler 发布v0.15.4更新于 Oct 24, 2026
Manage Zscaler Zero Trust Exchange via 400+ tools — ZPA, ZIA, ZDX, ZCC, ZTW, ZMS, EASM, and more.
概览
本地 MCP 服务器,让助手列出、查看并按需(需显式白名单)创建、更新或删除 Zscaler Zero Trust Exchange 中 ZIA、ZPA 等服务的资源。
- 可以做什么
- 列出并获取 ZIA、ZPA、ZDX、ZCC、ZTW、ZMS、EASM 等服务的 Zscaler 资源,只读工具始终可用,列表结果支持可选的 JMESPath 查询投影。
- 适用场景
- 当助手需要查看或管理 Zscaler Zero Trust Exchange 租户时适用,例如审查安全策略、应用网段、设备状态或分析数据,并希望写操作默认关闭或严格限定范围。
- 运行要求
- 通过 uvx(PyPI 包 zscaler-mcp)或 Docker 以 stdio 在本地运行。需要 Zscaler OneAPI 凭据:ZSCALER_CLIENT_ID、ZSCALER_CLIENT_SECRET、ZSCALER_CUSTOMER_ID 和 ZSCALER_VANITY_DOMAIN。需要访问 Zscaler API 的网络。仅限桌面客户端。
安装
在 SourceWeft 中
- 打开 控制台中的 Zscaler Zero Trust Exchange,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[PyPI version] [PyPI - Python Version] [Documentation] [codecov] [GitHub commit activity] [License] [Automation Hub] [Zscaler Community]
zscaler-mcp-server is a Model Context Protocol (MCP) server that connects AI agents with the Zscaler Zero Trust Exchange platform. By default, the server operates in read-only mode for security, requiring explicit opt-in to enable write operations.
Support Disclaimer
-> Disclaimer: Please refer to our General Support Statement before proceeding with the use of this provider. You can also refer to our troubleshooting guide for guidance on typical problems.
[!IMPORTANT] 🚧 Public Preview: This project is currently in public preview and under active development. Features and functionality may change before the stable 1.0 release. While we encourage exploration and testing, please avoid production deployments. We welcome your feedback through GitHub Issues to help shape the final release.
📄 Table of contents
- 📺 Overview
- 🔒 Security & Permissions
- 🔐 MCP Client Authentication
- Supported Tools
- Installation & Setup
- Usage
- Zscaler API Credentials & Authentication
- As a Library
- Container Usage
- Editor/Assistant Integration
- Additional Deployment Options
- Using the MCP Server with Agents
- Platform Integrations
- Troubleshooting
- License
📺 Overview
The Zscaler Integrations MCP Server brings context to your agents. Try prompts like:
- "List my ZPA Application segments"
- "List my ZPA Segment Groups"
- "List my ZIA Rule Labels"
[!WARNING] 🔒 READ-ONLY BY DEFAULT: For security, this MCP server operates in read-only mode by default. Only
list_*andget_*operations are available. To enable tools that can CREATE, UPDATE, or DELETE Zscaler resources, you must explicitly enable write mode using the--enable-write-toolsflag or by settingZSCALER_MCP_WRITE_ENABLED=true. See the Security & Permissions section for details.
[!TIP] Writing effective prompts: This server exposes 402 tools across multiple Zscaler services. Most MCP clients (Claude Desktop, Cursor, etc.) use deferred tool loading and will search for relevant tools based on your prompt. For best results, be specific about the service and action in your prompts:
- Good: "List my ZPA application segments" — targets the right service and tool directly
- Good: "Show ZIA firewall rules" — clear service (
zia) and action (list)- Less effective: "Show me my devices" — ambiguous; multiple services expose device-related tools
When a service is disabled, its tools are fully removed from the server. However, the AI agent may still attempt to find related tools in other services. If you get unexpected results, refine your prompt with the specific service name (e.g.
zpa,zia,zdx,zcc,zcell,zms).
🔒 Security & Permissions
The Zscaler MCP Server implements a security-first design with granular permission controls and safe defaults:
Read-Only Mode (Default - Always Available)
By default, the server operates in read-only mode, exposing only tools that list or retrieve information:
- ✅ ALWAYS AVAILABLE - Read-only tools are registered by the server
- ✅ Safe to use with AI agents autonomously
- ✅ No risk of accidental resource modification or deletion
- ✅ All
list_*andget_*operations are available (110+ read-only tools) - ❌ All
create_*,update_*, anddelete_*operations are disabled by default - 💡 Note: You may need to enable read-only tools in your AI agent's UI settings
When the server starts in read-only mode, you'll see:
💡 Read-only tools are ALWAYS registered by the server regardless of any flags. You never need to enable them server-side. Note: Your AI agent UI (like Claude Desktop) may require you to enable individual tools before use.
Write Mode (Explicit Opt-In - Allowlist REQUIRED)
To enable tools that can create, modify, or delete Zscaler resources, you must provide BOTH flags:
- ✅
--enable-write-tools- Global unlock for write operations - ✅
--write-tools "pattern"- MANDATORY explicit allowlist
🔐 SECURITY: Allowlist is MANDATORY - If you set
--enable-write-toolswithout--write-tools, 0 write tools will be registered. This ensures you consciously choose which write operations to enable.
When you try to enable write mode without an allowlist:
Write Tools Allowlist (MANDATORY)
The allowlist provides two-tier security:
- ✅ First Gate:
--enable-write-toolsmust be set (global unlock) - ✅ Second Gate: Explicit allowlist determines which write tools are registered (MANDATORY)
Allowlist Examples:
Or via environment variable:
Wildcard patterns supported:
zpa_create_*- Allow all ZPA creation toolszpa_delete_*- Allow all ZPA deletion toolszpa_*- Allow all ZPA write tools*_application_segment- Allow all operations on application segmentszpa_create_application_segment- Exact match (no wildcard)
When using a valid allowlist, you'll see:
Tool Design Philosophy
Each operation is a separate, single-purpose tool with explicit naming that makes its intent clear:
✅ Good (Verb-Based - Current Design)
This design allows AI assistants (Claude, Cursor, GitHub Copilot) to:
- Allow-list read-only tools for autonomous exploration
- Require explicit user confirmation for write operations
- Clearly understand the intent of each tool from its name
Responses: the API record, verbatim
A read tool returns the Zscaler API record unchanged. The server does not trim, rename, or re-declare a resource's attributes — that attribute set belongs to the API, so a field Zscaler adds in future reaches you with no server upgrade.
To keep responses small, you control what comes back rather than the server guessing. Two levers:
-
--toolsets— load only the slice of tools you need, so the tool catalog stays small (see Toolsets). -
query— every list tool accepts an optional JMESPath expression applied to the results, so the agent projects exactly what it wants:Field names are exactly what the Zscaler API returns. Omit
queryto get the full records.
Security Layers
The server implements multiple layers of security (defense-in-depth). The first nine apply on every transport, including stdio — they govern which tools are exposed and how dangerous calls are confirmed. The remaining HTTP-only layers (TLS, host-header validation, source-IP ACL, MCP client authentication) are described in the Network-Level Controls section further down.
- Read-Only Tools Always Enabled: Safe
list_*andget_*operations are always available (254 tools). - Default Write Mode Disabled: Write tools are disabled unless explicitly enabled via
--enable-write-tools. - Mandatory Allowlist: Write operations require explicit
--write-toolsallowlist (wildcard support). - OneAPI Entitlement Filter: At startup, toolsets for products the OneAPI credentials cannot call are silently dropped (see OneAPI Entitlement Filter below).
- Toolset Selection: Optionally narrow the registered tool surface to a specific slice (e.g.
--toolsets zia_url_filtering,zpa_app_segments). See the Toolsets section below. - Verb-Based Tool Naming: Each tool clearly indicates its purpose (
list,get,create,update,delete). - Tool Metadata Annotations: All tools are annotated with
readOnlyHintordestructiveHintfor AI agent frameworks. - AI Agent Confirmation: All write tools marked with
destructiveHint=Truetrigger permission dialogs in AI assistants. - Human Confirmation for DELETE: Delete operations are gated by a server-initiated confirmation. On clients that support MCP elicitation (Claude Desktop, Cursor), the server asks the client to prompt a human and the answer arrives as a protocol field — so a hijacked agent cannot author the approval, and a failed round trip fails closed. Clients without that capability fall back to a cryptographic confirmation token (HMAC-SHA256, single-use, 5-minute TTL, bound to the exact tool and parameters), which stops an approval being spent on another resource, replayed or reused — but is not by itself an anti-prompt-injection control, since a hijacked agent receives and can redeem it. The fallback is also single-process; elicitation-capable clients are unaffected. See MCP protocol posture — confirmation threat model for the full analysis.
- Environment Variable Control:
ZSCALER_MCP_WRITE_ENABLED,ZSCALER_MCP_WRITE_TOOLS,ZSCALER_MCP_TOOLSETS,ZSCALER_MCP_DISABLE_ENTITLEMENT_FILTER, and the disable lists can all be managed centrally without code changes. - Output Sanitization: Every string in every tool result is run through a three-stage sanitizer before reaching the agent — invisible/control characters (BiDi overrides, zero-width chars, BOM, soft hyphen) are stripped, raw HTML and HTML comments are removed (via
bleach), Markdown link/image syntax is neutralised so embedded URLs cannot be smuggled to the agent, and Markdown code-fence info-strings containing role-impersonation tokens (system,assistant,tool,ignore, …) are collapsed to a neutraltexttag. This defends against prompt-injection payloads that an attacker — or a careless admin — might embed in editable Zscaler resources (rule descriptions, location names, label descriptions, etc.). On by default. Opt-out withZSCALER_MCP_DISABLE_OUTPUT_SANITIZATION=true(use only for diagnostics). - Audit Logging: When
--log-tool-calls/ZSCALER_MCP_LOG_TOOL_CALLS=trueis set, every tool invocation is logged with its arguments (sensitive values redacted), duration, and a result summary.
This multi-layered approach ensures that even if one security control is bypassed, others remain in place to prevent unauthorized operations. Layers 1-12 above apply equally to stdio, sse, and streamable-http.
Toolsets
Tools are grouped into 63 named toolsets so you can load only the slice an agent actually needs (e.g. zia_url_filtering (5 tools) instead of every tool from every service (402)). Toolsets reduce the agent's context cost and improve tool-selection accuracy.
When --toolsets is unspecified, every toolset whose service is enabled is loaded (preserves the historical default).
The agent can also enable additional toolsets at runtime through the always-on zscaler_list_toolsets, zscaler_get_toolset_tools, and zscaler_enable_toolset tools.
For the full catalog (29 toolsets across all services), filter precedence rules, per-toolset agent guidance, and the complete reference, see docs/guides/toolsets.md.
OneAPI Entitlement Filter
After your toolset selection resolves, the server reads the product entitlements from the OneAPI bearer token issued for your ZSCALER_CLIENT_ID and silently drops toolsets for products the credentials cannot call. If your OneAPI client is only entitled to ZIA and ZPA, every zdx_* / zcc_* / ztw_* / zid_* / zeasm_* / zins_* / zms_* toolset is filtered out at startup — even with --toolsets all.
This prevents an agent from discovering tools whose first call would only ever return 401 Unauthorized. The filter applies on every transport, including stdio.
When the filter runs you'll see one log line at startup, for example:
The filter is non-fatal. If credentials are missing, the token endpoint is unreachable, the token doesn't decode, or the token has no recognizable product entitlements, the server logs a single WARN line and starts normally with the user-selected toolsets unchanged.
To bypass the filter (for example, while diagnosing an unusual token shape):
Only product entitlement is honoured — not role names. The server defers per-action permission enforcement to the live API; the entitlement filter only ensures we don't advertise tools for products the client has zero access to.
Cryptographic Confirmation for Destructive Actions
Delete operations are never executed on the first call. What happens instead depends on the client:
- Clients that support MCP elicitation get an interactive prompt naming the resource, answered by a human. The AI agent never handles the approval.
- Every other client gets a cryptographic confirmation token (HMAC-SHA256) it must pass back to proceed. The token is bound to the specific operation and its parameters, is single-use, and expires after 5 minutes — so it can't be forged, replayed, or reused for a different resource.
There is no way to turn this off. Deletes are irreversible against a live tenant, so the server ships no flag or environment variable that skips the gate. If you don't want an agent deleting anything, don't allowlist the delete tools: write tools are off by default and --write-tools takes explicit patterns (see Write Mode).
Network-Level Controls (HTTP only)
The next four subsections — TLS, source-IP allowlist, host-header validation, and the .env plaintext-secret scanner — apply only to the HTTP transports (sse, streamable-http). They control who can reach the server over the network. They are independent of the tool-level controls listed in Security Layers above (read-only mode, write allowlist, toolsets, entitlement filter, HMAC confirmations), which apply on every transport including stdio.
The corresponding MCP client authentication (Bearer / Basic / OAuth 2.1) is a fifth network-level layer covered in detail in the MCP Client Authentication section further below.
HTTPS/TLS Support
HTTPS is required by default for non-localhost deployments. The server will refuse to start on a non-localhost interface without TLS certificates unless you explicitly set ZSCALER_MCP_ALLOW_HTTP=true.
When running with HTTP transports (sse or streamable-http), provide TLS certificates:
When TLS is configured, the server automatically starts with HTTPS. This works with both public (CA-signed) and private (self-signed) certificates. Generate a self-signed certificate for testing:
Source IP Access Control
You can restrict which client IPs are allowed to connect using ZSCALER_MCP_ALLOWED_SOURCE_IPS. When unset (the default), source IP filtering is disabled and deferred to upstream controls (firewall rules, AWS Security Groups, etc.).
Supports individual IPv4/IPv6 addresses, CIDR notation, and the wildcard 0.0.0.0/0. Health-check endpoints (/health, /healthz, /ready) are exempt so load-balancer probes continue to work. Requests from disallowed IPs receive 403 Forbidden.
.env File Security Warning
When starting with HTTP transports, the server automatically scans any .env file in the working directory for plaintext secrets (values containing SECRET, PASSWORD, KEY, or TOKEN). If detected, a security warning is logged recommending the use of a secrets manager or environment variables instead.
Security Posture Banner
On startup, the server logs a consolidated Security Posture Banner summarizing the active security configuration — transport mode, host validation status, authentication mode, TLS status, and any active warnings. This makes it easy to verify the security state at a glance.
Key Security Principles:
- No "enable all write tools" backdoor exists - allowlist is mandatory
- AI agents must request permission before executing any write operation (
destructiveHint) - Every destructive action requires explicit user approval through the AI agent's permission framework
- Destructive confirmations are cryptographically bound to prevent prompt injection bypass
Best Practices
- Read-Only by Default: No configuration needed for safe operations - read-only tools are always available
- Mandatory Allowlist: Always provide explicit
--write-toolsallowlist when enabling write mode - Development/Testing: Use narrow allowlists (e.g.,
--write-tools "zpa_create_application_segment") - Production/Agents: Keep server in read-only mode (default) for AI agents performing autonomous operations
- CI/CD: Never set
ZSCALER_MCP_WRITE_ENABLED=truewithout a correspondingZSCALER_MCP_WRITE_TOOLSallowlist - Least Privilege: Use narrowest possible allowlist patterns for your use case
- Wildcard Usage: Use wildcards for service-level control (e.g.,
zpa_create_*) or operation-level control (e.g.,*_create_*) - Audit Review: Regularly review which write tools are allowlisted and remove unnecessary ones
- Specific Prompts: With 402 tools and deferred loading, AI agents match prompts to tools by relevance. Use service-specific prompts (e.g., "List ZPA segments" instead of "Show my segments") for accurate tool selection
🔐 MCP Client Authentication
📖 Full Documentation: Authentication & Deployment Guide
When running the MCP server over HTTP (sse or streamable-http transports), you can enable authentication to control who is allowed to connect to the server. This is independent from the Zscaler API credentials, which control how the server authenticates to Zscaler APIs.
For HTTP transports, the server auto-detects and enables authentication when auth-related environment variables are present. For stdio transport, authentication is not applicable (the operating system's process isolation provides security).
Authentication Modes
The server supports four authentication modes, configured via environment variables:
Quick Start
Enable authentication by setting these environment variables in your .env file:
Then start the server with an HTTP transport:
Clients must include the key in the Authorization header:
How It Works
Authentication is implemented as ASGI middleware that wraps the HTTP transport layer:
- Layer 1 (MCP Client Auth): Controlled by
ZSCALER_MCP_AUTH_*variables — validates the incoming request - Layer 2 (Zscaler API Auth): Controlled by
ZSCALER_CLIENT_ID,ZSCALER_CLIENT_SECRET, etc. — authenticates the server to Zscaler APIs
These two layers are completely independent. You can enable one, both, or neither.
Configuration by Mode
API Key
JWT (External IdP via JWKS)
Zscaler OneAPI Credentials
Clients authenticate with Basic Auth (client_id:client_secret) or custom headers (X-Zscaler-Client-ID / X-Zscaler-Client-Secret).
Authentication Defaults
For HTTP transports (sse, streamable-http), the server auto-detects and enables authentication if auth-related environment variables are present (e.g., ZSCALER_MCP_AUTH_JWKS_URI, ZSCALER_MCP_AUTH_API_KEY, or ZSCALER_VANITY_DOMAIN). If no auth configuration is detected and ZSCALER_MCP_AUTH_ENABLED is not explicitly set, the server logs a security warning but continues without authentication.
To explicitly disable authentication, set:
Authentication does not apply to stdio transport (process isolation provides security).
OAuth 2.1 (oidc mode)
oidc mode makes the server an OAuth 2.0 protected resource (RFC 9728). The server publishes /.well-known/oauth-protected-resource naming your Identity Provider; the client reads that, runs the OAuth flow against the IdP directly, and presents the resulting token. The server's only job is verifying the token signature against the IdP's published public keys.
It is configured entirely through environment variables — no code, no extra packages:
Notes:
- No client secret. Verifying a signature needs the IdP's public keys, not a credential of ours.
OIDCPROXY_CLIENT_SECRETis ignored if set. OIDCPROXY_BASE_URLis this server's public URL, which clients use as the resource identifier — not the IdP's.OIDCPROXY_AUDIENCEdefaults toOIDCPROXY_CLIENT_ID. Entra ID puts the client ID inaud; Auth0 uses the API identifier.- The issuer and JWKS URI are read from the IdP's discovery document at startup, so they always match what the IdP actually signs with.
- The server serves no
/authorize,/tokenor/register— clients need a client ID issued by the IdP and cannot self-register. - Works with any OIDC-compliant provider (Auth0, Okta, Microsoft Entra ID, Keycloak, Google, AWS Cognito, PingOne).
- All other security layers (TLS, source-IP ACL, host validation) remain active.
IdP requirements: an application with the callback URL your client uses (http://localhost:3334/oauth/callback for mcp-remote, with the port pinned) registered, and an API/resource identifier matching OIDCPROXY_AUDIENCE.
📖 For detailed setup instructions — including Microsoft Entra ID step-by-step guide, IdP-specific JWKS configuration, Docker deployment examples, client configuration for Claude/Cursor/VS Code, and troubleshooting — see the Authentication & Deployment Guide.
Supported Tools
The Zscaler Integrations MCP Server provides 402 tools for all major Zscaler services:
📖 View Complete Tools Reference →
Note: All write operations require the
--enable-write-toolsflag and an explicit--write-toolsallowlist. See the Security & Permissions section for details.
Installation & Setup
Prerequisites
- Python 3.11 or higher
uvor pip- Zscaler API credentials (see below)
Environment Configuration
Copy the example environment file and configure your credentials:
Then edit .env with your Zscaler API credentials:
Required Configuration (OneAPI):
ZSCALER_CLIENT_ID: Your Zscaler OAuth client IDZSCALER_CLIENT_SECRET: Your Zscaler OAuth client secretZSCALER_CUSTOMER_ID: Your Zscaler customer IDZSCALER_VANITY_DOMAIN: Your Zscaler vanity domain
Optional Configuration:
ZSCALER_CLOUD: (Optional) Zscaler cloud environment (e.g.,beta) - Required when interacting with Beta Tenant ONLY.ZSCALER_PRIVATE_KEY: (Optional) PEM-encoded private key for JWT-based OneAPI auth, used in place ofZSCALER_CLIENT_SECRET.ZSCALER_MCP_SERVICES: Comma-separated list of services to enable (default: all services)ZSCALER_MCP_TRANSPORT: Transport method -stdio,sse, orstreamable-http(default:stdio)ZSCALER_MCP_DEBUG: Enable debug logging -trueorfalse(default:false)ZSCALER_MCP_HOST: Host for HTTP transports (default:127.0.0.1)ZSCALER_MCP_PORT: Port for HTTP transports (default:8000)
Alternatively, you can set these as environment variables instead of using a .env file.
Important: Ensure your API client has the necessary permissions for the services you plan to use. You can always update permissions later in the Zscaler console.
Installation
Install with VS Code (Quick Setup)
Note: This will open VS Code and prompt you to configure the MCP server. You'll need to replace the placeholder values (
<YOUR_CLIENT_ID>, etc.) with your actual Zscaler credentials.
Install using uv (recommended)
Install from source using uv (development)
Remote deployment: When running on EC2/VM, activate the project venv before starting:
source .venv/bin/activate. See Remote MCP Deployment.
Install from source using pip
Install using make (convenience)
[!TIP] If
zscaler-mcp-serverisn't found, update your shell PATH.
For installation via code editors/assistants, see the Using the MCP Server with Agents section below.
Usage
[!NOTE] Default Security Mode: All examples below run in read-only mode by default (only
list_*andget_*operations). To enable write operations (create_*,update_*,delete_*), add the--enable-write-toolsflag to any command, or setZSCALER_MCP_WRITE_ENABLED=truein your environment.
Command Line
Run the server with default settings (stdio transport, read-only mode):
Run the server with write operations enabled:
Run with SSE transport:
Run with streamable-http transport:
Run with streamable-http transport on custom port:
Service Configuration
The Zscaler Integrations MCP Server supports multiple ways to specify which services to enable:
1. Command Line Arguments (highest priority)
Specify services using comma-separated lists:
2. Environment Variable (fallback)
Set the ZSCALER_MCP_SERVICES environment variable:
3. Default Behavior (all services)
If no services are specified via command line or environment variable, all available services are enabled by default.
Service Priority Order:
- Command line
--servicesargument (overrides all) ZSCALER_MCP_SERVICESenvironment variable (fallback)- All services (default when none specified)
Excluding Services and Tools
When you want to keep most tools available but exclude a few, use --disabled-tools or --disabled-services instead of listing every tool you want to include.
Both flags support wildcards via fnmatch patterns.
Environment variables:
Precedence: --disabled-tools takes precedence over --tools (include list). A tool that matches both the include list and the exclude list will be excluded.
Additional Command Line Options
For all available options:
Available command-line flags:
--transport: Transport protocol (stdio,sse,streamable-http)--services: Comma-separated list of services to enable--disabled-services: Comma-separated list of services to exclude (e.g.,zcc,zdx)--tools: Comma-separated list of specific tools to enable--disabled-tools: Comma-separated list of tools to exclude, supports wildcards (e.g.,zcc_*,zdx_list_devices)--toolsets: Comma-separated toolset ids to enable (e.g.zia_url_filtering,zpa_app_segments). Special values:default(curated default-on subset),all(every toolset). When unspecified, every toolset whose service is enabled is loaded. See docs/guides/toolsets.md.--no-entitlement-filter: Skip the OneAPI entitlement filter that trims toolsets to the products the configuredZSCALER_CLIENT_IDis entitled to. Emergency override only — the filter is non-fatal by default.--enable-write-tools: Enable write operations (disabled by default for safety)--write-tools: Mandatory allowlist of write tool patterns (e.g.,"zpa_create_*,zpa_delete_*")--log-tool-calls: Enable per-tool-call audit logging (tool name, redacted arguments, duration, result summary)--debug: Enable debug logging--host: Host for HTTP transports (default:127.0.0.1)--port: Port for HTTP transports (default:8000)--user-agent-comment: Additional text appended to User-Agent header--generate-auth-token: Generate a client auth token snippet and exit--list-tools: List all available tools and exit--version: Show server version and exit
Supported Agents
Zscaler API Credentials & Authentication
The Zscaler Integrations MCP Server uses OneAPI authentication exclusively. A single set of credentials authenticates the server to every Zscaler product (ZIA, ZPA, ZCC, ZDX, Zscaler Cellular, ZTW, ZIdentity, ZMS, Z-Insights, EASM).
Zscaler Cellular (ZCell) needs one extra credential — your Zscaler Cellular customer ID via
ZCELL_CUSTOMER_ID— which is separate fromZSCALER_CUSTOMER_ID(used by ZPA). See the environment-variable table below.
OneAPI Authentication
Prerequisites
- Create an API Client in the ZIdentity platform.
- Obtain your
clientId,clientSecret(orprivateKeyfor JWT),customerId, andvanityDomain. - Learn more: Understanding OneAPI.
Quick Setup
Create a .env file in your project root (or wherever you start the MCP server):
⚠️ Security: Do not commit .env to source control. Add it to your .gitignore.
OneAPI Environment Variables
Verification
After populating .env, start the server:
If credentials are valid, the server starts cleanly. The Zscaler SDK client is created lazily on the first tool call, so missing or rotating credentials surface as a clear error message at call time rather than blocking server startup.
Authentication Troubleshooting
MCP Server Configuration
The following environment variables control MCP server behavior (not authentication):
User-Agent Header
The MCP server automatically includes a custom User-Agent header in all API requests to Zscaler services. The format is:
Example:
With Custom Comment:
You can append additional information (such as the AI agent details) using the ZSCALER_MCP_USER_AGENT_COMMENT environment variable or the --user-agent-comment CLI flag:
This results in:
The User-Agent helps Zscaler identify API traffic from the MCP server and can be useful for support, analytics, and debugging purposes.
As a Library
You can use the Zscaler Integrations MCP Server as a Python library in your own applications:
Example with write operations enabled:
Available Services: zcc, zdx, zcell, zia, zid, zeasm, zins, zms, zpa, ztw
Example with Environment Variables:
Running Examples
Container Usage
The Zscaler Integrations MCP Server is available as a pre-built container image for easy deployment:
Using Pre-built Image (Recommended)
Building Locally (Development)
For development or customization purposes, you can build the image locally:
Note: When using HTTP transports in Docker, always set --host 0.0.0.0 to allow external connections to the container.
Editor/Assistant Integration
You can integrate the Zscaler Integrations MCP server with your editor or AI assistant. Here are configuration examples for popular MCP clients:
Using uvx (recommended)
Note: The published PyPI package is
zscaler-mcp(notzscaler-mcp-server). When integrating as a Claude Code plugin, use${CLAUDE_PLUGIN_ROOT}/.envinstead of an absolute path; for Gemini extensions, use${extensionPath}${pathSeparator}.env.
Additional Deployment Options
Remote MCP Deployment (EC2, VM, etc.)
When deploying the MCP server on a remote host (EC2, VM, internal server) so clients connect over HTTP from another machine:
Server setup:
-
Install and configure credentials (see Installation and Environment Configuration).
-
If using an editable install (
uv pip install -e .), you must activate the project venv before running—otherwise an older or different installation may run: -
Use
--host 0.0.0.0to bind on all interfaces. This automatically disables Host header validation (required when clients send the server's public IP in the Host header). For production, considerZSCALER_MCP_ALLOWED_HOSTSin.envto restrict to known hostnames. -
Ensure the firewall allows inbound traffic on the chosen port (e.g. 8000).
Client configuration (Claude Desktop):
Claude Desktop expects a command that spawns a process. For remote HTTP, use mcp-remote which supports custom authentication headers.
macOS / Linux:
Windows:
On Windows, paths with spaces (e.g., C:\Program Files\...) cause npx to fail when invoked directly. Wrap the call through cmd /c:
--allow-http: Required when connecting to a non-localhost HTTP endpoint.mcp-remoteenforces HTTPS by default for non-localhost URLs. Omit this flag when connecting over HTTPS or tolocalhost.
Using Zscaler auth mode (Basic Auth):
Replace the Authorization header with Basic Auth credentials. The value is the Base64 encoding of client_id:client_secret:
Then use "Authorization: Basic <base64_value>" in place of the Bearer header above.
Prerequisites on the client: Node.js (for npx) must be installed.
📖 Full remote deployment details (venv usage, 421 troubleshooting, security, TLS): Remote Deployment · 421 Misdirected Request · Troubleshooting
Azure Container Apps / Virtual Machine / AKS (Preview)
Deploy the Zscaler MCP Server to Azure with your choice of deployment target:
The script will prompt you for:
- Deployment target: Container Apps, Virtual Machine, or Azure Kubernetes Service (Preview)
- Credential source:
.envfile path or manual entry - Auth mode: OIDC (OAuth 2.1), JWT, API Key, Zscaler, or None (OIDC not yet supported on AKS)
- Azure options: resource group, region, Key Vault (new or existing); for AKS: cluster lifecycle (create new or use existing), node count/size, namespace
Container Apps and VM store all secrets in Azure Key Vault (mandatory) and auto-configure Claude Desktop / Cursor. AKS Preview injects credentials as Kubernetes environment variables on the Deployment — Workload Identity Federation + Key Vault CSI driver integration is planned.
Foundry Agent: Optionally create an Azure-hosted AI agent that wraps the MCP server. The agent is accessible via CLI chat (with spinner, token tracking, and timing), the Azure AI Foundry portal playground, REST APIs, or Microsoft 365 Copilot integrations.
📖 Full Azure deployment guide: integrations/azure/README.md
Google Cloud (Cloud Run / GKE / VM / ADK Agent)
Google Cloud deployments cover both the standalone MCP Server and the Gemini-powered ADK Agent. A complete video walkthrough is available here:
Zscaler Integration MCP Server in GCP — Video Demo
Two interactive Python scripts manage all five Google Cloud deployment targets:
Standalone MCP Server — Automated Deployment:
The script prompts for deployment target, credentials, and auth mode. It:
- Prompts for GCP project/region (or reads from
.env) - Optionally stores credentials in GCP Secret Manager
- Deploys the container to Cloud Run with
zscalerauthentication mode - Generates
Authorization: Basicheaders from your Zscaler OneAPI credentials - Auto-configures Claude Desktop (
claude_desktop_config.json) and Cursor (~/.cursor/mcp.json) - Writes a deployment state file (
.gcp-deploy-state.json) for subsequentstatus/logs/destroyoperations
ADK Agent — Interactive Deployment:
Manual Deployment:
With GCP Secret Manager (recommended for production):
The Docker image includes a built-in GCP Secret Manager loader. Store credentials as individual secrets (e.g., zscaler-client-id, zscaler-client-secret) and enable with a single env var:
The loader also works on GKE and Compute Engine — anywhere GCP Application Default Credentials are available.
📖 Full Google Cloud deployment guide (all five targets, IAM roles, authentication modes, enterprise patterns): integrations/google/README.md
📖 Secret Manager deep-dive (GKE manifests, credential rotation, loader internals): GCP Secret Manager Integration
Kubernetes (Helm Chart)
Deploy the Zscaler MCP Server to any Kubernetes cluster via Helm — EKS, GKE, AKS, OpenShift, Rancher, k3s, Talos, or kind / minikube for local dev. The chart is cluster-vendor-agnostic and never calls aws, az, or gcloud. Use this when the cluster is already a fact and your operating model treats every workload as a Helm release; if you instead need to stand up brand-new cloud infra, use the Azure / GCP / AWS deployment sections above.
The deployment script materialises a Kubernetes Secret from your existing .env (no translation into values.yaml), runs helm upgrade --install, waits for the rollout with live per-pod feedback (detects ImagePullBackOff / CreateContainerConfigError / CrashLoopBackOff and exits with a tailored recovery hint), starts a background kubectl port-forward when no Ingress is configured, and auto-configures Claude Desktop + Cursor with the right Authorization: Basic header.
Five credential-setup paths are supported (interactive script, kubectl create secret --from-env-file, inline --set, pre-existing Secret for GitOps, and External Secrets Operator). All five converge on the same chart contract — the Deployment does envFrom: secretRef: so every ZSCALER_MCP_* / ZSCALER_* key in your secret flows into the container untouched.
For the full chart reference (values.yaml keys, Ingress / HTTPRoute / cert-manager / HPA / PDB toggles, ExternalSecret examples), see integrations/helm-chart/README.md.
Amazon Bedrock AgentCore
[!IMPORTANT] One image, no AWS fork. Bedrock AgentCore used to be served by a separate build. It no longer is — the standard image runs on AgentCore as-is, configured entirely through environment variables. AgentCore's
containerConfigurationaccepts only an ECR URI (Docker Hub is not a legal value) and requireslinux/arm64, so the published multi-arch image still needs to be copied into ECR — or pulled from the AWS Marketplace listing, which is the same image already in ECR for you.
🚀 Quick Start with AWS Marketplace:
The easiest way to deploy the Zscaler Integrations MCP Server to Amazon Bedrock AgentCore is through the AWS Marketplace listing. What you get on this path:
- ✅ ECR-hosted
linux/arm64image — the two things AgentCore validates - ✅ Built-in AWS Secrets Manager loader: set
ZSCALER_SECRET_NAMEand credentials never appear as environment variables - ✅ Transport steered by
ZSCALER_MCP_TRANSPORT/_HOST/_PORT, becauseContainerConfigurationhas no command override - ✅ Read-only by default; write tools stay off until you allowlist them
- ✅ Identical tool inventory, toolsets, and auth modes to every other deployment
📚 Full Deployment Guide:
For detailed deployment instructions, IAM configuration, and troubleshooting, please refer to the comprehensive Amazon Bedrock AgentCore deployment guide.
The deployment guide covers:
- Prerequisites and AWS VPC requirements
- IAM role and trust policy configuration
- Step-by-step deployment instructions
- Environment variable configuration
- Write mode configuration (for CREATE/UPDATE/DELETE operations)
- Troubleshooting and verification steps
🔐 AWS Secrets Manager (built in):
The image includes an AWS Secrets Manager loader, so credentials never have to appear as environment variables on the runtime. Store them as one JSON secret and point the deployment at it:
Then set ZSCALER_SECRET_NAME=zscaler/mcp/credentials on the runtime — its presence is the entire opt-in, there is no second flag. Grant the execution role secretsmanager:GetSecretValue (and kms:Decrypt if the secret uses a customer-managed key). Values from the secret override the container environment, so rotating the secret beats a stale value in a task definition, and a failure to read it stops the server at startup rather than surfacing later as an opaque Zscaler API error. Works the same on ECS Fargate, EKS and EC2. For a PyPI (non-container) install, boto3 rides the optional extra: pip install 'zscaler-mcp[aws]'.
ZSCALER_MCP_TRUST_PLATFORM_AUTH=true is an AgentCore-specific escape hatch: it lets api-key / zscaler auth modes accept a request carrying no credential, falling back to the container's own. It is safe only behind an authenticating ingress (AgentCore's customJwtAuthorizer consumes the Authorization header for its own token, leaving no envelope for ours). Never set it where the container is directly reachable.
[!NOTE] Earlier releases shipped a separate Bedrock image with a FastAPI wrapper (
web_server.py) that bypassed MCP session initialization. That wrapper is gone: the server speaks vanillastreamable-http, and clients on the2026-07-28revision are self-contained POSTs with no session handshake at all. The Marketplace image is recommended purely because it satisfies AgentCore's ECR + arm64 requirements out of the box — not because it runs different code.
Using the MCP Server with Agents
This section provides instructions for configuring the Zscaler Integrations MCP Server with popular AI agents. Before starting, ensure you have:
- ✅ Completed Installation & Setup
- ✅ Configured Authentication
- ✅ Created your
.envfile with credentials
Claude Desktop
You can install the Zscaler MCP Server in Claude Desktop using either method:
Windows users: The one-click extension bundles macOS/Linux binaries and will not work on Windows. Use Option 2: Manual Configuration instead—it uses
uvxto install platform-appropriate packages at runtime. See Troubleshooting: Windows for details.
Option 1: Install as Extension (macOS / Linux)
The easiest way to get started—one-click install with a user-friendly UI in Claude Desktop and low barrier to entry.
Prerequisites: uv must be installed (provides uvx). The extension uses uvx to run the server from PyPI at runtime—no manual pip install zscaler-mcp required. Install uv: curl -LsSf https://astral.sh/uv/install.sh | sh
- Open Claude Desktop
- Go to Settings → Extensions → Browse Extensions
- In the search box, type
zscaler - Select Zscaler MCP Server from the results
- Click Install or Add
- Configure your
.envfile path when prompted (or edit the configuration after installation) - Restart Claude Desktop completely (quit and reopen)
- Verify by asking Claude: "What Zscaler tools are available?"
Option 2: Manual Configuration (All platforms, recommended on Windows)
- Open Claude Desktop
- Go to Settings → Developer → Edit Config
- Add the following configuration:
Important: Replace
/absolute/path/to/your/.envwith the absolute path to your.envfile. On Windows, use a path likeC:\Users\You\.env. Relative paths will not work.
- Save the configuration file
- Restart Claude Desktop completely (quit and reopen)
- Verify by asking Claude: "What Zscaler tools are available?"
Troubleshooting:
- "MCP server not found": Verify the
.envfile path is absolute and correct - "Authentication failed": Check that your
.envfile contains valid credentials - Tools not appearing: Check Claude Desktop logs (Help > View Logs) for errors
- Extension not found: Ensure you're searching in the "Desktop extensions" tab, not "Web"
- Windows:
ModuleNotFoundError(rpds, pydantic_core, etc.): The extension bundles macOS/Linux binaries. Use Option 2 (Manual Configuration) instead. See Troubleshooting guide.
Cursor
- Open Cursor
- Go to Settings → Cursor Settings → Tools & MCP → New MCP Server
- The configuration will be saved to
~/.cursor/mcp.json. Add the following configuration:
Alternative: You can also use Docker instead of
uvx:
- Save the configuration file
- Restart Cursor completely (quit and reopen)
- Verify by asking: "List my ZIA rule labels"
Troubleshooting:
- Check Cursor's MCP logs (View > Output > MCP) for connection errors
- Verify the
.envfile path is absolute and credentials are correct - The configuration file is located at
~/.cursor/mcp.json(or%USERPROFILE%\.cursor\mcp.jsonon Windows)
Platform Integrations
The Zscaler MCP Server ships with native integrations for several AI development platforms. Each integration includes platform-specific configuration files, 19 guided skills, and setup instructions.
For full documentation on all integrations, see the Platform Integrations Guide.
General Troubleshooting for All Agents
Common Issues:
-
"Command not found: uvx"
- Install
uv:curl -LsSf https://astral.sh/uv/install.sh | sh - Or use Docker: Replace
uvxwithdocker run --rm --env-file /path/to/.env zscaler/zscaler-mcp-server:latest
- Install
-
".env file not found"
- Use absolute paths, not relative paths
- Verify the file exists at the specified path
- Check file permissions (should be readable)
-
"Authentication failed"
- Verify all required OneAPI environment variables are in
.env - Check that credentials are correct and not expired
- Verify all required OneAPI environment variables are in
-
"Tools not appearing"
- Some agents require you to enable tools in their UI
- Check agent logs for connection errors
- Verify the MCP server is running (check agent's MCP status)
-
"Server connection timeout"
- Ensure the MCP server can start successfully
- Test manually:
uvx --env-file /absolute/path/to/.env zscaler-mcp - Check for port conflicts if using HTTP transports
-
Windows:
ModuleNotFoundError: No module named 'rpds.rpds'(Claude Desktop extension)- The extension bundles macOS/Linux binaries. Use manual configuration with
uvx zscaler-mcpinstead. - See Troubleshooting: Windows.
- The extension bundles macOS/Linux binaries. Use manual configuration with
-
Windows:
'C:\Program' is not recognized(Remote MCP withnpx)- Paths with spaces break
npxwhen called directly. Use"command": "cmd"with"args": ["/c", "npx", ...]instead. - See Troubleshooting: Windows npx path issues.
- Paths with spaces break
-
Non-HTTPS URLs are only allowed for localhost(mcp-remote)mcp-remoteenforces HTTPS for non-localhost URLs by default. Add"--allow-http"to theargsarray before--header.- See Troubleshooting: mcp-remote HTTPS enforcement.
-
self-signed certificate/DEPTH_ZERO_SELF_SIGNED_CERT(mcp-remote with TLS)- When using self-signed certificates, add
"env": { "NODE_TLS_REJECT_UNAUTHORIZED": "0" }to the MCP server entry in your client config. - See Troubleshooting: Self-signed certificates.
- When using self-signed certificates, add
Getting Help:
- Check agent-specific logs (usually in Help/View menu)
- Test the server manually to isolate agent vs server issues
- Review the Troubleshooting section for more details
来源:README.md,提交 809f68d
工具
0版本历史
1- v0.15.4最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Exchange 集成
Exchange.news — Crypto offers, campaigns and news
news.exchange官方发布者
一个只读的远程目录,让助手查询加密货币注册优惠码、合作链接、活动日期和 Exchange.news 新闻。

ECB Currency Reference Rates — Latest Daily Cross Pairs
由 GitHub 账号 kriton-dev 发布
托管在 Apify 上的远程 MCP 服务器,让助手读取欧洲央行最新每日汇率参考价及计算出的交叉汇率。

Microsoft Exchange Online MCP
由 GitHub 账号 Servosity 发布
非官方 MCP 服务器,让助手通过 REST 跨客户租户审计和管理 Microsoft Exchange Online 邮箱,无需 PowerShell。

Agent Service Exchange
由 GitHub 账号 PatrickPi1312 发布
查找服务商;在维也纳发送经授权的安装或清洁咨询。无需客户账户。AI 翻译

Iran Mercantile Exchange
由 GitHub 账号 sepehr071 发布
非官方的伊朗商品交易所只读 MCP 服务器,让助手查询商品成交、价格、供应公告与市场汇总数据。