zscaler-aiguard-control-plane-mcp

zscaler-aiguard-control-plane-mcp

Provides AI agents with programmatic access to Zscaler AI Guard, enabling autonomous management of detection policies, match rules, LLM applications, and LLM providers.

Category
访问服务器

README

Zscaler AI Guard Control Plane MCP

An unofficial Model Context Protocol (MCP) server that provides AI agents (Gemini, Claude, Cursor) with programmatic, REST-based access to the Zscaler AI Guard (Zseclipse) ecosystem.

This MCP server allows your AI assistants to autonomously list, create, update, and delete Detection Policies, Match Rules, LLM Applications, and LLM Providers.

Overview

The server wraps the Zscaler AI Guard Public API (https://api.zsapi.net/aiguard/v1). It handles secure OAuth 2.0 client_credentials authentication natively, meaning your AI agent simply calls high-level tools like create_policy or list_llm_apps, and the server manages the Bearer token lifecycle and REST payloads.


Prerequisites & Authentication

To use this MCP server, you must provide three pieces of information from your Zscaler tenant.

How to obtain your API Credentials:

  1. Log in to your Zscaler AI Guard (or ZIdentity) administration portal.
  2. Navigate to the API Clients page.
  3. Click Add API Client (or generate a new credential).
  4. Ensure the client is granted the necessary scopes (all:read, all:write, all:delete).
  5. Copy the Client Secret immediately, as it is only shown once at creation.

Environment Variables

The MCP server reads these credentials directly from your environment variables:

  • ZSCALER_CLIENT_ID: The OAuth Client ID generated in Step 3.
  • ZSCALER_CLIENT_SECRET: The OAuth Client Secret generated in Step 3.
  • ZSCALER_VANITY_DOMAIN: Your Zscaler organization's login domain (e.g., if you log in at https://mycompany.zslogin.net, your vanity domain is mycompany).

Available MCP Tools

This server maps directly to the Zscaler AI Guard API Reference. All tools expect and return standard JSON payloads.

Detection Policies

Manage AI guard detection policies that inspect and act on prompts and responses.

  • list_policy_summaries: Returns a lightweight list of all detection policies (IDs, names, versions, timestamps).
  • list_policies: Returns all detection policies with full detector configuration.
  • get_policy: Fetch a specific policy by its numeric ID.
  • get_policy_by_name: Fetch a specific policy by its exact name.
  • create_policy: Creates a new detection policy (requires JSON payload).
  • update_policy: Replaces a detection policy completely.
  • enable_policy_controls: Partially updates the enabled/disabled state of individual policy controls.
  • delete_policy: Permanently deletes a detection policy.
  • check_policy_references: Checks if a policy is actively referenced by match rules or LLM applications.

Detection Policy Match Rules

Manage match rules that define the conditions under which a detection policy triggers.

  • list_match_rules: Returns all match rules for the tenant.
  • get_match_rule / get_match_rule_by_name
  • create_match_rule
  • update_match_rule
  • delete_match_rule

LLM Applications

Manage the LLM applications registered with AI Guard.

  • list_llm_applications
  • get_llm_application / get_llm_application_by_name
  • create_llm_application
  • update_llm_application
  • delete_llm_application
  • check_application_references

LLM Providers

Manage the LLM providers configured for the tenant.

  • list_llm_providers
  • get_llm_provider / get_llm_provider_by_name
  • create_llm_provider
  • update_llm_provider
  • delete_llm_provider
  • check_provider_references

Installation & Usage

1. Gemini CLI (Native Integration)

The fastest way to install this MCP server into your Gemini CLI is to use the native command.

First, clone this repository:

git clone https://github.com/hshen-ai/zscaler-aiguard-control-plane-mcp.git
cd zscaler-aiguard-control-plane-mcp

Then, run the simplified MCP installation command (ensure you replace the placeholder credentials with your actual ZIdentity keys):

gemini mcp add zscaler-aiguard-control-plane-mcp --env ZSCALER_CLIENT_ID=your_client_id --env ZSCALER_CLIENT_SECRET=your_client_secret --env ZSCALER_VANITY_DOMAIN=your_vanity_domain -- uv run --manifest-path ./pyproject.toml fastmcp run ./server.py

2. Claude Desktop / Claude Code

Add the server to your claude_desktop_config.json or .claude/mcp-servers.json:

{ "mcpServers": { "zscaler-aiguard-control-plane-mcp": { "command": "uv", "args": ["run", "fastmcp", "run", "/path/to/Zscaler-AI-Guard-Control-Plane-MCP/server.py"], "env": { "ZSCALER_CLIENT_ID": "...", "ZSCALER_CLIENT_SECRET": "...", "ZSCALER_VANITY_DOMAIN": "..." } } } }

3. Cursor IDE

In Cursor Settings > Features > MCP, add a new server:

  • Name: zscaler-aiguard-control-plane-mcp
  • Type: command
  • Command: uv run fastmcp run /path/to/Zscaler-AI-Guard-Control-Plane-MCP/server.py

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选