Suricata-Check MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Suricata-Check MCP Server
This project provides a Model Context Protocol (MCP) server that exposes suricata-check rule analysis to AI agents. It runs suricata-check on demand and returns structured findings that AI agents can use to validate and improve Suricata rules.
Key Features
Structured Rule Analysis: Runs
suricata-checkcheckers against provided rules and returns machine-readable findings, with a single error convention (tools raise actionableValueErrors on invalid input).MCP Server Implementation: Built on FastMCP, exposing tools to any MCP-compatible client or AI agent.
File Processing: Processes entire Suricata rules files and returns a per-file report with per-rule issues and aggregated statistics.
Checker Discovery: The
list_checkerstool enumerates all available checkers and their issue codes for use ininclude/excludeselection.Fix Workflow: The
fix_ruleprompt templates how to rewrite a rule based onsuricata-checkfeedback and re-verify it.Configurable Checkers: Every tool accepts
include/excluderegex lists to select which checker types run.
Related MCP server: Security Detections MCP
Getting Started
Follow these steps to get the project running locally.
Prerequisites
Python 3.10+
suricata-checkmust be importable in your environment (installed automatically as a dependency).
Installation
Create Virtual Environment:
python -m venv .venvActivate Environment:
On Unix/macOS:
source .venv/bin/activateOn Windows (PowerShell):
.venv\Scripts\Activate.ps1
Install Dependencies: Compile and install the pinned requirements (the same workflow used by CI):
python -m pip install --upgrade pip pip-tools pip-compile --extra test -o requirements.txt pyproject.toml pip install -r requirements.txtAlternatively, install the package in editable mode (with the optional test extras):
pip install -e ".[test]"
Usage Guide
Running the MCP Server
Start the server with the console script:
suricata-check-mcpor directly from Python:
python -m suricata_check_mcpBy default the server runs on the stdio transport. HTTP-based transports can be selected with
the --transport flag (choices: stdio, http, sse, streamable-http), optionally together
with --host and --port:
suricata-check-mcp --transport http --host 127.0.0.1 --port 8000All logging is written to stderr, so stdout stays reserved for MCP protocol messages on the
stdio transport.
Connect any MCP client to the server. For example, an MCP client configuration using the stdio transport:
{
"mcpServers": {
"suricata-check": {
"command": "suricata-check-mcp"
}
}
}Tools
analyze_rule(rule, include, exclude): Analyzes a Suricata rule (or set of rules) and returns a structured dict of issues found bysuricata-check. When the input is empty or cannot be parsed as a Suricata rule, aValueErrorwith an actionable message is raised instead of returning an error string.process_rules_file(rules, evaluate_disabled, include, exclude): Processes a Suricata rules file and returns a report containing structured per-rule entries, asummary, and per-checker findings inissues_by_groupandissues_by_type.list_checkers(): Lists all checkers discovered bysuricata-checktogether with their issue codes, whether they are enabled by default, and a short description. Use this tool to discover valid values for theinclude/excluderegex arguments instead of guessing checker codes.
All tools validate the include/exclude regexes and raise a ValueError naming the offending pattern when one is invalid.
Prompts
fix_rule(rule, feedback): A prompt template instructing the model to rewrite the given rule so that all issues reported bysuricata-checkare resolved, re-verifying each rewrite with theanalyze_ruletool.
Example output
process_rules_file returns one structured entry per rule, containing the original rule text, the line range the rule was parsed from (when known), and the issues found for the rule:
{
"rules": [
{
"rule": "alert http $HOME_NET any -> $EXTERNAL_NET any (msg:\"Test HTTP rule\"; content:\"GET\"; sid:12345; rev:1;)",
"lines": {"begin": 1, "end": 1},
"issues": [
{"code": "S101", "message": "Whitespace issue...", "checker": "WhitespaceChecker"}
]
}
],
"summary": {"overall_summary": {}, "issues_by_group": {}, "issues_by_type": {}},
"issues_by_group": {},
"issues_by_type": {}
}Development & Contribution
Running Tests
Run the quality tooling in order (formatters and linters before type checking and tests):
black .
ruff check --fix .
pyright
pytestSee CONTRIBUTING.md for the full contribution workflow, including packaging and publication to PyPI and the MCP Registry.
License
EUPL-1.2 — see LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Guardrail scans and rule generation for AI agents via scan_code, get_default_rules, and suggest_fix.
Package, dependency, CI and config safety checks for coding agents. Pay per call.
Checks AI-written code for leaked keys and made-up packages, on your machine. Never uploads code.
Security scanner for AI-written code: SAST, secrets, dependencies, IaC, containers and DAST.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables an LLM to author, validate, and test Wirefilter WAF and Smart Firewall rules using live schema and real CVE exploit templates.71MIT
- AlicenseNot gradedqualityBmaintenanceEnables querying and analysis of a unified database of security detection rules across multiple formats, including Sigma, Splunk, Elastic, KQL, and CrowdStrike CQL.1,017 npm530Apache 2.0

crowdsec-local-mcpofficial
AlicenseBqualityCmaintenanceGenerates, validates, and deploys CrowdSec WAF rules and scenarios through natural language.2427MIT- AlicenseNot gradedqualityCmaintenanceEnables AI agents to scan code for security and quality issues and receive machine-readable reports with suggested fixes and verification criteria.82 npm2MIT