CC

crowdsecurity/crowdsec-local-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

25 stars 6 forks 品質 78 トレンド 25MIT

ユーザーが WAF ルール、シナリオなどを書き込むのに役立つ MCP を公開しています.

概要

クラウドSec WAFルールとScenariosを生成、検証、デプロイするモデルコンテキストプロトコル(MCP)サーバー。 - : ユーザー入力またはCVE参照からクラウドSec WAFルールを生成 - : WAFルールの構文的正当性を検証 - : WAFルールを改善するための警告とヒントを入手 - :ステップバイステップのデプロイ手順 - : クラウドSec + nginx + バウンサーをスピンアップして、偽陽性/負のルールを実行します - : 公式のプロジェクトディスカバリー/nuclei-templatesで既存のテンプレートにすばやくジャンプして、CVEのリポジトリを与えられたCVEのリポジトリへ - : クラウドSec シナリオを生成 - : シナリオの構文的正しさを検証 - : シナリオを改善するための警告とヒントを入手 - : 段階的に展開する手順 - : シナリオの動作をテストするためにクラウドSec をスピンアップ - 自然言語からのルール作成 - CVE 参照からのルール作成 - HTTPイベントでのルール作成 - ジオロケーション要因に基づくルール作成 - uv 0.4 または newer、以下の例で使用されるUVXランナーを提供します.

概要(AI 翻訳)

人生はYAMLを書くのに短すぎる、ただうまく尋ねる!

モデルコンテキストプロトコル(MCP)サーバーがクラウドSec WAFルールとScenariosを生成、検証、デプロイします。

##特徴

WAFルールの特徴

  • WAFルール生成:ユーザー入力またはCVE参照からクラウドSec WAFルールを生成
  • 評価: WAFルールの構文的矯正を検証 -Linting:WAFルールを改善するための警告とヒントを入手 -Deployment Guide:ステップバイステップの展開手順
  • ドッカーテストハーネス: クラウドSec + nginx + バウンサーをスピンアップして、偽陽性/負のためのルールを行使する
  • Nuclei Lookup: 与えられたCVEのための公式[projectdiscovery/nuclei-templatesリポジトリに既存のテンプレートに素早くジャンプ

シナリオの特徴

  • クラウドSecシナリオ生成:クラウドSecシナリオの生成
  • 評価: シナリオの構文的矯正を検証 -Linting:あなたのシナリオを改善するために警告とヒントを得る -Deployment Guide:ステップバイステップの展開手順
  • ドッカーテストハーネス:シナリオ動作をテストするためにクラウドSecをスピンアップ

デモ

WAFルールの作成とテスト

  • 自然言語のルール作成
  • CVE参照からルール作成

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

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-templates repository 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

Prerequisites

  • uv 0.4 or newer, which provides the uvx runner used in the examples below.
  • Docker with the Compose plugin (Compose v2).

Installation

You can install the MCP using uvx or use packaged .mcpb file for claude code.

Using .mcpb package

If you’re using claude desktop, you can configure the MCP directly by double-clicking the .mcpb file that accompanies the release.

[!IMPORTANT] On MacOS, configure uv path in the extension settings if uv isn’t installed in the standard path.

Using uvx

  • Configure supported clients automatically with uvx --from crowdsec-local-mcp init , where `` is one of claude-desktop, claude-code, chatgpt, vscode, or stdio:
uvx --from crowdsec-local-mcp init --dry-run claude-code

Run uvx --from crowdsec-local-mcp init --help to see all flags and supported targets.

What init configures

The init helper writes the CrowdSec MCP server definition into the client’s JSON configuration:

  • claude-desktop → claude_desktop_config.json in the Claude Desktop settings directory
  • claude-code → invoke claude mcp command with needed args
GitHub で README 全文を見る

インストール

uvx --from crowdsec-local-mcp init --dry-run claude-code
MCP 初心者?mcpskill.org のガイドから始めましょう →