An MCP exposing prompts and tools to help users write WAF rules, scenarios etc.
Project description
Life is too short to write YAML, just ask nicely!
A Model Context Protocol (MCP) server to generate, validate, and deploy CrowdSec WAF rules & Scenarios.
Features
WAF Rules Features
- WAF Rule Generation: Generate CrowdSec WAF rules from user input or a CVE reference
- Validation: Validate syntaxical correctness of WAF rules
- Linting: Get warnings and hints to improve your WAF rules
- Deployment Guide: Step-by-step deployment instructions
- Docker Test Harness: Spin up CrowdSec + nginx + bouncer to exercise rules for false positives/negatives
- Nuclei Lookup: Quickly jump to existing templates in the official
projectdiscovery/nuclei-templatesrepository for a given CVE
Scenarios Features
- CrowdSec Scenarios Generation: Generate CrowdSec scenarios
- Validation: Validate syntaxical correctness of scenarios
- Linting: Get warnings and hints to improve your scenarios
- Deployment Guide: Step-by-step deployment instructions
- Docker Test Harness: Spin up CrowdSec to test scenario behavior
Demo
WAF Rules Creation and testing
Scenario Creation and testing
- XX
- XX
Installation
Quick MCP client setup
- Configure supported clients automatically with
uvx run --from crowdsec-local-mcp init <client>, where<client>is one ofclaude-desktop,chatgpt,vscode, orstdio:
uvx --from crowdsec-local-mcp init
Logging
- The MCP server writes its log file to your operating system's temporary directory. On Linux/macOS this is typically
/tmp/crowdsec-mcp.log; on Windows it resolves via%TEMP%\crowdsec-mcp.log.
Pre Requisites
-
Docker + Docker Compose
-
Python >= 3.12
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crowdsec_local_mcp-0.2.0.tar.gz
(72.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crowdsec_local_mcp-0.2.0.tar.gz.
File metadata
- Download URL: crowdsec_local_mcp-0.2.0.tar.gz
- Upload date:
- Size: 72.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0daa525d26471f4d146c84105051178582e184e80d1cd2e53ee61ba96e24f52
|
|
| MD5 |
c931be90fb05049ce86736e09a7524e6
|
|
| BLAKE2b-256 |
36bf4ace5fd78731f46696b9b952b512480dacece5780fc559ee43d2a0669091
|
File details
Details for the file crowdsec_local_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: crowdsec_local_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 49.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7a1ff5cd7ee1b7750204085e955c09050be63564ba1c83a1075cdd3def28ee8
|
|
| MD5 |
7bc5b5aaaf48d1206b0254cb02a1f485
|
|
| BLAKE2b-256 |
acf593cb6500a954ed1938ed59bd162a353599d3629b6ade5d80f54ac98e949e
|