PA MCP Server
Integration with Palo Alto Networks PAN-OS firewalls, allowing management and querying of firewall information, configuration, and operations via API.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Palo Alto MCP + Open WebUI
This repository runs the Palo-MCP server for Palo Alto Networks PAN-OS firewalls behind an OpenAPI-compatible mcpo bridge, then connects it to Open WebUI through Docker Compose.
Local LLM model is used.
Architecture:
Main files:
Dockerfilebuilds Palo-MCP and wraps it withmcpo.docker-compose.ymlstarts Open WebUI and the Palo MCP proxy.get_panos_api_key.pygenerates and refreshesPA_TOKENin.env..env.exampledocuments required local environment variables.
Environment naming:
Local
.envusesPA_HOST,PA_USERNAME,PA_PASSWORD, andPA_TOKEN.The Compose service maps
PA_HOSTandPA_TOKENinto the container asPANOS_HOSTandPANOS_API_KEY, which Palo-MCP expects.MCPO_API_KEYprotects access to the OpenAPI proxy on port8000.
Build Palo Alto MCP server docker image and wrap it to mcpo
MCP server 'https://github.com/apius-tech/Palo-MCP' uses stdio MCP client Open WebUI supports MCP Streamable HTTP or OpenAPI mcpo acts as a bridge
docker build -t pa-mcp -f Dockerfile .Install requirements for python script (for obtaining API key)
pip install -r requirements.txtPA setup
Create new Admin role on PA firewall Device > Admin Roles > Add; Enable XML API permissions needed for this integration
Create new API user Device > Administrators > Add; Assign the newly created API role
Add username, password and PA FW IP address to
.env
Generate/Refresh PA_TOKEN from PA_HOST, PA_USERNAME, and PA_PASSWORD:
python3 ./get_panos_api_key.pyGenerate random keys for OpenWebUI and MCP server and add them to .env
WEBUI_SECRET_KEY
MCPO_API_KEY
start Ollama server:
Open 2 terminals: First terminal:
ollama serveSecond terminal:
ollama run qwen3:4bAdd link to LLM model to .env
OLLAMA_BASE_URL=http://host.docker.internal:11434Spin up Open WebUI and the Palo MCP:
docker compose up --buildTest the MCP OpenAPI proxy from the host:
set -a
. ./.env
set +a
curl http://localhost:8000/docs
curl -H "Authorization: Bearer $MCPO_API_KEY" http://localhost:8000/openapi.jsonTest connectivity to the configured PA device:
curl -X POST http://localhost:8000/get_firewall_info \
-H "Authorization: Bearer $MCPO_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Open and set up Open WebUI:
Open WebUI at: [[http://localhost:8080]]
Create account if needed (first time)
Add MCP: Settings > Admin Settings > Integrations > Add Connection
Type: OpenAPI
Name: PA MCP
URL: http://pa_mcp:8000
Auth: Bearer + MCPO_API_KEYVerify connection
Save
Customize new chat
New Chat > Integrations > Tools > PA MCP enable
Upload Files > upload agent_instructions.md
start chat
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query and manage PacketFabric NaaS: ports, virtual circuits, cloud routers, pricing, metrics.
Unofficial WhoisXML MCP — wraps WhoisXML API (whoisxmlapi.com)
Access Avalara AvaTax API for tax calculation, transactions, nexus management, and compliance
Read devices, users and policies; scan, lock, restart devices and install apps in Hexnode.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Palo Alto Networks APIs through a Model Context Protocol server. Generated using Postman MCP Generator, it provides automated tools for managing Palo Alto services through natural language commands.-
- FlicenseBqualityNot gradedmaintenanceEnables management of Palo Alto firewalls through their REST API, including system information retrieval, PAN-OS upgrades, HA firewall management via Panorama, content updates, and certificate management.6-
- FlicenseCqualityDmaintenanceEnables comprehensive management of Palo Alto Networks firewalls through a modular suite of servers for security policies, network objects, device operations, and system configuration.4-
- FlicenseNot gradedqualityCmaintenanceEnables MCP clients to interact with Palo Alto Networks firewalls and Panorama, providing tools to retrieve address objects, security zones, policies, and system information.16-