phi-guard-mcp

v0.2.0
io.github.Abidit/phi-guard-mcp Checked 1 day ago Published 2 months ago

Local-first PHI detection for source code, LLM prompts, logs, and analytics

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

redact_suggest

Given a raw text snippet (a log line, a prompt, an error message), detect PHI-shaped values and return a redacted version.

ParameterTypeDescription
text *stringRaw text that may contain PHI
includeMatchedValuesbooleanEcho the raw matched PHI values and the original text back in the result. Off by default: the result flows into the calling model's context.

scan_code

Scan a local directory of source files for sensitive identifiers (patient, diagnosis, dob, ssn, mrn, birthdate, medicalrecord) flowing into risky sinks (LLM calls, logging, analytics) before they ship.

ParameterTypeDescription
path *stringAbsolute path to the directory or repo to scan. A relative path is resolved against the server process's working directory, which an MCP client controls — prefer an absolute path.