
MaskFlow PII proxy
io.github.maskflow由 GitHub 账号 maskflow 发布v0.1.2更新于 Oct 24, 2026
Mask PII in outbound MCP tool-call arguments, unmask the results. Indian identifiers included.
概览
一个本地代理,在助手发出的 MCP 工具调用参数中遮蔽个人身份信息,并在返回结果中还原原始值。
- 可以做什么
- MaskFlow PII 代理位于智能体与任意 MCP 服务器之间,在发往后端工具的 tools/call 参数值中遮蔽个人身份信息,并在返回结果中还原占位符。占位符在整个智能体运行期间保持一致,令牌与原始值的映射按连接保存在内存中。检测覆盖通用 PII 以及 Aadhaar、PAN、GSTIN、UPI、IFSC、ABHA 等印度标识符。它可包装 stdio 后端命令或 HTTP 后端地址,tools/list、prompts 与 resources 原样透传。
- 适用场景
- 当助手会把姓名、邮箱、电话号码或政府证件号等用户数据发送给第三方 MCP 服务器,而你希望在边界处拦截真实值时使用。它是可直接替换的中间层,适合已通过 stdio 或 HTTP 连接 MCP 后端的智能体。
- 运行要求
- 需要本地 Python 运行环境;从 PyPI 安装 maskflow-mcp 包,或用 uvx 运行。必须提供后端 MCP 服务器,可以是命令行或 URL,也可从 Claude Desktop 风格的配置文件读取。首次检测会下载一个小型 spaCy 模型,除非使用 --patterns-only。后端凭据需通过 --pass-env 显式转发。
安装
在 SourceWeft 中
- 打开 控制台中的 MaskFlow PII proxy,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
maskflow-mcp
A Model Context Protocol proxy that
wraps any MCP server and keeps PII out of your agent's tool traffic. It
masks PII in outbound tools/call arguments before they reach the backend
tool, and restores the originals in the results, with placeholders that
stay consistent for the whole agent run.
Agents routinely pass user PII (names, emails, PAN, Aadhaar, phone numbers) straight into third-party MCP servers as tool arguments. This proxy is a drop-in shim that stops the real values at the boundary. It runs MaskFlow's detection engine, so the Indian identifiers (Aadhaar, PAN, GSTIN, UPI, IFSC, ABHA, Indian names / addresses) are covered alongside the generic PII.
MIT, no gates, no telemetry.
Install
Pulls fastmcp (the 2.x line, which does not bundle LLM vendor SDKs). The
first detection run downloads a small spaCy model; pass --patterns-only
to skip it.
Use it
stdio (Claude Desktop, most agents)
Point the agent at maskflow-mcp and give it the real server as --backend:
Or wrap a server already defined in a config file:
HTTP
Options
What is masked
tools/call arguments are walked (string and numeric values only, keys
never) and masked through the connection's session. The result's text and
structured content is unmasked, restoring placeholders the tool echoed. By
default raw PII that the tool adds to a result passes through untouched;
--mask-tool-results masks that too, so the agent never sees it.
tools/list, prompts/*, and resources/* pass through unchanged
(resource content masking is not on by default).
PII safety
The token-to-value map lives in memory per connection and is never logged.
Only masked values cross the wire to the backend. See docs/mcp.md in the
MaskFlow repo for the design.
来源:packages/maskflow-mcp/README.md,提交 dc6297e
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分