P

Promptrejectormcp

by revsmoke · io.github.revsmoke/promptrejectormcp

Protects AI agents from prompt injection attacks, jailbreak attempts, and common web vulnerabilities by screening untrusted input through semantic LLM analysis and static pattern matching.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-revsmoke-promptrejectormcp": {
      "command": "npx",
      "args": [
        "-y",
        "prompt-rejector"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_VALUE>",
        "PORT": "3000",
        "HF_TOKEN": "<VALUE>",
        "START_MODE": "both",
        "NVD_API_KEY": "<VALUE>",
        "GITHUB_TOKEN": "<VALUE>",
        "GEMINI_API_KEY": "<VALUE>",
        "ANTHROPIC_API_KEY": "<VALUE>",
        "CANARY_HMAC_SECRET": "<VALUE>",
        "TASTE_TESTER_MODEL": "claude-opus-4-7",
        "TASTE_TESTER_ENABLED": "false",
        "TASTE_TESTER_MAX_TURNS": "5",
        "TASTE_TESTER_MAX_TOKENS": "4096",
        "TASTE_TESTER_TIMEOUT_MS": "30000",
        "PATTERN_INTEGRITY_SECRET": "<VALUE>",
        "CANARY_DEFAULT_TTL_SECONDS": "86400",
        "KEV_REFRESH_INTERVAL_HOURS": "24",
        "ATLAS_REFRESH_INTERVAL_HOURS": "168"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-revsmoke-promptrejectormcp": {
      "command": "npx",
      "args": [
        "-y",
        "prompt-rejector"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_VALUE>",
        "PORT": "3000",
        "HF_TOKEN": "<VALUE>",
        "START_MODE": "both",
        "NVD_API_KEY": "<VALUE>",
        "GITHUB_TOKEN": "<VALUE>",
        "GEMINI_API_KEY": "<VALUE>",
        "ANTHROPIC_API_KEY": "<VALUE>",
        "CANARY_HMAC_SECRET": "<VALUE>",
        "TASTE_TESTER_MODEL": "claude-opus-4-7",
        "TASTE_TESTER_ENABLED": "false",
        "TASTE_TESTER_MAX_TURNS": "5",
        "TASTE_TESTER_MAX_TOKENS": "4096",
        "TASTE_TESTER_TIMEOUT_MS": "30000",
        "PATTERN_INTEGRITY_SECRET": "<VALUE>",
        "CANARY_DEFAULT_TTL_SECONDS": "86400",
        "KEV_REFRESH_INTERVAL_HOURS": "24",
        "ATLAS_REFRESH_INTERVAL_HOURS": "168"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-revsmoke-promptrejectormcp": {
      "command": "npx",
      "args": [
        "-y",
        "prompt-rejector"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_VALUE>",
        "PORT": "3000",
        "HF_TOKEN": "<VALUE>",
        "START_MODE": "both",
        "NVD_API_KEY": "<VALUE>",
        "GITHUB_TOKEN": "<VALUE>",
        "GEMINI_API_KEY": "<VALUE>",
        "ANTHROPIC_API_KEY": "<VALUE>",
        "CANARY_HMAC_SECRET": "<VALUE>",
        "TASTE_TESTER_MODEL": "claude-opus-4-7",
        "TASTE_TESTER_ENABLED": "false",
        "TASTE_TESTER_MAX_TURNS": "5",
        "TASTE_TESTER_MAX_TOKENS": "4096",
        "TASTE_TESTER_TIMEOUT_MS": "30000",
        "PATTERN_INTEGRITY_SECRET": "<VALUE>",
        "CANARY_DEFAULT_TTL_SECONDS": "86400",
        "KEV_REFRESH_INTERVAL_HOURS": "24",
        "ATLAS_REFRESH_INTERVAL_HOURS": "168"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-revsmoke-promptrejectormcp": {
      "command": "npx",
      "args": [
        "-y",
        "prompt-rejector"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_VALUE>",
        "PORT": "3000",
        "HF_TOKEN": "<VALUE>",
        "START_MODE": "both",
        "NVD_API_KEY": "<VALUE>",
        "GITHUB_TOKEN": "<VALUE>",
        "GEMINI_API_KEY": "<VALUE>",
        "ANTHROPIC_API_KEY": "<VALUE>",
        "CANARY_HMAC_SECRET": "<VALUE>",
        "TASTE_TESTER_MODEL": "claude-opus-4-7",
        "TASTE_TESTER_ENABLED": "false",
        "TASTE_TESTER_MAX_TURNS": "5",
        "TASTE_TESTER_MAX_TOKENS": "4096",
        "TASTE_TESTER_TIMEOUT_MS": "30000",
        "PATTERN_INTEGRITY_SECRET": "<VALUE>",
        "CANARY_DEFAULT_TTL_SECONDS": "86400",
        "KEV_REFRESH_INTERVAL_HOURS": "24",
        "ATLAS_REFRESH_INTERVAL_HOURS": "168"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-revsmoke-promptrejectormcp": {
      "command": "npx",
      "args": [
        "-y",
        "prompt-rejector"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_VALUE>",
        "PORT": "3000",
        "HF_TOKEN": "<VALUE>",
        "START_MODE": "both",
        "NVD_API_KEY": "<VALUE>",
        "GITHUB_TOKEN": "<VALUE>",
        "GEMINI_API_KEY": "<VALUE>",
        "ANTHROPIC_API_KEY": "<VALUE>",
        "CANARY_HMAC_SECRET": "<VALUE>",
        "TASTE_TESTER_MODEL": "claude-opus-4-7",
        "TASTE_TESTER_ENABLED": "false",
        "TASTE_TESTER_MAX_TURNS": "5",
        "TASTE_TESTER_MAX_TOKENS": "4096",
        "TASTE_TESTER_TIMEOUT_MS": "30000",
        "PATTERN_INTEGRITY_SECRET": "<VALUE>",
        "CANARY_DEFAULT_TTL_SECONDS": "86400",
        "KEV_REFRESH_INTERVAL_HOURS": "24",
        "ATLAS_REFRESH_INTERVAL_HOURS": "168"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-revsmoke-promptrejectormcp": {
      "command": "npx",
      "args": [
        "-y",
        "prompt-rejector"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_VALUE>",
        "PORT": "3000",
        "HF_TOKEN": "<VALUE>",
        "START_MODE": "both",
        "NVD_API_KEY": "<VALUE>",
        "GITHUB_TOKEN": "<VALUE>",
        "GEMINI_API_KEY": "<VALUE>",
        "ANTHROPIC_API_KEY": "<VALUE>",
        "CANARY_HMAC_SECRET": "<VALUE>",
        "TASTE_TESTER_MODEL": "claude-opus-4-7",
        "TASTE_TESTER_ENABLED": "false",
        "TASTE_TESTER_MAX_TURNS": "5",
        "TASTE_TESTER_MAX_TOKENS": "4096",
        "TASTE_TESTER_TIMEOUT_MS": "30000",
        "PATTERN_INTEGRITY_SECRET": "<VALUE>",
        "CANARY_DEFAULT_TTL_SECONDS": "86400",
        "KEV_REFRESH_INTERVAL_HOURS": "24",
        "ATLAS_REFRESH_INTERVAL_HOURS": "168"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
YOUR_API_KEY secret Yes Your API key for the service
PORT No Optional: API server port (default: 3000) Default: 3000
HF_TOKEN No Optional: Hugging Face Hub security signals (consumed by scan_skill)
START_MODE No Optional: Startup mode - "api", "mcp", or "both" (default: both) Default: both
NVD_API_KEY No Optional: NVD API key for vulnerability feed scanning (5/30s → 50/30s). Get one at https://nvd.nist.gov/developers/request-an-api-key
GITHUB_TOKEN No Optional: GitHub token for advisory feed scanning (60/hr → 5000/hr)
GEMINI_API_KEY Yes Required: Your Google AI API key (get one at https://aistudio.google.com/apikey)
ANTHROPIC_API_KEY No Optional: Anthropic API key for Taste-Tester
CANARY_HMAC_SECRET No Optional: Canary tokens HMAC secret (falls back to PATTERN_INTEGRITY_SECRET when unset)
TASTE_TESTER_MODEL No Optional: Taste-Tester model (default: claude-opus-4-7) Default: claude-opus-4-7
TASTE_TESTER_ENABLED No Optional: Taste-Tester sandbox (opt-in dual-agent detonator; off by default) Default: false
TASTE_TESTER_MAX_TURNS No Optional: Taste-Tester max turns (default: 5) Default: 5
TASTE_TESTER_MAX_TOKENS No Optional: Taste-Tester max tokens (default: 4096) Default: 4096
TASTE_TESTER_TIMEOUT_MS No Optional: Taste-Tester timeout in ms (default: 30000) Default: 30000
PATTERN_INTEGRITY_SECRET No Optional: HMAC secret for pattern manifest signing. Without this, SHA-256 file hashes still verify integrity but not authenticity
CANARY_DEFAULT_TTL_SECONDS No Optional: Canary default TTL in seconds (default: 86400) Default: 86400
KEV_REFRESH_INTERVAL_HOURS No Optional: Feed refresh cadence for KEV (default: 24) Default: 24
ATLAS_REFRESH_INTERVAL_HOURS No Optional: Feed refresh cadence for ATLAS (default: 168) Default: 168

Similar servers