Skip to content

Palo Alto Networks MCP Server

A Model Context Protocol (MCP) server that interfaces with Palo Alto Networks Next-Generation Firewalls (NGFW) and Panorama via their XML API. This server enables MCP clients (like Windsurf) to retrieve firewall and Panorama configuration data.

Key Features

  • Built using the modelcontextprotocol Python SDK with the FastMCP abstraction
  • Provides tools for retrieving firewall and Panorama configuration data:
  • System information
  • Address objects (with support for Panorama device groups)
  • Security zones
  • Security policies
  • Packaged as a standard Python module installable via pip or uv
  • Configurable via environment variables
  • Supports command-based execution via standard I/O transport

System Architecture

graph TD
    A[MCP Client<br>e.g., Windsurf] -->|Command-based execution<br>via stdio transport| B[Palo Alto MCP Server]
    B -->|XML API Requests| C[Palo Alto Networks NGFW<br>or Panorama]
    C -->|XML Responses| B
    B -->|Formatted Results| A