@privacyscrubber/mcp-server 2.1.0 β 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +125 -22
- package/index.js +486 -21
- package/manifest.json +4 -2
- package/package.json +7 -2
- package/pii-masking-run.js +213 -54
- package/ps-license-manager.cjs +257 -0
- package/ps-pii-engine.cjs +79 -36
- package/ps-pii-engine.js +79 -36
- package/scrubber-core.cjs +6 -6
- package/server.json +3 -3
package/README.md
CHANGED
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
[](https://theresanaiforthat.com/ai/privacy-scrubber/)
|
|
15
15
|
[](https://privacyscrubber.com)
|
|
16
16
|
[](https://privacyscrubber.com)
|
|
17
|
+
[-06b6d4.svg)](https://privacyscrubber.com/patents/)
|
|
18
|
+
[](https://github.com/moxno/privacyscrubber-mcp)
|
|
17
19
|
|
|
18
20
|
**CISO-Approved Zero-Trust PII & Secrets Redaction MCP Server for Cursor, Windsurf, and Claude Desktop.**
|
|
19
21
|
Locally scrubs PII, secrets, credentials, and custom regex rules from files and text contexts before they reach remote LLM providers to prevent API leaks and ensure HIPAA/SOC 2 compliance at the developer endpoint.
|
|
@@ -96,6 +98,28 @@ Add this to your Claude Desktop config file:
|
|
|
96
98
|
* **Command:** `npx -y @privacyscrubber/mcp-server`
|
|
97
99
|
3. Optional: Set `PRIVACYSCRUBBER_KEY` as an environment variable in your system shell.
|
|
98
100
|
|
|
101
|
+
### Cline / Roo Code
|
|
102
|
+
Add to `cline_mcp_settings.json`:
|
|
103
|
+
```json
|
|
104
|
+
{
|
|
105
|
+
"mcpServers": {
|
|
106
|
+
"privacyscrubber": {
|
|
107
|
+
"command": "npx",
|
|
108
|
+
"args": ["-y", "@privacyscrubber/mcp-server"],
|
|
109
|
+
"env": {
|
|
110
|
+
"PRIVACYSCRUBBER_KEY": "YOUR_OPTIONAL_PRO_LICENSE_KEY"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Claude Code CLI
|
|
118
|
+
Add directly from your terminal:
|
|
119
|
+
```bash
|
|
120
|
+
claude mcp add privacyscrubber -- npx -y @privacyscrubber/mcp-server
|
|
121
|
+
```
|
|
122
|
+
|
|
99
123
|
---
|
|
100
124
|
|
|
101
125
|
## π οΈ Provided Tools & JSON-RPC Specifications
|
|
@@ -167,35 +191,47 @@ Reads a local file, extracts text, sanitizes it, and returns the redacted templa
|
|
|
167
191
|
* `filePath` (string, required): Absolute file path to read and sanitize.
|
|
168
192
|
* `profile` (string, optional): The industry detection profile.
|
|
169
193
|
|
|
170
|
-
|
|
194
|
+
### 4. `guard_exec` (Command Execution Firewall)
|
|
195
|
+
Safely executes terminal commands in an isolated child process, masking stdout/stderr PII, database credentials, and API keys in local RAM before passing them to the AI agent. Includes a CISO audit receipt in stderr.
|
|
171
196
|
|
|
172
|
-
|
|
197
|
+
* **Arguments:**
|
|
198
|
+
* `command` (string, required): The shell command to execute (e.g. `cat .env`, `docker logs web`, `git diff`).
|
|
199
|
+
* `cwd` (string, optional): Working directory.
|
|
200
|
+
* `profile` (string, optional): Detection profile (defaults to `Dev`).
|
|
201
|
+
* `timeout_ms` (number, optional): Timeout in ms (defaults to `15000`).
|
|
173
202
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
* **Web Sandbox:** Use the zero-server browser sanitization tools at [PrivacyScrubber Homepage](https://privacyscrubber.com/?utm_source=npm&utm_medium=readme&utm_campaign=mcp_server).
|
|
203
|
+
### 5. `guard_read_file` (Credential-Masking File Reader)
|
|
204
|
+
Reads files (.env, configs, source code, database dumps) and tokenizes all passwords, JWTs, and PII in volatile memory, returning safe redacted content for AI reasoning.
|
|
177
205
|
|
|
178
|
-
|
|
206
|
+
* **Arguments:**
|
|
207
|
+
* `file_path` (string, required): Path to file.
|
|
208
|
+
* `profile` (string, optional): Detection profile (defaults to `Dev`).
|
|
209
|
+
* `max_lines` (number, optional): Line cap for large files (defaults to `500`).
|
|
179
210
|
|
|
180
|
-
|
|
211
|
+
### 6. `guard_git_diff` (Pre-Commit & Diff Sanitizer)
|
|
212
|
+
Inspects staged (`--cached`) or unstaged repository diffs, redacting any newly introduced secrets or PII in local RAM before AI code review or commit message generation.
|
|
181
213
|
|
|
182
|
-
|
|
214
|
+
* **Arguments:**
|
|
215
|
+
* `staged` (boolean, optional): If `true`, inspects staged changes (`git diff --cached`). Defaults to `false`.
|
|
216
|
+
* `cwd` (string, optional): Working directory.
|
|
217
|
+
* `profile` (string, optional): Detection profile (defaults to `Dev`).
|
|
183
218
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
| **Volatile Tokenization** | β
Yes | β
Yes | β
Yes |
|
|
187
|
-
| **Standard PII Masking** | β
Yes | β
Yes | β
Yes |
|
|
188
|
-
| **Max Character Length** | 15,000 chars | βΎοΈ Unlimited | βΎοΈ Unlimited |
|
|
189
|
-
| **Industry Profiles** | General Only | 25 Profiles | 25 Profiles |
|
|
190
|
-
| **Custom Regex Rules** | β Locked | βΎοΈ Unlimited | βΎοΈ Unlimited |
|
|
191
|
-
| **Team Rules Sync (GPO)** | β No | β No | β
Yes (Shared Link) |
|
|
192
|
-
| **Licensing Cost** | $0 | **$110 Lifetime** | **$99/mo Flat Rate** |
|
|
219
|
+
### 7. `guard_apply_patch` (Safe Patch Applicator)
|
|
220
|
+
Reverses token placeholders (`[API_KEY_1]`, `[SECRET_1]`) in AI-generated code or text by looking up the local RAM session map, creating a `.bak` backup, and writing authentic cleartext directly to disk. The remote LLM never sees real secrets.
|
|
193
221
|
|
|
194
|
-
|
|
222
|
+
* **Arguments:**
|
|
223
|
+
* `file_path` (string, required): Path to target file.
|
|
224
|
+
* `content` (string, required): Content containing tokens to restore on disk.
|
|
225
|
+
* `create_backup` (boolean, optional): Backup existing file before write (defaults to `true`).
|
|
195
226
|
|
|
196
|
-
|
|
227
|
+
### 8. `create_agent_rules` (1-Click Agent Rule Injection)
|
|
228
|
+
Automatically scaffolds CISO-grade Zero-Trust directives into `.cursorrules`, `.windsurfrules`, `CLAUDE.md`, `.github/copilot-instructions.md`, or `.clinerules`.
|
|
197
229
|
|
|
198
|
-
|
|
230
|
+
* **Arguments:**
|
|
231
|
+
* `agent_types` (array, optional): `["all"]`, `["cursor"]`, `["windsurf"]`, `["claude_code"]`, `["copilot"]`, `["cline"]`. Defaults to `["all"]`.
|
|
232
|
+
* `workspace_dir` (string, optional): Workspace directory.
|
|
233
|
+
|
|
234
|
+
### 9. `check_status`
|
|
199
235
|
|
|
200
236
|
Returns a visual dashboard showing your current tier, session request count, active profiles, and upgrade instructions. Use it at any time to check your license status or get setup help.
|
|
201
237
|
|
|
@@ -210,7 +246,7 @@ Returns a visual dashboard showing your current tier, session request count, act
|
|
|
210
246
|
* **Response Example (Free Tier):**
|
|
211
247
|
```
|
|
212
248
|
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
213
|
-
β PrivacyScrubber MCP Server
|
|
249
|
+
β PrivacyScrubber MCP Server v2.2.0 β
|
|
214
250
|
β βββββββββββββββββββββββββββββββββββββββββββββββββββ£
|
|
215
251
|
β π Tier: FREE β
|
|
216
252
|
β π Session requests: 5 β
|
|
@@ -231,6 +267,52 @@ Returns a visual dashboard showing your current tier, session request count, act
|
|
|
231
267
|
|
|
232
268
|
---
|
|
233
269
|
|
|
270
|
+
## π‘οΈ Standalone CLI: `ps-guard`
|
|
271
|
+
|
|
272
|
+
PrivacyScrubber bundles `ps-guard` for Unix pipe, pre-commit, and agentic workflows:
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
# Pipe any output through RAM redaction
|
|
276
|
+
cat .env | npx ps-guard --profile dev
|
|
277
|
+
|
|
278
|
+
# Execute commands through the ZTDS safety wrapper
|
|
279
|
+
npx ps-guard -- npm test
|
|
280
|
+
|
|
281
|
+
# Review git diff with secrets redacted
|
|
282
|
+
npx ps-guard --diff --staged
|
|
283
|
+
|
|
284
|
+
# Generate rules for all AI IDEs (.cursorrules, .windsurfrules, CLAUDE.md, copilot, cline)
|
|
285
|
+
npx ps-guard --rules
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## π Browser Extension & Web Client
|
|
291
|
+
|
|
292
|
+
Looking for real-time protection directly inside your web browser?
|
|
293
|
+
* **Chrome Extension:** Get the [PrivacyScrubber Chrome Extension](https://chromewebstore.google.com/detail/privacyscrubber-%E2%80%94-pii-red/pimoejgefeilajmmbpghifdmhdlkgjol) to sanitize prompts directly inside ChatGPT, Claude, and Gemini in real-time.
|
|
294
|
+
* **Web Sandbox:** Use the zero-server browser sanitization tools at [PrivacyScrubber Homepage](https://privacyscrubber.com/?utm_source=npm&utm_medium=readme&utm_campaign=mcp_server).
|
|
295
|
+
|
|
296
|
+
## π License & Commercial Upgrade
|
|
297
|
+
|
|
298
|
+
By default, the server runs under the **Free Tier** (restricted to 15,000 characters per request and the basic `General` PII profile). To unlock 25 specialized engineering, medical, legal, and financial PII profiles, as well as team-wide custom rules, you can purchase a commercial license.
|
|
299
|
+
|
|
300
|
+
### Feature Comparison
|
|
301
|
+
|
|
302
|
+
| Feature | Free Tier | PRO Tier | TEAMS Tier |
|
|
303
|
+
| :--- | :--- | :--- | :--- |
|
|
304
|
+
| **Volatile Tokenization** | β
Yes | β
Yes | β
Yes |
|
|
305
|
+
| **Standard PII Masking** | β
Yes | β
Yes | β
Yes |
|
|
306
|
+
| **Max Character Length** | 15,000 chars | βΎοΈ Unlimited | βΎοΈ Unlimited |
|
|
307
|
+
| **Industry Profiles** | General Only | 25 Profiles | 25 Profiles |
|
|
308
|
+
| **Custom Regex Rules** | β Locked | βΎοΈ Unlimited | βΎοΈ Unlimited |
|
|
309
|
+
| **Team Rules Sync (GPO)** | β No | β No | β
Yes (Shared Link) |
|
|
310
|
+
| **Licensing Cost** | $0 | **$110 Lifetime** | **$99/mo Flat Rate** |
|
|
311
|
+
|
|
312
|
+
π **[Acquire a PRO / TEAMS License Key at privacyscrubber.com/pricing](https://privacyscrubber.com/pricing?utm_source=npm&utm_medium=readme&utm_campaign=mcp_server)**
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
234
316
|
## π After Purchase: Activate PRO in Your MCP Client
|
|
235
317
|
|
|
236
318
|
After purchasing a PRO license at [privacyscrubber.com/pricing](https://privacyscrubber.com/pricing?utm_source=npm&utm_medium=readme&utm_campaign=mcp_server), you will receive a license key. Add it to your MCP client config as an environment variable: `PRIVACYSCRUBBER_KEY`.
|
|
@@ -294,7 +376,16 @@ After adding the key, ask your AI agent to call `check_status`:
|
|
|
294
376
|
Use the check_status tool from PrivacyScrubber MCP
|
|
295
377
|
```
|
|
296
378
|
|
|
297
|
-
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
## π Ecosystem & Production Architecture Guides
|
|
382
|
+
|
|
383
|
+
- π **Web App**: [https://privacyscrubber.com](https://privacyscrubber.com)
|
|
384
|
+
- π¦ **Node.js / TypeScript SDK**: [@privacyscrubber/sdk](https://www.npmjs.com/package/@privacyscrubber/sdk)
|
|
385
|
+
- π§© **Chrome Extension**: [Chrome Web Store](https://chromewebstore.google.com/detail/privacyscrubber-%E2%80%94-zero-tr/pimoejgefeilajmmbpghifdmhdlkgjol)
|
|
386
|
+
- π‘οΈ **RAG & Vector Databases**: [Sanitizing PII Before Vector DB Ingestion (Pinecone, Chroma, Qdrant)](https://privacyscrubber.com/solutions/dev/rag-vector-database-pii-masking/)
|
|
387
|
+
- π€ **LangChain & LlamaIndex**: [In-Memory PII Middleware for AI Agent Pipelines](https://privacyscrubber.com/solutions/agents/langchain-llamaindex-pii-anonymizer/)
|
|
388
|
+
- β‘ **AWS Comprehend Alternative**: [In-Memory Redaction Without Egress or Cloud Overhead](https://privacyscrubber.com/solutions/dev/aws-comprehend-pii-alternative/)
|
|
298
389
|
|
|
299
390
|
---
|
|
300
391
|
|
|
@@ -328,4 +419,16 @@ PrivacyScrubber and the Zero-Trust Data Sanitization (ZTDS) protocol are backed
|
|
|
328
419
|
|
|
329
420
|
MIT Β© [Ilya Sibiryakov](https://privacyscrubber.com) (BrandMeWeb)
|
|
330
421
|
|
|
422
|
+
---
|
|
423
|
+
|
|
424
|
+
## βοΈ Intellectual Property & Virtual Patent Marking
|
|
425
|
+
|
|
426
|
+
The Zero-Trust Data Sanitization (ZTDS) architecture, in-memory deterministic tokenization, cryptographic session handoff, and stdio execution methods implemented in this package are proprietary technology of Ilya Sibiryakov (BrandMeWeb) and are protected under **Patent Pending** status:
|
|
427
|
+
|
|
428
|
+
- **Patent Office:** State of Israel Ministry of Justice, Patent Office (ILPO)
|
|
429
|
+
- **Application Number:** `331905` (Tracking ID: `94221`)
|
|
430
|
+
- **Filing / Priority Date:** September 14, 2026 (Paris Convention Art. 4 & 35 U.S.C. Β§ 119 Priority)
|
|
431
|
+
- **Official Title:** *SYSTEM AND METHOD FOR CLIENT-SIDE ZERO-TRUST DATA SANITIZATION AND CRYPTOGRAPHIC SESSION HANDOFF IN ARTIFICIAL INTELLIGENCE WORKFLOWS*
|
|
432
|
+
- **Virtual Patent Marking:** [privacyscrubber.com/patents/](https://privacyscrubber.com/patents/) in accordance with 35 U.S.C. Β§ 287(a).
|
|
433
|
+
|
|
331
434
|
|