
edenyavin/garak-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
MCP Сервер для использования сканера уязвимостей Garak LLM
Обзор
Легкий MCP-сервер для Garak. [[Т0]] Перечислите все доступные типы моделей, которые могут быть использованы для атак - Возвращает список поддерживаемых типов моделей (ollama, openai, huggingface, ggml) - Перечислить все доступные модели для данного типа модели - Параметры ввода: - Model type (струна, требуется): Тип модели для списка (ollama, openai, huggingface, ggml) - возвращает список доступных моделей для указанного типа Перечислите все доступные атаки / зонды Garak - Возвращает список доступных зондов / атак, которые можно запустить - Получить отчет о последнем запуске - Возвращает путь к файлу отчета - Запуск атаки с заданной моделью и зондом - Параметры ввода: - Модель тип (струна, требуется): Тип используемой модели - model name (струна, требуется): Название используемой модели - probe name (струна, требуется): Название атаки / зонд для использования - возвращает список найденных уязвимостей 1.
Обзор (машинный перевод)
Легкий MCP-сервер для Garak.
Пример:
[[Т0]]
##Инструменты предоставлены
Обзор
| Наименование | Описание [скрыто] [скрыто] [скрыто] [скрыто] Список всех доступных типов моделей (ollama, openai, huggingface, ggml) | list models | Список всех доступных моделей для данного типа модели | Список всех доступных атак / зондов Garak Получить отчет о последнем запуске | run attack | Запустить атаку с заданной моделью и зондом |
Подробное описание
list model types Перечислите все доступные типы моделей, которые могут использоваться для атак.
- Возвращает список поддерживаемых типов моделей (ollama, openai, huggingface, ggml)
list models Перечислите все доступные модели для данного типа модели
- Параметры ввода:
- [[Т1]] (струна, требуется): Тип модели для списка (ollama, openai, huggingface, ggml)
- возвращает список доступных моделей для указанного типа;
list garak probes Перечислите все доступные атаки / зонды Garak Возвращает список доступных зондов / атак, которые могут быть запущены.
get port
- Получить отчет о последнем пробеге
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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 usemodel_name(string, required): The name of the model to useprobe_name(string, required): The name of the attack/probe to use
- Returns a list of vulnerabilities found
Prerequisites
-
Python 3.11 or higher: This project requires Python 3.11 or newer.
# Check your Python version python --version -
Install uv: A fast Python package installer and resolver.
pip install uvOr use Homebrew:
brew install uv -
Optional: Ollama: If you want to run attacks on ollama models be sure that the ollama server is running.
ollama serve
Installation
- Clone this repository:
git clone https://github.com/BIGdeadLock/Garak-MCP.git
- 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
-
Ollama must be running:
ollama serve -
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
Установка
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": {}
}
}
}