Back to Home
EdenYavin icon

Garak-MCP

Verified Safe

by EdenYavin

Overview

Provides an MCP interface for Garak to perform LLM vulnerability scanning and report generation.

Installation

Run Command
uv --directory path-to/Garak-MCP run garak-server

Environment Variables

  • OPENAI_API_KEY
  • OPENAI_MODELS
  • HUGGINGFACE_API_KEY
  • HUGGINGFACE_MODELS
  • GGML_MODELS

Security Notes

The server uses `subprocess.Popen` to execute `garak` commands with user-provided arguments (`model_name`, `probe_name`). While passing arguments as a list of strings (`command: list[str]`) mitigates direct shell injection by avoiding shell interpretation, an attacker with access to the MCP client could still attempt to craft malicious strings to exploit potential vulnerabilities in `garak`'s CLI parsing or to trigger unintended resource consumption. The server runs over `stdio` and is not directly exposed as a network service. API keys are correctly loaded from environment variables. Output from `garak` processes is captured and printed, which could potentially expose sensitive information if probes generate it.

Similar Servers

Stats

Interest Score34
Security Score7
Cost ClassMedium
Avg Tokens7500
Stars4
Forks5
Last Update2025-11-25

Tags

LLMSecurityVulnerability ScanningGarakMCP