datafog-mcp

v1.2.0
datafog-mcp Checked 3 days ago Published 16 days ago

Local PII and credential detection and redaction for AI agents (MCP server)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

datafog_policy

Discover owner policy without returning exact allowlist values or scanning a file. Scanning scope means files to check routinely before reading, within allowed roots. Explicit scans remain permitted elsewhere within roots. Folder and extension restrictions combine; empty lists impose no additional restriction. Workflow actions are advisory: this server cannot control other read tools.

ParameterTypeDescription
pathOptional path to check against roots and advisory scanning scope.

datafog_scan

Detect personal and sensitive data in a file, without reading it into context. WHEN TO CALL THIS: before the first read of any file that might contain personal data - CSV and other text exports, downloads, logs, SQL dumps, or anything the user obtained from a third-party service. Use the owner's scanning scope for routine checks (datafog_policy can check a path). Within that scope, a request to analyze, summarize, convert, or upload a file is as much a trigger as a request to check it for PII. Explicit scans remain available outside the routine scope, within allowed roots. CALL THIS FIRST, B…

ParameterTypeDescription
path *stringThe path of the file to scan.
entity_typesThe types to look for. Defaults to API_KEY, BEARER_TOKEN,
has_headerbooleanFor tables, preserve the first record as header context (default).
input_formatstringauto parses .csv/.tsv as tables, uses env email boundaries
modestringWhat to return. Only "findings" is available: the type and

datafog_redact

Write a copy of a file with personal data replaced by labels. Each detected value becomes an unnumbered placeholder naming its kind, such as [EMAIL]. The value is destroyed but the reader can still tell what sort of thing was there. Every value of the same kind gets the same placeholder, so two different emails are not distinguishable in the copy. Use datafog_mask to hide the kind as well, or datafog_remove to leave no trace that anything was there. The original file is not modified. This tool never returns the values it replaced, so read the copy to see the result.

ParameterTypeDescription
path *stringThe file to read. UTF-8 text up to 10 MB, as for datafog_scan.
entity_typesThe types to replace. Defaults to the same types as
has_headerbooleanPreserve the first table record as header context (default).
input_formatstringauto parses .csv/.tsv as tables, uses env email boundaries
output_pathDestination path within the owner-configured output directory,

datafog_mask

Write a copy of a file with personal data covered over. Each detected value is replaced character for character, preserving its decoded length but revealing neither the value nor what kind it was. Table serialization may add quotes around changed cells. Use datafog_redact when the reader should still know what kind of thing was removed. The original file is not modified. This tool never returns the values it replaced, so read the copy to see the result.

ParameterTypeDescription
path *stringThe file to read. UTF-8 text up to 10 MB, as for datafog_scan.
entity_typesThe types to replace. Defaults to the same types as
has_headerbooleanPreserve the first table record as header context (default).
input_formatstringauto parses .csv/.tsv as tables, uses env email boundaries
output_pathDestination path within the owner-configured output directory,

datafog_remove

Write a copy of a file with personal data deleted outright. Each detected value is cut from the text. Nothing marks where it was, so the copy reads as though the data was never present and positions shift. This is the only operation whose output cannot later be inspected to see what was taken - the tool response is the only record. Use datafog_mask to keep length and alignment, or datafog_redact to leave a visible marker naming what was removed. The original file is not modified. This tool never returns the values it deleted.

ParameterTypeDescription
path *stringThe file to read. UTF-8 text up to 10 MB, as for datafog_scan.
entity_typesThe types to delete. Defaults to the same types as
has_headerbooleanPreserve the first table record as header context (default).
input_formatstringauto parses .csv/.tsv as tables, uses env email boundaries
output_pathDestination path within the owner-configured output directory,