Open-source prompt-injection detector for AI agents and MCP server, running locally over stdio.
95
ArsGuard is a free, open-source prompt-injection detector. A small classifier labels a text as attack or not attack and gives a score from 0 to 1. This image runs it as a Model Context Protocol server over stdio, so MCP clients such as Claude Desktop, Claude Code and Cursor can check text themselves.
The server has two read-only tools. check_text checks one text, and check_texts checks a batch. Each returns SAFE or INJECTION with a score. The server runs locally and makes no API calls.
docker run -i --rm -v hf:/root/.cache/huggingface ultramegaman/arsguard
The model (1.1 GB) downloads from Hugging Face on the first check. The hf volume keeps it between runs.
Source: https://github.com/arsentev-ai/arsguard
License: MIT
docker pull ultramegaman/arsguard:latest