AI Agent (MCP)

Built-in MCP server for connecting AI assistants to your network data.

Overview

Insights Plus includes a built-in Model Context Protocol (MCP) server that lets AI assistants query your logs, inspect threats, and manage firewall syslog settings. Supported clients include Claude Desktop, Claude Code, Gemini CLI, LLM Studio, and Open Web-UI.

Note: Web-based AI clients cannot reach local/private network instances. Use a desktop or CLI client instead.

Setup

  1. Navigate to Settings → MCP and enable the MCP server.
  2. Click Create Token and assign the scopes your agent needs.
  3. Copy the generated token - it is only shown once.
  4. Configure your AI client using one of the examples below.

Client Configuration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "insights-plus": {
      "url": "http://<your-host>:8090/api/mcp/sse",
      "headers": {
        "Authorization": "Bearer <your-token>"
      }
    }
  }
}

Claude Code

$
claude mcp add insights-plus http://<your-host>:8090/api/mcp/sse -H "Authorization: Bearer <your-token>"

Gemini CLI

$
gemini mcp add insights-plus --sse http://<your-host>:8090/api/mcp/sse -H "Authorization: Bearer <your-token>"

Available Tools

ToolScopeDescription
search_logslogs.readQuery firewall, DNS, DHCP, Wi-Fi, and system logs with filters
get_loglogs.readRetrieve a single log entry by ID with full enrichment
get_log_statslogs.readAggregated counts and breakdowns for a time range
get_top_threat_ipslogs.readRanked list of IPs by AbuseIPDB threat score
list_threat_ipslogs.readAll IPs currently flagged as threats
list_serviceslogs.readKnown services with port mappings
export_logs_csv_urllogs.readGenerate a one-time CSV download URL for filtered logs
list_firewall_policiesfirewall.readAll firewall policies with syslog status
set_firewall_syslogfirewall.syslogEnable or disable syslog on a firewall policy (write)
list_unifi_clientsunifi.readConnected clients from UniFi controller
list_unifi_devicesunifi.readNetwork devices from UniFi controller
get_unifi_statusunifi.readUniFi integration connection status
get_healthsystem.readContainer health, version, uptime, and database stats
list_interfacessystem.readNetwork interfaces seen in log data

Permission Scopes

ScopeDescription
logs.readSearch, retrieve, and export log data
firewall.readList firewall policies
firewall.syslogToggle syslog on firewall policies
unifi.readRead UniFi clients, devices, and status
system.readHealth checks and interface listings
mcp.adminManage MCP tokens and settings

Security

  • Every request requires a valid Bearer token in the Authorization header.
  • Tokens are stored as HMAC-SHA256 hashes - the plaintext is never persisted.
  • The MCP server is only active when explicitly enabled in Settings.
  • set_firewall_syslog is the only write operation - all other tools are read-only.