Guardbee.ai
@guardbee/mcp-llm-redteam

LLM Red Team

MCP server that red-teams a live LLM endpoint or chatbot with canary-based jailbreak/extraction/obfuscation probes to test whether known bypass techniques defeat its guardrails

v0.3.1MIT · Open sourceNode.js · stdio
Install
$ npx -y @guardbee/mcp-llm-redteam
Claude Desktop / Cursor config
{
  "mcpServers": {
    "llm-redteam": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-llm-redteam"
      ]
    }
  }
}
@guardbee/mcp-llm-redteam

@guardbee/mcp-llm-redteam actively tests guardrails on a live LLM endpoint or chatbot you own or are authorized to assess. Unlike static scanners, it sends real probes containing safe, single-use canary tokens and measures whether the model obeyed an override instruction.

What does it do?

The server runs 12 probes against an OpenAI-compatible API, Anthropic Messages API, or custom webhook. It covers jailbreaks, system-prompt extraction, base64/zero-width obfuscation, refusal suppression through fake authority, and multilingual overrides. A bypass is measured deterministically when the target repeats a random canary token; probes never request genuinely harmful output.

Who is it for?

  • AI security teams validating staging chatbot guardrails before production
  • Product teams using OpenAI, Anthropic, Groq, vLLM, or compatible gateways
  • DevSecOps teams that want repeatable LLM security checks after every deploy
  • Developers testing their own webhook chatbot from Claude or Cursor

What it is not

  • Endpoints you do not own or lack explicit authorization to test
  • Requesting genuinely harmful output or developing novel attack techniques
  • Replacing a complete manual red-team engagement and risk assessment

Features

FeatureDescription
12 probes / 5 categoriesinstruction-override, extraction, obfuscation, refusal-suppression, multilingual
Canary-based measurementDeterministic bypass evidence without harmful output
3 target typesOpenAI-compatible API, Anthropic Messages API, or custom webhook
Remediation guidanceWhy each bypass matters and how to strengthen guardrails
CI/CD modeTest a staging chatbot after deploy with a fail-on threshold

MCP tools

ToolDescription
list_probesList every probe by category and severity without a network call
run_probe_suiteRun the suite against an authorized target and report bypassed guardrails

Install with npm

Global install (handy for Claude Desktop / Cursor):

bash
<code class="language-bash">npm install -g @guardbee/mcp-llm-redteam</code>

or via npx (recommended with -y in config):

bash
<code class="language-bash">npx -y @guardbee/mcp-llm-redteam</code>

npm: @guardbee/mcp-llm-redteam

CI/CD example: npx @guardbee/mcp-llm-redteam probe --type=openai --model=gpt-4o-mini --api-key-env=OPENAI_API_KEY --fail-on=high. Custom chatbot: --type=webhook --url=https://staging.example.com/chat. Never pass an API key as a tool parameter; provide only the name of a pre-set environment variable via apiKeyEnv. Every probe consumes target API quota.

Claude Desktop configuration

Config file paths:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Merge this block, then restart Claude Desktop:

claude_desktop_config.json
<code class="language-json">{
  "mcpServers": {
    "guardbee-llm-redteam": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-llm-redteam"
      ],
      "env": {
        "OPENAI_API_KEY": "sk-..."
      }
    }
  }
}</code>

Cursor and other MCP clients

In Cursor, add the same command / args / env under Settings → MCP. stdio MCP servers use the same contract as Claude Desktop.

Example prompts in Claude

  1. “Run the safe GuardBee red-team suite against my OpenAI endpoint using gpt-4o-mini”
  2. “List the available LLM red-team probes grouped by category”
  3. “Which guardrail tests bypassed my staging webhook, and how should I fix them?”

Frequently asked questions

Do probes generate harmful content?+

No. Each probe uses a random single-use canary token; it never asks for genuinely harmful output.

Which targets are supported?+

OpenAI Chat Completions-compatible services, Anthropic Messages API, and custom webhooks accepting POST { prompt }.

Can I run it in production?+

Only against targets you own or are explicitly authorized to test. Start in staging; probes send real requests and consume quota.

More in this category

See your security posture in minutes

Add your domain, run a read-only scan and get a prioritised list of fixes. No installation required.

LLM Red Team MCP server (@guardbee/mcp-llm-redteam) · GuardBee