Skip to main content
Glama
gen0sec

Gen0Sec WAF Rule MCP Server

Official
by gen0sec

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WAF_VALIDATION_API_URLNoURL of the Wirefilter rules-validator API used for rule validation and context fetching. If unset, falls back to the value in server/config.yaml.https://public.gen0sec.com/v1/waf/validate

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
fetch_cve_vulnerability_templateB

Retrieve a CVE Indexed vulnerability template from multiple sources (Nuclei Open Source, Nuclei Paid API). Returns detailed information for the exploit including metadata, severity, description, references, classification, and characteristic request patterns.

list_cve_sourcesB

List all registered CVE source plugins and their status.

fetch_cve_from_all_sourcesA

Fetch CVE vulnerability template from ALL enabled sources. Useful for comparing data across different sources.

validate_waf_expressionA

Validate a Wirefilter rule expression. rule_type selects the scheme: 'waf' (HTTP L7 fields, default) or 'smart_firewall' (L3/L4 + JA4 fields; http.* fields are NOT available and will be rejected). Optionally test against custom test data. Returns a dictionary with valid (boolean) and error_message (string) when invalid.

validate_waf_expression_with_testsA

Validate a Wirefilter rule expression and match it against test data (mock data if none given). rule_type selects the scheme: 'waf' (HTTP L7, default) or 'smart_firewall' (L3/L4 + JA4; no http.* fields). Returns valid (boolean), error_message (string), matched (boolean), and test_error (string) if the test fails.

get_waf_contextB

Fetch WAF context from Wirefilter documentation about actions, expressions, fields, functions, operators and values.

get_rule_fieldsA

Fetch the live, authoritative Wirefilter field/function schema directly from the rules-validator for the given rule_type ('waf' = HTTP L7 fields; 'smart_firewall' = L3/L4 + JA4 fields, no http.*). This is the single source of truth and never drifts from what validation accepts — prefer it over the static wafcontext://fields resource when building expressions. Falls back to static context if the validator is unreachable.

Prompts

Interactive templates invoked by user choice

NameDescription
natural_waf_rule_generation_promptOutlines steps for generating a WAF rule from a natural language description
cve_waf_rule_generation_promptOutlines steps for generating a WAF rule from a CVE index
smart_firewall_rule_generation_promptOutlines steps for generating an L3/L4 + JA4 Smart Firewall rule (no http.* fields; actions block/allow) from a natural language description

Resources

Contextual data attached and managed by the client

NameDescription
waf_actionsReference on actions available in the Rules language.
waf_expressionsReference on expressions available in the Rules language.
waf_fieldsReference on fields available in the Rules language.
waf_functionsReference on functions available in the Rules language.
waf_operatorsReference on operators available in the Rules language.
waf_valuesRefernece on values available in the Rules language.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gen0sec/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server