ai-security-gateway-mcp
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., "@ai-security-gateway-mcp Scan this prompt for PII before I send it: my email is john.doe@example.com"
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.
AI Security Gateway β MCP Server
Local PII detection and masking for Claude Desktop, Cursor, and Windsurf. Your prompts are scanned on your machine before reaching any LLM.
What it does
Automatically detects and masks sensitive data in your prompts:
π§ Email addresses
π± Phone numbers (India-friendly)
π³ Credit card numbers
πͺͺ Aadhaar numbers
π PAN cards
π IP addresses
π Passport numbers
π¦ Bank account numbers
Related MCP server: privacyscrubber-mcp
How it works
Once installed, Claude Desktop (and Cursor/Windsurf) automatically has access to a scan_prompt tool. You can ask Claude to scan any prompt before sending it, or Claude will proactively suggest scanning when it detects potentially sensitive content.
Installation
Option 1 β Run directly with npx (no install needed)
Add to your claude_desktop_config.json:
{
"mcpServers": {
"ai-security-gateway": {
"command": "npx",
"args": ["-y", "ai-security-gateway-mcp"]
}
}
}Option 2 β Install globally
npm install -g ai-security-gateway-mcpThen add to claude_desktop_config.json:
{
"mcpServers": {
"ai-security-gateway": {
"command": "ai-security-gateway-mcp"
}
}
}Config file locations
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Usage
After restarting Claude Desktop, try:
Scan this prompt for PII before I send it: [your text here]Use REPLACE mode to anonymize: [your text here]Is this safe to send to an LLM? [your text here]Anonymization modes
Mode | Behaviour | Example |
| Partially hides values |
|
| Removes values entirely | (empty) |
| Substitutes typed tokens |
|
Works with
Claude Desktop (macOS and Windows)
Cursor
Windsurf
Any MCP-compatible client
Privacy
All detection runs locally on your machine. No data is sent to any server or cloud service.
Development
npm install
npm run build # compile TypeScript β dist/
npm run dev # run via tsx (no compile step)
npm start # run compiled outputRelated
Web app (v1): https://github.com/dceptev-byte/ai_security_gateway
Available Tools
1 toolscan_promptA
Scans text for PII (personally identifiable information) before sending to an LLM. Detects emails, phone numbers, credit cards, Aadhaar numbers, PAN cards, IP addresses, passports, and bank accounts. Returns risk level, findings, and anonymized text. Always run this before sending sensitive prompts to any LLM.
Inputs: text (required), mode.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion between tools. The single tool's purpose is clearly defined and distinct.
The tool name 'scan_prompt' follows a clear verb_noun convention, which is consistent even though there is only one tool. No conflicting naming styles are present.
The server is named 'ai-security-gateway', implying a broader set of security functions, but it exposes only a single tool. This feels far too thin for the apparent scope, which likely requires multiple operations like output scanning or configuration.
The server only scans input prompts for PII and anonymizes them. It lacks other critical gateway features such as output scanning, response filtering, or policy management, making the surface severely incomplete for a security gateway.
Maintenance
Related MCP Connectors
Detect and redact PII and secrets (API keys, tokens) in text, HTML or PDF before it reaches an LLM.
Detect and redact PII and secrets before text reaches an LLM, with reversible placeholders.
Find and redact leaked secrets, wallet keys and PII before an AI agent sends text.
Scan prompts for injection attacks, redact PII, and audit LLM SDK usage from any MCP client
Related MCP Servers
- FlicenseAqualityBmaintenancePII sanitization layer for autonomous AI agent pipelines. Detects and redacts emails, phone numbers, national IDs, private keys, and financial data before text reaches LLMs. Supports EN, ES (LATAM), PT (BR/PT), DE, JA.12-
- AlicenseBqualityBmaintenanceZero-Trust local PII & secrets masking MCP (ZTDS RFC v1.0). Zero server logs. Features: 23 zero-trust tools, 30 industry profiles, offline OCR, RAM-only masking. Run: npx -y @privacyscrubber/mcp-server. Website: https://privacyscrubber.com SDK: https://www.npmjs.com/package/@privacyscrubber/sdk423723 npm3MIT
- AlicenseAqualityCmaintenanceDetects and redacts sensitive personal information such as names, emails, phone numbers, ID numbers, and locations in text before it is processed by AI agents, using configurable mask, hash, or remove strategies.1MIT
- FlicenseNot gradedqualityBmaintenanceEnables reversible anonymization of sensitive PII such as SSNs, credit cards, passport numbers, emails, and phone numbers before sending prompts to external LLMs, then restores original values locally using HMAC isolation.7-