
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 分
請在儲存庫或註冊中心條目中宣告授權條款。