palo-alto-bgp-ipsec
Provides tools for provisioning IPsec tunnels and BGP-over-IPsec peers on Palo Alto Panorama-managed firewalls, including preflight checks, candidate configuration planning/application/validation, and runtime verification. Changes remain candidate-only and require a human commit.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@palo-alto-bgp-ipsec Provision a dual BGP-over-IPsec setup to 203.0.113.5, remote AS 64512, with redundancy."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
palo-alto-bgp-ipsec
An MCP server for provisioning IPsec tunnels and BGP-over-IPsec peers on Palo Alto Panorama-managed firewalls, plus a curated set of read/write tools for day-to-day PAN-OS operations.
The provisioning flow is candidate-only and human-committed: an LLM builds and validates the candidate configuration; a human inspects it in the Panorama UI and performs the commit. A deployment can be single (1 tunnel + 1 BGP peer) or dual (2 tunnels + 2 peers for redundancy).
Highlights
Any Panorama. The server connects to whatever Panorama is configured via
PANOS_HOST+PANOS_API_KEY(env vars, server-side). No Panorama is hard-coded; every call works against the connected target.Guided workflow. Read
panorama_ipsec_bgp_guidefirst — it returns a static playbook (hard rules, tool order, naming conventions) so an LLM learns the flow without trial-and-error.Minimal human input. The LLM asks a human only for values it cannot derive — deployment label, template, peer IP(s), PSK(s), per-peer remote AS(es), and BGP policy intent. Tunnel units and link-local /30s can be suggested from a limited live-candidate scope, but the result is not a global collision guarantee and must be checked against merged/effective configuration. Serial, virtual router, WAN loopback, and the global BGP local-as / router-id are resolved from Panorama. See
docs/ipsec-bgp-intake-form.md.Two transports. Runs over stdio (primary, for local MCP clients) or HTTP (Streamable HTTP + legacy SSE). Both expose an identical tool set.
Secret-safe. PSKs and API keys never appear in a plan, snapshot, hash, log, URL, or result string. Structured logs are deep-redacted; only slot names (e.g.
tunnel-1-psk) are ever logged.
Related MCP server: Palo Alto Networks MCP Server Suite
Install
Requires Node.js >=20 (undici@6 matches that runtime); the package
manifest enforces the same minimum.
git clone https://github.com/yaylaerkan/palo-alto-bgp-ipsec.git
cd palo-alto-bgp-ipsec
npm install
npm run buildThen copy .env.example to .env and fill in PANOS_HOST / PANOS_API_KEY.
Configuration
Set the target firewall/Panorama via environment variables (a .env file is
loaded automatically):
Variable | Required | Description |
| ✅ | Panorama/firewall IP or hostname (no |
| ✅ | PAN-OS XML API key |
| — | Path to a multi-firewall JSON config (overrides single-host env) |
| — | SOCKS proxy URL for API calls |
| — | Target PAN-OS version hint (default assumes 11.1.x) |
| — | In-memory plan and operation snapshot TTL, integer 1–1440 (default |
| — | Winston log level (default |
| — | Directory for rotating JSON logs (default |
| — | HTTP listen port (default |
| — | HTTP bind address (default |
| — | Comma-separated |
| — | Directory of mounted JSON config (default |
API keys supplied via config are migrated into the OS keychain when available
(@napi-rs/keyring); otherwise they stay in the config file.
Binding to a loopback address enables DNS-rebinding protection automatically.
When binding to 0.0.0.0 (the default, and what a container needs), set
MCP_ALLOWED_HOSTS to restrict which Host headers are accepted.
Container config mounts
Kubernetes Secrets and ConfigMaps, Docker secrets, and most PaaS config
providers expose their payload as files in a mounted directory rather than as
environment variables. Any of these filenames found in CONF_DIR is read as a
flat JSON object and loaded into the environment:
File | Typical contents |
|
|
|
|
| Same shape as |
{
"PANOS_HOST": "panorama.example.local",
"PANOS_API_KEY": "..."
}The process loads those files into env at startup without overwriting
existing values, so a local .env still wins. Mount diagnostics log file
presence only (secrets.json=yes); secret values are never logged.
Run
stdio (primary)
npm run start:stdio
# or, after global install / npx:
palo-alto-bgp-ipsecRegister with a stdio MCP client (e.g. Claude Desktop) by pointing it at the
palo-alto-bgp-ipsec binary (build/stdio.js).
HTTP
npm start # listens on PORT (default 3001)Endpoint | Transport | Use case |
| Streamable HTTP | Modern MCP clients, OpenAI Codex |
| Legacy SSE | Cursor, existing integrations |
| — | Liveness/readiness probe |
| — | Prometheus metrics ( |
Each HTTP session gets its own server instance, so one client disconnecting never tears down another's session.
codex mcp add palo-alto-bgp-ipsec --url http://localhost:3001/mcpRepository MCP client
scripts/mcp-call.mjs drives the server as a real MCP client over HTTP or
stdio. It can list full schemas, read arguments from a file/stdin, and inject
PSKs from a no-echo TTY prompt or secret stdin without putting secret values in
the process argument list.
Multi-step provisioning over stdio. Plans and operation snapshots are process-local and in-memory — each
scripts/mcp-call.mjs --transport stdioinvocation spawns a fresh server process, so a plan created in one invocation is not visible to a later one (you will getSTALE_PLAN). Either run the whole plan → apply → validate sequence inside a single node process that imports the build modules directly (seescripts/example-provision.mjsfor a working end-to-end example), or use the HTTP transport with a long-running server so the plan persists across calls.For multi-step provisioning, the HTTP transport (
npm start, port 3001) is the practical choice.
node scripts/mcp-call.mjs __list__ --schemas
node scripts/mcp-call.mjs --transport stdio __list__ --schemas
node scripts/mcp-call.mjs panorama_preflight_template_network --args-stdin
node scripts/mcp-call.mjs panorama_apply_ipsec_candidate \
--args-file plan.json --secret tunnel-1-psk
printf '%s\n' "$PSK_FROM_SECRET_STORE" | \
node scripts/mcp-call.mjs panorama_apply_ipsec_candidate \
--args-file plan.json --secret-stdin tunnel-1-pskDo not put a psks object in positional JSON, --args, --args-file, or
--args-stdin; the repository client rejects inline PSKs. Supply every PSK
slot with --secret or --secret-stdin. --args-stdin and --secret-stdin
cannot be combined because both consume stdin. Apply output is sanitized even
when full output is requested.
Provisioning workflow
Single and dual deployments follow the same sequence — supply 1 or 2
tunnels/peers (the counts must match). See
src/tools/panorama-guide.ts for the full
playbook (hard rules, naming).
panorama_ipsec_bgp_guide— read the playbook (static, no API call).panorama_preflight_template_network— verify template/serial/VR/network. Resolution joins direct template and template-stack bindings with live device state, ignores disconnected candidates, and returns structuredchoicesforAMBIGUOUS_SERIAL/AMBIGUOUS_VIRTUAL_ROUTERinstead of guessing.Optionally run
panorama_suggest_ipsec_bgp_resourcesto propose bare tunnel units, non-overlapping link-local /30 pairs within the inspected scope, and the WAN loopback. The result deliberately reportscollisionsChecked: false,scopedCollisionsChecked: true,fullyChecked: false, and acollisionScope; a human must verify merged/effective configuration before accepting the suggestion.panorama_plan_ipsec→panorama_apply_ipsec_candidate→panorama_validate_ipsec_candidate_v2(preferred; takesplan_id+plan_hash). The legacypanorama_validate_ipsec_candidateremains available and takes the full spec.Note: if the apply → validate_v2 flow returns
STALE_PLAN, that is expected drift detection, not a bug. Fall back to the legacypanorama_validate_ipsec_candidate, which takes the full spec.panorama_plan_bgp→panorama_apply_bgp_candidate→panorama_validate_bgp_candidate(validate takes plan_id + plan_hash).Use
panorama_verify_candidate_operationwith an applyoperationIdto collect sanitized candidate evidence (admin,dirtyId,time) without returning configuration XML or key material.require_dirtydefaults totrue; missing, unreadable, or clean expected resources returnCANDIDATE_EVIDENCE_INCOMPLETEwithsuccess: falseandverified: false.Human commits in Panorama, then pushes to devices. Provisioning tools never commit or push automatically.
Optional after commit+push:
panorama_verify_ipsec_runtimeand/orpanorama_verify_bgp_runtime.
Key rules: IPsec before BGP; candidate-only (no auto-commit); PSK is a secret
(never in plan/log/hash); named deployment objects use the ${deployment}-
prefix. PAN-OS requires tunnel interfaces to remain bare tunnel.<unit>, so
their ownership boundary is the exact comment marker
mcp-owner:<deployment>. Markerless or foreign-marker interfaces are
conflicts and are not updated or removed. BGP global local-as / router-id are
reused from the live device; each BGP peer carries a local-address binding.
Candidate read failures are fail-closed (CANDIDATE_READ_FAILED) and do not
become create/update assumptions. APPLY and remove-APPLY reject any plan with
conflicts using PLAN_HAS_CONFLICTS before mutation begins.
Plans and operation snapshots are bound to the configured Panorama target by
an API-key-independent SHA-256 identity derived from normalized host, firewall
selector, and TLS verification policy. Reusing an ID against another target
fails with TARGET_MISMATCH before candidate reads or writes.
For BGP policy, set policyMode explicitly. The core planner recognizes the
explicit stale-owned-rule reconciliation flags pruneOwnedRules and its alias
reconcileOwnedRules, and the registered panorama_plan_bgp MCP schema exposes
both. Either flag requires policyMode: "none" | "explicit" and deletes only
stale import/export rules owned by the same deployment. With neither flag,
stale owned rules remain a plan conflict and APPLY is rejected.
Undo before commit: panorama_remove_bgp_candidate →
panorama_remove_ipsec_candidate (both two-phase: mode="plan" then
mode="apply"), or panorama_restore_candidate_operation with an earlier
operationId.
Tools
Panorama IPsec/BGP provisioning
panorama_ipsec_bgp_guide, panorama_preflight_template_network,
panorama_detect_ipsec_loopback, panorama_suggest_ipsec_bgp_resources,
panorama_plan_ipsec,
panorama_apply_ipsec_candidate, panorama_validate_ipsec_candidate,
panorama_validate_ipsec_candidate_v2,
panorama_remove_ipsec_candidate, panorama_verify_ipsec_runtime,
panorama_plan_bgp, panorama_apply_bgp_candidate,
panorama_validate_bgp_candidate, panorama_remove_bgp_candidate,
panorama_verify_bgp_runtime, panorama_restore_candidate_operation.
Provisioning lifecycle status — panorama_get_plan_status,
panorama_list_active_plans, panorama_get_operation_status,
panorama_list_active_operations. These return metadata-only lifecycle views;
they exclude plan/candidate hashes, XPath values, mutation/restore XML, and
secret slot names. Passing firewall filters/binds the lookup to that target.
Commit / push (explicit, human-driven — not part of the provisioning flow)
panorama_commit, panorama_push_to_devices.
System — list_firewalls, get_firewall_info, get_system_resources,
get_ha_status, get_active_sessions. list_firewalls returns only target
name, host, and TLS verification mode; it never returns API keys.
Network — get_interfaces, get_zones, get_vlans, get_routing_table,
get_static_routes, delete_static_route, get_arp_table,
get_dhcp_leases, get_dns_proxy.
Objects — address objects/groups, service objects/groups, tags (get and delete); application filters (get).
Config — get_config, panorama_verify_candidate_operation,
set_config, delete_config. get_config supports parsed JSON or sanitized
XML plus a metadata_only mode; PAN-OS key and pre-shared-key values are
always redacted.
Logs — get_traffic_logs, get_threat_logs, get_system_logs,
get_config_logs, get_url_filter_logs.
Security model
Candidate-only. No tool commits or pushes automatically; the human owns the commit. (
panorama_commit/panorama_push_to_devicesexist but are explicit, human-driven actions.)No-touch production. Named objects use the deployment prefix. Bare tunnel interfaces use
mcp-owner:<deployment>in their comment as the ownership boundary. Markerless/foreign interfaces conflict. Shared infrastructure (WAN loopback, global BGP router-id/local-as) is read-only and reused verbatim so its plan step is a no-op.PSK as secret. Plans carry
PSK_PLACEHOLDERslots; PSKs are materialized only at apply time and transit the API as redacted secrets. They are never logged, hashed, or returned.
Plans and operation snapshots are process-local and expire after
PANORAMA_PLAN_TTL_MINUTES (default 15 minutes); they are lost on restart.
Use the four lifecycle status tools to inspect safe active metadata and use
panorama_verify_candidate_operation for candidate evidence while the
operation snapshot is active. Status and evidence lookups can return
TARGET_MISMATCH when an ID is presented to a different configured target.
Logging
Structured Winston logging writes to stderr (so it never corrupts the
stdio MCP channel) and to a rotating JSON file under LOG_DIR
(palo-alto-bgp-ipsec-YYYY-MM-DD.log). All records pass through deep redaction that drops
psk/apiKey/password/secret keys and keeps PSK slot names only.
Development
npm run build # tsc → build/
npm test # vitest
npm run typecheck # tsc --noEmitDocker
docker build -t palo-alto-bgp-ipsec .
docker run --rm -p 3001:3001 --env-file .env palo-alto-bgp-ipsecDisclaimer
This project writes to the candidate configuration of the Panorama you point
it at. It never commits or pushes on its own, but panorama_commit and
panorama_push_to_devices exist as explicit tools — review any candidate in the
Panorama UI before committing. Test against a lab device first. No affiliation
with or endorsement by Palo Alto Networks; PAN-OS and Panorama are trademarks of
Palo Alto Networks, Inc.
License
Available Tools
63 toolsadd_address_groupADestructive
[MODIFIES CONFIG] Creates a static address group containing one or more address objects. Staged in candidate config — requires 'commit' to activate.
Inputs: name (required), members (required), firewall, description.
add_address_objectADestructive
[MODIFIES CONFIG] Creates an address object (IP/netmask, IP range, or FQDN). Staged in candidate config — requires 'commit' to activate.
Inputs: name (required), type (required), value (required), firewall, +1 more.
add_service_groupADestructive
[MODIFIES CONFIG] Creates a service group containing one or more service objects. Staged in candidate config — requires 'commit' to activate.
Inputs: name (required), members (required), firewall, description.
add_service_objectADestructive
[MODIFIES CONFIG] Creates a TCP or UDP service object with a port or port range. Staged in candidate config — requires 'commit' to activate.
Inputs: name (required), port (required), protocol (required), firewall, +1 more.
add_static_routeADestructive
[MODIFIES CONFIG] Creates a static route in a virtual router. Staged in candidate config — requires 'commit' to activate.
Inputs: name (required), destination (required), nexthop_type (required), metric, +4 more.
add_tagADestructive
[MODIFIES CONFIG] Creates a tag object. Tags can be applied to rules, objects, and other configuration elements. Staged in candidate config — requires 'commit' to activate.
Inputs: name (required), color, comments, firewall.
commitADestructive
[MODIFIES CONFIG] Commits all pending (staged) configuration changes to the running firewall. This activates changes made by set_config/delete_config. This action affects live traffic.
Inputs: firewall, description, partial_admin.
delete_address_groupADestructive
[MODIFIES CONFIG] Deletes an address group. Staged in candidate config — requires 'commit' to activate.
Inputs: name (required), firewall.
delete_address_objectADestructive
[MODIFIES CONFIG] Deletes an address object. Staged in candidate config — requires 'commit' to activate.
Inputs: name (required), firewall.
delete_configADestructive
[MODIFIES CONFIG] Deletes configuration at a specific XPath location on the firewall. Changes are staged in the candidate config and require a separate 'commit' to take effect.
Inputs: xpath (required), firewall.
delete_service_groupADestructive
[MODIFIES CONFIG] Deletes a service group. Staged in candidate config — requires 'commit' to activate.
Inputs: name (required), firewall.
delete_service_objectADestructive
[MODIFIES CONFIG] Deletes a service object. Staged in candidate config — requires 'commit' to activate.
Inputs: name (required), firewall.
delete_static_routeADestructive
[MODIFIES CONFIG] Deletes a static route from a virtual router. Staged in candidate config — requires 'commit' to activate.
Inputs: name (required), firewall, virtual_router.
delete_tagADestructive
[MODIFIES CONFIG] Deletes a tag object. Staged in candidate config — requires 'commit' to activate.
Inputs: name (required), firewall.
get_active_sessionsARead-only
[READ-ONLY] Retrieves active session count and summary from the firewall. Executes: show session info.
Inputs: firewall.
get_address_groupsBRead-only
[READ-ONLY] Retrieves all address groups that contain multiple address objects. Reads config at: /config/.../vsys/entry/address-group.
Inputs: firewall.
get_address_objectsARead-only
[READ-ONLY] Retrieves all address objects (IP addresses, ranges, FQDNs) defined on the firewall. Reads config at: /config/.../vsys/entry/address.
Inputs: firewall.
get_application_filtersARead-only
[READ-ONLY] Retrieves application filters used for application-based policy rules. Reads config at: /config/.../vsys/entry/application-filter.
Inputs: firewall.
get_arp_tableARead-only
[READ-ONLY] Retrieves ARP table entries from the firewall. Executes: show arp entry all.
Inputs: firewall.
get_configARead-only
[READ-ONLY] Reads configuration XML at a specific XPath location from the firewall/Panorama candidate buffer. Use this to verify staged candidate changes (look for dirtyId="2" admin="admin" attributes on tags — those mark uncommitted candidate state) or to read committed config. Does not modify anything.
Inputs: xpath (required), format, firewall, metadata_only, +1 more.
get_config_logsARead-only
[READ-ONLY] Retrieves recent configuration change logs from the firewall using the PanOS log API (type=log). Supports filtering by query and limiting result count.
Inputs: nlogs, query, firewall.
get_dhcp_leasesARead-only
[READ-ONLY] Retrieves DHCP server lease information. Executes: show dhcp server lease all.
Inputs: firewall.
get_dns_proxyARead-only
[READ-ONLY] Retrieves DNS proxy configuration. Reads config at: /config/.../network/dns-proxy.
Inputs: firewall.
get_firewall_infoARead-only
[READ-ONLY] Retrieves system information (hostname, model, serial, software version) from the PanOS firewall. Executes: show system info.
Inputs: firewall.
get_ha_statusARead-only
[READ-ONLY] Retrieves high-availability (HA) state and peer information from the firewall. Executes: show high-availability state.
Inputs: firewall.
get_interfacesARead-only
[READ-ONLY] Retrieves all network interfaces with their status, IP addresses, and configuration. Executes: show interface all.
Inputs: firewall.
get_routing_tableARead-only
[READ-ONLY] Retrieves the current routing table from the firewall. Executes: show routing route.
Inputs: firewall.
get_service_groupsARead-only
[READ-ONLY] Retrieves all service groups that contain multiple service objects. Reads config at: /config/.../vsys/entry/service-group.
Inputs: firewall.
get_service_objectsARead-only
[READ-ONLY] Retrieves all service objects (port/protocol definitions) from the firewall. Reads config at: /config/.../vsys/entry/service.
Inputs: firewall.
get_static_routesARead-only
[READ-ONLY] Retrieves static routes from a virtual router. Reads config at: /config/.../virtual-router/entry/routing-table/ip/static-route.
Inputs: firewall, virtual_router.
get_system_logsBRead-only
[READ-ONLY] Retrieves recent system logs from the firewall using the PanOS log API (type=log). Supports filtering by query and limiting result count.
Inputs: nlogs, query, firewall.
get_system_resourcesARead-only
[READ-ONLY] Retrieves system resource utilization including CPU, memory, and disk usage. Executes: show system resources.
Inputs: firewall.
get_tagsARead-only
[READ-ONLY] Retrieves all tags defined on the firewall. Reads config at: /config/.../vsys/entry/tag.
Inputs: firewall.
get_threat_logsARead-only
[READ-ONLY] Retrieves recent threat logs from the firewall using the PanOS log API (type=log). Supports filtering by query and limiting result count.
Inputs: nlogs, query, firewall.
get_traffic_logsARead-only
[READ-ONLY] Retrieves recent traffic logs from the firewall using the PanOS log API (type=log). Supports filtering by query and limiting result count.
Inputs: nlogs, query, firewall.
get_url_filter_logsARead-only
[READ-ONLY] Retrieves recent URL filtering logs from the firewall using the PanOS log API (type=log&log-type=url). Shows URLs visited and actions taken (allow/block/continue/override) by URL filtering policy.
Inputs: nlogs, query, firewall.
get_vlansBRead-only
[READ-ONLY] Retrieves VLAN configuration from the firewall. Reads config at: /config/.../network/vlan.
Inputs: firewall.
get_zonesARead-only
[READ-ONLY] Retrieves all security zones configured on the firewall. Reads config at: /config/.../vsys/entry/zone.
Inputs: firewall.
list_firewallsARead-only
[READ-ONLY] Lists configured firewall targets that can be selected by name. Returns only name, host, and verify_ssl; API keys are never included.
Inputs: no named parameters.
panorama_apply_bgp_candidateADestructive
[DESTRUCTIVE] Applies an approved BGP plan to the candidate configuration. Requires plan_id and plan_hash. Candidate configuration only; no commit or push is performed.
Inputs: plan_id (required), plan_hash (required), firewall.
panorama_apply_ipsec_candidateADestructive
[DESTRUCTIVE] Applies an approved IPsec plan to the candidate configuration. Requires plan_id, plan_hash, and one direct PSK per secret slot the plan reported. PSKs always arrive directly from the human/operator via the request; whatever value is supplied is accepted as-is, with no strength or complexity check. Candidate configuration only; no commit or push is performed. Direct PSK client-history risk on apply: supplied PSKs transit the API as redacted secrets.
Inputs: psks (required), plan_id (required), plan_hash (required), firewall.
panorama_commitADestructive
[MODIFIES CONFIG] Commits pending configuration changes on Panorama. Use this before 'panorama_push_to_devices' to commit changes to device groups, templates, and shared objects. This commits on Panorama itself — it does NOT push to managed firewalls.
Inputs: firewall, description, partial_admin.
panorama_detect_ipsec_loopbackARead-only
[READ-ONLY] Auto-detects the WAN loopback interface/address an IPsec IKE gateway should reference, by inspecting existing IKE gateways and loopback units. Use before panorama_plan_ipsec when localInterface/localAddress are omitted, to preview which loopback will be chosen. Candidate configuration only; no commit or push is performed.
Inputs: template (required), deployment (required), vsys, serial, +2 more.
panorama_get_operation_statusARead-only
[READ-ONLY] Returns safe lifecycle metadata for one active Panorama candidate operation. Returns only a safe target label/hash; never returns snapshot XPath values, restore XML, or secret metadata.
Inputs: operation_id (required), firewall.
panorama_get_plan_statusARead-only
[READ-ONLY] Returns safe lifecycle metadata for one active Panorama provisioning plan. Returns only a safe target label/hash; never returns plan/candidate hashes, XPath values, mutation XML, or secret slot names.
Inputs: plan_id (required), firewall.
panorama_ipsec_bgp_guideARead-only
[READ-ONLY] Static playbook for provisioning IPsec + BGP-over-IPsec on any Panorama the server is connected to. Covers what to ask the human vs. what to auto-resolve, the hard rules (candidate-only, no-touch-prod, PSK-as-secret, IPsec-before-BGP), the required tool sequence (preflight → suggest resources → plan_ipsec → apply_ipsec → validate_ipsec_v2 → plan_bgp → apply_bgp → validate_bgp → optional runtime verify), the common plan contract, explicit BGP policy intent, the BGP local-address binding, the global BGP local-as/router-id reuse rule, the IKE gateway ikev2 version emission, and naming conventions. Call this first in a session to learn the workflow without trial-and-error. Performs no API calls and mutates nothing.
Inputs: no named parameters.
panorama_list_active_operationsARead-only
[READ-ONLY] Lists safe lifecycle metadata for active Panorama candidate operations. Returns only safe target labels/hashes; never returns snapshot XPath values, restore XML, or secret metadata.
Inputs: firewall.
panorama_list_active_plansARead-only
[READ-ONLY] Lists safe lifecycle metadata for active Panorama provisioning plans. Returns only safe target labels/hashes; never returns plan/candidate hashes, XPath values, mutation XML, or secret slot names.
Inputs: firewall.
panorama_plan_bgpARead-only
[READ-ONLY] Plans ordered BGP candidate mutations (global enable, router-id, local-as, route-install, peer group, two peers, and import/export rules with inline matched prefixes). policyMode records whether empty policies are intentional or explicit rules are required; omission preserves legacy behavior with a warning. Returns the legacy plan wrapper plus common planId, planHash, and summary metadata. Requires prior IPsec apply: each peer's local-address = own (near) tunnel IP, peer-address = far tunnel IP (near + 1 within the /30). A peer without local-address is rejected by PAN-OS. Candidate configuration only; no commit or push is performed. Runtime verification requires a prior manual commit and push to the managed firewall.
Inputs: peers (required), template (required), peerGroup (required), deployment (required), +11 more.
panorama_plan_ipsecARead-only
[READ-ONLY] Plans ordered IPsec candidate mutations (IKE/IPsec crypto, tunnel interfaces, zones, vr_root membership, IKE gateways, IPsec tunnels). Returns backward-compatible flat Plan fields plus common planId, planHash, requiredSecretSlots, and summary metadata. Run this BEFORE panorama_plan_bgp — BGP peers bind to tunnel interfaces so the tunnels must exist first. Candidate configuration only; no commit or push is performed. Runtime verification requires a prior manual commit and push to the managed firewall.
Inputs: tunnels (required), template (required), deployment (required), ikeCryptoProfiles (required), +5 more.
panorama_preflight_template_networkARead-only
[READ-ONLY] Validates the deployment context before IPsec or BGP planning. Checks Panorama endpoint, managed serial/template/vsys/vr_root, Legacy Virtual Router mode, and PAN-OS 11.1.x compatibility. Candidate only; does not commit or push.
Inputs: template (required), deployment (required), vsys, serial, +2 more.
panorama_push_to_devicesADestructive
[MODIFIES CONFIG] Pushes configuration from Panorama to managed firewall devices. This deploys policy and object changes to production firewalls in the specified device group. This action affects live traffic on managed devices.
Inputs: device_group (required), firewall, description, include_template.
panorama_remove_bgp_candidateADestructive
[DESTRUCTIVE] Two-phase removal of owned BGP resources. mode 'plan' returns a removal plan; mode 'apply' requires the returned plan_id and plan_hash. Pass disable_global to also disable global BGP (fails if unowned peers remain). Candidate configuration only; no commit or push is performed.
Inputs: mode (required), template (required), deployment (required), vsys, +6 more.
panorama_remove_ipsec_candidateADestructive
[DESTRUCTIVE] Two-phase removal of owned IPsec resources. mode 'plan' returns a removal plan; mode 'apply' requires the returned plan_id and plan_hash and deletes only owned resources, snapshotting first and auto-restoring on failure. Candidate configuration only; no commit or push is performed.
Inputs: mode (required), template (required), deployment (required), vsys, +8 more.
panorama_restore_candidate_operationADestructive
[DESTRUCTIVE] Restores only the XPath values captured for one operation_id. Reverses mutations in reverse order. Does not issue a global candidate revert or touch unrelated changes. Requires a valid operation_id.
Inputs: operation_id (required), firewall.
panorama_suggest_ipsec_bgp_resourcesARead-only
[READ-ONLY] Resolves the template context, inspects target-template tunnel units and target-VR BGP link-local addresses, then suggests bare tunnel interfaces and /30 near/far pairs that do not overlap within that limited scope. These are scoped suggestions, not global collision guarantees; human and merged/effective-config verification is required. Also returns WAN loopback detection and flags BGP policy choices requiring human intent. Candidate configuration only; no commit or push is performed.
Inputs: template (required), deployment (required), vsys, serial, +5 more.
panorama_validate_bgp_candidateARead-only
[READ-ONLY] Validates the BGP candidate configuration without committing. Requires plan_id and plan_hash. Candidate configuration only; no commit or push is performed.
Inputs: plan_id (required), plan_hash (required), firewall.
panorama_validate_ipsec_candidateARead-only
[READ-ONLY] Reads every expected IPsec XPath, verifies references resolve, then runs a full Panorama candidate validation. Candidate configuration only; no commit or push is performed.
Inputs: tunnels (required), template (required), deployment (required), ikeCryptoProfiles (required), +5 more.
panorama_validate_ipsec_candidate_v2ARead-only
[READ-ONLY] Validates the exact IPsec resources captured by a prior plan, using only plan_id and plan_hash, then runs a full Panorama candidate validation. The legacy spec-keyed validation tool remains available. Candidate configuration only; no commit or push is performed.
Inputs: plan_id (required), plan_hash (required), firewall.
panorama_verify_bgp_runtimeARead-only
[READ-ONLY] Verifies BGP runtime peer state and expected routes on the managed firewall by serial through Panorama. Runtime verification requires a prior manual commit and push to the managed firewall. Candidate configuration only; no commit or push is performed.
Inputs: template (required), deployment (required), expected_prefixes (required), vsys, +3 more.
panorama_verify_candidate_operationARead-only
[READ-ONLY] Verifies the candidate configuration XPaths recorded for an apply operation. Returns only resource identity, XPath, existence, and candidate admin/dirtyId/time metadata. Never returns configuration XML or key material.
Inputs: operation_id (required), firewall, require_dirty.
panorama_verify_ipsec_runtimeARead-only
[READ-ONLY] Verifies IPsec runtime state (IKE/IPsec SAs) on the managed firewall by serial through Panorama. Runtime verification requires a prior manual commit and push to the managed firewall. Candidate configuration only; no commit or push is performed.
Inputs: template (required), deployment (required), tunnel_names (required), vsys, +3 more.
set_configADestructive
[MODIFIES CONFIG] Sets or creates configuration at a specific XPath location on the firewall. Changes are staged in the candidate config and require a separate 'commit' to take effect on the running firewall.
Inputs: xpath (required), element (required), firewall.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 63 tools
Most tools target distinct resources or lifecycle phases, and descriptions are detailed, but several pairs overlap conceptually: validate_ipsec_candidate and _v2, plan_status vs operation_status, and generic set_config/delete_config vs typed resource tools. An agent could misselect without careful reading.
There are two broad conventions: panorama_* lifecycle tools and generic get_/delete_/commit-style tools. Within each group naming is mostly consistent, but mixing remove vs delete, list vs get, commit vs panorama_commit, and _v2 suffixes makes the overall pattern inconsistent.
63 tools is far beyond the 50+ threshold for an extreme count mismatch. Many could be consolidated, especially the status/list/operation metadata helpers, log variants, and duplicate validation versions.
The core IPsec+BGP-over-Panorama lifecycle is well covered: preflight, suggest, plan_ipsec, apply, validate, plan_bgp, apply_bgp, validate, runtime verify, remove, commit, and push. Minor gaps exist for object updates and the duplicate v1/v2 validation path, but generic set_config and delete/add provide workarounds.
Related MCP Connectors
Tailscale device, route, DNS, key, user, and ACL management over MCP and CLI.
Manage remote servers, SSH terminals, files, databases and proxies with scoped access and approvals.
Query and manage PacketFabric NaaS: ports, virtual circuits, cloud routers, pricing, metrics.
Cloud cost, inventory and governance on AWS/Azure/GCP. Read-only by default, optional scoped writes
Related MCP Servers
- 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-
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Palo Alto Networks firewalls via XML API for configuration and monitoring tasks.-