pfSense MCP Server
A production-grade server that enables natural language interaction with pfSense firewalls through Claude Desktop and other GenAI applications, supporting multiple access levels and functional categories.
README
pfSense MCP Server
A production-grade Model Context Protocol (MCP) server that enables natural language interaction with pfSense firewalls through Claude Desktop and other GenAI applications.
🚀 Features
- Natural Language Interface: Control pfSense using plain English
- 5 Access Levels: From read-only monitoring to emergency response
- Multiple Connection Methods: REST API, XML-RPC, and SSH
- 6 Functional Categories: Complete security operations coverage
- GenAI Integration: Works with Claude Desktop, Continue, and other MCP clients
- Production Ready: Audit logging, rate limiting, caching
📋 Quick Start
1. Install and Configure
# Clone the repository
git clone https://github.com/gensecaihq/pfsense-mcp-server.git
cd pfsense-mcp-server
# Copy environment template
cp .env.example .env
# Edit configuration
nano .env # Add your pfSense details
2. Run with Docker
# Build and start
docker-compose up -d
# Check health
curl http://localhost:8000/health
3. Configure Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"pfsense": {
"command": "docker",
"args": ["run", "-i", "--rm", "--env-file", "/path/to/.env", "pfsense-mcp:latest"],
"env": {
"MCP_MODE": "stdio"
}
}
}
}
Or run locally:
{
"mcpServers": {
"pfsense": {
"command": "python",
"args": ["/path/to/pfsense-mcp-server/main.py"],
"env": {
"PFSENSE_URL": "https://your-pfsense.local",
"PFSENSE_API_KEY": "your-api-key"
}
}
}
}
🔐 Access Levels
| Level | Description | Example Users |
|---|---|---|
READ_ONLY |
Monitor and view | Security Analysts |
SECURITY_WRITE |
Modify security rules | Security Engineers |
ADMIN_WRITE |
Full system access | Administrators |
COMPLIANCE_READ |
Audit and compliance | Compliance Officers |
EMERGENCY_WRITE |
Emergency response | Incident Responders |
💬 Example Prompts
"Show me the system status"
"What IPs are currently blocked?"
"Block IP 192.168.1.100"
"Run a PCI compliance check"
"Analyze threats from the last hour"
"EMERGENCY: Block all traffic from Russia"
📚 Documentation
🧪 Testing
# Test connection
python scripts/test_connection.py
# Run tests
pytest tests/
# Generate token
python scripts/generate_token.py alice READ_ONLY
📝 License
MIT License - see LICENSE
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.