Scrubbable
The PII firewall for AI agents - early access

Use agents
without sharing PII.

Drop Scrubbable's MCP server into your agent host: your agents read files, edit documents, and answer questions on reversible tokens - while the tools that restore real values stay host-only, invisible to the agent. On hosts that allow it - Claude Code, Cursor and ten more - Scrubbable also removes the host's own file-read and shell tools, so scrubbed reads are the only path to your files. Bonus: the same engine guards your Mac's clipboard, so a paste shortcut scrubs any paste.

MCP server built in macOS native Offline by default
59 MCP tools (25 agent-visible) · 18,186-test PR gate · 100% recall on structured identifiers — figures as of 2026-10-26
support ticket → your agent
⚠ PII Exposed
4 items at risk
Hi, I'm following up for Sarah Johnson (DOB 04/12/1985). Her account number is 4111-1234-5678 and she can be reached at [email protected].
Scrub Receipt
↩️

Reversible

Every token maps back to the real value - across turns, messages, and your whole session.

🎯

Deterministic

Same input, same session, same token - always. No model lottery, no drift.

🧾

Auditable

A receipt for every scrub proves exactly what was replaced - verifiable anytime.

🔒

Local-first

Detection, scrubbing, and restore all run on your Mac. Nothing phones home.

Every prompt is a data
leak waiting to happen.

Paste a support ticket into ChatGPT and the real names go with it. Let an agent read your files and every client detail rides along. Manual redaction doesn't survive contact with real workloads.

  • 📨You've copied an email thread about a patient. You want to ask AI to help you write a response - but it has their NHS number and address in it.
  • 💬You've copied a Slack conversation with a colleague. You want AI to help you draft a reply - but it uses their real name and mentions confidential project details.
  • 📄You've copied a legal document to ask AI to summarise it - but it has your client's full name, SSN, and contact details throughout.
  • 🔑Your coding agent asks to read the project - and the folder is full of .env files, client names, and real credentials.
  • 📊You point an assistant at a CRM export to draft outreach - and every row it reads has a lead's personal email and direct phone number.
  • 💌You've copied a personal message you want help replying to - but it names your friend, their partner, and details you'd rather not share with OpenAI.

One MCP server.
Two modes of safety.

Scrubbable ships a built-in MCP server - 59 tools across stateless and conversation-scoped modes. 25 are agent-visible; the 34 that can see real values (restore, registry, session wipes) are host-only: hidden from the agent's tool list on every host. How far the firewall goes depends on what the host allows:

  • Enforced hosts. Claude Code, Cursor, Gemini CLI and nine more ship config-level deny rules: Scrubbable denies the host's own file-read and shell tools (Read, Grep, Glob, Bash…), so file content reaches the agent only through scrubbed reads. An agent that only ever sees tokens has no path to the PII, whatever the model tries.
  • Cooperative hosts. Some hosts (Codex CLI, Copilot CLI, OpenHands and others) have no config-level deny. There the agent keeps its own tools and chooses Scrubbable's - the scrubbed surface is everything that flows through it, and restore stays host-only.
🛡️ Host-only restore tools 📁 Scrubbed file reads 🔀 Session forking for parallel agents 💾 Encrypted, crash-safe sessions 🧾 A receipt for every operation 📊 PII-free local metrics
~/.claude/settings.json
{
  "permissions": {
    "deny": ["Read", "Grep", "Glob", "Bash", …],
    "allow": ["mcp__scrubbable"]
  }
}
Claude Code, enforced: the deny block holds in every mode, including bypassPermissions - file content reaches the session only through Scrubbable's tools.
Bonus feature
The same engine,
in your menu bar.

Scrubbable also watches your clipboard. Anywhere you'd paste into an AI, use your Scrubbable paste-scrub shortcut instead - names, numbers, and secrets become tokens before the paste lands, and the reply restores on the way back out. Same detection, same receipts, same session - no agent required.

⌘V
Paste - sends everything as-is Exposed
swap this habit for
⌘⇧V
Scrub on paste - PII gone before it lands Scrubbed
⌘⇧⌥V
Unscrub on paste - restore real names on the way out Restore
Example bindings. Every paste shortcut is yours to bind - only clipboard history (⌘⇧C) is seeded out of the box - and the menu-bar items work without any shortcut at all.

See the difference it makes

Synthetic examples, written for this demo - every name, number and address is fabricated; no real PII. Hit Scrub it to watch the scrub happen - then see the receipt that gets generated. (For readability the tokens here use the indexed label mode; the default token mode emits structured tokens like [BB_ID_EMAIL_1_3f9c2a71].)

Built to be trusted with
your most sensitive text

The differences you can check: restore tools the agent never sees; the agent's own read path removed where the host allows it; Merkle-verifiable receipts; deterministic detection with signed packs; structure-preserving formats, source code included. And one thing it never does: phone home.

Eleven ways to replace PII

How scrubbed data looks when it's sent to the AI is your choice. Switch mode per session or set a default.

[BB_ID_NAME_1_3f9c2a71] Emma Johnson [NAME_1]

Structured tokens are unambiguous and reversible. Realistic fakes (locale-matched names, plausible emails) let the AI reason more naturally. Indexed labels like [NAME_1] are for maximum clarity - plus masks, transforms, direct lookups and pool draws.

Consistent identity mapping

"Alice" always maps to the same replacement within a session. "Alice Smith" maps to the same fake full name. Across every mention in a long document, the substitution is identical - so the AI's response reads coherently.

Offline by default

No cloud processing. No telemetry. No Scrubbable servers at all. Detection, scrubbing, receipt generation, restore and licence checks all run on your Mac. The one network tool (web read) is opt-in and limited to origins you allowlist. Sessions persist encrypted on disk - a passphrase-derived Argon2id key seals the CLI store, a Keychain-held master key seals the app and MCP store, saved before every response returns.

Receipt for every scrub

A machine-readable JSON receipt records every operation: entity type, position, rule, and an HMAC-derived identifier of the original. The receipt itself stores no plaintext PII, and a Merkle root ties the operations together so tampering shows. Restore is powered by the session registry - the encrypted store on your Mac - not by the receipt: when the AI replies with a token, Scrubbable knows exactly which real value to put back.

JSON export Merkle root HMAC identifiers
Bring your own model

Bring Your Own Model

No model required - but when you want more accuracy, export any HuggingFace token-classification model via ONNX and drop it in. English, French, Spanish, German, or your own domain-trained model - imported from local files, never downloaded, never shipped.

Bring your own rules

Bring Your Own Rules

Hot-load custom regex patterns via JSON config - no restart needed. Write rules for your internal identifiers: employee IDs, order numbers, proprietary formats. Detection ships as signed packs with curated presets - and every pack signature is verified before it loads.

Scrubs identity, not meaning

Medical terms, legal citations, academic vocabulary, and technical terminology are preserved. A drug name isn't scrubbed because it sounds like a name. "NHS" stays in a clinical note but an NHS number gets replaced. Eight domain personas control what's protected.

Multi-region, multi-language

Six identifier regions ship today - US, UK, France, Germany, Spain, Italy - each a signed pack: SSN, NHS and National Insurance, INSEE, German tax ID, DNI, Codice Fiscale. Name gazetteers cover 34 languages, and region packs compose with any language tooling - they're orthogonal.

NHS · SSN · DNI INSEE · tax ID · Codice Fiscale

One session, every surface

The Mac app and MCP server run on one session registry - a value scrubbed by an agent is restored by your clipboard shortcut, and vice versa. However the data moved, the mapping holds.

Any format you'd
trust an AI with

A JSON value holding an email becomes a JSON value holding a token - keys, nesting, and types untouched. Office documents round-trip byte-identically outside the scrubbed spans.

Plain text Markdown HTML JSON CSV TSV YAML XML Word Excel PowerPoint RTF EPUB PDF * Images * Audio Python JavaScript TypeScript Rust Go Java Clipboard

22 formats ship with tests today (as of 2026-10-26). * Images and PDF use destructive redaction - pixels and text are overwritten and cannot be unscrubbed; keep your original if you may need to reconstruct.

Five ways to find PII.
One winner per span.

Overlapping detections resolve through priority-ordered conflict resolution - no double-counting, no silently dropped values.

🧩

Regex + curated presets

Emails, SSNs, payment cards, API keys, JWTs, connection strings - shipped as signed presets like pii-core and developer.

📖

Aho-Corasick gazetteer

Dictionary lookup over compiled name and organisation lists - catches the values no regex rule knows about, per language.

📞

libphonenumber

Real international phone parsing: country codes, carrier prefixes, every common format - not just a digit-count regex.

🔤

Adjacency NLP

Context-aware name capture - Dr. Alice Smith-Jones as one span, via title prefixes and hyphenated-name templates.

🧠

BYO NER & OCR (optional)

Local ONNX models you import from disk - never downloaded, never shipped. Accuracy is yours; Scrubbable provides the socket.

🛡️

Prompt-injection guard

An opt-in preset strips high-confidence injection signatures - role overrides, jailbreaks, token smuggling - while your data is in the corridor anyway.

Empty by default, armed on purpose. The core ships with detection off - you enable exactly the signed packs and presets you need. Every pack signature is verified before it loads; an armed pack that can't load refuses the build.
Measured, not adjectives. 100% recall on structured identifiers - emails, phone numbers, SSNs, account numbers, dates, MRNs - on every shipped profile's benchmark leg; 99% on person names (Personal profile; 93-100% across profiles). Benchmark v1, 5 October 2026: 142 publicly-fetchable documents, ~9,400 human-labelled spans, recall only.

Write your rules.
Import everyone else's.

Detection is configuration, not magic. Compose your own rules, pull in signed packs and gazetteers, and let priority bands settle the overlaps.

⚙️

Configure everything

Regex patterns, priority bands, and schema-aware key rules for JSON and CSV - declared in JSON, hot-loaded without a restart. Entity routing decides, per type, what is blocked, flagged, or replaced.

📦

Import packs & gazetteers

Signed detection packs and curated presets - plus community packs in the reserved CMTY namespace and per-language name dictionaries. Every signature is verified before anything loads.

🏛️

Share rules across the org

Org-mandated rules ride a signed seat in a precedence band user config can't disable - the team's baseline travels with every install, and private prefixes keep your tokens namespaced.

Anyone who works with
other people's information

Scrubbable ships eight built-in profiles - Healthcare, Legal, Finance, Developer, Business, Journalist, Support, Personal - each knowing what to protect and what to leave alone. Some of the people who use them:

🏥

Healthcare

Scrubs patient names, NHS numbers, and contacts. Keeps diagnoses and medication names intact.

⚖️

Legal

Protects client identity while preserving case numbers, citations, and court names.

💰

Finance

Catches account numbers, sort codes, and IBANs. Preserves instrument names and regulatory terms.

👨‍💻

Developers

Detects API keys, tokens, and credentials. Preserves framework names and code architecture.

📊

Business & CRM

Scrubs lead names and contact info. Preserves deal sizes, timelines, and competitor mentions.

🛠️

Support

Scrubs requester names and contact details in support threads. Preserves product names, error codes, and order flows.

🗞️

Journalism

Protects source identity and confidential informants. Preserves publications and legal precedents.

💌

Personal

Aggressive scrubbing for diaries, letters, and family messages. The emotional context stays, the names go.

Works with the agent hosts
you already use

🛡️

Enforced hosts (12)

Claude Code, Claude Desktop (MDM-managed installs), Cursor, Gemini CLI, Qwen Code, OpenCode, Crush, Zed, Kiro (IDE), Kiro CLI (formerly Amazon Q Developer CLI), Goose, Devin (Desktop & CLI) - Scrubbable writes the host's own deny config, removing its file-read and shell tools. Scrubbed reads become the only path to file content.

🤝

Cooperative hosts (5)

OpenAI Codex CLI, GitHub Copilot CLI, OpenHands, Factory Droid, ZCode - no config-level deny exists, so the agent chooses Scrubbable's tools; everything that flows through them is scrubbed, and restore stays host-only.

💬

Chat apps - via the paste shortcut

ChatGPT, Claude, Gemini, Open WebUI, LibreChat and anything else with a text box: the Mac app's scrub-on-paste shortcut works everywhere, no MCP needed.

🧩

Any other MCP host

The server speaks stdio MCP, so hosts beyond the gallery wire up the same way - with Scrubbable's tools scrubbing everything that passes through them.

17 host integrations ship today (as of 2026-10-26). Wiring and deny configs for every host in the gallery are shipped and tested at the config level; live rig verification is in progress (Claude Code first).

A receipt that stands
up in an audit

Every scrub produces a tamper-evident receipt. Receipts accumulate in an encrypted, append-only archive - report-ready by date window and per-rule breakdown.

  • Tamper-evident by construction. Mutate any field after the fact and the Merkle root changes - verify() recomputes it and catches the difference.
  • Receipts never carry plaintext. Operations are stamped with HMAC-derived identifiers - raw values never appear. Logs and metrics record counts and timings only.
  • Deletion is committed-first. Removals write a tombstone before anything is erased - a crash can leave a recorded item, never an unrecorded hole.
  • No opt-out on the stamp. Every operation's original is HMAC-stamped with a session key - unconditionally, zero parameters.
scrub-receipt.json (illustrative)
{
  "merkle_root": "9f3ab07c…e21d",
  "operations": 4,
  "rule_impact": {
    "name":    { "wins": 1, "drops": 0 },
    "date":    { "wins": 1, "drops": 0 },
    "account": { "wins": 1, "drops": 0 },
    "email":   { "wins": 1, "drops": 0 }
  },
  "verify": "✓ ok"
}
verify() ✓ - recompute the Merkle root over every operation, any time, years later.

Signed all the way down

One admin arms detection for the whole org. Packs and rules ship signed and ride a precedence band no user config can switch off.

Signed detection packs Ed25519 trust roots; a pack loads only when its signature verifies.
Org-mandated rules Managed rules ride a signed seat in a precedence band user config cannot disable.
Private authority prefixes Claim your own token namespace by contract - BB, CPL and CMTY stay reserved.
Consistent tokens across machines Sealed, passphrase-protected session bundles carry the same token mapping across processes and desks.
Roadmap: central receipt archive One encrypted, append-only audit trail for everyone's scrubs is planned for the OEM tier - scope under review.
License-gated deployment A typed activation wall at every dispatch seam - capability refuses cleanly without a license.

Questions careful people ask

Does the AI ever see real personal data?

Not through Scrubbable: detection runs on your Mac before anything leaves it - the model receives structured tokens only. Restoration happens on your machine, and over MCP the restore tools are host-only: hidden from the agent's tool list on every host. On enforced hosts (Claude Code, Cursor and others) Scrubbable also denies the host's own file-read and shell tools, so scrubbed reads are the only path; on cooperative hosts the agent keeps its own tools and chooses Scrubbable's.

Is the redaction reversible?

Text and structured formats - including Word, Excel, PowerPoint, RTF and EPUB - round-trip fully, across turns and app restarts. Images and PDF use destructive one-way redaction; keep your original if you may need to reconstruct.

What happens if the session state is lost?

The tokens become permanently opaque - the failure mode is privacy, not leakage. And it's hard to lose: every surface that holds a session persists it to an encrypted store on disk before the response returns (or before the command exits, for the CLI), so quitting the app or a crash loses nothing beyond the call in flight. Stateless MCP calls - no session key - are the one exception: memory-only and one-way by design. Sessions can also be sealed into passphrase-protected bundles.

Is detection deterministic?

Yes. Same input plus same session produces the same token, always - which is what makes receipts replayable and audits meaningful. The one exception is an optional NER model you bring yourself: it's exactly as deterministic as the model you choose.

Does anything leave my Mac?

No content, no tokens, no originals. Optional NER/OCR models are imported from local files, never downloaded. Operational metrics are PII-free counters stored locally. There is no server to phone home to - and the one network tool (web read) is opt-in, restricted to origins you allowlist.

How is this different from regex redaction?

Three things: overlapping detections resolve to exactly one winner per span; reversible tokens preserve entity context across a whole conversation instead of collapsing everything to [REDACTED]; and every call produces a tamper-evident receipt you can verify later.

Put a firewall between your agents and your data.

Release planned for December/January. Join the waitlist now for early access to the Mac app and MCP server.

🍎 macOS + built-in MCP server

Get early access

Tell us a bit about how you'd use Scrubbable. We're onboarding early users personally and would love to hear from you - whether you're an individual, a team, or just curious.

  • Early access to the Mac app + MCP server
  • Help shape detection rules and packs
  • Team and enterprise pricing
  • Works with Claude, Cursor, and custom MCP hosts