Barracuda CloudGen Firewall MCP Server v2
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.
Barracuda CloudGen Firewall MCP Server v2
A Model Context Protocol (MCP) server for managing Barracuda CloudGen Firewalls through their REST API. Version 2 supports both policy-driven and standard rule-based firewalls with automatic mode detection.
๐ What's New in v2
Automatic Mode Detection: Detects if your firewall is policy-driven or standard rule-based
Dual Mode Support: Works with both firewall types seamlessly
Enhanced Rule Management: Create, modify, and delete rules on standard firewalls
Dynamic Rules Support: List and manage dynamic firewall rules
Improved Error Handling: Better feedback for mode-specific limitations
Extended API Coverage: Support for more endpoints and operations
Related MCP server: Palo Alto Networks MCP Server Suite
๐ฏ Features
Universal Features (Both Modes)
System Monitoring: Real-time health status and system metrics
Service Management: List and monitor firewall services
Network Objects: View, filter, and manage network objects
Service Objects: Browse and manage service definitions
Mode Detection: Automatically identify firewall operation mode
Standard Mode Features
Rule Management: Create, modify, and delete firewall rules
Rule Listing: View all rules with detailed information
Dynamic Rules: Manage dynamic firewall rules
Rule Search: Find specific rules by name
Bidirectional Rules: Configure bidirectional traffic rules
Policy-Driven Mode Features
Status Monitoring: System health and event monitoring
Object Management: Network and service object configuration
Policy Status: Check policy configuration status
Limited Rule Access: View-only access to rule information
๐ Prerequisites
Python 3.11+
Docker (optional)
Barracuda CloudGen Firewall with REST API enabled
API Token for authentication
Claude Desktop (for MCP integration)
๐ Quick Start
Option 1: Docker (Recommended)
# Clone the repository
git clone https://github.com/yourusername/barracuda-cgf-mcp-v2.git
cd barracuda-cgf-mcp-v2
# Build the Docker image
docker build -t barracuda-mcp:v2 .
# Run with your firewall credentials
docker run -it --rm \
-e BARRACUDA_HOST=http://your-firewall:8080 \
-e BARRACUDA_API_TOKEN=your-token \
barracuda-mcp:v2Option 2: Python
# Install dependencies
pip install -r requirements.txt
# Set environment variables
export BARRACUDA_HOST="http://your-firewall:8080"
export BARRACUDA_API_TOKEN="your-api-token"
# Run the server
python barracuda_server_v2.py๐ง Configuration
Environment Variables
Variable | Description | Example |
| Firewall URL with protocol and port |
|
| API authentication token |
|
| Logging level (optional) |
|
Claude Desktop Integration
Add to your Claude Desktop configuration:
{
"mcpServers": {
"barracuda-cgf-v2": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--name", "barracuda-mcp-v2",
"-e", "BARRACUDA_HOST=http://your-firewall:8080",
"-e", "BARRACUDA_API_TOKEN=your-token",
"barracuda-mcp:v2"
]
}
}
}๐ ๏ธ Available Tools
Universal Tools
Tool | Description | Works In |
| System health and status | Both modes |
| Identify firewall operation mode | Both modes |
| List all running services | Both modes |
| List network objects with filtering | Both modes |
| List service objects with filtering | Both modes |
Rule Management Tools
Tool | Description | Works In |
| List all firewall rules with details | Standard mode |
| Get specific rule configuration | Standard mode |
| Create new firewall rule | Standard mode |
| Delete existing rule | Standard mode |
| List dynamic firewall rules | Standard mode |
๐ Usage Examples
Detect Firewall Mode
"What type of firewall am I connected to?"
"Detect the firewall mode"System Status
"Show me the system status"
"Check firewall health"Rule Management (Standard Mode)
"List all firewall rules"
"Show me the rule named 'BOX-LAN-2-INTERNET'"
"Create a rule to allow HTTP from LAN to Internet"
"Delete the test rule"Object Management
"List all network objects"
"Show service objects containing 'HTTP'"
"Filter network objects for 'VPN'"๐งช Testing Your Firewall Type
Test if Standard Mode (Rule-Based)
curl -X 'GET' \
'http://your-firewall:8080/rest/config/v1/forwarding-firewall/rules?expand=false&envelope=false' \
-H 'accept: application/json' \
-H 'X-API-Token: your-token'Response for Standard Mode: Returns rule list Response for Policy-Driven: Returns 409 error
๐ Firewall Mode Detection
The server automatically detects your firewall mode on startup:
Standard Mode: Direct rule manipulation available
Policy-Driven Mode: Rules managed through Control Center
Unknown Mode: Some features may be limited
๐ Troubleshooting
Common Issues
Issue | Solution |
Connection refused | Verify firewall URL and port |
401 Unauthorized | Check API token validity |
409 on rule operations | Firewall is policy-driven |
Mode detection fails | Check API permissions |
Debug Mode
Enable detailed logging:
export LOG_LEVEL=DEBUG
python barracuda_server_v2.py๐ Security
API tokens are never logged in production mode
Supports both HTTP and HTTPS connections
Non-root user in Docker containers
Input validation on all operations
๐ค Contributing
Fork the repository
Create a feature branch
Commit your changes
Push to the branch
Open a Pull Request
๐ License
MIT License - see LICENSE file
๐ Acknowledgments
๐ Compatibility
Tested Firewall Versions
Barracuda CloudGen Firewall F-Series
Barracuda CloudGen Firewall V-Series
Firmware versions 8.x and above
Supported Operations by Mode
Operation | Standard Mode | Policy-Driven Mode |
View System Status | โ | โ |
List Services | โ | โ |
List Network Objects | โ | โ |
List Service Objects | โ | โ |
List Firewall Rules | โ | โ |
Create Rules | โ | โ |
Modify Rules | โ | โ |
Delete Rules | โ | โ |
Manage Dynamic Rules | โ | โ |
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
Scopable MSP API: clients, quotes, assessments, compliance, QBRs. OAuth 2.1, read-only or read-write
Deploy and manage Edge Network cloud: sites, VMs, storage, DNS, Shield, Assist. Agent self-signup.
Manage Invoice Ninja clients, invoices, quotes, expenses, tasks and projects.
Manage brainCloud apps, cloud code, hooks and servers; API lookups to help generate client code.
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-
- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction and management of pfSense firewalls through Claude and other GenAI applications using the Model Context Protocol. It provides advanced tools for firewall rule configuration, interface management, and intelligent log analysis via a REST API integration.1MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to manage WatchGuard Cloud MSP accounts, activate devices and licenses, and administer operator users through the WatchGuard Cloud REST API.13Apache 2.0