mcpbeat Sign in

prompt-protection MCP Server

by mughalhere Your server? Claim it
local only

prompt-protection runs on your own machine — the client starts it, so there is no endpoint to ping. 1 267 installs a week from npm. Last commit 30 Oct 2026.

Scan prompts, tool definitions and model output for injection, and guard agent tool calls.

Installs per day peak 290 · avg 123 · +56% w/w
a month agotoday
1 267
Installs / week
npm · prompt-protection
3
Stars
1 open issue
30 Oct 2026
Last commit
13 releases in 90 days
MIT
License
TypeScript

What the code does

We read the source, 3 d ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

Runs an external command training/export_golden.py:69
        subprocess.run(["node", str(HERE / "normalize.mjs"), "--strings", str(inp), str(outp)], check=True)
Long encoded blob in source src/ml/weights.ts:17
  '/wH//Pv9/AEABf8IAQAAAQEA/wMCAAD//woD/f8BAPz3Af8AAgD5/wAABAECAgD//wIAAAEAAAD+AAAA+gPp/wADAAD7AP/3AAD//P38/gD//wEE/wAA/vwUAQMD/wD0AAD+CAAABv4C+/8AAAIEAP//A/3/AvwAAAQBAQH8AAAB9AIEAAAAAADkAvP/AAQJAv8AAQH+/v//AQECAf3/+v8A/AABAAYDAAABAQEB/wH6/v/+/wH+AAMA/QH+/v8AAP8C+gEAAAMAAfQA/AAAA…
    pattern: /(read|open|output|return|show|cat|print)\s+.{0,20}(\/etc\/passwd|\/etc\/shadow|\/etc\/hosts|\.env|secrets?\.json|credentials?\.json|config\.json|id_rsa)/,

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add prompt-protection -- npx -y prompt-protection
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "prompt-protection": {
      "command": "npx",
      "args": [
        "-y",
        "prompt-protection"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.prompt-protection]
command = "npx"
args = ["-y", "prompt-protection"]
.cursor/mcp.json
{
  "mcpServers": {
    "prompt-protection": {
      "command": "npx",
      "args": [
        "-y",
        "prompt-protection"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "prompt-protection": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "prompt-protection"
      ]
    }
  }
}

Alternatives to prompt-protection

same job, measured the same way
A
Agent Security Scanner
by mikehzp

Scan AI agents for tool-calling vulnerabilities: prompt leaks, hijacking, injections, and more.

102 installs/wk local only
Prompt Guard MCP
by robertoyanguas-ops

Scans untrusted web pages, emails, or tool outputs for prompt injections and returns sanitized tex

2 tools answering
InjectScan
by agentgate-builder

Prompt-injection scanner for agents: risk score, categories and spans for text, pages, MCP tools

3 tools answering
Injectshield
by bch1212

Prompt-injection firewall for AI agents — scan untrusted text before LLM calls.

41 installs/wk local only
CanaryGuard 402
by ak10082247-max

Deterministic prompt-injection detection & sanitization for AI agents via x402 on Base.

26 tools answering
MCP Server Auditor
by guardbee

Scans MCP server tool definitions for excessive agency, injection sinks, hardcoded secrets

577 installs/wk local only
MCP Server Auditor
by 4hmetuyar

Scans MCP server tool definitions for excessive agency, injection sinks, hardcoded secrets

local only
Agent Immune
by denial-web

AI agent security: prompt injection detection, semantic memory, output scanning, prompt hardening

96 installs/wk local only

prompt-protection — questions

Answers built from our own checks of this server.

Why is there no uptime for prompt-protection?
prompt-protection runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package prompt-protection was installed 1 267 times last week.
How do I connect prompt-protection?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls prompt-protection straight from npm; nothing to host, nothing to sign up for.
How many people use prompt-protection?
The npm package prompt-protection was installed 1 267 times in the last week. Week over week that is +56%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is prompt-protection open source?
Yes — it is published under the MIT licence, written in TypeScript, 3 stars on GitHub and 1 open issue. The source link is on this page, so you can read exactly what it does with your data before you connect it.