
Agent Immune
This server brings adaptive security to AI agents through prompt injection detection, semantic memory, and output scanning. It exposes five MCP tools: assess_input evaluates user prompts for injection attempts, assess_output scans responses for credentials and PII, learn_threat adds new attack patterns to semantic memory, harden_prompt wraps system messages with role-lock guards, and get_metrics returns telemetry. The semantic layer catches paraphrased attacks that slip past regex rules by maintaining embeddings of confirmed threats. It ships with 50 curated attack patterns across 11 languages for instant protection, supports circuit breaking for sessions that hit block thresholds, and logs structured JSON events for observability. Reach for this when you need runtime defense that learns from incidents rather than just static rules, especially in agents handling sensitive data or untrusted user input.
- tools
- 5
- transport
- STDIO
- last updated
- Apr 7, 2026
Tools
5 toolsPublic tool metadata for what this MCP can expose to an agent.
assess_input
No parameter schema in public metadata yet.
assess_output
No parameter schema in public metadata yet.
learn_threat
No parameter schema in public metadata yet.
harden_prompt
No parameter schema in public metadata yet.
get_metrics
No parameter schema in public metadata yet.
Sponsors
Readme
agent-immune
Adaptive threat intelligence for AI agent security: semantic memory, multi-turn escalation, output scanning, rate limiting, and prompt hardening — designed to complement deterministic governance stacks (e.g. Microsoft Agent OS), not replace them.
The immune system that governance toolkits don't include: it learns from incidents and catches rephrased attacks that slip past static rules.
Try it now
pip install agent-immune
Details
- Repository
- github.com/denial-web/agent-immune
- Categories
- AI & LLM Tools, Security & Pentesting
- Package
agent-immune- Transport
- STDIO
- Registry
- MCP registry, active