phi-guard-mcp
v0.2.0Local-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.
| Parameter | Type | Description |
|---|---|---|
text * | string | Raw text that may contain PHI |
includeMatchedValues | boolean | Echo 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute 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. |