SentinelMCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SentinelMCPscan this text for prompt injection"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🛡️ SentinelMCP: Production-Grade LLM Security Guard
Secure your LLM workflows against Prompt Injections, Data Leaks, Credentials Exposure, and Phishing URLs — running natively inside Claude Desktop or any MCP-compatible environment.
SentinelMCP is an advanced, production-grade Model Context Protocol (MCP) server that acts as a secure firewall for Large Language Models. It analyzes inputs and outputs in real-time, masking sensitive data (PII) using Zod validation, serving dynamic audit stats as resources, and providing pre-configured system audit prompts.
📊 Security Impact & Efficacy Comparison
Threat Category | Without SentinelMCP | With SentinelMCP | Delta | Mitigation Method |
Prompt Injection & Jailbreaks | 🔴 15% | 🟢 98% | +83% | Real-time weighted heuristic scanner |
PII & Data Leakage | 🔴 0% | 🟢 100% | +100% | Algorithmic masking (TCKN, SSN, IBAN) |
Secrets & Credentials Exposure | 🔴 5% | 🟢 99% | +94% | Static secrets triage patterns |
Phishing & Unsafe URLs | 🔴 10% | 🟢 95% | +85% | URL reputation & TLD audit engine |
MCP Server Poisoning | 🔴 0% | 🟢 97% | +97% | Strict shell interpreter sandbox check |
Figures are based on SentinelMCP's internal test suites containing simulated threat payloads, jailbreaks, and PII datasets. Results may vary depending on LLM model prompts and system instructions.
Related MCP server: chuangsiai-mcp
🏗️ Architecture
graph LR
A[User Input / Prompt] --> B[SentinelMCP Server]
B --> C{Security Gateways}
C --> D[Prompt Injection Scanner]
C --> E[PII & Data Masker]
C --> F[Secrets & Keys Detector]
C --> G[URL Reputation Auditor]
D & E & F & G --> H[Clean & Verified Payload]
H --> I[Target LLM Engine]⚡ Core Components
1. Tools (JSON-RPC Actions)
All inputs are validated using zod and automatically formatted to JSON Schema using zod-to-json-schema.
Tool Name | Security Risk Mitigated | How It Works |
| Prompt Injection, Jailbreaks, System Prompt Evasion | Weighted pattern analysis and multi-match boost scoring (0-100). |
| Data Leakage (PII, Credit Cards) | Regex matching + algorithmic checksum verification (TCKN, SSN, IBAN). |
| Embedded Hardcoded Secrets | Static analysis scanning for AWS, Stripe, GitHub Tokens, and Private Keys. |
| Phishing Links, Spam Redirection | URL extraction & auditing for direct IP hosting, spam TLDs. |
| Host Privilege Escalation, Command Poisoning | Auditing config parameters against shell execution and metacharacters. |
| Model Hallucinations, Poisoned Output | Analyzing model responses for leaks, restrictions evasion, and toxicity. |
📊 2. Dynamic Resources
SentinelMCP exposes real-time session statistics and configuration details directly to the LLM Client:
ai-security://rules/active: Active regular expressions, rule weights, and blacklisted command counts used by security checkers.ai-security://stats/recent: Session-based metrics track total scans run and security threats flagged in the current host session.
📝 3. Prompts (Templates)
Pre-packaged prompts to guide LLMs through systematic audit operations:
security-audit-helper: Instantly guides the model through running full prompt injection, sensitive data, secrets leak, and URL trust audits on a given code block or prompt input.
🔌 Claude Desktop Integration
Link SentinelMCP directly to your local Claude Desktop application by adding it to your configurations (%APPDATA%/Claude/claude_desktop_config.json or ~/Library/Application Support/Claude/claude_desktop_config.json):
Option A: Quick Run with npx (Recommended)
Run SentinelMCP instantly without cloning the repo:
{
"mcpServers": {
"sentinel-mcp": {
"command": "npx",
"args": [
"-y",
"sentinel-mcp"
]
}
}
}Option B: Local Production Build
If you cloned and built the project locally:
{
"mcpServers": {
"sentinel-mcp": {
"command": "node",
"args": [
"/absolute/path/to/sentinel-mcp/build/index.js"
]
}
}
}🎛 Honor Custom Safety Rules (security-rules.json)
Define your own keywords, system rules, or custom regex checks dynamically. Create a security-rules.json file in your workspace:
{
"customPromptPatterns": [
"custom-system-bypass-phrase",
"my-test-jailbreak-trigger"
],
"customSensitivePatterns": {
"privateToken": "\\bsecret_token_[a-zA-Z0-9]{12}\\b"
}
}🛠️ Developer Setup & Test Coverage
Installation
npm installCompile & Build
npm run buildRun Jest Unit Tests (100% Coverage passing)
npm run test🛡️ OWASP LLM Top 10 Mapping
SentinelMCP directly addresses core vulnerabilities highlighted in the OWASP Top 10 for LLM Applications:
LLM01: Prompt Injection ➔ Mitigated via
scan_prompt_injection.LLM02: Insecure Output Handling ➔ Mitigated via
audit_ai_output.LLM06: Sensitive Information Disclosure ➔ Mitigated via
check_sensitive_data&detect_secrets.LLM10: Model Theft / Data Exfiltration ➔ Mitigated via
check_url_safety.
This server cannot be deployed
Maintenance
Related MCP Connectors
The WAF for agents. Pattern-based + heuristic firewall scans prompts, RAG documents, tool argume...
Deterministic trust gate for AI output: leaked-secret, prompt-injection & PII in one call.
Deterministic runtime safety for AI agents: scan PII, gate tool actions, verify LLM output.
Sentiment, toxicity, entity extraction, PII, translation, summary, QA, fraud scoring, safety audit.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides real-time content safety protection for large language models by detecting and preventing risks in both input and output content across multiple dimensions including compliance, ethics, and security.MIT
- AlicenseNot gradedqualityDmaintenanceProvides real-time content security for large language models by identifying and intercepting risks across compliance, ethics, and safety dimensions. It enables secure input and output monitoring through a customizable policy engine using an SSE-based interface.1MIT
- AlicenseAqualityBmaintenanceProtects AI agents from threats like prompt injection, jailbreaks, and SQL injection through a multi-layer scanning pipeline. It also enables PII redaction and rehydration to ensure data privacy during LLM interactions.1262 npm2Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides a pre-flight/post-flight firewall for LLM calls with comprehensive detection, classification, policy enforcement, reversible redaction, output safety, and immutable audit logging.1MIT