Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

PrivacyScrubber PII Masking MCP

by moxnoversion 2.5.0i★ 3iRuns on your computerOfficial site ↗
Registry nameio.github.moxno/privacyscrubber-mcp

How to install

What it does

Zero-Trust PII and secrets sanitizer for Cursor, Claude, and AI agents. 100% in-memory.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Cybersecurity

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity22/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score34/100

Quality: Passed 2/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install PrivacyScrubber PII Masking MCP. Follow https://mcp.popnx.com/i/moxno-privacyscrubber-mcp.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 2/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server PrivacyScrubber PII Masking MCP for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "privacyscrubber": { "command": "npx", "args": [ "-y", "@privacyscrubber/mcp-server" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the PrivacyScrubber PII Masking MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "privacyscrubber": {
          "command": "npx",
          "args": [
            "-y",
            "@privacyscrubber/mcp-server"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use PrivacyScrubber PII Masking MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using PrivacyScrubber PII Masking MCP or shows a PrivacyScrubber PII Masking MCP tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • PRIVACYSCRUBBER_KEY Optional PRO or TEAMS license key to unlock specialized detection profiles.

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect PrivacyScrubber PII Masking MCP yet

PrivacyScrubber PII Masking MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect PrivacyScrubber PII Masking MCP

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Cybersecurity that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server PrivacyScrubber PII Masking MCP for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user privacyscrubber -- npx -y @privacyscrubber/mcp-server 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the PrivacyScrubber PII Masking MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user privacyscrubber -- npx -y @privacyscrubber/mcp-server
  4. Type /mcp in Claude Code

    You should see PrivacyScrubber PII Masking MCP listed as connected

  5. Try it

    Use PrivacyScrubber PII Masking MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using PrivacyScrubber PII Masking MCP or shows a PrivacyScrubber PII Masking MCP tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • PRIVACYSCRUBBER_KEY Optional PRO or TEAMS license key to unlock specialized detection profiles.

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server PrivacyScrubber PII Masking MCP for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "privacyscrubber": { "command": "npx", "args": [ "-y", "@privacyscrubber/mcp-server" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the PrivacyScrubber PII Masking MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use PrivacyScrubber PII Masking MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using PrivacyScrubber PII Masking MCP or shows a PrivacyScrubber PII Masking MCP tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • PRIVACYSCRUBBER_KEY Optional PRO or TEAMS license key to unlock specialized detection profiles.

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server PrivacyScrubber PII Masking MCP for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "privacyscrubber": { "type": "stdio", "command": "npx", "args": [ "-y", "@privacyscrubber/mcp-server" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the PrivacyScrubber PII Masking MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use PrivacyScrubber PII Masking MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using PrivacyScrubber PII Masking MCP or shows a PrivacyScrubber PII Masking MCP tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • PRIVACYSCRUBBER_KEY Optional PRO or TEAMS license key to unlock specialized detection profiles.

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use PrivacyScrubber PII Masking MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user privacyscrubber -- npx -y @privacyscrubber/mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "privacyscrubber": {
      "command": "npx",
      "args": [
        "-y",
        "@privacyscrubber/mcp-server"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "privacyscrubber": {
      "command": "npx",
      "args": [
        "-y",
        "@privacyscrubber/mcp-server"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "privacyscrubber": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@privacyscrubber/mcp-server"
      ]
    }
  }
}

Values you fill in

  • PRIVACYSCRUBBER_KEY secret env
    Optional PRO or TEAMS license key to unlock specialized detection profiles.

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
724/wk
Licencei
No licence stated
Connection
Runs on your computer
Latest versioni
2.5.0
Published to registryi
Nov 13, 2026
Code last changedi
Nov 18, 2026
Maker
moxno
Packages
npm: @privacyscrubber/mcp-server
pypi: privacyscrubber-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account moxno, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed yesterday

  • ! Caution

    Has a licence

    GitHub could not identify the licence type; open the file to check

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for @privacyscrubber/mcp-server@2.5.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/moxno-privacyscrubber-mcp.svg)](https://mcp.popnx.com/en/servers/moxno-privacyscrubber-mcp)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Cybersecurityi

  • More stars than 86% of the other 1109 servers in this category
  • Published to the registry more recently than 85% of the other 1109 servers in this category
  • Basic checks equal to or better than 46% of the other 1109 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is PrivacyScrubber PII Masking MCP safe?

It passed 2 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed yesterday, and the latest version (2.5.0) reached the registry 6 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js, Python (uv) on your computer.

What can I use instead?

In the same category: GitHits, Dependency Management MCP Server, Snyk MCP, TokenSafe, Draugr

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

GitHits

Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.

by githits-comGrowing↓ 3.8K/wk★ 138Updated 10 days ago

Computer or cloud✓ service owner · githits.com

Snyk MCP

Easily find and fix security issues in your applications leveraging Snyk platform capabilities.

by snykWidely used↓ 762.1K/wk★ 61Updated 7 months ago

Runs on your computer✓ service owner · snyk.io

TokenSafe

Your AI agent is smart enough to code all day. Local firewall & zero-loss runtime.

by tokensafe-devWidely used↓ 6.8K/wk★ 46Updated today

Computer or cloud✓ service owner · tokensafe.dev

Draugr

Security scanning for AI agents: SAST, SCA, secrets, IaC, DAST, ranked by real risk.

by draugr-devEarly★ 30Updated 2 days ago

Runs on your computer✓ service owner · draugr.dev
Compared with similar ones
This one
PrivacyScrubber PII Masking MCP
GitHitsDependency Management MCP ServerSnyk MCPTokenSafeDraugr
Runs whereInstalls on your computerCloud or install on your computerRuns in the cloud, nothing to installInstalls on your computerCloud or install on your computerInstalls on your computer
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks2/35/53/43/35/53/3
LicenseNOASSERTIONApache-2.0–Apache-2.0MITApache-2.0
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

@privacyscrubber/mcp-server

CISO-Approved Zero-Trust PII & Secrets Redaction MCP Server for Cursor, Windsurf, and Claude Desktop. 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.

Support Zero-Trust Open Source: If PrivacyScrubber protects your API keys, source code, and developer credentials from model leaks, please [Star this repository on GitHub](https://github.com/moxno/privacyscrubber-mcp) or execute gh repo star moxno/privacyscrubber-mcp.

Direct Commercial Licensing & Production Infrastructure:

Looking to automate zero-trust PII redaction inside backend microservices, ETL pipelines, or LangChain/LlamaIndex agents?

- Developer SDK ($299/mo flat or $2,990/yr): Unlimited internal backend nodes, zero network egress, <1ms in-memory latency. [Subscribe to Developer SDK](https://privacyscrubber.com/pricing?tier=sdk&utm_source=mcp_readme) | [Technical Specs](https://privacyscrubber.com/sdk/?utm_source=mcp_readme)

- TEAMS ($99/mo flat): Unlimited team seats across your entire domain with cryptographic P2P session handoff. [Deploy TEAMS Plan](https://privacyscrubber.com/pricing?tier=teams&utm_source=mcp_readme)

- PRO ($15/mo or $110 Lifetime): Single-seat unlimited throughput across all 30 vertical profiles. [Get PRO License](https://privacyscrubber.com/pricing?tier=pro&utm_source=mcp_readme)


🔒 Zero-Trust Data Flow

All sensitive parameters, identifiers, and variables are intercepted locally inside your machine's RAM. They are replaced by tokens (e.g. [EMAIL_1]) before being sent to the AI. Once the AI responds, the tokens are safely swapped back to original values in your local context.

[Raw Input / Files] ──> [MCP sanitize_text] ──> [Masked Tokens] ──> [LLM API]

│ │ (In-Memory Map) (Result) │ │ [Original Output] <─── [MCP reveal_text] <─────────────────────────────┘


🚀 Installation

1. 1-Click Universal Auto-Installer (Recommended)

Automatically detects installed AI IDEs on your machine and safely configures PrivacyScrubber without corrupting existing tools:

# Auto-detect and configure all installed clients (Cursor, Claude Desktop, Claude Code, Windsurf, VS Code, Cline, Zed):

npx -y @privacyscrubber/mcp-server install --all

Scaffold project-level deterministic IDE hooks (.cursor/hooks.json, .claude/settings.json) & agent rules:

npx -y @privacyscrubber/mcp-server install --workspace

Or target specific environments directly:

npx -y @privacyscrubber/mcp-server install --claude-code npx -y @privacyscrubber/mcp-server install --vscode npx -y @privacyscrubber/mcp-server install --zed npx -y @privacyscrubber/mcp-server install --cursor npx -y @privacyscrubber/mcp-server install --claude

2. Install via Smithery

To automatically configure and run with your preferred client, install using Smithery:

npx -y @smithery/cli install @privacyscrubber/mcp-server --write-to-clients
3. Instant Run with NPX

Run the server directly without local installation:

npx -y @privacyscrubber/mcp-server
4. Instant Run with UVX (Python / PyPI)

Run the server directly inside Python agent workflows (CrewAI, LangChain, AutoGen, LlamaIndex):

uvx privacyscrubber-mcp

Or via pip:

pip install privacyscrubber-mcp

privacyscrubber-mcp

5. Programmatic Node.js / TypeScript SDK (Lightweight Presidio Alternative)

Need direct, in-memory zero-trust PII sanitization in your backend microservice, Next.js app, or RAG vector pipeline rather than an MCP server? Use our official zero-dependency SDK:

npm install @privacyscrubber/sdk
import OpenAI from 'openai';

import { wrapOpenAI } from '@privacyscrubber/sdk';

// Transparently masks PII before sending to LLM and rehydrates responses: const openai = wrapOpenAI(new OpenAI({ apiKey: process.env.OPENAI_API_KEY }));

// Outbound prompt is sanitized in local RAM before leaving your machine: // "Schedule a call with [NAME_1] at [EMAIL_1] regarding API key [AWS_KEY_1]." const completion = await openai.chat.completions.create({ model: 'gpt-4o', messages: [{ role: 'user', content: 'Schedule a call with Alice Smith at alice@acme.com with [PopNx MCP ตัดค่าที่หน้าตาเหมือนกุญแจออก].' }] });

// Incoming LLM answer is automatically rehydrated with "Alice Smith (alice@acme.com)": console.log(completion.choices[0].message.content);

⚡ Why @privacyscrubber/sdk vs Microsoft Presidio?

Microsoft Presidio is the Python standard, but deploying it in a Node.js / TypeScript stack requires running heavy Python microservices, Docker containers, and 500MB+ spaCy NLP models with 35–120ms latency. @privacyscrubber/sdk runs 100% in-process with zero dependencies:

Feature / Metric@privacyscrubber/sdkMicrosoft PresidioAWS Comprehend / Google Cloud DLP
Runtime & Dependencies0 dependencies (~150KB)Python + Docker + spaCy (~500MB)Heavy Cloud SDKs
Execution LatencySub-millisecond in RAM (<1ms)35–120ms HTTP/gRPC roundtrip180–400ms external cloud roundtrip
Docker / Sidecar NeededNone (Pure in-process Node/WASM)Mandatory Docker containerVPC endpoints & IAM configurations
Network Egress0 Bytes (100% Air-gapped)Local internal network hopFull unencrypted payload to cloud
Data Loss & Reversibility0 Loss (RAM-reversible via `restore()`)Manual token vault configurationIrreversible masking / hashing
OpenAI / LangChain 1-LinerBuilt-in (`wrapOpenAI`, `wrapAiStream`)Complex custom pipeline glueCustom proxy architecture
DevOps Secrets InterceptionBuilt-in (AWS, JWT, DB URIs, GitHub PAT)Custom regex recognizers neededCloud-specific classifiers
Streaming RehydrationBuilt-in (`wrapAiStream`, `TransformStream`)Buffering / chunk split failuresNot supported in real-time streams

👉 View @privacyscrubber/sdk on NPM | Full documentation, Express middleware, LangChain transforms, and 25 compliance profiles.

🤖 AI Orchestrator Recipes: LangChain, LlamaIndex, CrewAI & AutoGPT

If you are building autonomous agents, RAG vector pipelines, or backend services rather than single-user IDE prompts, use @privacyscrubber/sdk to sanitize data in-memory:

1. LangChain.js (LCEL & RAG Document Ingestion)
import { ChatOpenAI } from '@langchain/openai';

import { createLangChainTransform, createDocumentTransformer } from '@privacyscrubber/sdk';

// A. RAG Pre-Ingestion: sanitize documents before embedding into vector stores const docTransformer = createDocumentTransformer({ profile: 'General', sensitiveMetadataKeys: ['account_owner', 'submitter_email'], attachTelemetry: true }); const sanitizedDocs = await docTransformer.transformDocuments(rawDocs);

// B. LCEL Runtime Chains: sanitize prompts and restore responses in local RAM const transform = createLangChainTransform({ defaultProfile: 'Dev' }); const { scrubbedText, tokenMap } = transform.preprocess( "Deploying database with user admin and pwd postgresql://user:SecretPass123@db.internal:5432/prod" ); const model = new ChatOpenAI({ model: 'gpt-4o' }); const response = await model.invoke(scrubbedText); const finalOutput = transform.postprocess(response.content, tokenMap);

2. LlamaIndex.TS & Universal Vector DB Ingestion (Chroma, Pinecone, Qdrant)
import { createVectorIngestionGuard, createLlamaIndexTransform } from '@privacyscrubber/sdk';

// Initialize in-memory Vector Ingestion Guard (<1ms per batch, zero network egress) const guard = createVectorIngestionGuard({ profile: 'Finance', sensitiveMetadataKeys: ['contractor_email', 'billing_contact'] });

// A. Sanitize Chroma columnar batches ({ ids, documents, metadatas }) const cleanChroma = guard.sanitizeRecords(chromaBatch);

// B. Sanitize Pinecone / Qdrant record arrays ({ id, text/payload, metadata }) const cleanRecords = guard.sanitizeRecords(pineconeRecords);

// C. Align search query tokens with sanitized vector space before embedding const { query: alignedQuery } = guard.sanitizeQuery("Search user john@example.com records");

// D. Transparent Vector Store Proxy: auto-sanitizes on

Only the beginning is shown; read the rest in the repo