Kevlar offers an MCP proxy with tool and response filtering; protection remains unverified
state: expiredheat: mediumuncertainty: mediumrelevance: mediummcp-security agent-toolsAblation-Tool
What is this?
Kevlar is an MIT-licensed, Python 3.10+ stdlib proxy for Model Context Protocol (MCP), presented by its GitHub repository as an intermediary between an AI client and MCP servers. The repository describes stripping tool descriptions, scanning tool results for injection indicators, blocking calls whose arguments contain credentials, and— in strict mode—freezing the tool registry after its initial listing. It also reports 149 tests, including proxy integration tests; these are project claims, not independent validation of security effectiveness or compatibility.
Why it matters
Kevlar is a small but practical MCP-security project: it puts an inspection layer between an AI client and MCP servers, with controls aimed at poisoned tool metadata, injected tool results, credential exfiltration, and tools added mid-session. It may be worth evaluating for people running MCP agents, but the repository’s feature and test claims do not establish that its detection is effective against real attacks or that strict filtering is compatible with every server and host.
Current assessment
The supplied GitHub repository describes Kevlar as a released, MIT-licensed Python 3.10+ stdlib asyncio proxy for Linux and macOS. Its stated controls are unconditional removal of tool descriptions and selected schema prose; indicator-based scanning of tool-call responses, with quarantine or rejection depending on mode; blocking outbound tool-call arguments containing credentials; and, in strict mode, freezing the tool registry after the initial handshake. The project reports 149 tests, including integration tests, but these are self-reported and do not establish security efficacy, false-positive rates, bypass resistance, or broad MCP compatibility. The Hacker News listing links to the repository; the supplied web results provide general context that MCP tool poisoning and runtime defenses are active concerns, but do not independently evaluate Kevlar. A notable trade-off is that stripping all descriptions may remove useful tool guidance, while strict registry locking may reject legitimate dynamic updates. Useful to track as an accessible defense-in-depth option, not as demonstrated protection or a substitute for least privilege and review.
Measured heat
no measured readings yet — the hourly heat pass fills this in
How the heat travelled
| 10-24 22:24 | ⭐ origin directly observed | Kevlar = MCP Firewall for LLM's zellkernel on hacker news | — |
| 10-24 22:24 | amplified on hacker news 👑 | hn.story.50226016 zellkernel | peak 2 · 0 comments · 98% of case engagement |
| 10-24 22:26 | our radar first saw it · +0.1h | discovery anchor: hn.story.50226016 | — |
Evidence (1) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn ⭐ | Kevlar = MCP Firewall for LLM'sRetrieved article excerptOpen article · Retrieved 2026-10-24T22:27:49.920223+00:00 [Kevlar MCP CDR Proxy](https://github.com/Ablation-Tool/kevlar/blob/main/KEVLAR-repo-01.png)
[License: MIT](https://github.com/Ablation-Tool/kevlar/blob/main/LICENSE)
[Python 3.10+](https://camo.githubusercontent.com/93a33cfc2339ec3fa9be792576576fbaafc42b0c7031285662b02f3aca1e1c59/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e31302b2d626c75652e737667)
[stdlib only](https://camo.githubusercontent.com/68020a0be008042c3eab019c201ef342a3e1b16f50906c629738feb3fa060918/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570732d7374646c69625f6f6e6c792d627269676874677265656e2e737667)
[asyncio](https://camo.githubusercontent.com/9b2c8b801609648f0f6caa1a4118c917e24cbd052fff14f1bdc42afa34f059e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72756e74696d652d6173796e63696f2d6c69676874677265792e737667)
[Linux/macOS](https://camo.githubusercontent.com/8e693b439f5a1f65ad5c8bad56f93ab9d9a6b05cc774b0d2c28fc04f67b02ee3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d4c696e75782532302537432532306d61634f532d696e666f726d6174696f6e616c2e737667)
[Visitors](https://camo.githubusercontent.com/f57392294c075f3208dc52b23ca65d6610dc9786b2ba447e2aa8e33019d73d29/68747470733a2f2f76697369746f722d62616467652e6c616f62692e6963752f62616467653f706167655f69643d41626c6174696f6e2d546f6f6c2e6b65766c6172)
# Kevlar
Kevlar is a proxy firewall for Model Context Protocol
```
LLM [ KEVLAR ] MCP
```
It sits between (you) and (everyone else)
## Why do I need Kevlar?
MCP servers control their own tools.
Those tools (good or bad) go into your LLM blindly, due to trust.
Any MCP server can exploit this to redirect the model, pull credentials, or add any tools they want.
The MCP spec does not prevent any of this.
You do not control what an MCP server puts in its messages.
## How it works
TL;DR
Kevlar sits between client and server and does four things:
1. Strips all tool descriptions before they reach the LLM. No exceptions.
2. Scans tool call responses for injection payloads and either redacts matched spans or blocks the response entirely.
3. Blocks outbound calls carrying credentials in their arguments, even if the LLM has already been compromised.
4. Locks the tool registry after the initial handshake so the server cannot inject new tools mid-session.
CDR on `tools/list`
Kevlar strips every `description` field to `""` unconditionally on every `tools/list` response, before the message reaches the client. The LLM sees `name` and `inputSchema` only. `inputSchema` is rebuilt from an allowlist: prose fields like `description`, `title`, `examples`, and `$comment` are stripped there too, and `enum` values, property keys, `$ref` targets, and `type` values are validated against the MCP spec. Score 0 on this pass cannot be achieved by adding description text back, because description text is never forwarded regardless of score.
Analysis on `tools/call` responses
Tool call results cannot be stripped without breaking functionality. Kevlar scans them against ~60 indicators sourced from published prompt injection research. Responses scoring above the mode threshold are quarantined (matched spans replaced with `[KEVLAR:<ID>]` tokens) or rejected (replaced with an `isError` block). Unicode bypass attempts using characters that normalize to injection text under NFKC are detected before normalization and redacted after.
Egress DLP
Outbound `tools/call` arguments are scanned before the call is forwarded to the server. If the LLM has already been compromised and is trying to exfiltrate credentials, the call is blocked at the proxy layer. The server never receives it. Runs in all three modes.
Tool registry lock (strict mode)
After the initial `tools/list` handshake, the set of callable tool names is frozen. `notifications/tools/list_changed` from the server is dropped, not forwarded. Any call to a tool not in the CDR-sanitized set is blocked with a synthetic `isError` response regardless of call content.
## Setup
Install
```
git clone https://github.com/Ablation-Tool/kevlar.git
cd kevlar
pip install .
```
Requires Python 3.10+. Linux and macOS only. Depends on `os.killpg` and `asyncio.connect_read_pipe`.
Quickstart
```
kevlar --mode strict -- npx -y @modelcontextprotocol/server-filesystem /tmp
kevlar --mode audit --log /tmp/kevlar.jsonl -- uvx mcp-server-git
```
Claude Desktop integration
In `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS):
```
{
"mcpServers": {
"filesystem": {
"command": "kevlar",
"args": [
"--mode", "strict",
"--log", "/tmp/kevlar-filesystem.jsonl",
"--",
"npx", "-y", "@modelcontextprotocol/server-filesystem",
"/Users/you/Documents"
]
}
}
}
```
Modes
| Mode | Reject threshold | Tool registry | `list_changed` |
| --- | --- | --- | --- |
| `strict` | score ≥ 40 | Locked at handshake | Dropped |
| `lenient` | score ≥ 80 | Dynamic updates allowed | Forwarded |
| `audit` | Never blocks | Dynamic | Forwarded |
Use `strict` in production. Use `audit` to profile a new server before tightening the threshold. `--log` produces a JSONL file with every policy decision, indicator ID, score, and masked value snippet.
## Reference
Architecture
Two files: `policy.py` is a pure CDR engine with no I/O, directly unit-testable. `kevlar.py` is the async stdio proxy. No runtime dependencies, stdlib only. `kevlar.py` spawns the server with `start_new_session=True` and kills the process group on shutdown, so `npx`/`uvx` child processes don't linger.
See [docs/architecture.md](https://github.com/Ablation-Tool/kevlar/blob/main/docs/architecture.md) for the full design: proxy lifecycle, CDR pipeline per message type, scoring arithmetic, indicator registries, and audit log format.
Tests
```
pip install -e ".[dev]"
pytest
```
149 tests. `tests/test_proxy.py` runs integration tests against real subprocess pairs. `tests/test_policy.py` covers the pure policy engine in unit tests. | zellkernel | 2 | 0 |
Interpretation history
2026-10-24T22:28:44Z
audience grounding: medium — Kevlar is a small but practical MCP-security project: it puts an inspection layer between an AI client and MCP servers, with controls aimed at poisoned tool metadata, injected tool results, credential exfiltration, and tools added mid-session. It may be worth evaluating for people running MCP agents, but the repository’s feature and test claims do not establish that its detection is effective against real attacks or that strict filtering is compatible with every server and host.
Decision trace
- 11-08 10:20expireexpired deterministically: single-evidence seed quiet 14 days (lifecycle)
- 10-25 09:30attention_candidatecreate
- 10-25 09:28groundKevlar is a small but practical MCP-security project: it puts an inspection layer between an AI client and MCP servers, with controls aimed at poisoned tool metadata, injected tool results, credential
- 10-25 09:28createThe repository describes concrete, testable runtime controls for MCP-connected agents, though the release has little engagement and no independent validation.