crowdsec-local-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_waf_top_level_promptA | Get the top-level CrowdSec WAF workflow prompt that explains how to approach rule and test creation |
| get_waf_promptA | Get the main WAF rule generation prompt for CrowdSec |
| get_waf_examplesB | Get WAF rule generation examples for CrowdSec |
| generate_waf_ruleB | Get the complete WAF rule generation prompt (main prompt + examples) for CrowdSec |
| generate_waf_testsC | Get the WAF test generation prompt for producing config.yaml and adapted Nuclei templates |
| get_waf_pr_promptB | Get the WAF PR preparation prompt for writing test assets and drafting a PR comment |
| get_waf_rule_challenge_promptB | Get the prompt for challenging drafted WAF rules to reduce false positives and weak detections |
| run_waf_testsA | Start the WAF harness and execute the provided nuclei test template against it. If this action fails because docker isn't present or cannot be run, prompt the user to set it up manually. |
| validate_waf_ruleB | Validate that a CrowdSec WAF rule YAML is syntactically correct |
| lint_waf_ruleA | Lint a CrowdSec WAF rule and provide warnings/hints for improvement |
| deploy_waf_ruleB | Get deployment instructions for CrowdSec WAF rules |
| prepare_waf_prB | Help prepare a pull request in a local clone of the CrowdSec hub repository by adding the generated WAF rule and associated test files. |
| fetch_nuclei_exploitA | Retrieve nuclei templates from the official repository for a CVE to help with generation of WAF rules |
| manage_waf_stackA | Start or stop the Docker-based CrowdSec AppSec test stack so the rule can be exercised with allowed and blocked requests. If this action fails because docker isn't present or cannot be run, prompt the user to set it up manually. |
| curl_waf_endpointB | Execute an HTTP request against the local WAF test endpoint (http://localhost:8081) |
| get_scenario_promptB | Retrieve the base prompt for authoring CrowdSec scenarios |
| get_scenario_examplesA | Retrieve example CrowdSec scenarios and annotations |
| get_scenario_expr_helpersA | Retrieve helper expressions for CrowdSec scenario authoring |
| validate_scenario_yamlB | Validate CrowdSec scenario YAML structure for required fields |
| lint_scenario_yamlB | Lint CrowdSec scenario YAML and highlight potential improvements |
| deploy_scenarioC | Retrieve guidance for packaging and deploying a CrowdSec scenario |
| manage_scenario_stackA | Manage the lifecycle of the scenario testing stack (ONLY USE FOR TESTING SCENARIOS) |
| explain_scenarioA | |
| test_scenarioB | Test a CrowdSec scenario against multiple log lines (effectively replaying the events as if they were occurring in real-time). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| WAF Top-Level Workflow Prompt | High-level guidance for handling CrowdSec WAF rule requests and which tools to use |
| WAF Rule Generation Prompt | Main prompt for generating CrowdSec WAF rules from Nuclei templates |
| WAF Rule Examples | Examples of WAF rule generation for CrowdSec |
| WAF Rule Deployment Guide | Step-by-step guide for deploying CrowdSec WAF rules |
| WAF Test Generation Prompt | Instructions for producing config.yaml and adapted Nuclei templates for WAF testing |
| WAF PR Preparation Prompt | Short guidance for preparing WAF PR assets and drafting a PR comment |
| WAF Rule Challenge Prompt | Adversarial checklist for tightening WAF rules and reducing false positives |
| Scenario Authoring Prompt | Foundation prompt to guide the authoring of CrowdSec detection scenarios |
| Scenario Examples | Worked scenario examples with callouts |
| Scenario Deployment Helper | Guidance for packaging and deploying CrowdSec scenarios to local or hub environments |
| Scenario Expression Helpers | List of supported expression helpers when writing CrowdSec scenarios |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/crowdsecurity/crowdsec-local-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server