
MCP Security Sanitizer
io.github.kansal-mukul由 GitHub 账号 kansal-mukul 发布v2.0.0更新于 Oct 24, 2026
Redacts common secrets, email addresses, and phone numbers.
概览
一个远程 MCP 服务器,可从文本中遮蔽常见密钥、邮箱地址和电话号码,并审计文本中的此类风险。
- 可以做什么
- 遮蔽密钥:对文本中的 OpenAI 风格密钥、bearer 令牌以及常见的 key/secret/password/token 赋值进行脱敏。遮蔽个人信息:对邮箱地址和常见北美电话号码进行脱敏。审计文本:统计可识别的密钥、邮箱地址和电话号码数量,不修改原文。
- 适用场景
- 适合在分享日志、配置片段或示例数据前让助手先做脱敏,或快速统计一段文本中的密钥和个人信息数量。它只是便利性过滤,不构成合规保证。
- 运行要求
- 需要支持通过 SSE 连接远程 MCP 服务器的客户端,并指向已发布的端点。未声明需要账号、API 密钥或请求头。免费托管在空闲后可能需要约一分钟唤醒。自行部署副本需要 Python 3.11+ 和 uv。
安装
在 SourceWeft 中
- 打开 控制台中的 MCP Security Sanitizer,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 SSE。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.kansal-mukul%2Fmcp-security-sanitizer/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"security-sanitizer": {
"type": "sse",
"url": "https://mcp-security-sanitizer-mk-server.onrender.com/sse"
}
}
}README
MCP Security Sanitizer
A small MCP server that provides local, regex-based tools for redacting common secrets and personally identifiable information (PII).
Use the published server
This project is configured for publication in the
official MCP Registry
under the server name io.github.kansal-mukul/mcp-security-sanitizer.
After publishing, search for that name and add the server to an MCP client
that supports remote servers over SSE.
[MCP Security Sanitizer listed in the official MCP Registry]
You can also add the endpoint directly in a client that supports SSE:
For example, in VS Code, add this to .vscode/mcp.json in your workspace:
After connecting, select one of the tools below and provide its text
argument. The Render free service may take about a minute to respond when it
has been idle and needs to wake up.
Regex matching only recognizes the patterns implemented here. It cannot guarantee detection of every secret or PII value. Validate the patterns against your requirements before relying on this service.
Tools
Run locally
Requires Python 3.11+ and uv.
The server listens on http://localhost:8000/sse.
Hosting
The public MCP server is hosted on Render at
https://mcp-security-sanitizer-mk-server.onrender.com/sse.
The Registry entry above points to this live service. If you want to host a
separate copy, create a Render Web Service from this repository; Render can
use the included render.yaml configuration and assigns the public URL and
port automatically.
The service is public and has no authentication. Anyone with its URL can call the sanitizer tools, so do not send real credentials or sensitive personal data unless you add suitable access controls.
Development
Sanitization runs locally in Python and does not call an LLM. Add tests for the secret and PII formats relevant to your environment before relying on the service for compliance.
Connect
- GitHub: MCP Security Sanitizer
- MCP Registry: View the server listing
- LinkedIn: Mukul Kansal
来源:README.md,提交 64e43c4
工具
0版本历史
1- v2.0.0最新Oct 24, 2026
评分
已满足适用检查项的 75%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。