# ScrubVault - Zero-Data-Leak PII Masking

> In-memory privacy airgap that masks sensitive PII before cloud LLMs and restores values in responses.

ScrubVault - Zero-Data-Leak PII Masking is a free AI agent skill on Agensi by Christopher Hailfinger, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Christopher Hailfinger](https://www.agensi.io/creators/christopher-hailfinger)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-13
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/scrubvault-zero-data-leak-pii-masking
- Tags: llm-ops, privacy, security, pii-masking, mcp, python

## About this skill

Sending PII to cloud LLMs violates compliance and risks data breaches. ScrubVault acts as a local privacy airgap, ensuring sensitive data never leaves your infrastructure. It intercepts raw text in local RAM, replaces sensitive entities with deterministic tokens, and restores them only after the LLM responds.

### What it does
- **PII Detection** identifies emails, IBANs, IP addresses, credit card numbers, SSNs, and phone numbers.
- **Local Masking** replaces sensitive data with deterministic tokens like `{{EMAIL_1}}` in local memory.
- **Zero-Leak Transmission** ensures only redacted prompts are sent to external cloud APIs.
- **Deterministic Unmasking** restores original values into the LLM response based on the local session mapping.
- **MCP Integration** provides a standard interface for Claude Desktop, Cursor, and other MCP-compatible clients.

### How it works
1. **Initialize** the ScrubVault instance or start the MCP server locally.
2. **Mask** raw input containing sensitive data to generate a redacted string and a session ID.
3. **Process** the masked string through your preferred cloud LLM.
4. **Unmask** the LLM's response using the session ID to restore original PII for the end user.

### Frameworks & tools
This is a pure-Python package with zero third-party dependencies. It supports the Model Context Protocol (MCP) and integrates with Claude Desktop, Cursor, and Cline.

### Why this beats prompting it yourself
System prompts for redaction often fail or "leak" data under pressure. ScrubVault handles masking programmatically in local RAM, providing a technical guarantee that PII never reaches the network layer.

### Use cases
- **Log Analysis** Redacting server IPs and credentials before debugging with an AI.
- **Customer Support** Processing support tickets containing emails and bank details for summarization.
- **Financial Auditing** Analyzing invoices and IBANs while maintaining GDPR and HIPAA compliance.
- **Database Refactoring** Masking user records during schema migrations or query optimization.

### Known limitations
Mappings are stored in-memory only and are lost if the local process restarts. The skill relies on pattern-based detection for standard PII formats.

#### Links & Resources
- **GitHub Repository:** https://github.com/tastenkasperle/scrub-vault
- **PyPI Package:** https://pypi.org/project/scrub-vault/

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the ScrubVault - Zero-Data-Leak PII Masking skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does ScrubVault protect my data when using cloud-based AI?

ScrubVault acts as a local privacy airgap that automatically detects and replaces PII (like emails and SSNs) with secure tokens before data leaves your machine, ensuring cloud LLMs never see your sensitive information.

### Does this skill work with tools like Claude Desktop or Cursor?

Yes, this skill is fully compatible with the Model Context Protocol (MCP) and can be used immediately within Claude Desktop, Cursor, and Cline to redact prompts in real-time.

### Does my sensitive data ever leave my local environment for processing?

No, ScrubVault is a zero-dependency Python package that performs all masking in local RAM, meaning your sensitive session mappings are never stored on a server or sent over the network.

### What is included in the ScrubVault package?

The skill includes the core Python library, a pre-configured MCP server for easy integration, and documentation for implementing the mask/unmask workflow in your own custom agents.

### What specific types of PII can ScrubVault detect and mask?

Standard identifiers like emails, IP addresses, IBANs, SSNs, credit card numbers, and phone numbers are supported out-of-the-box using high-performance, local pattern detection.

### Why should I use this instead of just telling the LLM to 'ignore PII' in the system prompt?

Manual prompting is unreliable and prone to "hallucinating" private data; ScrubVault provides a programmatic, technical guarantee that PII is stripped at the application layer before the request is even sent.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
