Security gateway for AI agents: detects prompt injections, jailbreaks, and common vulnerabilities.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A dual-layer security gateway for AI agents and applications.
Prompt Rejector protects your AI-powered applications from prompt injection attacks, jailbreak attempts, and traditional web vulnerabilities (XSS, SQLi, Shell Injection) by screening untrusted input before it reaches your agent's control plane.
The name: "Prompt Rejector" is the phonetic mirror of "Prompt Injector" β it's the bouncer at the door keeping the injectors out. π«π
Get up and running in 60 seconds:
That's it! You now have a security screening layer for AI inputs.
As AI agents gain access to real tools β file systems, databases, APIs, shell commands, browsers β they're increasingly exposed to untrusted content: user uploads, web scraping results, email processing, form submissions, webhook payloads.
The attack surface is expanding faster than defenses.
Malicious actors embed hidden instructions in documents, emails, and web pages designed to hijack your agent's capabilities. A single successful prompt injection could:
rm -rf /, DROP TABLE)Prompt Rejector provides a lightweight, API-callable screening layer that sits between "untrusted input arrives" and "agent processes it".
It combines two detection approaches for defense-in-depth:
| Layer | Technology | Catches |
|---|---|---|
| Semantic Analysis | Google Gemini 3 Flash | Prompt injection, jailbreaks, social engineering, role-play manipulation, obfuscated attacks, multilingual evasion |
| Static Pattern Matching | Regex + Validators | XSS, SQL injection, shell injection, directory traversal, /etc/passwd access |
Results are aggregated with severity levels and categorical tags, giving you actionable intelligence to block, flag for review, or allow input.
β οΈ Defense in depth, not silver bullet. A 2026 meta-study of 78 defense papers found that adaptive attacks still beat ~85% of state-of-the-art single defenses. Prompt Rejector stacks five complementary layers (static patterns, semantic LLM analysis, taxonomy-tagged vulnerability feeds, lethal-trifecta capability analysis, and the sandboxed Taste-Tester dynamic detonator) but does not guarantee detection. Use it as one layer among many, alongside output filtering, sandboxing, least-privilege, and human review.
low / medium / high / critical for routing decisionsCreate a .env file in the root directory:
All v1.1.0 env vars are optional with safe defaults; missing keys gracefully degrade (the relevant tool returns
{available: false, reason: "missing config"}rather than throwing).
This starts both the REST API (port 3000) and MCP server (stdio) by default.
Endpoint: POST /v1/check-prompt
Request:
Response:
Health Check: GET /health
Add to your MCP settings configuration:
Tools:
check_prompt β Check user prompts for injection attacks
scan_skill β Scan SKILL.md files for security vulnerabilities
list_patterns β List all detection patterns with optional filtering
update_vuln_feeds β Scan NVD + GitHub Advisory feeds for new CVE-based patterns
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/promptrejectormcp)<a href="https://allmcps.com/mcp/promptrejectormcp"><img src="https://allmcps.com/api/badge/promptrejectormcp?style=directory" alt="Promptrejectormcp on AllMCPs" /></a>