EG

edenyavin/garak-mcp

Developer tools

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

8 stars 7 forks 品質 74 トレンド 7MIT

MCPの特長 Garak LLM脆弱性スキャナーを使用するサーバー

概要

Garak用軽量MCP(Model Context Protocol)サーバー [https://github.com/user-attachments/assets/f6095d26-2b79-4ef7-a889-fd6be27bbbda] - - 攻撃に使用できるすべての利用可能なモデルタイプを一覧表示 - サポートされているモデルタイプ(オーラマ、オーパナイ、ハグスファス、ggml)のリストを返します。 - - - 指定されたモデルタイプのためのすべての利用可能なモデルをリスト - 入力パラメータ: - model type(文字列、必要な): リストするモデルの種類(ollama, openai, huggingface, ggml) - 指定されたタイプの利用可能なモデルのリストを返します - - 利用可能なすべてのGarak攻撃/プローブ - 実行できる利用可能なプローブ/攻撃のリストを返す - - 最後の実行のレポートを取得する - レポートファイルへのパスを返す - - - 指定されたモデルとプローブで攻撃を実行 - 入力パラメータ: - model type(string、必須): 使用するモデルの型 - model name (string、必須): 使用するモデルの名前 - プローブ名(文字列、必須): 使用する攻撃/プローブの名前 - 見つかった脆弱性のリストを返します 1.

概要(AI 翻訳)

Garak用軽量MCP(Model Context Protocol)サーバー

例:

[https://github.com/user-attachments/assets/f6095d26-2b79-4ef7-a889-fd6be27bbbda]

お問い合わせ

提供されるツール

概要

| お名前 | 必須 | お問い合わせ | list model types | 利用可能な全てのモデルタイプ(オーラマ、オーパナイ、ハッギングファ、ggml)を一覧表示 | | list models | 機種別全機種一覧 | | list garak probes | ガーク攻撃・プローブの一覧 | | get report | 最終実行報告 | | run attack | 特定のモデルとプローブで攻撃を実行 |

詳しい説明

  • list model types

  • 攻撃に使用することができるすべての利用可能なモデルタイプをリスト

  • サポートされているモデルタイプ(オーラマ、オーパ、ホッギングファ、ggml)のリストを返します。

  • list models

  • 指定されたモデルタイプのすべての利用可能なモデルをリスト

  • 入力変数:

  • model_type: リストするモデルのタイプ(オーラマ、オーパナイ、ハグスタファス、ggml)

  • 指定されたタイプの利用可能なモデルのリストを返します

  • list garak probes

  • 利用可能なすべてのGarak攻撃/プローブを一覧表示

  • 利用可能なプローブ/アタックのリストを返す

  • get report

  • 最後の実行のレポートを入手する

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

README

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

MCP Server For Garak LLM Vulnerability Scanner

A lightweight MCP (Model Context Protocol) server for Garak.

Example:

https://github.com/user-attachments/assets/f6095d26-2b79-4ef7-a889-fd6be27bbbda


Tools Provided

Overview

Name Description
list_model_types List all available model types (ollama, openai, huggingface, ggml)
list_models List all available models for a given model type
list_garak_probes List all available Garak attacks/probes
get_report Get the report of the last run
run_attack Run an attack with a given model and probe

Detailed Description

  • list_model_types

    • List all available model types that can be used for attacks
    • Returns a list of supported model types (ollama, openai, huggingface, ggml)
  • list_models

    • List all available models for a given model type
    • Input parameters:
      • model_type (string, required): The type of model to list (ollama, openai, huggingface, ggml)
    • Returns a list of available models for the specified type
  • list_garak_probes

    • List all available Garak attacks/probes
    • Returns a list of available probes/attacks that can be run
  • get_report

    • Get the report of the last run
    • Returns the path to the report file
  • run_attack

    • Run an attack with the given model and probe
    • Input parameters:
      • model_type (string, required): The type of model to use
      • model_name (string, required): The name of the model to use
      • probe_name (string, required): The name of the attack/probe to use
    • Returns a list of vulnerabilities found

Prerequisites

  1. Python 3.11 or higher: This project requires Python 3.11 or newer.

    # Check your Python version
    python --version
    
  2. Install uv: A fast Python package installer and resolver.

    pip install uv
    

    Or use Homebrew:

    brew install uv
    
  3. Optional: Ollama: If you want to run attacks on ollama models be sure that the ollama server is running.

ollama serve

Installation

  1. Clone this repository:
git clone https://github.com/BIGdeadLock/Garak-MCP.git
  1. Configure your MCP Host (Claude Desktop ,Cursor, etc):
{
  "mcpServers": {
    "garak-mcp": {
      "command": "uv",
      "args": ["--directory", "path-to/Garak-MCP", "run", "garak-server"],
      "env": {}
    }
  }
}


Tested on:

  • [X] Cursor
  • [X] Claude Desktop

Running Vulnerability Scans

You can run Garak vulnerability scans directly using the included CLI tool.

Prerequisites for Scanning

  1. Ollama must be running:

    ollama serve
    
  2. Pull a model to scan:

    ollama pull llama2
    

Using the CLI Scanner

After installation, you can use the garak-scan command:

# List available Ollama models
uv run garak-scan --list-models

# Scan a specific model with all probes
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "garak-mcp": { "command": "uv", "args": ["--directory", "path-to/Garak-MCP", "run", "garak-server"], "env": {} } } }