Palo-Alto-Policy-Management-MCP-Server
This project is a Model Context Protocol (MCP) server for managing Palo Alto Networks firewall policies. It offers integration through the Palo Alto Networks API and various tools for querying and managing firewall rules. The server is built using TypeScript.
Palo Alto Policy Management MCP Server
A Model Context Protocol (MCP) server for managing Palo Alto Networks firewall policies. This server provides a standardized interface for interacting with Palo Alto Networks firewall configurations using the Model Context Protocol.
Features
- Integration with Palo Alto Networks API via MCP
- Policy management capabilities
- Built with TypeScript for type safety and better developer experience
Available Tools
Query Tools
get_security_rules
- Get security policy rulesget_nat_rules
- Get NAT policy rulesget_qos_rules
- Get QoS policy rulesget_policy_based_forwarding_rules
- Get policy-based forwarding rulesget_decryption_rules
- Get decryption policy rulesget_tunnel_inspection_rules
- Get tunnel inspection rulesget_application_override_rules
- Get application override rulesget_authentication_rules
- Get authentication policy rulesget_dos_rules
- Get DoS protection rulesget_sdwan_rules
- Get SD-WAN policy rules
Management Tools
create_rule
- Create a new policy ruleupdate_rule
- Update an existing policy ruledelete_rule
- Delete a policy rule
Prerequisites
- Node.js (v16 or higher recommended)
- npm or yarn package manager
- Access to a Palo Alto Networks firewall
Installation
Installing via Smithery
To install Palo Alto Policy Management Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @DynamicEndpoints/palo-alto-policy-management-mcp-server --client claude
- Clone the repository:
git clone <repository-url>
cd paloalto-policy-server
- Install dependencies:
npm install
Usage
Building the Project
To compile the TypeScript code:
npm run build
Running the Server
To start the MCP server:
npm start
The server will start and listen for MCP protocol commands.
Development
The project uses TypeScript and is structured as follows:
src/
- Source code directorybuild/
- Compiled JavaScript outputpackage.json
- Project configuration and dependenciestsconfig.json
- TypeScript configuration
Dependencies
Main dependencies include:
@modelcontextprotocol/sdk
- For MCP protocol implementationaxios
- For making HTTP requests to the Palo Alto API
License
Please add appropriate license information.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.