opnsense-mcp-server
by Pixelworlds·★ 42·Score 42
Modular MCP server for OPNsense firewall management with 88 tools accessing 2000+ methods.
Overview
This MCP server acts as a bridge between AI assistants and OPNsense firewalls, providing secure API access through a modular tool interface. With 88 logical tools (one per module) instead of 2000+ individual tools, it offers complete API coverage including 752 core methods and 1271 plugin methods. The server is built with TypeScript, uses the @richard-stovall/opnsense-typescript-client package for type safety, and supports both core and plugin modules.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this if you're managing an OPNsense firewall and want AI assistants to help with configuration, monitoring, and troubleshooting through a well-structured, type-safe interface.
When NOT to choose this
Don't choose this if you need direct CLI access to OPNsense (bypassing AI assistants), are using other firewall platforms, or need features not exposed through the OPNsense API.
Tools this server exposes
12 tools extracted from the READMEcore_manageCore system functions including backup, reboot, and firmware information
firewall_manageFirewall rules and aliases management
interfaces_manageNetwork interfaces configuration and management
diagnostics_manageSystem diagnostics including ARP table and activity logs
auth_manageAuthentication for users and groups
firmware_manageFirmware update and management
openvpn_manageOpenVPN VPN instance management
ipsec_manageIPsec VPN tunnel and connection management
wireguard_manageWireGuard VPN server and client management
unbound_manageDNS resolver configuration and management
dhcpv4_manageDHCP server configuration and lease management
plugin_nginx_manageNginx web server configuration management
Comparable tools
Installation
Installation
Prerequisites
- Node.js 18 or higher
- An OPNsense firewall with API access enabled
- API key and secret from your OPNsense installation
Install from npm
npm install -g @richard-stovall/opnsense-mcp-serverClaude Desktop Configuration
Add the following to your Claude Desktop configuration file:
**macOS**: ~/Library/Application Support/Claude/claude_desktop_config.json **Windows**: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"opnsense": {
"command": "npx",
"args": ["-y", "@richard-stovall/opnsense-mcp-server"],
"env": {
"OPNSENSE_URL": "https://192.168.1.1",
"OPNSENSE_API_KEY": "your-api-key",
"OPNSENSE_API_SECRET": "your-api-secret",
"OPNSENSE_VERIFY_SSL": "false"
}
}
}
}FAQ
- How do I enable plugin tools?
- Add '--plugins' to the args or set 'INCLUDE_PLUGINS': 'true' in the environment variables.
- What should I do if I encounter connection issues?
- Verify your OPNsense API is enabled, check API key permissions, ensure IP/hostname accessibility, and consider using '--no-verify-ssl' for self-signed certificates.
Compare opnsense-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.