
AI Firewall MCP
io.github.AkhiluckyPublished by GitHub account Akhiluckyv1.0.1Updated Oct 24, 2026
Multi-agent LLM security layer detecting prompt injection and jailbreaks.
Overview
An MCP server that screens prompts for injection, jailbreaks, and policy violations before they reach an LLM.
- What you can do
- Runs a three-agent pipeline over each prompt: a retrieval agent does semantic search against known attack patterns in a FAISS vector store, a guard agent scores vector similarity, keyword matches, and heuristics, and a policy agent returns ALLOW, BLOCK, or SANITIZE. Exposes five tools: analyze_prompt, get_threat_breakdown, sanitize_prompt, get_firewall_status, and benchmark_firewall. A CLI and optional REST API are also included.
- When to use it
- Use it when an assistant or agent pipeline accepts untrusted user input and you want a pre-LLM check for prompt injection, jailbreak attempts, or data exfiltration and leakage. Also useful for red-team testing of your own prompts via the adversarial benchmark tool.
- Requirements
- Local process over stdio. Install the PyPI package ai-firewall-mcp with pip or pipx, or run the Docker image. No accounts, API keys, or headers are declared. Optional environment variables FIREWALL_MODE, SIMILARITY_THRESHOLD, and LOG_LEVEL tune behavior. The REST API mode needs the api extra installed.
Installation
In SourceWeft
- Open AI Firewall MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
<mcp-name: io.github.Akhilucky/ai-firewall-mcp>
AI Firewall — MCP Server
A multi-agent AI security layer that protects LLMs from prompt injection, jailbreaks, and policy violations. Available as an MCP server for any MCP-compatible client (Claude Desktop, Cursor, Windsurf, Cline, Roo Code, etc.).
Quick Start
pip install
Docker
Claude Desktop
Add to claude_desktop_config.json:
pip install:
Docker:
Cursor / Windsurf / Cline / Roo Code
Configure in your MCP settings with:
- Type:
stdio - Command:
docker run -i akhilucky/ai-firewall-mcp:latest - Or use
ai-firewall-mcpif installed via pip
MCP Tools
Testing with MCP Inspector
Architecture
The firewall runs three agents per prompt:
Threat signals are weighted: 40% vector similarity, 25% keyword match, 20% heuristic, 15% policy weight.
Configuration
CLI / API Usage
The REST API runs at http://localhost:8000 with OpenAPI docs at /docs (requires pip install ai-firewall-mcp[api]).
Testing
Project Structure
License
MIT — see LICENSE.
Source: README.md at commit 4570507
Tools
0Version history
1- v1.0.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts