prompt-protection MCP server
io.github.mughalhere/prompt-protection·v4.3.0·3 starsScan prompts, tool definitions and model output for injection, and guard agent tool calls.
not scanned yet
3 stars1.2k downloads/wk
Reviews
Write oneNobody has reviewed prompt-protection yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
prompt-protection tools
No tool declarations could be read from the package source. They show once the server is installed.
How prompt-protection compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 90% of 4,460 AI and agents servers
- GitHub stars
- 3
- more than 75% of 2,711 AI and agents servers
- Downloads a week
- 1,247
- more than 95% of 1,538 AI and agents servers with a package
Release history: 5 versions in the registry since 2026-09-15, latest 2026-10-29, typically one every 16 days.
Install prompt-protection in Claude Code, Cursor or VS Code
Runs npx -y prompt-protection on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add prompt-protection -- npx -y prompt-protection
What the publisher says
From the prompt-protection repository's README, as published. We do not edit it. Read it on GitHub
prompt-protection
A provenance-tracked tool-call guard for JavaScript agents. Tool results are tainted, destinations the user named are trusted, and every tool call the model proposes is checked before it runs: untrusted data does not reach a network, email, exec, file or payment sink. Fail-closed, in-process, zero runtime dependencies. Text detection, spotlighting and canaries ship as components, with their benchmark numbers published whether they flatter the library or not.
Live Demo →
What it is, and what it isn't
Prompt injection stopped being a text-classification problem the moment models started calling tools. The damage in an agent is a consequence, not a sentence: a URL lifted from an email ends up in an outbound request, an attendee address from a calendar entry becomes the recipient of send_email, a payload in a README lands in exec. Version 3 tracks where data came from and refuses to let untrusted data reach a dangerous sink. That is the capability model from Google DeepMind's CaMeL paper (arXiv 2503.18813), ported to a JavaScript tool-calling loop without the custom interpreter.
It is a policy layer inside your process. It is not an isolation boundary. It cannot see a flow that passes through the model's hidden state, a paraphrase that shares no identifiers with its source, or a source you never registered. The Limitations section lists what it misses, with the dataset rows that show it.
60-second agent quickstart
import { generateText } from 'ai';
import { createGuard } from 'prompt-protection/guard';
const guard = createGuard({
sinks: { http_post: 'network', send_email: 'email', run_shell: 'exec' }, // or rely on name heuristics
});
guard.analyzeUserTurn(userMessage); // destinations the user names become trusted
const result = await generateText({
model,
tools: guard.wrapTools(tools), // check → execute → taint result
toolApproval: guard.vercelToolApproval(), // block → denied, confirm → user-approval
prompt: userMessage,
});Or drive it by hand:
guard.taint('read_email', emailBody); // label a tool result as untrusted
const decision = guard.checkToolCall({ toolName: 'http_post', args: { url } });
// { action: 'block', policy: 'untrusted-to-exfil-sink', flows: [{ kind: 'identifier', path: 'args.url', … }] }Architecture
tool result ──taint──▶ provenance label ──▶ shingles + identifiers (URL, host, email, path, token)
│
model proposes tool call ──▶ sink class ──▶ flow detection (exact / identifier / content) ──▶ policies ──▶ allow · flag · confirm · block
▲ ▲
explicit map or name heuristics plan() allow-list · user-trusted destinationsShortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
prompt-protection: common questions
- Is prompt-protection MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the prompt-protection safety report
- How do I install prompt-protection?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does prompt-protection need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is prompt-protection maintained?
- The last commit was 36 days ago (2026-09-29). The latest release is v4.3.0.
- What can I use instead of prompt-protection?
- Servers from other publishers that do the same job: Agent Security Scanner MCP server, llmtrim MCP server and HOL Guard MCP server.
- How does prompt-protection compare with other AI and agents MCP servers?
- safety score 92/100 (higher than 90% of 4,460 AI and agents servers); github stars 3 (more than 75% of 2,711 AI and agents servers); downloads a week 1,247 (more than 95% of 1,538 AI and agents servers with a package). Full comparison.
Alternatives to prompt-protection
Same job from other publishers: the closest match first, then the best rated.
- Agent Security ScannerSecurity layer for AI agents: blocks prompt injection, detects fake packages, scans vulnerabilities.not reviewedEstablishedC
- llmtrimMCP server and proxy that compresses LLM prompts, tool output, and replies to cut token cost.not reviewedEstablishedA
- HOL GuardLocal-first AI agent security evidence and approval workflows through HOL Guard's stdio MCP server.not reviewedEstablishedA
- Agent-Native AnalyticsAgent-Native Amplitude/Mixpanel - connect data sources, prompt for chartsnot reviewedEstablishedA
- ImageAI image generation and editing with prompt optimization and quality presetsnot reviewedEstablishedB