Redacts common secrets, email addresses, and phone numbers.
MCPpedia last refreshed this data
io.github.saurabhdrh/mcp-security-sanitizer is an MCP server that redacts common secrets, email addresses, and phone numbers. Its tool list has not been published yet over sse, requires no API key, and scores 67/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
https://mcp-security-sanitizer-server.onrender.com/sseRemote servers are added as connectors, not in claude_desktop_config.json, which is for local servers.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Redacts common secrets, email addresses, and phone numbers.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in communication
Official TypeScript library for the Telnyx API
Open-source SMS gateway. Turn your Android phone into an SMS API: send and receive SMS from your apps over REST and webhooks. Self-hostable, with a free hosted plan.
Send email and newsletters with Mailtea over MCP, plus skills for email and website design.
X/Twitter automation MCP: scrape, post, schedule, analyze, engage. No API key required.
MCP Security Weekly
Get CVE alerts and security updates for io.github.saurabhdrh/mcp-security-sanitizer and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A small MCP server and interactive LangChain/Groq chatbot. The server exposes local regex-based tools for redacting common secrets and personally identifiable information (PII), and the client sanitizes each message before sending it to the language model.
Important limitation: Regex matching only recognizes the patterns implemented here. It cannot guarantee detection of every secret or PII value. The client guarantees that both configured sanitizer tools are called before each non-empty user message is passed to Groq; the system prompt is defense-in-depth, not the enforcement mechanism. Do not send regulated or highly sensitive data without adding appropriate controls and validating detection coverage for your environment.
User input
|
v
Python client --MCP/SSE--> local regex scrubbers
| 1. mask_api_keys_and_secrets
| 2. mask_pii_data
v
Sanitized text --> LangChain agent --> Groq
Sanitization uses local Python regular expressions in the MCP server and
consumes 0 LLM tokens. The client makes the sanitizer calls synchronously
before invoking the agent, so raw input is not sent to Groq by this chat flow.
An MCP transport is still a network boundary; this configuration binds the
server to loopback (127.0.0.1) and is intended for local development.
The logging interceptor prints tool names and argument field names but withholds all argument and result contents, so it does not log unsanitized input or potentially sensitive sanitizer output.
| Tool | Behavior |
|---|---|
mask_api_keys_and_secrets(text) | Redacts OpenAI-style sk-... keys, Bearer tokens, and common named key/secret/password/token assignments as [REDACTED_SECRET]. |
mask_pii_data(text) | Redacts email addresses as [REDACTED_EMAIL] and common North American phone formats as [REDACTED_PHONE]. |
audit_text_for_risks(text) | Returns counts of recognized secrets, email addresses, and phone numbers. |
uvFrom the project directory, resolve dependencies, create the project-local
.venv, and write or update uv.lock:
uv sync
You do not need to activate .venv when using uv run; it selects the
project environment automatically.
Create a .env file in the project directory (beside pyproject.toml):
GROQ_API_KEY=your_groq_api_key
GROQ_MODEL=openai/gpt-oss-120b
Keep .env out of version control. The client loads this file at startup and
checks that GROQ_API_KEY is set before connecting to Groq. A .env placed
inside .venv is also recognized as a fallback, but the project directory is
the recommended location because .venv is generated and can be deleted and
recreated. GROQ_MODEL is optional; if omitted, the client uses
openai/gpt-oss-120b. If Groq reports that a model is unavailable, set
GROQ_MODEL to a model ID enabled for your account. The API key is used by
ChatGroq; it is not sent to the MCP server.
Start the MCP server in one terminal:
uv run server.py
It listens on http://127.0.0.1:8000 using the SSE transport, with the MCP
endpoint at /sse.
The image below illustrates the expected server terminal after startup. It is a generated example rather than a direct screenshot from your machine; process IDs and log formatting can differ by FastMCP/Uvicorn version.
In a second terminal, start the interactive chatbot:
uv run client.py
Alternatively, activate the project environment in each terminal and run Python directly. For example, in Windows PowerShell:
.\.venv\Scripts\Activate.ps1
python server.py
In a second activated terminal:
.\.venv\Scripts\Activate.ps1
python client.py
Type `e