
Balmas Mcp
com.balmasai由 balmasai.com 发布v0.3.0更新于 Oct 24, 2026
Agents read cleaned copies of your files: PII replaced with local consistent tokens. Read-only.
发布方自己的服务:Persqo
概览
让助手以本地匿名化副本的方式读取白名单内的本地文件,并提供还原工具把标记映射回真实值。
- 可以做什么
- 该服务器对已加入白名单的文件夹提供只读工具:list_files 返回名称、大小和类型而不返回内容,read_clean_file 返回本地匿名化后的文件文本,restore_text 在会话内把助手输出中的标记还原为原始值。姓名、身份证号、电话、邮箱、公司、金额以及 API 密钥、JWT、私钥块等机密在内容返回前会被替换为一致的标记,如 PERSON_001 或 SECRET_001。检测在本地进程中运行,使用确定性模式、词表和校验和,支持希伯来语和英语。支持的输入包括 txt、csv、md、docx、xlsx、pptx 以及带文本层的 pdf。
- 适用场景
- 当助手需要读取包含个人或敏感数据的文档,而你希望它看到的是脱敏副本而非原始文件时使用。它的定位是替代该助手对文件系统的直接访问,而不是与之并用。适用于邮件、人事、法律或财务文档审阅等强调最小化的场景。
- 运行要求
- 通过 stdio 在本地运行,通常用 npx 从 npm 包 balmas-mcp 启动。需要一个免费账户,并通过环境变量 BALMAS_API_KEY 提供 API 密钥,还要以位置参数传入至少一个白名单文件夹。可选 --level 参数选择 standard、strict 或 maximum。每次读取文件都会计入每月文档配额。
安装
在 SourceWeft 中
- 打开 控制台中的 Balmas Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
balmas-mcp
Your AI agent reads everything. This gateway hands it redacted copies instead.
[balmas-mcp demo: the agent reads a contract and sees PERSON_001 instead of real names]
Why
AI agents are getting file access — and they over-read. Israel's Privacy Protection Authority put it bluntly in its guidance on AI agents: an email-sorting agent can analyze 15 years of correspondence for a 2-year task, infer your health and finances along the way, and leak what it learned. Their recommendation: strict permission minimization — read-only, dedicated folders, minimum necessary data.
balmas-mcp turns that advice into code, and goes one step further: it minimizes not just which files the agent reads, but what's inside them.
How it works
- You allowlist folders. The agent can't reach anything else — enforced with realpath checks, not honor rules.
- Every read is anonymized locally. Names, ID numbers, phones, emails,
companies and amounts become consistent tokens (
PERSON_001,ID_001) before the content is returned. Secrets too: API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Slack…), JWTs, private-key blocks,password:values and.envcredentials becomeSECRET_001at every level — and are never written back byrestore_text. The same person isPERSON_001in every file, so the agent's reasoning stays coherent. Detection runs in this process — deterministic patterns, lexicons and checksums (Israeli ID included). Hebrew and English. - The answer comes back real.
restore_textmaps the tokens in the agent's final output back to the original values — locally.
Read-only by design: the server exposes no write tools at all.
Quickstart
- Create a free account at balmasai.com/signup (10 documents/month free).
- Create an API key (
bk_...) at balmasai.com/app/team. - Add to your MCP client config (Claude Desktop shown; Cursor and others are the same idea):
Options: allowed folders as positional args (required, one or more) ·
--level standard|strict|maximum (default strict).
Tools
Supported inputs: txt csv md docx xlsx pptx pdf (text layer).
Privacy model
Each file read counts as one document against your account's monthly quota (free 10 / PRO 200 / TEAM 1,000). Full processing happens in this local process.
Honest limits
- The gateway helps only when the agent reads files through it — grant it instead of raw filesystem access, not alongside.
- Detection is deterministic: excellent, not clairvoyant. Review output where the stakes demand it.
- Scanned PDFs (no text layer) need the OCR flow at balmasai.com/clean.
Built by BALMAS AI — sensitive data stops here. Docs: balmasai.com/mcp
来源:README.md,提交 29e7c36
工具
0版本历史
1- v0.3.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分