suricata-mcp
ActiveMCP server for Suricata IDS/IPS - analyze network-security alerts.
WHAT IT DOES
suricata-mcp is a Model Context Protocol server for network security
monitoring. It gives an LLM intelligent analysis over
Suricata
IDS/IPS EVE JSON alerts and
Zeek
NSM logs: query alerts, flows, and protocol records; analyze connections, DNS, HTTP,
TLS, and SSH; and cross-correlate between the two sensors.
It exposes 36 tools, 5 resources, and 5 prompts. Beyond raw querying it ships advanced analytics: DGA detection via Shannon entropy, C2 beaconing detection, data-exfiltration and lateral-movement detection. Threat intel is integrated through MISP IOC lookups and TheHive case/alert creation, and PCAPs can be listed and replayed through either engine.
The server is read-only by default. Mutating tools (rule writes, ruleset reload, PCAP
replay) stay disabled until you both set SURICATA_ALLOW_MUTATION=1 and
pass confirm: true on the call. Threat-intel HTTP calls use manual redirect
handling so a 3xx from a compromised endpoint is refused, not followed with the API key.
INSTALL
Published to npm. Install globally to get the suricata-mcp binary, or run
it on demand with npx. Requires Node.js 20+ and a Suricata sensor producing
EVE JSON logs. Zeek, PCAP, MISP, and TheHive integrations are optional.
Point SURICATA_EVE_LOG at your EVE JSON log. Set ZEEK_LOGS_DIR,
PCAP_DIR, and MISP/TheHive vars to light up the optional tool groups.
CLIENT CONFIG
A sample mcpServers entry (Claude Desktop, or any MCP client that reads the
same shape). It runs the installed binary over stdio.
{
"mcpServers": {
"suricata": {
"command": "suricata-mcp",
"env": {
"SURICATA_EVE_LOG": "/var/log/suricata/eve.json",
"SURICATA_RULES_DIR": "/etc/suricata/rules",
"ZEEK_LOGS_DIR": "/opt/zeek/logs",
"PCAP_DIR": "/opt/pcaps"
}
}
}
}
For Claude Code use claude mcp add suricata ... -- suricata-mcp. The repo
README also documents OpenClaw, Codex CLI, and Hermes Agent.
CAPABILITIES / TOOLS EXPOSED
36 MCP tools across Suricata alerts, flows, and protocols, advanced analytics, Zeek NSM analysis, cross-correlation, rules, PCAP, and threat intel. Grouped below; see the README for the full per-argument reference.
Suricata alerts & flows
Suricata protocol analysis
Advanced analytics
Investigation & Zeek
Rules, engine, PCAP & threat intel
Plus 5 resources (event types, current stats, rule summary, sanitized config, Zeek log types) and 5 prompts (investigate-alert, hunt-for-threats, incident-response, network-baseline, daily-alert-report).