Firewalla MCP Server
Supports remote access to the MCP server via Cloudflare Tunnel, enabling secure connections to the Firewalla management interface
Provides network management tools for Firewalla devices including device monitoring, network traffic analysis, security alert management, and firewall rule administration
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.
Firewalla MCP Server
A production-ready Model Context Protocol (MCP) server for Firewalla network management, designed to work seamlessly with Claude Desktop and other MCP-compatible clients.
β¨ Features
π Enterprise Security - Firewalla API keys never exposed to clients
π Multi-Transport Support - stdio, SSE, and HTTP transports
π Comprehensive Monitoring - Device, network, and security analytics
π‘οΈ Built-in Protection - Rate limiting, input validation, audit logging
π³ Docker-Ready - Production-grade containerized deployment
π Resilient Architecture - Circuit breakers, retry logic, intelligent caching
π― 14 Powerful Tools - Complete Firewalla management capabilities
Related MCP server: MCP Web Research Server
π οΈ Available Tools
π± Device Monitoring (3 tools)
get_devices- List all network devices with status and basic infoget_device_details- Detailed device information including bandwidth usagesearch_devices- Search devices by name, IP, MAC, or vendor
π Network Analysis (3 tools)
analyze_network_flows- Analyze traffic flows with filtering and statisticsget_bandwidth_statistics- Bandwidth usage stats for devices or entire networkget_network_statistics- Comprehensive network health and top talkers
π Security Monitoring (4 tools)
get_alarms- Retrieve security alerts with severity and category filteringget_alarm_details- Detailed information about specific security eventsarchive_alarm- Mark security alerts as reviewedget_alarm_statistics- Statistical analysis of security events
βοΈ Rule Management (4 tools)
list_firewall_rules- List all firewall rules with status and conditionsget_rule_details- Detailed rule information including hit statisticspause_rule- Temporarily disable rules with duration and reasonresume_rule- Re-enable paused firewall rules
π Quick Start
Automated Setup (Recommended)
git clone https://github.com/MadLlama25/firewalla_msp-mcp.git
cd firewalla_msp-mcp
./scripts/setup.shThe setup script will:
β Check prerequisites
β Create and configure environment files
β Build Docker image
β Generate Claude Desktop configuration
β Start the server
Manual Setup
Prerequisites
Docker and Docker Compose
Firewalla MSP account with API token
Claude Desktop (or other MCP client)
(Optional) Cloudflare Tunnel for remote access
Installation Steps
Clone and Setup
git clone https://github.com/MadLlama25/firewalla_msp-mcp.git
cd firewalla_msp-mcp
cp .env.example .envConfigure Environment Edit
.envwith your Firewalla credentials:
FIREWALLA_API_TOKEN=your_api_token_here
FIREWALLA_MSP_DOMAIN=https://your-domain.firewalla.netDeploy with Docker Compose
docker-compose up -dVerify Deployment
curl http://localhost:3000/health
docker logs firewalla-mcpπ§ Claude Desktop Configuration
Local Docker (Recommended)
{
"mcpServers": {
"firewalla": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"--env-file", "/full/path/to/.env",
"--network", "host",
"firewalla-mcp"
],
"env": {
"MCP_TRANSPORT": "stdio"
}
}
}
}Remote Access via Cloudflare Tunnel
{
"mcpServers": {
"firewalla": {
"url": "https://your-tunnel-domain.example.com/mcp",
"transport": "sse"
}
}
}Local HTTP (Alternative)
{
"mcpServers": {
"firewalla": {
"url": "http://localhost:3000/mcp",
"transport": "sse"
}
}
}ποΈ Architecture
Security Architecture
API Key Isolation - Firewalla credentials stored securely in Docker
Request Validation - Comprehensive input sanitization and validation
Rate Limiting - Per-client request throttling
Audit Logging - Complete request/response audit trail
Circuit Breakers - Automatic failover when Firewalla API is unavailable
Performance Features
Intelligent Caching - Multi-tier caching with TTL
Connection Pooling - Optimized HTTP client with retry logic
Resource Management - Memory-efficient data processing
Health Monitoring - Built-in health checks and metrics
π Configuration Reference
Environment Variables
Variable | Required | Default | Description |
| β | - | Your Firewalla MSP API token |
| β | - | Your MSP domain URL |
| β | 3000 | Server port |
| β | sse | Transport method (stdio/sse/http) |
| β | info | Logging level (debug/info/warn/error) |
| β | true | Enable response caching |
| β | 100 | Max requests per window |
Docker Deployment Options
Production (docker-compose)
docker-compose up -dDevelopment (with hot reload)
docker-compose -f docker-compose.yml up firewalla-mcp-devStandalone Docker
docker run -d --name firewalla-mcp \
--env-file .env \
-p 3000:3000 \
firewalla-mcpπ Monitoring & Troubleshooting
Health Checks
# Server health
curl http://localhost:3000/health
# Container logs
docker logs firewalla-mcp
# Container status
docker ps | grep firewalla-mcpCommon Issues
Authentication Errors
Verify
FIREWALLA_API_TOKENis correctCheck
FIREWALLA_MSP_DOMAINformatEnsure API token has proper permissions
Connection Issues
Check Docker container is running
Verify port 3000 is accessible
Check Cloudflare Tunnel configuration (if using)
Performance Issues
Monitor cache hit rates in logs
Check circuit breaker status
Verify adequate system resources
π Security Considerations
API Key Management
Store Firewalla API tokens in environment variables only
Never commit API keys to version control
Rotate API keys regularly (recommended: 90 days)
Use separate tokens for different environments
Network Security
Deploy behind Cloudflare Tunnel for production
Use HTTPS/TLS for all communications
Implement IP allowlisting if required
Monitor audit logs regularly
Access Control
Enable API key authentication for non-Claude Desktop clients
Use role-based permissions where applicable
Monitor unusual usage patterns
Implement automatic lockouts for suspicious activity
π€ Multi-Client Support
Works with various MCP clients:
Claude Desktop - Primary target with optimized integration
Continue IDE - VS Code extension support
Custom MCP Clients - HTTP/SSE API available
π§ͺ Testing
Test Categories
Unit Tests - Core utilities, middleware, and individual components
Integration Tests - API client, caching, and service integration
MCP Tool Tests - All 14 Firewalla management tools
Security Tests - Input validation, sanitization, and vulnerability checks
Performance Tests - Load testing and performance benchmarks
Running Tests
# Run all tests
npm test
# Run tests with coverage
npm run test:coverage
# Run specific test categories
npm run test:unit
npm run test:integration
npm run test:security
npm run test:performance
# Run tests in watch mode
npm run test:watchTest Coverage Targets
Unit Tests: 90% line coverage
Integration Tests: 80% path coverage
Critical Paths: 100% coverage (authentication, validation, security)
Quality Gates
All commits must pass:
β Linting (ESLint)
β Type checking (TypeScript)
β Unit tests (90%+ coverage)
β Security audit (npm audit)
β Code formatting (Prettier)
# Run pre-commit checks
npm run pre-commit
# or use the script
./scripts/pre-commit.shπ Development
Local Development
npm install
npm run devBuilding
npm run build
npm run lint
npm run type-checkTesting Strategy
See TESTING_PLAN.md for comprehensive testing documentation.
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests (maintain coverage targets)
Run pre-commit checks
Submit a pull request
Code Quality Standards
TypeScript strict mode enabled
ESLint with strict configuration
Prettier for consistent formatting
Jest for testing with high coverage
Security-first development practices
π Performance Metrics
Response Time - Sub-100ms for cached requests
Throughput - 1000+ requests per minute
Uptime - 99.9% with automatic recovery
Cache Hit Rate - 70-90% for typical workloads
π License
MIT License - see LICENSE file for details
π Support
Issues - GitHub Issues
Documentation - Built-in API documentation
Logs - Comprehensive audit trail and error logging
Built with β€οΈ for the Firewalla community
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
Manage a Discord server from Claude, ChatGPT or any MCP client. Sign in with Discord, no bot token.
The Ramp MCP server enables users to securely connect Ramp with AI assistants like ChatGPT and Claude to query financial data and take actions using natural language. It transforms Ramp's developer API into a SQL interface that LLMs can query, allowing admins to analyze spend trends, identify cost savings, and run complex SQL analyses on comprehensive datasets (transactions, purchase orders, vendors, users), while all users can manage cards, view transactions, request reimbursements, and get expense policy answers.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Hosted Airtable MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
AlicenseAqualityBmaintenanceLets you use Claude Desktop, or any MCP Client, to use natural language to accomplish things on your Cloudflare account.24,499Apache 2.0- AlicenseBqualityDmaintenanceA server that integrates with Claude Desktop to enable real-time web research capabilities, allowing users to search Google, extract webpage content, and capture screenshots directly from conversations.3MIT
- AlicenseAqualityDmaintenanceA server that lets Claude desktop app execute terminal commands on your computer and edit files through Model Context Protocol, featuring command execution, process management, and advanced file operations.196MIT
- AlicenseCqualityBmaintenanceA server that enables managing OPNSense firewalls through natural language interactions with Claude Desktop, supporting VLAN management, firewall rules configuration, and network interface queries.64116 npm99MIT