# GLASTOR pii-veil

> GLASTOR pii-veil is an open-source MCP server for security. Reversible PII and secrets redaction engine for LLM prompts, MCP agents and logs. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Linux, macOS, Windows, Self-hosted, Web, VS Code
- **Website:** https://pii-veil.pages.dev
- **Repository:** https://github.com/glastor-core/pii-veil
- **MCP Registry name:** io.github.glastor-core/pii-veil
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-20

## About

The README describes pii-veil as a Rust engine that finds personal data and credentials in text, swaps them for placeholder tokens such as [CREDIT_CARD_1], and restores the original values once a model responds. The mapping lives in an in-memory vault that can be exported as a passphrase-encrypted file, so the same tokens can be reversed later in a different process.

Detection covers 18 built-in patterns, with financial and national ID matches checked against checksums like Luhn, Mod-97 and Mod-23 before they are flagged. Besides chat prompts, the project targets streaming SSE responses, JSON and NDJSON logs, CSV files and large SQL dumps, and it ships as a CLI with an MCP server mode, a local HTTP proxy and bindings for Python, Node.js and Go.

It suits developers who send user text to hosted LLMs and want sensitive values kept out of provider requests, and teams that need to scan repositories or database exports in CI. Enterprise on-premise support and custom rules are offered separately by the vendor.

## Features

- **Reversible placeholder tokens:** Replaces detected values with typed tokens and restores them in model output, including chunk-by-chunk streams.
- **Checksum-validated detectors:** Card numbers, IBANs and several national IDs are verified with their check digit algorithms to reduce false hits.
- **Encrypted vault export:** Saves the token-to-value mapping to a file protected by a passphrase for storage outside the process.
- **Streaming file processing:** Anonymizes and restores large SQL dumps, CSV files and JSONL logs without loading them fully into memory.
- **MCP server and HTTP proxy:** Runs as an stdio MCP server for desktop AI clients or as a local reverse proxy in front of an LLM API.

## Good for

- Keep customer card numbers and emails out of prompts sent to hosted LLM APIs
- Redact secrets and personal data from logs before they reach analytics or search tools
- Scan git commits or database dumps for leaked credentials in a CI pipeline
- Give Claude Desktop or Cursor access to redaction tools without exposing raw data

## Tools

From the tool list in its README, going by the names, 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `veil_redact`: Replaces detected sensitive values in text with placeholder tokens.
- `veil_restore`: Restores original values into text using tokens from a redaction.
- `veil_redact_json`: Applies redaction to JSON content.
- `veil_scan`: Scans text for sensitive data without rewriting it.

## FAQ

### Does pii-veil send data to any server?

The README states the engine runs in-process and makes no remote calls, and it is also compiled to WebAssembly for in-browser use.

### Which detectors are included?

The README lists 18 built-in detectors covering credit cards, IBANs, US SSN, Spanish DNI/NIE, Argentine CUIT/CUIL, Chilean RUT, database URIs, common API keys, JWTs, PEM keys, emails, phones and IP or MAC addresses.

### What MCP tools does the server expose?

The README names four tools: veil_redact, veil_restore, veil_redact_json and veil_scan.

### What license is the core under?

The vendor site says the core is released under Apache-2.0 or MIT.

### Is GLASTOR pii-veil free?

Yes. GLASTOR pii-veil is open source, so you can use and self-host it for free.

### What are the best alternatives to GLASTOR pii-veil?

The closest alternatives to GLASTOR pii-veil are LLM Data Guard: PII & Secrets Redaction, Véu, Prompt Leak Scanner, Obscate PII redaction and EU PII Redaction.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.

## Alternatives

- [LLM Data Guard: PII & Secrets Redaction](https://ai-powered.com/mcp/llm-data-guard-pii-and-secrets-redaction): LLM Data Guard: PII & Secrets Redaction is a paid MCP server for security.
- [Véu](https://ai-powered.com/mcp/veu): Véu is an open-source MCP server for security.
- [Prompt Leak Scanner](https://ai-powered.com/mcp/prompt-leak-scanner-2): Prompt Leak Scanner is an open-source MCP server for ai models and llm tooling.
- [Obscate PII redaction](https://ai-powered.com/mcp/obscate-pii-redaction): Obscate PII redaction is a freemium MCP server for security.
- [EU PII Redaction](https://ai-powered.com/mcp/eu-pii-redaction): EU PII Redaction is a freemium MCP server for security.
- [PrivacyScrubber PII Masking MCP](https://ai-powered.com/mcp/privacyscrubber-pii-masking-mcp): PrivacyScrubber PII Masking MCP is a freemium MCP server for security.
- [PasteShield Reversible Secret Sanitizer](https://ai-powered.com/mcp/pasteshield-reversible-secret-sanitizer): PasteShield Reversible Secret Sanitizer is a freemium MCP server for security.
- [Redaction](https://ai-powered.com/mcp/redaction): Redaction is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/glastor-pii-veil
