MCP Catalogs
Homeopnsense-mcp-server screenshot

opnsense-mcp-server

by Pixelworlds·42·Score 42

Modular MCP server for OPNsense firewall management with 88 tools accessing 2000+ methods.

securityops-infradeveloper-tools
20
Forks
10
Open issues
11 mo ago
Last commit
2d ago
Indexed

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:

you:AI-powered firewall management and configuration
you:Automated security policy enforcement
you:Network diagnostics and troubleshooting
you:How do I enable plugin tools?
you:What should I do if I encounter connection issues?

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 README
  • core_manage

    Core system functions including backup, reboot, and firmware information

  • firewall_manage

    Firewall rules and aliases management

  • interfaces_manage

    Network interfaces configuration and management

  • diagnostics_manage

    System diagnostics including ARP table and activity logs

  • auth_manage

    Authentication for users and groups

  • firmware_manage

    Firmware update and management

  • openvpn_manage

    OpenVPN VPN instance management

  • ipsec_manage

    IPsec VPN tunnel and connection management

  • wireguard_manage

    WireGuard VPN server and client management

  • unbound_manage

    DNS resolver configuration and management

  • dhcpv4_manage

    DHCP server configuration and lease management

  • plugin_nginx_manage

    Nginx web server configuration management

Comparable tools

opnsense-api-clientpf-mcp-servernetwork-automation-mcpfirewall-mcp

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-server

Claude 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.