MCP cover image
See in Github
2025-04-01

PAN-OS MCP服务器(XML API)

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.

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

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

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

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

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

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

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

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

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

  • Lists Tailwind CSS classes in monospaced font

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • modelcontextprotocol
  • 模型上下文协议服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

    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!