Caveman.PrivacyGuard.Mcp 1.5.0

dotnet tool install --global Caveman.PrivacyGuard.Mcp --version 1.5.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Caveman.PrivacyGuard.Mcp --version 1.5.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Caveman.PrivacyGuard.Mcp&version=1.5.0
                    
nuke :add-package Caveman.PrivacyGuard.Mcp --version 1.5.0
                    

Caveman.PrivacyGuard.Mcp

MCP (Model Context Protocol) server for Caveman.PrivacyGuard. It exposes PII detection and masking, reversible session masking, prompt-injection screening and an AI transparency notice as tools for Claude Code, Cursor and any other MCP client.

Version 1.5.0 targets .NET 10 and uses Caveman.PrivacyGuard 1.5.0.

Install

dotnet tool install -g Caveman.PrivacyGuard.Mcp

Register it in your MCP client as a stdio server whose command is caveman-privacyguard-mcp.

Tools

Tool Description
analyze_text Detects and scores PII and sensitive data in 32 countries; returns compliance flags (GDPR, AI Act, NIS2, PCI-DSS, NIST)
mask_text Masks sensitive data; with a sessionId the placeholders are unique and restorable
restore_text Restores the original values in a model answer, given the sessionId used to mask
check_prompt_injection Screens untrusted text for prompt-injection attempts before it reaches a model
get_ai_transparency_notice Returns a localized disclosure that the user is talking to an AI system

Use a distinct sessionId for each conversation so that different conversations never share placeholders.

New in 1.5.0

Change Effect on analyze_text and mask_text
Anti-triggers A number next to invoice, order, article code or protocol is no longer read as a phone number
Printed IBAN Grouped IBANs are masked whole
New categories IP address, URL, monetary amount, date of birth, document protocol number
Italian VAT Corrected checksum: valid numbers are detected
.NET 10 The tool targets net10.0

Disclaimer

analyze_text, check_prompt_injection and get_ai_transparency_notice are technical aids, not a compliance or security guarantee.

License

MIT. See the LICENSE file in the package.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.5.0 105 11/8/2026
1.3.1 135 10/11/2026
1.3.0 150 8/13/2026
1.2.2 136 7/19/2026

1.5.0: aligned with Caveman.PrivacyGuard 1.5.0 and targets .NET 10. Now a real .NET tool: dotnet tool install --global Caveman.PrivacyGuard.Mcp, command caveman-privacyguard-mcp. analyze_text and mask_text benefit from anti-triggers (fewer false positives on invoice, order and article numbers) and from the new detections (printed IBAN, IP addresses, URLs, amounts, dates of birth, protocol numbers). 1.3.0: aligned with Caveman.PrivacyGuard 1.3.0. New tools: mask_stream (boundary-safe streaming PII masking over an array of text chunks, with a configurable overlap window), mask_document (streaming masking of plain-text/Markdown/CSV files into a name.masked.ext copy, original never overwritten), and session_summary (redacted placeholder+category view of a session — never the original value). 1.2.2 added 5 new country validators, AI Act/NIS2 compliance flags, PrivacySessionManager, AiTransparencyNotice and ChatIntentRouter.