AT

apius-tech/palo-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

34 stars 17 forks 质量 87 趋势 20MIT

PanOS MCP 服务器

概览

PanOS MCP 是一个 MCP(模型上下文协议)服务器,通过 PAN-OS XML API 直接连接 AI 助手——Claude、Cursor 等——与 PAN-OS 防火墙和 Panorama。用通俗易懂的英语提问、检查策略并进行配置更改,无需操作图形界面或编写 API 脚本。 支持(PA-220、PA-415、PA-440、PA-445、PA-450、PA-460、PA-1400、PA-3400、PA-5400、PA-7500 等)、以及——任何运行 PAN-OS 且启用 API 访问的设备。 该服务器通过PanOS API让AI模型直接访问您的防火墙配置。AI模型可能会犯错、误解指令或做出意外行为,可能导致网络流量中断、修改安全策略或导致故障。在提交前务必审查AI提出的更改,尽可能使用只读API密钥,切勿在未了解后果的情况下对生产防火墙进行测试。

概述(AI 翻译)

用AI控制您的Palo Alto Networks防火墙。 PanOS MCP是一款MCP(模型上下文协议)服务器,通过PAN-OS XML API直接连接AI助手——Claude、Cursor等——与PAN-OS防火墙和Panorama。用通俗易懂的英语提问、检查策略并进行配置更改,无需操作图形界面或编写API脚本。

支持PA系列防火墙(PA-220、PA-415、PA-440、PA-445、PA-450、PA-460、PA-1400、PA-3400、PA-5400、PA-7500等)、VM系列、CN系列和Panorama——任何运行PAN-OS并启用API访问的设备。

警告: 该服务器通过PanOS API让AI模型直接访问你的防火墙配置。AI模型可能会犯错、误解指令,或做出可能干扰网络流量、修改安全策略或导致故障的非预期行为。使用请自行承担风险。 在提交前务必审查AI提出的变更,尽可能使用只读API密钥,切勿在未了解后果的情况下对生产防火墙运行。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

PanOS MCP Server

Control your Palo Alto Networks firewall with AI. PanOS MCP is an MCP (Model Context Protocol) server that connects AI assistants — Claude, Cursor, and others — directly to PAN-OS firewalls and Panorama via the PAN-OS XML API. Ask questions, inspect policies, and make configuration changes in plain English instead of navigating the GUI or writing API scripts.

Supports PA-Series firewalls (PA-220, PA-415, PA-440, PA-445, PA-450, PA-460, PA-1400, PA-3400, PA-5400, PA-7500 and more), VM-Series, CN-Series, and Panorama — any device running PAN-OS with API access enabled.

Warning: This server gives an AI model direct access to your firewall configuration via the PanOS API. AI models can make mistakes, misinterpret instructions, or take unintended actions that may disrupt network traffic, modify security policies, or cause outages. Use at your own risk. Always review AI-proposed changes before committing, use a read-only API key where possible, and never run against production firewalls without understanding the consequences.

117 tools across 16 modules covering firewall management, monitoring, and configuration changes — all from within your AI assistant.

What you can do

Talk to your firewall in plain English. Some examples:

  • “Show me all security rules that allow traffic from the internet to the DMZ”
  • “Which GlobalProtect users are currently connected?”
  • “Create an address object for 10.10.0.0/24 called corp-network and add it to the allow-internal group”
  • “Check HA status — is the standby firewall in sync?”
  • “Show me the last 50 threat log entries”
  • “Move the block-social-media rule above the allow-web rule and commit”
  • “List all IPSec tunnels and their current state”
  • “What software version is running on each managed device in Panorama?”

Features

  • Read-only inspection of firewall state, policies, objects, logs, and more
  • Configuration management via XPath-based set/delete with staged commits
  • Panorama support for centralized management of device groups, templates, and shared objects
  • Multi-firewall mode — manage multiple PA-Series devices or Panorama instances simultaneously
  • Secure credential storage — API keys stored in the OS keychain, never in plaintext
  • Input validation with Zod schemas for early error detection
  • Safety labels on every tool: [READ-ONLY], [MODIFIES CONFIG], or [ADVANCED]
在 GitHub 查看完整 README

安装

npx -y github:apius-tech/Palo-MCP
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "panos": { "command": "npx", "args": ["-y", "github:apius-tech/Palo-MCP"], "env": { "PANOS_HOST": "your-firewall-or-panorama", "PANOS_API_KEY": "your-api-key" } } } }