Cover image
Try Now
2025-04-01

PAN-OS MCP Server (API XML)

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

PAN-OS MCP Server

This project provides a Model Control Protocol (MCP) server for interacting with Palo Alto Networks firewalls using the XML API. It allows you to use Claude or other compatible tools to manage and configure your PAN-OS devices through natural language.

Features

  • Authenticate with a PAN-OS/Panorama device using API key
  • Retrieve system information
  • Execute operational commands
  • Commit configurations
  • Perform configuration actions (set, edit, delete, rename, etc.)
  • Push policy from Panorama to managed devices

Requirements

  • Python 3.13+
  • Palo Alto Networks firewall
  • API access to your PAN-OS device

Installation

  1. Clone the repository:

    git clone https://github.com/edoscars/pan-os-mcp.git
    
  2. Install the dependencies:

    pip install -r requirements.txt
    
  3. Add to your Claude Desktop configuration (add the correct path in the args):

    {
      "mcpServers": {
        "pan-os":{
          "command": "uv",
          "args":[
            "--directory",
            "C:\\Users\\USER\\pan-os",
            "run",
            "pan-os.py"
          ]
        }
      }
    }
    
  4. Edit the pan-os.py file to configure your PAN-OS device:

# -----------------------------------------------------------------------------
# Pan-OS / Panorama Configuration (adjust to your environment)
# -----------------------------------------------------------------------------
PA_HOST = "your-firewall-ip"
PA_API_KEY = "your-api-key"  

Available Commands

The server provides several tools for interacting with PAN-OS:

  • get_system_info: Retrieve basic system information
  • op_command: Execute operational commands using XML
  • commit_config: Commit candidate configurations
  • commit_all_shared_policy: Push policy from Panorama to managed devices
  • config_action: Perform configuration actions using XPath

Security Considerations

  • This project is designed for demonstration and usage in controlled environments.
  • The API key in the code should be kept secure and not committed to public repositories.
  • For production use, ensure proper authentication controls and consider adding TLS verification.

License

MIT License

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • HiveNexus
  • Un bot de chat de IA para equipos pequeños y medianos, que apoyan modelos como Deepseek, Open AI, Claude y Gemini. 专为中小团队设计的 ai 聊天应用 , 支持 Deepseek 、 Open ai 、 Claude 、 Géminis 等模型。

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

    Reviews

    5 (1)
    Avatar
    user_fnKqYZUc
    2025-04-18

    As a dedicated user of pan-os-mcp, I am thoroughly impressed with its performance and reliability. Created by edoscars, this product has streamlined my workflow significantly. The code is clean and the functionality is intuitive, making it accessible even for those who are not experts. I highly recommend checking it out on GitHub at https://github.com/edoscars/pan-os-mcp. A must-have tool for anyone looking to enhance their system operations efficiently!